田源
2023-07-28 0bd98f8ac6eb537e618ad00c8bc3f3b40e46ab69
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
ÎļþÃû´Ó Source/UBCS-WEB/src/components/Tree/classifyTrees.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,6 +1130,9 @@
    //启用和停用都先判断状态
    //启用
    Enable() {
      if(Object.keys(this.nodeClickList).length<1){
        this.$message.warning('请先从树上选择一条数据')
      }else {
      if (this.FlagObj.lcStatus == "Enabled") {
        this.$message({
          type: 'warning',
@@ -1134,9 +1158,14 @@
          });
        });
      }
      }
    },
    //停用
    Deactivate() {
      if(Object.keys(this.nodeClickList).length<1){
        this.$message.warning('请先从树上选择一条数据')
      }else {
      if (this.FlagObj.lcStatus === "Disabled") {
        this.$message({
          type: 'warning',
@@ -1163,6 +1192,8 @@
          });
        });
      }
      }
    },
    //树点击事件
    async nodeClick(data) {