|
|
@ -8,18 +8,16 @@ |
|
|
<InputNumber placeholder="请输入" style="width: 46%" v-model:value="ageModel.maxAge" /> |
|
|
<InputNumber placeholder="请输入" style="width: 46%" v-model:value="ageModel.maxAge" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<!-- <template #toolbar> |
|
|
|
|
|
|
|
|
<template #toolbar> |
|
|
<div style="width: 100%; padding: 2px" class="flex-row-center-end"> |
|
|
<div style="width: 100%; padding: 2px" class="flex-row-center-end"> |
|
|
<RadioGroup button-style="solid" v-model:value="radioVal" @change="handleRadioChange"> |
|
|
|
|
|
|
|
|
<!-- <RadioGroup button-style="solid" v-model:value="radioVal" @change="handleRadioChange"> |
|
|
<RadioButton v-for="item in clueStatusList" :key="item.value" :value="item.value">{{item.label}}</RadioButton> |
|
|
<RadioButton v-for="item in clueStatusList" :key="item.value" :value="item.value">{{item.label}}</RadioButton> |
|
|
</RadioGroup> |
|
|
|
|
|
|
|
|
</RadioGroup> --> |
|
|
<div class="flex-row-center-start"> |
|
|
<div class="flex-row-center-start"> |
|
|
<Button type="primary" danger :disabled="datingClueIdList.length == 0" @click="handleModal(null)">分配</Button> |
|
|
|
|
|
<Button style="margin-left: 16px;" @click="handleAdd(true)">批量导入</Button> |
|
|
|
|
|
<Button :type="'primary'" style="margin-left: 16px;" @click="handleAdd(false)">新增</Button> |
|
|
|
|
|
|
|
|
<Button type="primary" danger :disabled="datingClueIdList.length == 0" @click="handleModal(null)">重新分配</Button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> --> |
|
|
|
|
|
|
|
|
</template> |
|
|
<template #userinfo="{ text, record }"> |
|
|
<template #userinfo="{ text, record }"> |
|
|
<Profile :info="record" /> |
|
|
<Profile :info="record" /> |
|
|
</template> |
|
|
</template> |
|
|
@ -95,15 +93,15 @@ |
|
|
showIndexColumn: false, |
|
|
showIndexColumn: false, |
|
|
showTableSetting: false, |
|
|
showTableSetting: false, |
|
|
api: getInvitationList, |
|
|
api: getInvitationList, |
|
|
// rowKey: 'id', |
|
|
|
|
|
// rowSelection: { |
|
|
|
|
|
// type: 'checkbox', |
|
|
|
|
|
// onChange, |
|
|
|
|
|
// getCheckboxProps(record: Recordable) { |
|
|
|
|
|
// // Demo: 第一行(id为0)的选择框禁用 |
|
|
|
|
|
// return { disabled: record.allocationStatus !== 1 }; |
|
|
|
|
|
// }, |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
rowKey: 'id', |
|
|
|
|
|
rowSelection: { |
|
|
|
|
|
type: 'checkbox', |
|
|
|
|
|
onChange, |
|
|
|
|
|
getCheckboxProps(record: Recordable) { |
|
|
|
|
|
// Demo: 第一行(id为0)的选择框禁用 |
|
|
|
|
|
return true; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
formConfig: { |
|
|
formConfig: { |
|
|
labelWidth: 120, |
|
|
labelWidth: 120, |
|
|
schemas: tableFormSchema, |
|
|
schemas: tableFormSchema, |
|
|
@ -138,7 +136,9 @@ |
|
|
datingClueIdList.value = [] |
|
|
datingClueIdList.value = [] |
|
|
reload() |
|
|
reload() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onChange(selectedRowKeys) { |
|
|
|
|
|
datingClueIdList.value = selectedRowKeys |
|
|
|
|
|
} |
|
|
const [registerModal, { openModal, closeModal }] = useModal() |
|
|
const [registerModal, { openModal, closeModal }] = useModal() |
|
|
function handleModal(record) { |
|
|
function handleModal(record) { |
|
|
openModal(true, {record}) |
|
|
openModal(true, {record}) |
|
|
|