From 05c7478c26954ee6031f98fce6c8c9901abb98a0 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期二, 24 三月 2026 14:10:52 +0800
Subject: [PATCH] 调整
---
src/views/dataAnalysis/components/CustTypeModal.vue | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/views/dataAnalysis/components/CustTypeModal.vue b/src/views/dataAnalysis/components/CustTypeModal.vue
index caf4def..169830c 100644
--- a/src/views/dataAnalysis/components/CustTypeModal.vue
+++ b/src/views/dataAnalysis/components/CustTypeModal.vue
@@ -17,6 +17,9 @@
v-model="clientConfigsList.clientName"
></a-input>
</a-form-item>
+ <div v-if="!clientConfigsList.clientConfigs || clientConfigsList.clientConfigs.length === 0" style="text-align: center">
+ <a-button type="primary" @click="addConditions"> 娣诲姞瑙勫垯 </a-button>
+ </div>
<div v-for="(subItem, subIndex) in clientConfigsList.clientConfigs" :key="subIndex">
<div style="display: flex">
<div>鏉′欢{{ subIndex + 1 }}锛�</div>
@@ -135,7 +138,7 @@
></a-input>
</a-form-item>
</div>
- <div style="text-align: center">
+ <div style="text-align: center" v-if="subIndex === clientConfigsList.clientConfigs.length - 1">
<a-button type="primary" @click="addConditions"> 澧炲姞鏉′欢 </a-button>
</div>
</div>
@@ -238,8 +241,8 @@
// 鍔犳补瓒嬪娍锛氭竻闄ら娆¢厤缃紝璁剧疆榛樿鍊�
Object.assign(target, {
ruleType: 2,
- countType: null,
- countRef: null,
+ countType: 2,
+ countRef: 1,
countTrend: target.countTrend || 1,
historyMonths: target.historyMonths || 3,
recentMonths: target.recentMonths || 3,
@@ -283,7 +286,7 @@
this.clientConfigsList = Object.assign({}, record, {
clientConfigs: (record.clientConfigs || []).length
? record.clientConfigs.map((item) => this.buildCondition(item))
- : [this.buildCondition()],
+ : [],
})
},
close() {
@@ -341,8 +344,6 @@
}
if (res.success) {
this.$message.success(res.message)
- // 娣诲姞/缂栬緫鎴愬姛鍚庡埛鏂伴〉闈互鏇存柊瀛楀吀缂撳瓨
- window.location.reload()
this.$emit('ok')
}
} catch (err) {
--
Gitblit v1.8.0