修改 常态化干扰源用户管理 编辑bug
This commit is contained in:
@@ -177,7 +177,7 @@ const tableStore = new TableStore({
|
|||||||
icon: 'el-icon-Open',
|
icon: 'el-icon-Open',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
showDisabled: row => {
|
showDisabled: row => {
|
||||||
return row.createBy != adminInfo.$state.id || !(row.status == 0)
|
return row.deptId != adminInfo.$state.deptId || !(row.status == 0)
|
||||||
},
|
},
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
return !(row.status == 0)
|
return !(row.status == 0)
|
||||||
|
|||||||
@@ -523,7 +523,7 @@ import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
|
|||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
import { queryByAllCode } from '@/api/system-boot/dictTree'
|
import { queryByAllCode } from '@/api/system-boot/dictTree'
|
||||||
import { uploadFile } from '@/api/system-boot/file'
|
import { uploadFile } from '@/api/system-boot/file'
|
||||||
import { submitFormData, getById, updateFormData, addEditor,resend } from '@/api/supervision-boot/interfere/index'
|
import { submitFormData, getById, updateFormData, addEditor, resend } from '@/api/supervision-boot/interfere/index'
|
||||||
import { getUserReportUpdateById } from '@/api/supervision-boot/userReport/form'
|
import { getUserReportUpdateById } from '@/api/supervision-boot/userReport/form'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
openType: {
|
openType: {
|
||||||
@@ -1362,15 +1362,27 @@ const confirmForm = (flag: boolean) => {
|
|||||||
} else {
|
} else {
|
||||||
confirmFormData.id = resendId.value
|
confirmFormData.id = resendId.value
|
||||||
if (props.normalizedControl) {
|
if (props.normalizedControl) {
|
||||||
resend(confirmFormData).then(res => {
|
if (title.value == '编辑') {
|
||||||
ElMessage({
|
addEditor(confirmFormData).then(res => {
|
||||||
message: '重新发起成功',
|
ElMessage({
|
||||||
type: 'success'
|
message: '发起成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
ruleFormRef.value.resetFields()
|
||||||
|
resetForm()
|
||||||
|
close()
|
||||||
})
|
})
|
||||||
ruleFormRef.value.resetFields()
|
} else {
|
||||||
resetForm()
|
resend(confirmFormData).then(res => {
|
||||||
close()
|
ElMessage({
|
||||||
})
|
message: '重新发起成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
ruleFormRef.value.resetFields()
|
||||||
|
resetForm()
|
||||||
|
close()
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
updateFormData(confirmFormData).then(res => {
|
updateFormData(confirmFormData).then(res => {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user