From 4a017d8e3fa7c403e91998267a95a65cd5272fdd Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期三, 08 一月 2025 09:59:32 +0800
Subject: [PATCH] 修改bug表中bug和部分样式
---
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue | 14 +++++++++-----
Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue | 2 +-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue
index aee44d0..5849ea0 100644
--- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue
+++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/input-icon.vue
@@ -1,7 +1,7 @@
<template>
<div>
<el-input :width="width" :class="inputClass" :style="inputStyle" :clearable="true" :value="value"
- :disabled="disabled" :placeholder="placeholder" type="text" :size="size" @clear="clearValue" @focus="handleFocus">
+ :disabled="disabled" :placeholder="placeholder" :read-only="true" type="text" :size="size" @clear="clearValue">
<span slot="append" v-html="svgHtml" style="font-size: 18px;padding:3px 10px;width:18px;height:18px;display: block" @click="handleFocus"></span>
</el-input>
<el-dialog v-dialogDrag
diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
index 747c645..9eef2a3 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
@@ -412,13 +412,11 @@
{required: true, message: '璇疯緭鍏ュ悕绉�', trigger: 'blur'},
],
actionName: [
- {required: true, message: '璇烽�夋嫨Action', trigger: 'blur'},
+ {required: true, message: '璇烽�夋嫨Action', trigger: 'change'},
],
},
// 鎸夐挳璁捐 鍩虹淇℃伅
- basicForm: {
- seq: 1
- },
+ basicForm: {},
treeData: [],
treeOption: {
menu: false,
@@ -866,6 +864,7 @@
lastIndex: null,
selectList: [],
formDataRow: {},
+ defaultForm:{},
}
},
computed:{
@@ -1176,13 +1175,14 @@
// 鎸夐挳璁捐琛岀偣鍑�
nodeTreeClick(row) {
this.nodeTreeRow = row;
+ this.defaultForm = {...row};
this.basicForm = {...row};
this.paramsData = row.buttonParams ? Object.entries(row.buttonParams).map(([key, value]) => ({
name: key,
value: value
})) : [];
this.disabledBtn = true;
- this.$refs.form.clearValidate()
+ this.$refs.form.clearValidate();
},
// 鎸夐挳璁捐鍙傛暟淇℃伅鍒犻櫎
@@ -1255,6 +1255,9 @@
this.disabledBtn = true;
if (this.saveType === 'add') {
this.$refs.Tree.setCurrentKey(null);
+ this.$refs.form.resetFields();
+ }else {
+ this.basicForm = {...this.defaultForm};
}
},
@@ -1300,6 +1303,7 @@
return false;
}
done();
+ this.$refs.form.resetFields();
});
},
--
Gitblit v1.9.3