From 999cab6fb3fc6d2a288d365da991351c5a396bf0 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期三, 21 九月 2022 15:53:18 +0800 Subject: [PATCH] 删除无用页面 --- src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue b/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue index 824663c..8a15ba4 100644 --- a/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue +++ b/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue @@ -31,7 +31,7 @@ <el-col :span="24"> <el-form-item label="创建审批链"> <div style="width: 100%; margin-bottom: 20px" v-show="disabled"> - <el-button type="primary" :icon="Plus" size="default" @click="openApproveLevelDialog('新增', '')">新增巡检点</el-button> + <el-button type="primary" :icon="Plus" size="default" @click="openApproveLevelDialog('新增', '')">新增审批层级</el-button> </div> <div style="width: 100%; margin-left: -30px"> <div v-for="(item, index) in approveRuleForm.stepList" class="stepItem"> @@ -85,7 +85,6 @@ </el-card> </div> <div v-show="disabled"> - <!-- <el-button type="primary" size="default" @click="addFlow(index)">新增下一区域</el-button>--> <el-button type="primary" style="margin-left: 12px" size="default" @click="openApproveLevelDialog('修改', item)">修改</el-button> <el-button type="danger" size="default" @click="deleteApproveLevel(index, item)">删除</el-button> </div> @@ -94,11 +93,13 @@ </el-form-item> </el-col> </el-row> - <div align="right" v-show="disabled"> + </el-form> + <template #footer> + <div v-show="disabled" class="dialog-footer"> <el-button type="warning" @click="ifShowApproveRuleDialog = false" size="default" plain>取消</el-button> <el-button type="primary" @click="submitApproveRule()" size="default">确认</el-button> </div> - </el-form> + </template> </el-dialog> <approve-level-dialog ref="approveLevelDialogRef" @addApprovalLevel="achieveApprovalLevel"></approve-level-dialog> </div> @@ -108,6 +109,7 @@ import { reactive, toRefs, ref } from 'vue'; import { ElMessage } from 'element-plus/es'; import { approveRuleApi } from '/@/api/specialWorkSystem/approveRule'; +import { Edit, View, Plus, Delete, Refresh, Search, Download } from '@element-plus/icons-vue'; import approveLevelDialog from '/@/views/specialWorkSystem/workFlow/approveRule/components/approveLevelDialog.vue'; interface dataState { title: string; @@ -148,7 +150,7 @@ } export default { name: 'approveRuleDialog', - components: { approveLevelDialog }, + components: { approveLevelDialog,Plus }, setup(props: any, context: any) { const approveRuleFormRef = ref(); const approveLevelDialogRef = ref(); @@ -262,9 +264,9 @@ if (data.approveRuleForm.workType === 1) { data.approveRuleForm.workLevel = null; data.workLevelList = [ + { id: 3, name: '特级动火作业' }, { id: 1, name: '一级动火作业' }, - { id: 2, name: '二级动火作业' }, - { id: 3, name: '三级动火作业' } + { id: 2, name: '二级动火作业' } ]; } else if (data.approveRuleForm.workType === 3) { data.approveRuleForm.workLevel = null; @@ -276,10 +278,10 @@ } else if (data.approveRuleForm.workType === 6) { data.approveRuleForm.workLevel = null; data.workLevelList = [ + { id: 7, name: '特级高处作业' }, { id: 4, name: '一级高处作业' }, { id: 5, name: '二级高处作业' }, { id: 6, name: '三级高处作业' }, - { id: 7, name: '四级高处作业' } ]; } else if (data.approveRuleForm.workType === 8) { data.approveRuleForm.workLevel = null; @@ -296,9 +298,9 @@ const setValue = (workType: number) => { if (workType === 1) { data.workLevelList = [ + { id: 3, name: '特级动火作业' }, { id: 1, name: '一级动火作业' }, { id: 2, name: '二级动火作业' }, - { id: 3, name: '三级动火作业' } ]; } else if (workType === 3) { data.workLevelList = [ @@ -308,10 +310,10 @@ ]; } else if (workType === 6) { data.workLevelList = [ + { id: 7, name: '四级高处作业' }, { id: 4, name: '一级高处作业' }, { id: 5, name: '二级高处作业' }, - { id: 6, name: '三级高处作业' }, - { id: 7, name: '四级高处作业' } + { id: 6, name: '三级高处作业' } ]; } else if (workType === 8) { data.workLevelList = [ @@ -325,7 +327,6 @@ const parseNumber = (type: string, value: number) => { if (type === '时间单位') { - debugger; return data.timeList.find((item) => item.id === value)?.name; } }; @@ -377,6 +378,7 @@ return { ...toRefs(data), + Plus, clearValue, parseNumber, approveLevelDialog, -- Gitblit v1.9.2