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 | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue b/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue
index 8ab712b..8a15ba4 100644
--- a/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue
+++ b/src/views/specialWorkSystem/workFlow/approveRule/components/approveRuleDialog.vue
@@ -109,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;
@@ -149,7 +150,7 @@
}
export default {
name: 'approveRuleDialog',
- components: { approveLevelDialog },
+ components: { approveLevelDialog,Plus },
setup(props: any, context: any) {
const approveRuleFormRef = ref();
const approveLevelDialogRef = ref();
@@ -263,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;
@@ -277,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;
@@ -297,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 = [
@@ -309,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 = [
@@ -377,6 +378,7 @@
return {
...toRefs(data),
+ Plus,
clearValue,
parseNumber,
approveLevelDialog,
--
Gitblit v1.9.2