From 02d067a378e60bb57714e4a20c3f6d9bfc125766 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 28 七月 2023 15:11:41 +0800
Subject: [PATCH] 主题库分类注入classifyInvokeLevel
---
Source/UBCS-WEB/src/components/Theme/ThemeImport.vue | 33 +++++++++++++++++++++++++++++++++
Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue | 6 +++++-
Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 7 +++++--
Source/UBCS-WEB/src/main.js | 2 ++
4 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index 8f655e7..cd1c2d8 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/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'
}
//鍏朵綑姝e父璧嬪��
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)
}
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
index 6af8cef..4fbe436 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
+++ b/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(){
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeImport.vue b/Source/UBCS-WEB/src/components/Theme/ThemeImport.vue
new file mode 100644
index 0000000..70caaaa
--- /dev/null
+++ b/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>
diff --git a/Source/UBCS-WEB/src/main.js b/Source/UBCS-WEB/src/main.js
index 8d76f67..a4c5b4c 100644
--- a/Source/UBCS-WEB/src/main.js
+++ b/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 => {
--
Gitblit v1.9.3