From 8e832c69b20bd34f6da9ef25324ec690d1cccbe3 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 30 一月 2024 11:30:32 +0800
Subject: [PATCH] 业务类型对象,分类授权,字符集相关代码修改
---
Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue | 59 +++++++++++++++++++++++++++++++++--------------------------
1 files changed, 33 insertions(+), 26 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
index d274858..4009cbb 100644
--- a/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
+++ b/Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
@@ -1,16 +1,18 @@
-<template>
+ <template>
<el-dialog
title="涓氬姟绫诲瀷"
:visible.sync="showSubmitDialog"
+ v-loading="loading"
append-to-body
@close="closeSubmitDialog"
width="70%"
+ top="6vh"
style="height: 115vh;"
>
<el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm"
:rules="rules" @resetFields="resetForm" status-icon="true">
<el-form-item label="鑻辨枃鍚嶇О" label-width="100px" required="true" prop="id">
- <el-input v-model="btmType.id" :prefix-icon="icons.key"></el-input>
+ <el-input v-model="btmType.id" :prefix-icon="icons.key" :disabled="false"></el-input>
</el-form-item>
<el-form-item label="涓枃鍚嶇О" label-width="100px">
<el-input v-model="btmType.name" :prefix-icon="icons.name"></el-input>
@@ -47,14 +49,14 @@
placeholder="璇烽�夋嫨锛岀暀绌哄垯涓嶈繘琛岀鐞�">
</el-input>
</el-form-item>
- <div>
- <el-form-item label="寮�鍚鍥�" label-width="100px" class="viewFlag">
- <el-switch v-model="btmType.viewFlag" active-color="#13ce66" @change="viewChange"></el-switch>
- </el-form-item>
- <el-form-item label="瑙嗗浘璇彞" label-width="100px" class="viewInput">
- <el-input v-model="btmType.view" :prefix-icon="icons.view" :disabled="!btmType.viewFlag"></el-input>
- </el-form-item>
- </div>
+<!-- <div>-->
+<!-- <el-form-item label="寮�鍚鍥�" label-width="100px" class="viewFlag">-->
+<!-- <el-switch v-model="btmType.viewFlag" active-color="#13ce66" @change="viewChange"></el-switch>-->
+<!-- </el-form-item>-->
+<!-- <el-form-item label="瑙嗗浘璇彞" label-width="100px" class="viewInput">-->
+<!-- <el-input v-model="btmType.view" :prefix-icon="icons.view" :disabled="!btmType.viewFlag"></el-input>-->
+<!-- </el-form-item>-->
+<!-- </div>-->
<el-form-item label="鎻忚堪" label-width="100px" class="description">
<el-input v-model="btmType.description"
:prefix-icon="icons.desc"
@@ -190,27 +192,29 @@
name: 'BusinessAdd',
props: {
btmType: {
- type: Object
+ type: Object,
+ default:{}
},
domainOption: {
type: Array
},
icons: {
type: Array
+ },
+ type: {
+ type:String,
+ },
+ btmEditType:{
+ type:Object,
+ default: {}
}
},
watch: {
- btmType: {
- handler(newval, oldval) {
- console.log('鐩戝惉', newval, oldval)
- },
- deep: true,
- immediate: true
- }
},
data() {
return {
form: {},
+ loading:false,
showSubmitDialog: false,
option: {
height: "330px",
@@ -231,7 +235,8 @@
{
label: '鑻辨枃鍚嶇О',
prop: 'id',
- align: 'center'
+ align: 'center',
+ disabled:true
}, {
label: '涓枃鍚嶇О',
prop: 'name',
@@ -283,6 +288,7 @@
prop: 'id',
align: 'left',
search: true,
+ disabled:true,
width: 230
}, {
label: '涓枃鍚嶇О',
@@ -355,6 +361,7 @@
{
label: '鑻辨枃鍚嶇О',
prop: 'id',
+ disabled:true,
search: true
},
{
@@ -419,6 +426,7 @@
{
label: '鑻辨枃鍚嶇О',
prop: 'id',
+ disabled:true,
search: true
},
{
@@ -476,11 +484,11 @@
// 鍏抽棴缁勪欢寮圭獥
closeSubmitDialog() {
this.showSubmitDialog = false;
- this.btmType.attributes = [];
- this.btmType = {};
- this.attrRef.selectData = [];
- this.attrRef.queryNotIn = null;
- this.resetForm();
+ // this.btmType.attributes = [];
+ // this.btmType = {};
+ // this.attrRef.selectData = [];
+ // this.attrRef.queryNotIn = null;
+ // this.resetForm();
},
// 鍏抽棴灞炴�ф睜鏌ヨ寮圭獥
closeAttrDialog() {
@@ -562,7 +570,7 @@
},
// 娣诲姞涓氬姟绫诲瀷
submitBtmType() {
- console.log(this.btmType);
+ // console.log(this.btmType);
if (!this.btmType.attributes){
this.$message.warning("杩樻病鏈変负涓氬姟绫诲瀷閫夋嫨灞炴��");
return;
@@ -610,7 +618,6 @@
},
// 鍒楄〃缂栬緫淇濆瓨
cellEditSave(row,index) {
- // console.log("1111111111111111111111")
this.btmType.attributes[index].name = row.name
this.btmType.attributes[index].defaultValue = row.defaultValue;
this.btmType.attributes[index].description = row.description;
--
Gitblit v1.9.3