添加工作流 设计器
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<planAdd ref="planAddRef" @onsubmit="tableStore.index()" />
|
||||
|
||||
<!-- 选择审核人 -->
|
||||
<el-dialog v-model="dialogVisible" title="审核" width="300" :before-close="handleClose">
|
||||
<el-dialog draggable v-model="dialogVisible" title="审核" width="300" :before-close="handleClose">
|
||||
选择审核人: <el-select v-model="auditUser" clearable placeholder="请选择计划状态">
|
||||
<el-option v-for="item in auditList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
||||
</el-select>
|
||||
@@ -40,7 +40,7 @@ import TableStore from '@/utils/tableStore'
|
||||
import Table from '@/components/table/index.vue'
|
||||
import TableHeader from '@/components/table/header/index.vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { planStatus } from '@/api/process-boot/generalTest'
|
||||
import { submitAuditUser } from '@/api/process-boot/generalTest'
|
||||
import planAdd from './planAdd.vue'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
|
||||
@@ -190,13 +190,20 @@ const submit = () => {
|
||||
}
|
||||
// 提交审核
|
||||
const planReviewFn = () => {
|
||||
if(auditUser.value == ''){
|
||||
return ElMessage.warning('请选择审核人')
|
||||
}
|
||||
let planNo: any = []
|
||||
tableStore.table.selection.forEach(item => {
|
||||
if (item.status == 0 || item.status == 2) {
|
||||
planNo.push(item.planNo)
|
||||
}
|
||||
})
|
||||
planStatus(planNo).then(res => {
|
||||
submitAuditUser({
|
||||
auditUser: auditUser.value,
|
||||
planIds: planNo
|
||||
}).then(res => {
|
||||
dialogVisible.value = false
|
||||
ElMessage.success('提交成功!')
|
||||
tableStore.index()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user