Browse Source

no message

master
xpz2018 7 months ago
parent
commit
b5c8cba9d4
1 changed files with 17 additions and 17 deletions
  1. 34
      src/views/invite/list/index.vue

34
src/views/invite/list/index.vue

@ -8,18 +8,16 @@
<InputNumber placeholder="请输入" style="width: 46%" v-model:value="ageModel.maxAge" />
</div>
</template>
<!-- <template #toolbar>
<template #toolbar>
<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>
</RadioGroup>
</RadioGroup> -->
<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>
</template> -->
</template>
<template #userinfo="{ text, record }">
<Profile :info="record" />
</template>
@ -95,15 +93,15 @@
showIndexColumn: false,
showTableSetting: false,
api: getInvitationList,
// rowKey: 'id',
// rowSelection: {
// type: 'checkbox',
// onChange,
// getCheckboxProps(record: Recordable) {
// // Demo: id0
// return { disabled: record.allocationStatus !== 1 };
// },
// },
rowKey: 'id',
rowSelection: {
type: 'checkbox',
onChange,
getCheckboxProps(record: Recordable) {
// Demo: id0
return true;
},
},
formConfig: {
labelWidth: 120,
schemas: tableFormSchema,
@ -138,7 +136,9 @@
datingClueIdList.value = []
reload()
}
function onChange(selectedRowKeys) {
datingClueIdList.value = selectedRowKeys
}
const [registerModal, { openModal, closeModal }] = useModal()
function handleModal(record) {
openModal(true, {record})

Loading…
Cancel
Save