From a406e7a96f60592b30100cc2a29bb9a2da0fcf0f Mon Sep 17 00:00:00 2001 From: dangsn <dangsn@chicecm.com> Date: 星期五, 04 八月 2023 15:21:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 67 ++++++++++++--------------------- 1 files changed, 24 insertions(+), 43 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue index 54d9a47..3e6f995 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue @@ -427,7 +427,7 @@ label: '鑻辨枃鍚嶇О' } ], - SelectValue:"", + SelectValue:"id", SelectFInd:"", addFlag:false, // 琛ㄦ牸褰撳墠琛宨d @@ -672,11 +672,7 @@ } }, watch:{ - TreeFlagCode:{ - handler(newval,oldval){ - console.log('TreeFlagCode',newval) - } - } + }, //tab鏍忛粯璁ゆ槸琛ㄦ牸 mounted() { @@ -753,6 +749,8 @@ }, methods: { + // 鍏抽棴寮圭獥 + /** 瀵煎叆 */ ImportExcel(){ this.ThemeImportVisible=true; @@ -787,15 +785,11 @@ 'conditionMap[id]':this.SelectFInd } this.MasterdefaultRend(masterParameter); - this.SelectValue="" - this.SelectFInd="" }else if(this.SelectValue == 'name'){ const masterParameter={ 'conditionMap[name]':this.SelectFInd } this.MasterdefaultRend(masterParameter) - this.SelectValue="" - this.SelectFInd="" } }, //缂栫爜瑙勫垯纭畾 @@ -846,15 +840,11 @@ 'conditionMap[id]':this.SelectFInd } this.KeydefaultRend(masterParameter); - this.SelectValue=""; - this.SelectFInd=""; }else if(this.SelectValue == 'name'){ const masterParameter={ 'conditionMap[name]':this.SelectFInd } this.KeydefaultRend(masterParameter) - this.SelectValue="" - this.SelectFInd="" } }, //鍏抽敭灞炴�ф帴鍙� @@ -899,15 +889,11 @@ 'conditionMap[id]':this.SelectFInd } this.simdefaultRend(masterParameter); - this.SelectValue="" - this.SelectFInd="" }else if(this.SelectValue == 'name'){ const masterParameter={ 'conditionMap[name]':this.SelectFInd } this.simdefaultRend(masterParameter) - this.SelectValue="" - this.SelectFInd="" } }, // 鐩镐技椤瑰閫� @@ -952,15 +938,11 @@ 'conditionMap[id]':this.SelectFInd } this.btmdefaultRend(masterParameter); - this.SelectValue="" - this.SelectFInd="" }else if(this.SelectValue == 'name'){ const masterParameter={ 'conditionMap[name]':this.SelectFInd } this.btmdefaultRend(masterParameter); - this.SelectValue=""; - this.SelectFInd=""; } }, //涓氬姟绫诲瀷澶氶�� @@ -1226,6 +1208,7 @@ this.editTreeFLagCode = !data.parentId; this.nodeClickList = data; this.selectRow = 0; + this.crudArray=[] try { this.requestCount += 1; const [res1, res2, res3] = await Promise.all([ @@ -1426,29 +1409,27 @@ } }, //鍏嬮殕妯℃澘鍗曢�夋鏀瑰彉 - selectionChange(row){ - this.CloneSelect=row; - //鍙屽悜缁戝畾锛屾彁浜よ〃鍗曡緭鍏ユ鍥炲~涓婂綋鍓嶉�夋嫨鐨勬暟鎹� - this.CloneModel.id=row[0].id; - this.CloneModel.name=row[0].name; - //杩欓噷鏈夌偣缁曪紝CloneSelect鏄垜閫夋嫨妗嗛�夋嫨鐨勬暟鎹�傜瓑浜巘his.nodeClickList.oid鏄洜涓猴紝鍏嬮殕妯℃澘浼犻�掓暟鎹鎶婂綋鍓嶉�夋嫨鏍戠殑oid浼犻�掔粰鍚庣銆傝�屼笉鏄綋鍓嶈鍏嬮殕妯℃澘鐨刼id - this.CloneSelect[0].codeclassifyoid=this.nodeClickList.oid + selectionChange(row) { + Object.assign(this.CloneModel, row[0]); + this.CloneSelect = [row[0]]; + this.CloneSelect[0].codeclassifyoid = this.nodeClickList.oid; }, //鍏嬮殕琛ㄥ崟鎻愪氦 - Clonesubmit(row,done){ - //閲嶆柊璧嬪�糃loneSelect浼犻�掔殑鏁版嵁涓鸿緭鍏ユ鍙互淇敼鐨勬暟鎹紝CloneModel鎻愪氦琛ㄥ崟杈撳叆妗嗗弻鍚戠粦瀹氭暟鎹� - this.CloneSelect[0].id=this.CloneModel.id; - this.CloneSelect[0].name=this.CloneModel.name; - copy(this.CloneSelect[0]).then(()=>{ - //鍥犱负鏄祵濂楀脊绐楁墍浠ユ墜鍔ㄥ叧闂瑿loneinnerVisible锛孋loneVisible涓や釜寮圭獥銆� - this.CloneinnerVisible=false - this.CloneVisible=false - this.$message.success("澶嶅埗鎴愬姛") - this.CrudRend() - done(row) - }).catch(res=>{ - done(res) - }) + Clonesubmit(row, done) { + // 閲嶆柊璧嬪�糃loneSelect浼犻�掔殑鏁版嵁涓鸿緭鍏ユ鍙互淇敼鐨勬暟鎹紝CloneModel鎻愪氦琛ㄥ崟杈撳叆妗嗗弻鍚戠粦瀹氭暟鎹� + Object.assign(this.CloneSelect[0], this.CloneModel); + copy(this.CloneSelect[0]) + .then(() => { + // 鍥犱负鏄祵濂楀脊绐楁墍浠ユ墜鍔ㄥ叧闂瑿loneinnerVisible锛孋loneVisible涓や釜寮圭獥銆� + this.CloneinnerVisible = false; + this.CloneVisible = false; + this.$message.success("澶嶅埗鎴愬姛"); + this.TemRefresh(); + done(row); + }) + .catch((error) => { + done(error); + }); }, //鍒锋柊 TemRefresh() { -- Gitblit v1.9.3