From b328e23398b911d9cbf0dbc03909725adf188ae6 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期一, 03 七月 2023 12:17:47 +0800
Subject: [PATCH] 修正创建业务类型处理逻辑;暂时取消DDL的线程缓存,考虑是这个引起的
---
Source/UBCS-WEB/src/components/Tree/attrCrud.vue | 28 +++++++++++++++++++++++++---
1 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
index 7649338..942a15c 100644
--- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -247,6 +247,7 @@
<el-table-column v-for="item in this.option.column" :key="item.id"
:label="item.label"
:prop="item.prop"
+ :formatter="formAttr"
:width="item.label.length >=4 ?'150':item.label.length==3 ?'120':'90'"
:show-overflow-tooltip="true"
align="center"
@@ -254,6 +255,11 @@
<template slot-scope="{ row }">
<el-input v-if="editingRows === row && editShows== item.prop" v-model="row[item.prop]"
@blur="saveRows"></el-input>
+ <el-switch
+ v-if="item.label === 'true' || item.label === 'false'"
+ active-color="#13ce66"
+ inactive-color="#ff4949">
+ </el-switch>
<span v-else>{{ row[item.prop] }}</span>
</template>
</el-table-column>
@@ -1161,9 +1167,23 @@
},
methods: {
-
+ formAttr(row, column) {
+ console.log(row,column)
+ // if (column.property === "keyAttrFlag"
+ // ||column.property === "queryAttrFlag"
+ // ||column.property === "seniorQueryAttrFlag"
+ // ||column.property === "sameRepeatAttrFlag"
+ // ||column.property === "requireFlag"
+ // ||column.property === "formDisplayFlag"
+ // ||column.property === "tableDisplayFlag"
+ // ||column.property === "sortAttrFlag") {
+ // return row[column.property] =='true'? "鏄�" : "鍚�";
+ // }
+ // return row[column.property];
+ },
//灞炴�у垎缁勬寜閽�
attrVisibleHandle() {
+ this.formatBoolean()
if (this.CrudSelect.length > 1) {
this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�')
} else if (this.CrudSelect < 1) {
@@ -1454,6 +1474,8 @@
}
</script>
-<style scoped>
-
+<style scoped lang="scss">
+/deep/ .el-button {
+ margin: 0 10px 10px 0;
+}
</style>
--
Gitblit v1.10.0