|
@@ -93,7 +93,7 @@ const handleTableRowBtn_add = () => {
|
|
|
dialogVisible_addOrEdit.value = true
|
|
|
}
|
|
|
const handleTableRowBtn_delete = async () => {
|
|
|
- if(multipleSelection.value.length===0) return ElMessage.info('请先勾选文件');const resp = await deleteApi(multipleSelection.value.map((item: TYPE_TABLE_FIELD) => item[TABLE_KEY]));if(resp.code!=='1')return;ElMessage.success('删除成功');
|
|
|
+ if (multipleSelection.value.length === 0) return ElMessage.info('请先勾选文件'); const resp = await deleteApi(multipleSelection.value.map((item: TYPE_TABLE_FIELD) => item[TABLE_KEY])); if (resp.code !== '1') return; ElMessage.success('删除成功');
|
|
|
queryApi()
|
|
|
}
|
|
|
// #endregion
|
|
@@ -119,7 +119,7 @@ const handleTableColBtn_detail = (scope: { row: TYPE_TABLE_FIELD }) => {
|
|
|
}
|
|
|
const handleTableColBtn_delete = async (scope: { row: TYPE_TABLE_FIELD }) => {
|
|
|
const resp = await deleteApi(scope.row[TABLE_KEY]);
|
|
|
- if(resp.code!=='1')return;ElMessage.success('删除成功');
|
|
|
+ if (resp.code !== '1') return; ElMessage.success('删除成功');
|
|
|
queryApi()
|
|
|
}
|
|
|
// #endregion
|
|
@@ -141,7 +141,7 @@ const handleDialogFormBtn_submit = async (formRefKey: string, extendData?: Parti
|
|
|
const isValid = await (instance?.refs[formRefKey] as FormInstance).validate((valid: boolean) => valid)
|
|
|
if (isValid) {
|
|
|
const resp = await API_MAP[whichDialogSubmit](<TYPE_TABLE_FIELD>({ ...dialogForm_Data.value, ...extendData }))
|
|
|
- if(resp.code!=='1')return;ElMessage.success('操作成功');handleDialogFormBtn_cancel()
|
|
|
+ if (resp.code !== '1') return; ElMessage.success('操作成功'); handleDialogFormBtn_cancel()
|
|
|
queryApi()
|
|
|
}
|
|
|
}
|
|
@@ -558,7 +558,8 @@ const handleTargetChange = (item: any) => {
|
|
|
</template></el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" width="120">
|
|
|
<template #default="scope">
|
|
|
- <el-button link :auto-insert-space="false" @click="handleTableColBtn_edit(scope)" type="primary">编辑
|
|
|
+ <el-button link :disabled="scope.row.xtw_shzt_option_k !== '3'" :auto-insert-space="false"
|
|
|
+ @click="handleTableColBtn_edit(scope)" type="primary">编辑
|
|
|
</el-button>
|
|
|
<!-- <el-button link :auto-insert-space="false" @click="handleTableColBtn_audit(scope)" type="primary" >审核</el-button> -->
|
|
|
<!-- <el-button link :auto-insert-space="false" @click="handleTableColBtn_detail(scope)" type="primary" >详情</el-button> -->
|