|
@@ -41,7 +41,7 @@
|
|
|
},
|
|
|
setup() {
|
|
|
const { t } = useI18n();
|
|
|
- const { createMessage } = useMessage();
|
|
|
+ const { createMessage, createConfirm } = useMessage();
|
|
|
const permissionStore = usePermissionStore();
|
|
|
const [registerAdd, { openModal: openAddModal }] = useModal();
|
|
|
const { getCheckPerm } = permissionStore;
|
|
@@ -108,10 +108,15 @@
|
|
|
console.log('点击了启用', record);
|
|
|
}
|
|
|
async function handleDlet(record) {
|
|
|
- console.log('record', record);
|
|
|
- await userShareDel({id: record.id });
|
|
|
- createMessage.success('操作成功');
|
|
|
- reload();
|
|
|
+ createConfirm({
|
|
|
+ title: '删除',
|
|
|
+ content: `确定要删除 ${record.ryNo} 吗?`,
|
|
|
+ onOk: async () => {
|
|
|
+ await userShareDel({id: record.id });
|
|
|
+ createMessage.success('操作成功');
|
|
|
+ reload();
|
|
|
+ },
|
|
|
+ });
|
|
|
}
|
|
|
return {
|
|
|
registerTimeTable,
|