联调 在线监测详情
This commit is contained in:
@@ -207,10 +207,13 @@ const tableStore = new TableStore({
|
||||
icon: 'el-icon-Open',
|
||||
render: 'basicButton',
|
||||
showDisabled: row => {
|
||||
return row.createBy != adminInfo.$state.id || !(row.status == 0 || row.status == null)
|
||||
return (
|
||||
row.createBy != adminInfo.$state.id ||
|
||||
!(row.status == 0 || row.status == 2 || row.status == null)
|
||||
)
|
||||
},
|
||||
disabled: row => {
|
||||
return !(row.status == 0 || row.status == null)
|
||||
return !(row.status == 0 || row.status == 2 || row.status == null)
|
||||
},
|
||||
click: row => {
|
||||
update.value = row.status == null ? false : true
|
||||
|
||||
@@ -939,11 +939,14 @@ watch(
|
||||
}
|
||||
)
|
||||
const resendId = ref('')
|
||||
const status = ref('')
|
||||
const open = async (row: any) => {
|
||||
title.value = row.title
|
||||
dialogFormVisible.value = true
|
||||
if (row.row) {
|
||||
resendId.value = row.row.id
|
||||
status.value = row.row.status
|
||||
|
||||
if (props.update) {
|
||||
await getUserReportUpdateById(row.row.id).then(res => {
|
||||
handleResponse(res.data.userReportMessageJson)
|
||||
@@ -1361,8 +1364,10 @@ const confirmForm = (flag: boolean) => {
|
||||
})
|
||||
} else {
|
||||
confirmFormData.id = resendId.value
|
||||
|
||||
if (props.normalizedControl) {
|
||||
if (title.value == '编辑') {
|
||||
if (status.value != '') confirmFormData.status = status.value
|
||||
addEditor(confirmFormData).then(res => {
|
||||
ElMessage({
|
||||
message: '发起成功',
|
||||
|
||||
Reference in New Issue
Block a user