From ade4735384aa2b35f54799c64973342d6ab76b9a Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 12 九月 2023 17:48:21 +0800
Subject: [PATCH] 码值申请-层级码段默认值 树节点id
---
Source/UBCS-WEB/src/views/modeling/Business.vue | 31 ++++++++++++++++++++-----------
1 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/modeling/Business.vue b/Source/UBCS-WEB/src/views/modeling/Business.vue
index 12bf821..fbcd5bd 100644
--- a/Source/UBCS-WEB/src/views/modeling/Business.vue
+++ b/Source/UBCS-WEB/src/views/modeling/Business.vue
@@ -1,6 +1,6 @@
<template>
<el-container>
- <el-header class="businessHeader" style="height: 40px;">
+ <el-header class="businessHeader" style="height: 40px;padding:0 8px">
<el-button-group>
<el-button type="primary" @click="businessAdd" size="small"> <i class="el-icon-plus"></i> 鏂板</el-button>
<el-button type="primary" @click="businessEdit" size="small"><i class="el-icon-edit"></i> 淇敼</el-button>
@@ -15,7 +15,7 @@
<avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick" class="businessTree">
<span class="el-tree-node__label" slot-scope="{ node, data }">
<span>
- <i class="el-icon-star-on"></i>
+ <i :class="(node || {}).level === 2 ? 'el-icon-star-off' : 'el-icon-folder-opened'"></i>
{{ (node || {}).label }}
</span>
</span>
@@ -58,9 +58,10 @@
<i :class="icons.domain"></i>
鎵�灞為鍩�
</template>
- <el-tag size="small">
+ <el-tag v-if="obj.domainText" size="small">
{{ obj.domainText }}
</el-tag>
+ <span v-else></span>
</el-descriptions-item>
<!-- <el-descriptions-item>
<template slot="label">
@@ -82,7 +83,7 @@
<i :class="icons.revisionRule"></i>
鐗堟湰瑙勫垯
</template>
- {{ obj.revisionRuleName + '(' + obj.revisionRuleId + ')' }}
+ {{ obj.revisionRuleName ? obj.revisionRuleName+ '(' + obj.revisionRuleId + ')' : ''}}
</el-descriptions-item>
<el-descriptions-item :labelStyle="descriptionOption.labelStyle"
:contentStyle="descriptionOption.contentStyle">
@@ -90,7 +91,7 @@
<i :class="icons.lifeCycle"></i>
鐢熷懡鍛ㄦ湡
</template>
- {{ obj.lifeCycleName + '(' + obj.lifeCycleId + ')' }}
+ {{ obj.lifeCycleName ? obj.lifeCycleName + '(' + obj.lifeCycleId + ')' : ''}}
</el-descriptions-item>
<el-descriptions-item :labelStyle="descriptionOption.labelStyle"
:contentStyle="descriptionOption.contentStyle">
@@ -98,9 +99,10 @@
<i :class="icons.view"></i>
瑙嗗浘
</template>
- <el-tag size="small">
+ <el-tag v-if="obj.viewText" size="small">
{{ obj.viewText }}
</el-tag>
+ <span v-else></span>
</el-descriptions-item>
<!-- <el-descriptions-item>
<template slot="label">
@@ -138,7 +140,7 @@
<div class="sep" style="height:7px">
</div>
- <avue-crud class="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data"
+ <avue-crud class="businessCrud" ref="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data"
@selection-change="selectionChange">
</avue-crud>
<span slot="footer" class="dialog-footer">
@@ -176,6 +178,7 @@
defaultExpandAll: true,
title: '涓氬姟绫诲瀷鏍�',
addBtn: false,
+ menu:false,
props: {
labelText: '',
label: 'label',
@@ -188,7 +191,7 @@
},
loadOption: {
border: true,
- height: 466,
+ height: 478,
editBtn: false,
addBtn: false,
menu: false,
@@ -237,7 +240,8 @@
revisionRule: 'el-icon-s-check',
lifeCycle: 'el-icon-refresh-right',
view: 'el-icon-view',
- desc: 'el-icon-chat-line-square'
+ desc: 'el-icon-chat-line-square',
+ referType: 'el-icon-search'
},
ref: {
// 浠庤〃涓�夋嫨dialog鐘舵��
@@ -278,7 +282,7 @@
this.initDomainOption();
},
methods: {
- nodeClick(data) {
+ nodeClick(data,node,leaf) {
if (data.oid) {
getDetail(data.oid).then(res => {
this.obj = res.data.data;
@@ -312,7 +316,6 @@
})
},
selectFromTable() {
- console.log('鑾峰彇');
this.ref.visible = true;
},
refOnLoad(domain) {
@@ -335,10 +338,15 @@
},
dialoghandelfalse() {
this.ref.visible = false;
+ this.$refs.businessCrud.toggleSelection()
this.selectionList = [];
this.domain = null;
},
dialoghandeltrue() {
+ if(this.selectionList.length<1){
+ this.$message.warning('璇烽�夋嫨鏁版嵁');
+ return false;
+ }
saveFromTable(this.selectionList, this.domain).then(res => {
this.$message.success('淇濆瓨鎴愬姛');
this.dialoghandelfalse();
@@ -347,6 +355,7 @@
},
businessAdd() {
this.$refs.btmAdd.showSubmitDialog = true;
+ this.$refs.btmAdd.btmType = {};
this.ifRefreshBtmAddRefresh();
},
businessEdit() {
--
Gitblit v1.9.3