From b64259d6ca1b599427f927b2a35cd0ae5091ac92 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期二, 05 九月 2023 17:05:59 +0800
Subject: [PATCH] 基础数据

---
 src/components/view/technology.vue |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/components/view/technology.vue b/src/components/view/technology.vue
index a34acbe..debe67f 100644
--- a/src/components/view/technology.vue
+++ b/src/components/view/technology.vue
@@ -120,7 +120,7 @@
 		</div>
 		<div class="choose">
 			<span>绫诲瀷锛�</span>
-			<el-select v-model="search.type" size="small" placeholder="璇烽�夋嫨" @change="type" style="width: 224px;margin-right: 30px;">
+			<el-select  v-model="search.type" size="small" placeholder="璇烽�夋嫨" @change="type" style="width: 224px;margin-right: 30px;">
 				<el-option label="姗¤兌杩炴帴鍣�" :value="0"></el-option>
 				<el-option label="閲戝睘杩炴帴鍣�" :value="1"></el-option>
 				<el-option label="婀挎彃鎷旂數杩炴帴鍣�" :value="2"></el-option>
@@ -396,12 +396,13 @@
 				process: [],
 				product: [],
 				procedure:[],
-				checkTreeNode:'涓嬫枡',
+				checkTreeNode:{
+					name:'涓嬫枡'
+				},
 				towTree:[],
 				value:"",
 				modifyevent:false,
 				dialogVisible:false,
-				checkTreeNode: {},
 				tableData: [],
 				upIndex: 0,
 				selects: [],
@@ -427,10 +428,12 @@
 			this.chooseTech()
 			this.chooseDevGroup()
 			this.chooseElement()
+			this.selectAllTechNam()
 		},
 		methods: {
 			type(val){
 				this.typeselect = val
+				this.upData.type = val
 				console.log(this.typeselect);
 				this.selectAllTechTem()
 			},
@@ -438,8 +441,8 @@
 			Neworder() {
 				this.dialogVisible = false
 				this.addTechTemp()
-				this.selectAllTechNam()
 				// this.form = '';
+				
 			},
 			Deleteapi() {
 				this.dialogVisible = false
@@ -463,6 +466,8 @@
 				}
 				).then(res=>{
 					console.log(res);
+					this.selectAllTechNam()
+					this.form = {}
 				})
 			},
 
@@ -520,6 +525,9 @@
 					headers: {
                 		"Content-Type": "application/json"
               		}
+				}).then(res =>{
+					console.log(res);
+					
 				})
 			},
 			
@@ -608,22 +616,16 @@
 						}
 					}
 				})
-				// console.log(this.selects);
 				let cc = this.selects.map(el => {
-					// console.log(el.id);
 					return el.id
 				})
-				// console.log(this.delete);
 				this.delete = cc.join(',')
 				console.log(this.delete);
 				this.delAllTech()
-				// this.delete = 
-				// console.log('444');
 				this.$message.success('鍒犻櫎瀹屾垚')
 			},
 			deleteRow(index, rows) {
-				// console.log(rows);
-				// rows.splice(index, 1);
+
 				this.tableData.splice(index,1)
 				this.upData.id = rows.id
 				this.delTechById()

--
Gitblit v1.9.3