From 324eed59a668758755219d5cd4e68463a9cc427d Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期三, 14 九月 2022 15:22:36 +0800
Subject: [PATCH] Default Changelist
---
src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue b/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue
index 24c5d50..8a15ba4 100644
--- a/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue
+++ b/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue
@@ -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