修改冀北 bug

This commit is contained in:
GGJ
2024-07-15 20:34:21 +08:00
parent afc0e875d8
commit c8c4c50274
8 changed files with 197 additions and 257 deletions

View File

@@ -32,7 +32,7 @@
<template #footer>
<div class="dialog-footer">
<el-button @click="close()">取消</el-button>
<el-button type="primary" @click="confirmForm(true)">保存</el-button>
<!-- <el-button type="primary" @click="confirmForm(true)">保存</el-button> -->
<el-button type="primary" @click="confirmForm(false)">提交审批</el-button>
</div>
</template>
@@ -42,6 +42,7 @@
import { ref, onMounted, reactive, defineExpose, defineProps, defineEmits, watch, onUnmounted } from 'vue'
import { useDictData } from '@/stores/dictData'
import { useAdminInfo } from '@/stores/adminInfo'
import { ElMessage } from 'element-plus'
import {
addMointorPointTempLinedebug,
updateMointorPointTempLinedebug
@@ -119,6 +120,7 @@ const confirmForm = (flag: boolean) => {
form.value.saveOrCheckflag = '1'
addMointorPointTempLinedebug(form.value).then(res => {
ruleFormRef.value.resetFields()
ElMessage.success('保存成功!')
resetForm()
close()
})
@@ -131,12 +133,14 @@ const confirmForm = (flag: boolean) => {
if (!(title.value == '重新发起' || title.value == '编辑')) {
addMointorPointTempLinedebug(form.value).then(res => {
ruleFormRef.value.resetFields()
ElMessage.success('申请联调成功!')
resetForm()
close()
})
} else {
updateMointorPointTempLinedebug(form.value).then(res => {
ruleFormRef.value.resetFields()
ElMessage.success('重新发起成功!')
resetForm()
close()
})

View File

@@ -40,7 +40,6 @@ import { useDictData } from '@/stores/dictData'
import { getLoadTypeUserList } from '@/api/process-boot/interference'
import { setTempLinedebugLedgerSync } from '@/api/supervision-boot/jointDebugList/index'
import debug from './debug.vue'
import { any } from 'vue-types'
import { cancelMointorPointTempLinedebug } from '@/api/supervision-boot/jointDebugList/index'
import { useAdminInfo } from '@/stores/adminInfo'
//获取登陆用户姓名和部门