From 5845950aa395da1a1f56a5fff4c80358cf4b5f7f Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 16 五月 2023 21:03:56 +0800 Subject: [PATCH] 新增引用码段下的参照配置界面,代码整合 --- Source/UBCS-WEB/src/views/modeling/Business.vue | 80 ++++++++++++++++++++++++---------------- 1 files changed, 48 insertions(+), 32 deletions(-) diff --git a/Source/UBCS-WEB/src/views/modeling/Business.vue b/Source/UBCS-WEB/src/views/modeling/Business.vue index 3b59829..eca59a8 100644 --- a/Source/UBCS-WEB/src/views/modeling/Business.vue +++ b/Source/UBCS-WEB/src/views/modeling/Business.vue @@ -26,28 +26,28 @@ <el-descriptions class="margin-top" :column="3" :size="size" border> <el-descriptions-item> <template slot="label"> - <i :class="icons.key"></i> + <i class="el-icon-finished"></i> 鑻辨枃鍚嶇О </template> {{ obj.id }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> - <i :class="icons.name"></i> + <i class="el-icon-info"></i> 涓枃鍚嶇О </template> {{ obj.name }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> - <i :class="icons.tableName"></i> + <i class="el-icon-date"></i> 鏁版嵁搴撹〃鍚� </template> {{ obj.tableName }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> - <i :class="icons.domain"></i> + <i class="el-icon-folder-opened"></i> 鎵�灞為鍩� </template> <el-tag size="small"> @@ -70,21 +70,21 @@ </el-descriptions-item> --> <el-descriptions-item> <template slot="label"> - <i :class="icons.revisionRule"></i> + <i class="el-icon-s-check"></i> 鐗堟湰瑙勫垯 </template> {{ obj.versionRule }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> - <i :class="icons.lifeCycle"></i> + <i class="el-icon-refresh-right"></i> 鐢熷懡鍛ㄦ湡 </template> {{ obj.lifeCycleId }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> - <i :class="icons.view"></i> + <i class="el-icon-view"></i> 瑙嗗浘 </template> <el-tag size="small"> @@ -100,7 +100,7 @@ </el-descriptions-item> --> <el-descriptions-item> <template slot="label"> - <i :class="icons.desc"></i> + <i class="el-icon-chat-line-square"></i> 鎻忚堪 </template> {{ obj.description }} @@ -125,14 +125,21 @@ </el-select> <avue-crud class="businessCrud" v-model="ref.form" :option="ref.option" :data="ref.data" @selection-change="selectionChange"> </avue-crud> +<<<<<<< Updated upstream <div slot="footer" class="dialog-footer"> <el-button @click="dialoghandeltrue">纭畾</el-button> <el-button @click="dialoghandelfalse">鍙栨秷</el-button> </div> +======= + <span slot="footer" class="dialog-footer"> + <el-button @click="dialoghandelfalse">鍙� 娑�</el-button> + <el-button type="primary" @click="dialoghandeltrue">纭� 瀹�</el-button> + </span> +>>>>>>> Stashed changes </el-dialog> </el-container> </el-container> - <business-add ref="btmAdd" :btmType="addOption.btmType" :domainOption="domainOptions" :icons="icons" @refreshTable="initTreeOnLoad"> + <business-add ref="btmAdd" :btmType="addOption.btmType" :domainOption="domainOptions"> </business-add> </el-container> </template> @@ -172,8 +179,6 @@ border: true, height: 466, editBtn: false, - index: true, - rowKey:'oid', addBtn: false, menu: false, highlightCurrentRow: true, @@ -209,16 +214,6 @@ }, domain: null, domainOptions: [], - icons:{ - key: 'el-icon-finished', - name: 'el-icon-info', - tableName: 'el-icon-date', - domain: 'el-icon-folder-opened', - revisionRule: 'el-icon-s-check', - lifeCycle: 'el-icon-refresh-right', - view: 'el-icon-view', - desc: 'el-icon-chat-line-square' - }, ref: { // 浠庤〃涓�夋嫨dialog鐘舵�� visible: false, @@ -229,7 +224,7 @@ headerAlign: 'center', border: true, index: true, - rowKey: 'oid', + rowKey: 'id', tabs: true, addBtn: false, menu: false, @@ -262,13 +257,36 @@ }, methods: { nodeClick(data) { - if(data.oid){ - getDetail(data.oid).then(res => { - this.obj = res.data.data; - }) - } + getDetail(data.oid).then(res => { + this.obj = res.data.data; + }) + }, + // 鍩烘湰淇℃伅娣诲姞 + basicSave(row, done, loading) { + add(Object.assign({ + createUser: this.userInfo.name + }, row)).then(() => { + this.$message.success('鏂板鎴愬姛') + done(); + this.getList(); + }).catch(() => { + loading() + }) + }, + //灞炴�ф坊鍔� + loadSave(row, done, loading) { + add(Object.assign({ + createUser: this.userInfo.name + }, row)).then(() => { + this.$message.success('鏂板鎴愬姛') + done(); + this.getList(); + }).catch(() => { + loading() + }) }, selectFromTable() { + console.log('鑾峰彇'); this.ref.visible = true; }, refOnLoad(domain) { @@ -323,10 +341,8 @@ border-radius: 10px; } -.businessCrud > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu{ - display: none !important; +.businessCrud > .el-card > .el-card__body > .avue-crud_menu{ + display: none!important; } -.attributeCrud > .el-card:nth-of-type(2) > .el-card__body > .avue-crud__menu{ - display: none !important; -} + </style> -- Gitblit v1.9.3