修改 常态化干扰源用户管理 编辑bug

This commit is contained in:
GGJ
2024-07-01 10:58:32 +08:00
parent 84b583f12e
commit 8dc8cd83a0
2 changed files with 24 additions and 12 deletions

View File

@@ -177,7 +177,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
return row.deptId != adminInfo.$state.deptId || !(row.status == 0)
},
disabled: row => {
return !(row.status == 0)

View File

@@ -1362,6 +1362,17 @@ const confirmForm = (flag: boolean) => {
} else {
confirmFormData.id = resendId.value
if (props.normalizedControl) {
if (title.value == '编辑') {
addEditor(confirmFormData).then(res => {
ElMessage({
message: '发起成功',
type: 'success'
})
ruleFormRef.value.resetFields()
resetForm()
close()
})
} else {
resend(confirmFormData).then(res => {
ElMessage({
message: '重新发起成功',
@@ -1371,6 +1382,7 @@ const confirmForm = (flag: boolean) => {
resetForm()
close()
})
}
} else {
updateFormData(confirmFormData).then(res => {
ElMessage({