From c5a9671fa6c5a55d4c66a239e4fbd26363e682b5 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 16 十月 2023 14:36:21 +0800
Subject: [PATCH] 1.点检标准、保养项、保养标准
---
src/views/mouldManager/mouldCheckStand.vue | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/views/mouldManager/mouldCheckStand.vue b/src/views/mouldManager/mouldCheckStand.vue
index 8f4084b..9e1289c 100644
--- a/src/views/mouldManager/mouldCheckStand.vue
+++ b/src/views/mouldManager/mouldCheckStand.vue
@@ -3,7 +3,7 @@
<div class="body" :style="{height:mainHeight+'px'}">
<div class="bodyTopButtonGroup" style="justify-content: space-between">
<el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
- <!-- <el-button v-waves icon="el-icon-download" @click="upload">瀵煎叆</el-button>-->
+ <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=13_1')">瀵煎叆</el-button>
</div>
<div class="bodyTopFormGroup">
@@ -664,15 +664,19 @@
},
mouldDialogVisibleConfirm() {
const treeKey = this.$refs.tree.getCheckedKeys()
-
+ const arr = []
this.tree[0].children.forEach(i => {
- i.flag = treeKey.includes(i.code) ? 'Y' : 'N'
+ // i.flag = treeKey.includes(i.code) ? 'Y' : 'N'
+ if (treeKey.includes(i.code)) {
+ arr.push({
+ code: i.code,
+ name: i.name
+ })
+ }
})
- if (treeKey.length === 0) {
- return this.$message.info('涓嶈兘涓虹┖锛�')
- }
+
this.$store.state.app.buttonIsDisabled = true
- SaveCheckStanedAssociationMould(this.tree[0].children, this.checkstand_code).then(res => {
+ SaveCheckStanedAssociationMould(arr, this.checkstand_code).then(res => {
if (res.code === '200') {
this.$notify.success('缁戝畾鎴愬姛锛�')
this.mouldDialogVisible = false
--
Gitblit v1.9.3