From eda2e443a82ffcfc07773b103bc6d6f28f922410 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 01 八月 2023 14:27:57 +0800 Subject: [PATCH] 修改样式 --- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 113 +++++++++++++++++++++++++++++++++----------------------- 1 files changed, 66 insertions(+), 47 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue index 48db372..8e63b85 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue @@ -58,7 +58,7 @@ </el-dialog> <!-- 淇敼瀵硅瘽妗�--> <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="淇敼鍒嗙被"> - <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlagCode" ::nodeClickList="nodeClickList" @referTreeForm="referTreeForm" @flushed="flushed"></classifyTreeform> + <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlagCode" :nodeClickList="nodeClickList" @referTreeForm="referTreeForm" @flushed="flushed"></classifyTreeform> </el-dialog> <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false" :option="Treeoption" @@ -312,6 +312,7 @@ </div> </div> </el-dialog> +<!-- 瀵煎嚭--> <ThemeImport :visible.sync="ThemeImportVisible" :codeClassifyOid="this.codeClassifyOid"></ThemeImport> </basic-container> </el-main> @@ -352,6 +353,7 @@ //瀵煎叆鐘舵�佹 ThemeImportVisible:false, selectRow:'', + selectList:[], //鏍戣妭鐐规樉绀洪殣钘� TreeFlagCode:false, //缂栫爜瑙勫垯 @@ -728,6 +730,9 @@ created() { }, + watch:{ + + }, methods: { /** 瀵煎叆 */ ImportExcel(){ @@ -737,17 +742,12 @@ ExportExcel(){ if(this.nodeClickList){ exportClassify({oid:this.nodeClickList.oid}).then(res=>{ - console.log(res) func.downloadFileByBlob(res); }) }else { this.$message.warning('璇峰厛閫夋嫨瑕佸鍑虹殑涓婚搴撳垎绫�') } }, - //妯℃澘绠$悊宸插彂甯冪紪杈� - // checkShowEditBtn() { - // this.showEditBtn = this.Formlist.some(item => item.lcStatus === 'Released'); - // }, //缂栫爜瑙勫垯澶辩劍 CodeFoucus(){ this.MasterdialogVisible=true; @@ -965,30 +965,7 @@ this.crudOid=row.oid; this.crudLCStatus=row.lcStatus; this.crudArray.push(row); - console.log(row.$index) - gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': row.oid}).then(res => { - this.ProData = res.data.data; - //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡 - this.ProData = res.data.data.map((item) => { - //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬� - if(item.classifyInvokeAttr !== ''){ - if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦� - item = { - ...item, - classifyInvokeText: { - "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr, - "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName, - "灞傜骇璁剧疆": item.classifyInvokeLevel, - "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag - } - }; - } - } - return item; - }); - }).catch(res => { - this.$message.error(res) - }) + this.gridCode() }, //鍒嗙被鏍戞暟鎹鐞� getAttr() { @@ -1199,9 +1176,10 @@ //瀹氫箟涓�涓ā鏉垮睘鎬d锛屾暟鎹槸妯℃澘绠$悊琛ㄦ牸閲岄潰鐨刼id if(data.parentId == ""){ this.TreeFlagCode=true; + } this.nodeClickList = data - this.ProData=[] + this.selectRow=0; try { await TreeObjcet(data.oid).then(res => { this.FlagObj = res.data.data @@ -1216,6 +1194,14 @@ return item.codeclassifyoid == this.nodeClickList.oid } }) + if(this.Formlist.length >= 1){ + this.crudLCStatus=this.Formlist[this.selectRow].lcStatus; + this.crudArray.push(this.Formlist[this.selectRow]); + this.crudOid=this.Formlist[this.selectRow].oid; + this.gridCode() + }else { + this.ProData = []; + } }).catch(res => { this.$message.error(res) }) @@ -1228,6 +1214,31 @@ } catch (error) { this.$message.error(error) } + }, + gridCode(){ + gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[this.selectRow].oid,limit:-1}).then(res => { + this.ProData = res.data.data; + //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡 + this.ProData = res.data.data.map((item) => { + //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬� + if(item.classifyInvokeAttr !== ''){ + if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦� + item = { + ...item, + classifyInvokeText: { + "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr, + "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName, + "灞傜骇璁剧疆": item.classifyInvokeLevel, + "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag + } + }; + } + } + return item; + }); + }).catch(res => { + this.$message.error(res) + }) }, treeClick(e) { console.log(e); @@ -1293,7 +1304,6 @@ }); } else { this.$set(row, "codeclassifyoid", this.nodeClickList.oid) - console.log(this.nodeClickList) addSave(row).then(() => { this.$message({ type: "success", @@ -1333,20 +1343,6 @@ }); }) }, - //妯℃澘绠$悊琛ㄦ牸鏌ヨ,鍙湁涓�鏉℃暟鎹病蹇呰鍋氭悳绱� - /*nterFind() { - if (this.findText == "") { - gridCodeClassifyTemplate().then(res => { - this.Formlist = res.data.data - }) - } else { - gridCodeClassifyTemplate().then(res => { - this.Formlist = res.data.data.filter(item => { - return item.name.includes(this.findText) - }) - }) - } - },*/ //鍏嬮殕妯℃澘鏌ヨ CloneEnterFind(){ gridCodeClassifyTemplate().then(res => { @@ -1421,12 +1417,35 @@ }, //鍒锋柊 TemRefresh() { - this.FormLoing = true + this.FormLoing = true; if (this.nodeClickList.oid != "") { gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': this.nodeClickList.oid}).then(res => { this.Formlist = res.data.data.filter(item => { return item.codeclassifyoid == this.nodeClickList.oid }) + gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': res.data.data[this.selectRow].oid,limit:-1}).then(res => { + this.ProData = res.data.data; + //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡 + this.ProData = res.data.data.map((item) => { + //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬� + if(item.classifyInvokeAttr !== ''){ + if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦� + item = { + ...item, + classifyInvokeText: { + "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr, + "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName, + "灞傜骇璁剧疆": item.classifyInvokeLevel, + "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag + } + }; + } + } + return item; + }); + }).catch(res => { + this.$message.error(res) + }) }) } else { this.FormLoing = true -- Gitblit v1.9.3