|
@@ -218,6 +218,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 确认弹窗 -->
|
|
|
|
|
+ <confirmChange :visible="changedDialogState" :params="changedParams" @confirm="handleConfirmChange" @cancel="handleCancelChange" />
|
|
|
</div>
|
|
</div>
|
|
|
<BatchImport
|
|
<BatchImport
|
|
|
:visible="batchImportVisible"
|
|
:visible="batchImportVisible"
|
|
@@ -243,7 +245,7 @@
|
|
|
} from '@/api/production-safety/responsibility-implementation';
|
|
} from '@/api/production-safety/responsibility-implementation';
|
|
|
import urlJoin from 'url-join';
|
|
import urlJoin from 'url-join';
|
|
|
import { BatchImport } from '@/components/batch-import';
|
|
import { BatchImport } from '@/components/batch-import';
|
|
|
-
|
|
|
|
|
|
|
+ import confirmChange from './confirmChange.vue';
|
|
|
import { unformatAttachment } from '@/components/UploadFiles/utils';
|
|
import { unformatAttachment } from '@/components/UploadFiles/utils';
|
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
|
import { useGlobSetting } from '@/hooks/setting';
|
|
import { useGlobSetting } from '@/hooks/setting';
|
|
@@ -312,9 +314,9 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
const changedVisible = ref(false)
|
|
const changedVisible = ref(false)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const changedListData = reactive({
|
|
const changedListData = reactive({
|
|
|
currentRecord:[],
|
|
currentRecord:[],
|
|
|
historiesRecords: {
|
|
historiesRecords: {
|
|
@@ -368,20 +370,37 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const changedDialogState = ref(false)
|
|
|
|
|
+ const changedParams = reactive({})
|
|
|
|
|
+ // 弹出弹窗,修改必填项
|
|
|
const handleAreaCheckListApprove = (scope, approveType) => {
|
|
const handleAreaCheckListApprove = (scope, approveType) => {
|
|
|
|
|
+ if(approveType===1){
|
|
|
|
|
+ changedDialogState.value = true
|
|
|
|
|
+ Object.assign(changedParams, {
|
|
|
|
|
+ id: scope.row.id,
|
|
|
|
|
+ approveType
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
areaCheckListApprove({
|
|
areaCheckListApprove({
|
|
|
id: scope.row.id,
|
|
id: scope.row.id,
|
|
|
approveType,
|
|
approveType,
|
|
|
refuseReason: null,
|
|
refuseReason: null,
|
|
|
- }).then(() => {
|
|
|
|
|
- if (approveType === 1) {
|
|
|
|
|
- ElMessage.success('请尽快修改该责任清单的安全责任所/中心、安全责任部门及相关负责人信息');
|
|
|
|
|
- } else {
|
|
|
|
|
- ElMessage.success('操作成功!');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ ElMessage.success('操作成功!');
|
|
|
queryTableList();
|
|
queryTableList();
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+ // 确认回调
|
|
|
|
|
+ const handleConfirmChange = ()=>{
|
|
|
|
|
+ changedDialogState.value = false
|
|
|
|
|
+ queryTableList();
|
|
|
|
|
+ }
|
|
|
|
|
+ const handleCancelChange = ()=>{
|
|
|
|
|
+ changedDialogState.value = false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const handleQueryAvailableUserList = (deptName = '', realname = '') => {
|
|
const handleQueryAvailableUserList = (deptName = '', realname = '') => {
|
|
|
queryAvailableUserList({
|
|
queryAvailableUserList({
|
|
|
pageNumber: 1,
|
|
pageNumber: 1,
|
|
@@ -420,6 +439,7 @@
|
|
|
queryTableList();
|
|
queryTableList();
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
const queryTableList = () => {
|
|
const queryTableList = () => {
|
|
|
areaCheckListQueryPage(queryParams).then((res) => {
|
|
areaCheckListQueryPage(queryParams).then((res) => {
|
|
|
tableData.data = res.records;
|
|
tableData.data = res.records;
|