田源
2023-07-28 02d067a378e60bb57714e4a20c3f6d9bfc125766
主题库分类注入classifyInvokeLevel
已修改3个文件
已添加1个文件
48 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/ThemeImport.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/main.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -1782,8 +1782,10 @@
      // noinspection JSCheckFunctionSignatures
      if(this.CurrentCell){
        //如果是指定层赋值为数字
        if(this.CurrentCell.classifyInvokeLevel!== 'min'){
        if(this.injectOption.classifyInvokeLevel!== 'min'){
          this.CurrentCell.classifyInvokeLevel=this.injectOption.classifyNumber
        }else {
          this.CurrentCell.classifyInvokeLevel='min'
        }
        //其余正常赋值
        this.CurrentCell.classifyInvokeAttr=this.injectOption.classifyInvokeAttr,
@@ -1799,6 +1801,8 @@
          //如果是指定层赋值为数字
          if(this.injectOption.classifyInvokeLevel !== 'min'){
            this.attrSelectList[0].classifyInvokeLevel=this.injectOption.classifyNumber
          }else {
            this.attrSelectList[0].classifyInvokeLevel='min'
          }
          this.$set(this.attrSelectList[0],'classifyInvokeText',data)
        }
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -312,8 +312,7 @@
            </div>
          </div>
        </el-dialog>
<!--        <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible" >-->
<!--        </BatchImport>-->
          <ThemeImport :visible.sync="ThemeImportVisible"></ThemeImport>
      </basic-container>
    </el-main>
  </el-container>
@@ -350,6 +349,8 @@
  inject: ["crudTreeData"],
  data() {
    return {
      //导入状态框
      ThemeImportVisible:false,
      selectRow:'',
      //树节点显示隐藏
      TreeFlagCode:false,
@@ -733,6 +734,8 @@
      // debugger
      // this.batchImportData.visible = true
      // this.batchImportData.codeClassifyOid = this.codeClassifyOid
      this.ThemeImportVisible=true;
      console.log('ThemeImportVisible',this.ThemeImportVisible)
    },
    /** å¯¼å‡º */
    ExportExcel(){
Source/UBCS-WEB/src/components/Theme/ThemeImport.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,33 @@
<template>
  <el-dialog
    title="主题库导入"
    :visible.sync="dialogVisible"
    append-to-body
    v-dialogDrag
  ></el-dialog>
</template>
<script>
export default {
  name: "ThemeImport",
  props:{
    dialogVisible: {
      get() {
        return this.dialogVisible;
      },
      set(val) {
        this.$emit("update:dialogVisible", val);
      },
    },
  },
  data(){
    return{
    }
  }
}
</script>
<style scoped>
</style>
Source/UBCS-WEB/src/main.js
@@ -52,6 +52,7 @@
import Stage from "@/components/template/Stage";
import businesswork from "@/components/work/BusinessWork"
import MasterTransfer from "@/components/Master/MasterTransfer";
import ThemeImport from "@/components/Theme/ThemeImport";
// å°†å·¥å…·å‡½æ•°æ·»åŠ åˆ°å…¨å±€
import utilFunc from './util/func'
Vue.prototype.$utilFunc = utilFunc
@@ -104,6 +105,7 @@
Vue.component('Divider', Divider)
Vue.component('businesswork', businesswork)
Vue.component('MasterTransfer', MasterTransfer)
Vue.component('ThemeImport', ThemeImport)
// åŠ è½½ç›¸å…³url地址
Object.keys(urls).forEach(key => {