From 0bd98f8ac6eb537e618ad00c8bc3f3b40e46ab69 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 28 七月 2023 14:46:35 +0800 Subject: [PATCH] 重构项目名称 --- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 129 ++++++++++++++++++++++++++---------------- 1 files changed, 80 insertions(+), 49 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue similarity index 94% rename from Source/UBCS-WEB/src/components/Tree/classifyTrees.vue rename to Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue index 63be185..6af8cef 100644 --- a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue @@ -312,6 +312,8 @@ </div> </div> </el-dialog> +<!-- <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible" >--> +<!-- </BatchImport>--> </basic-container> </el-main> </el-container> @@ -335,9 +337,11 @@ copy, upVersion, stopLose, - startRelease + startRelease, + exportClassify } from "@/api/template/templateAttr"; import {defaultReferDataGrid,referDataGrid} from '@/api/MasterData/master' +import func from "@/util/func"; export default { name: "classifyTrees.vue", //浣跨敤inject鎺ユ敹鍙傛暟 @@ -711,18 +715,35 @@ prop:"lcStatusText", display:false } - ] + ], + batchImportData: { + visible: false, + type: '', + codeClassifyOid: '' + } } } + }, + created() { + }, methods: { /** 瀵煎叆 */ ImportExcel(){ - + // debugger + // this.batchImportData.visible = true + // this.batchImportData.codeClassifyOid = this.codeClassifyOid }, /** 瀵煎嚭 */ ExportExcel(){ - + if(this.nodeClickList){ + exportClassify({oid:this.nodeClickList.oid}).then(res=>{ + console.log(res) + func.downloadFileByBlob(res); + }) + }else { + this.$message.warning('璇峰厛閫夋嫨瑕佸鍑虹殑涓婚搴撳垎绫�') + } }, //妯℃澘绠$悊宸插彂甯冪紪杈� // checkShowEditBtn() { @@ -1109,60 +1130,70 @@ //鍚敤鍜屽仠鐢ㄩ兘鍏堝垽鏂姸鎬� //鍚敤 Enable() { - if (this.FlagObj.lcStatus == "Enabled") { - this.$message({ - type: 'warning', - message: '褰撳墠鍒嗙被涓嶆槸鍋滅敤鐘舵��' - }); - } else { - this.$confirm('鏄惁灏嗗瓙鍒嗙被涓�骞跺惎鐢紵', '鎻愮ず', { - confirmButtonText: '鏄�', - cancelButtonText: '鍙栨秷', - type: 'warning' - }).then(() => { - TreeEnable(this.nodeClickList).then(() => { - this.$message({ - type: 'success', - message: '鍚敤鎴愬姛!' - }); - this.getAttr() - }) - }).catch(() => { + if(Object.keys(this.nodeClickList).length<1){ + this.$message.warning('璇峰厛浠庢爲涓婇�夋嫨涓�鏉℃暟鎹�') + }else { + if (this.FlagObj.lcStatus == "Enabled") { this.$message({ - type: 'info', - message: '宸插彇娑堝惎鐢�' + type: 'warning', + message: '褰撳墠鍒嗙被涓嶆槸鍋滅敤鐘舵��' }); - }); + } else { + this.$confirm('鏄惁灏嗗瓙鍒嗙被涓�骞跺惎鐢紵', '鎻愮ず', { + confirmButtonText: '鏄�', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(() => { + TreeEnable(this.nodeClickList).then(() => { + this.$message({ + type: 'success', + message: '鍚敤鎴愬姛!' + }); + this.getAttr() + }) + }).catch(() => { + this.$message({ + type: 'info', + message: '宸插彇娑堝惎鐢�' + }); + }); + } } + }, //鍋滅敤 Deactivate() { - if (this.FlagObj.lcStatus === "Disabled") { - this.$message({ - type: 'warning', - message: '褰撳墠鍒嗙被涓嶆槸鍚敤鐘舵��!' - }); - } else { - this.$confirm('鏄惁鍋滅敤褰撳墠鍒嗙被锛屽仠鐢ㄥ悗锛屽瓙鍒嗙被涔熷皢涓嶈兘琚娇鐢紝鏄惁缁х画锛�', '鎻愮ず', { - confirmButtonText: '纭畾', - cancelButtonText: '鍙栨秷', - type: 'warning' - }).then(() => { - TreeDeactivate(this.nodeClickList).then(() => { - this.$message({ - type: 'success', - message: '鍋滅敤鎴愬姛!' - }); - this.nodeClickList['flag'] = true; - this.getAttr() - }) - }).catch(() => { + if(Object.keys(this.nodeClickList).length<1){ + this.$message.warning('璇峰厛浠庢爲涓婇�夋嫨涓�鏉℃暟鎹�') + }else { + if (this.FlagObj.lcStatus === "Disabled") { this.$message({ - type: 'info', - message: '宸插彇娑堝仠鐢�' + type: 'warning', + message: '褰撳墠鍒嗙被涓嶆槸鍚敤鐘舵��!' }); - }); + } else { + this.$confirm('鏄惁鍋滅敤褰撳墠鍒嗙被锛屽仠鐢ㄥ悗锛屽瓙鍒嗙被涔熷皢涓嶈兘琚娇鐢紝鏄惁缁х画锛�', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(() => { + TreeDeactivate(this.nodeClickList).then(() => { + this.$message({ + type: 'success', + message: '鍋滅敤鎴愬姛!' + }); + this.nodeClickList['flag'] = true; + this.getAttr() + }) + }).catch(() => { + this.$message({ + type: 'info', + message: '宸插彇娑堝仠鐢�' + }); + }); + } } + }, //鏍戠偣鍑讳簨浠� async nodeClick(data) { -- Gitblit v1.9.3