From 77aab033bca84f1f4ed186689644e4c72b57d7fc Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 02 十一月 2023 16:15:00 +0800
Subject: [PATCH] 1.递交
---
src/views/makeModel/processRoute.vue | 35 ++++++++++++++++++-----------------
1 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/src/views/makeModel/processRoute.vue b/src/views/makeModel/processRoute.vue
index 07931f3..646808a 100644
--- a/src/views/makeModel/processRoute.vue
+++ b/src/views/makeModel/processRoute.vue
@@ -41,7 +41,7 @@
<el-form-item label="宸ヨ壓鎻忚堪" style=" display: flex;">
<el-input v-model="form.description" placeholder="璇疯緭鍏�" style="width: 200px" />
</el-form-item>
- <el-form-item v-show="isExpandForm" label="鍒涘缓浜哄憳" style=" display: flex;">
+ <el-form-item v-if="isExpandForm" label="鍒涘缓浜哄憳" style=" display: flex;">
<el-input v-model="form.createuser" style="width: 200px" placeholder="璇疯緭鍏�" />
</el-form-item>
</div>
@@ -273,7 +273,7 @@
:popper-append-to-body="false"
style="width: 220px"
placeholder="璇烽�夋嫨"
- @change="wkshopcodeChange"
+ @change="getStepSelectArr"
>
<el-option
v-for="item in WorkShopArr"
@@ -606,13 +606,11 @@
return (res.value.toLowerCase().indexOf(queryString.toLowerCase()) !== -1)
}
},
- wkshopcodeChange() {
- this.getStepSelectArr()
- },
// 宸ヨ壓璁剧疆 涓嬫媺鑾峰彇鎵�鏈�
async getStepSelectArr() {
const { data: res } = await StepSelect({ WorkShop: this.dialogForm.wkshopcode })
this.routeArr = res
+ console.log('鎵ц浜嗭紒')
},
// 澶勭悊涓嬫媺閫夋嫨
handleSelect(item, tag) {
@@ -843,9 +841,9 @@
this.operation = operation
this.dialogVisible = true
- if (this.$store.state.settings.orgType === 'W') {
- this.getStepSelectArr()
- }
+ // if (this.$store.state.settings.orgType === 'W') {
+ this.getStepSelectArr()
+ // }
},
// 宸ヨ壓璺嚎棰勮
async edit(operation, row) {
@@ -895,20 +893,23 @@
this.operation = operation
this.dialogVisible = true
- if (this.$store.state.settings.orgType === 'W') {
- await this.getStepSelectArr()
- }
+ // if (this.$store.state.settings.orgType === 'W') {
+
+ // }
const { data: res } = await ViewRoute({ routecode: row.code })
// 寰呮敼
this.dynamicTags = []
this.routeSelectedArr = []
+
+ this.dialogForm.code = res[0].code
+ this.dialogForm.name = res[0].name
+ this.dialogForm.enable = res[0].enable
+ this.dialogForm.description = res[0].description
+ this.dialogForm.wkshopcode = res[0].wkshopcode
+ await this.getStepSelectArr()
+
this.$nextTick(() => {
- this.dialogForm.code = res[0].code
- this.dialogForm.name = res[0].name
- this.dialogForm.enable = res[0].enable
- this.dialogForm.description = res[0].description
- this.dialogForm.wkshopcode = res[0].wkshopcode
res[0].Data.forEach((item, index) => {
this.dynamicTags.push(
{ seq: item.seq, stepname: item.stepname, stepcode: item.stepcode, editDisabled: true, effect: index === res[0].Data.length - 1 ? 'dark' : 'light' }
@@ -931,7 +932,7 @@
this.dialogForm.name = ''
this.dialogForm.enable = 'Y'
this.dialogForm.description = ''
- this.dialogForm.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode'), // 鎵�灞炶溅闂�
+ this.dialogForm.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode') // 鎵�灞炶溅闂�
this.dialogForm.Data = []
this.dynamicTags = [
--
Gitblit v1.9.3