From 2b5ef02510cffc0cdbe74ed53b53fd9826d0bacf Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 30 一月 2024 17:12:04 +0800
Subject: [PATCH] 首页布局更改
---
Source/UBCS-WEB/src/components/FormTemplate/ThemeChildren.vue | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/ThemeChildren.vue b/Source/UBCS-WEB/src/components/FormTemplate/ThemeChildren.vue
index b5e4f9d..b2ada2b 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/ThemeChildren.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/ThemeChildren.vue
@@ -5,7 +5,7 @@
<el-select v-model="SelectValue" placeholder="璇烽�夋嫨" style="width: 135px">
<el-option
v-for="item in SelectOption"
- :key="item.value"
+ :key="item.key"
:label="item.label"
:value="item.value"
style="width: 150px">
@@ -16,7 +16,7 @@
<el-button plain size="small" style="margin-left: 20px" type="primary" @click="SelectSearchHandler">鏌ヨ
</el-button>
</template>
- <avue-crud :data="TableData" :option="this.codeType === 'btmCode' ? this.btmOption : this.option" @row-click="rowHandlerClick">
+ <avue-crud :data="TableData" :option="this.codeType === 'btmCode' ? this.btmOption : this.option" @row-click="rowHandlerClick" :table-loading="loading">
<template slot="radio" slot-scope="{row}">
<el-radio v-model="radioValue" :label="row.$index" style="padding-left: 10px !important;">{{ '' }}
</el-radio>
@@ -74,6 +74,7 @@
crudName: '',
crudOid: '',
TableData: [],
+ loading:false,
option: {
addBtn: false,
index: true,
@@ -82,6 +83,7 @@
border: true,
menu: false,
height: 380,
+ rowKey: "oid",
column: [
{
label: '',
@@ -111,6 +113,7 @@
border: true,
menu: false,
height:380,
+ rowKey: "oid",
column:[
{
label: '',
@@ -135,6 +138,7 @@
}
},
created() {
+ this.loading = true;
},
mounted() {
},
@@ -162,17 +166,19 @@
},
// 妯$硦鏌ヨ
SelectSearchHandler() {
- if (!this.SelectOption) {
- return; // 濡傛灉SelectOption鏁版嵁涓嶅瓨鍦ㄧ洿鎺ヨ繑鍥� 閬垮厤鎶ラ敊
+ this.loading = true;
+ if (!this.SelectOption || this.SelectOption.length === 0) {
+ this.loading = false;
+ return;
}
-
const Parameter = {};
+ const DefaultParameter = {};
Parameter[`conditionMap['${this.SelectValue}']`] = this.SelectSearchValue;
-
+ DefaultParameter[`conditionMap['${this.SelectValue}_like']`] = this.SelectSearchValue;
if(this.codeType === "btmCode"){
this.btmDefaultRend(Parameter)
}else {
- this.defaultSearchRend(Parameter);
+ this.defaultSearchRend(DefaultParameter);
}
},
//琛ㄦ牸琛屽崟閫�
@@ -205,11 +211,13 @@
...Parameter
}).then(res => {
this.TableData = res.data.records;
+ this.loading = false;
})
},
btmDefaultRend(Parameter) {
referDataGrid({valueField: 'id', isMuti: 'false', 'limit': '-1', ...Parameter}).then(res => {
- this.TableData = res.data.data.records
+ this.TableData = res.data.data.records;
+ this.loading = false;
})
},
}
--
Gitblit v1.9.3