ÎļþÃû´Ó Source/UBCS-WEB/src/components/Tree/classifyTrees.vue ÐÞ¸Ä |
| | |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible" >--> |
| | | <!-- </BatchImport>--> |
| | | </basic-container> |
| | | </el-main> |
| | | </el-container> |
| | |
| | | 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æ¥æ¶åæ° |
| | |
| | | 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() { |
| | |
| | | //å¯ç¨ååç¨é½å
å¤æç¶æ |
| | | //å¯ç¨ |
| | | 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) { |