Commit 7284d6b8 by Lin

Merge branch 'SAAS+V5.8.2' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into feature/strategy-center
2 parents 7ccfc9a7 8bd1f4c5
## 变更内容
-
## 测试情况
-
## 风险评估
-
## Checklist
- [ ] 已自测
- [ ] 已更新文档
- [ ] 已通知相关人员
......@@ -141,8 +141,7 @@
<el-tag v-if="hasValue(sub, scope.row)" :type="getSchemaTagOptions(sub, scope.row).type">
{{ getSchemaTagOptions(sub, scope.row).label }}
</el-tag>
<span v-else>-</span>
<span v-else>-</span>
</div>
</template>
......@@ -256,7 +255,9 @@
<el-tag v-if="hasValue(item, scope.row)" :type="getSchemaTagOptions(item, scope.row).type">
{{ getSchemaTagOptions(item, scope.row).label }}
</el-tag>
<span v-else>-</span>
<span v-else>-</span>
</div>
</template>
......@@ -866,4 +867,4 @@ export default {
margin-bottom: 8px;
}
}
</style>
\ No newline at end of file
</style>
......@@ -1030,8 +1030,6 @@ export default {
pageSize: 20,
currentPage: 1,
approvalVisible: false,
/** 请求序列号:防止快速查询时旧请求覆盖新数据 */
_searchSeq: 0,
};
},
computed: {
......@@ -1506,13 +1504,11 @@ export default {
this.getList();
},
getList() {
const seq = ++this._searchSeq
let params = this.getParams();
let eventParams = deepClone({ ...this.page, ...params });
if (eventParams?.zyVoucherStatus == 1)
eventParams.status = 13;
getList(eventParams).then((res) => {
if (seq !== this._searchSeq) return
this.tableData = res.list.map((item) => {
item.paySuccessDate = item.paySuccessDate
? Util.dateFormate(item.paySuccessDate, "YYYY-MM-DD HH:mm:ss")
......@@ -1525,13 +1521,11 @@ export default {
});
},
getOrderCount() {
const seq = ++this._searchSeq
let params = this.getParams();
let eventParams = deepClone({ ...params });
if (eventParams?.zyVoucherStatus == 1)
eventParams.status = 13;
getOrderCount(eventParams).then((res) => {
if (seq !== this._searchSeq) return
this.totalCount = res.totalPriceCount;
});
},
......
......@@ -966,8 +966,6 @@ export default {
pageSize: 20,
currentPage: 1,
approvalVisible: false,
/** 请求序列号:防止快速查询时旧请求覆盖新数据 */
_searchSeq: 0,
};
},
computed: {
......@@ -1360,7 +1358,6 @@ export default {
this.getList();
},
getList() {
const seq = ++this._searchSeq
let params = this.getParams();
params = {
...this.page,
......@@ -1368,7 +1365,6 @@ export default {
};
// console.log(params)
getList(params).then((res) => {
if (seq !== this._searchSeq) return
this.tableData = res.list.map((item) => {
item.paySuccessDate = item.paySuccessDate
? Util.dateFormate(item.paySuccessDate, "YYYY-MM-DD HH:mm:ss")
......@@ -1387,13 +1383,11 @@ export default {
});
},
getOrderCount() {
const seq = ++this._searchSeq
let params = this.getParams();
params = {
...params,
};
getOrderCount(params).then((res) => {
if (seq !== this._searchSeq) return
this.totalCount = res.totalPriceCount;
});
},
......
......@@ -142,9 +142,7 @@ export default {
light: []
},
/** 路由带入:匹配完成后清空 */
pendingLegacyLeaf: null,
/** 请求序列号:防止快速切换时旧请求覆盖新数据 */
_loadScenesSeq: 0
pendingLegacyLeaf: null
}
},
computed: {
......@@ -276,13 +274,11 @@ export default {
if (category === "renewal") {
return
}
const seq = ++this._loadScenesSeq
this.scenesLoading = category === "light"
this.rightsScenesLoading = category === "rights"
try {
if (category === "light") {
const res = await sceneListWithOrder({ bizTypeCode: "1" })
if (seq !== this._loadScenesSeq) return
const arr = normalizeSceneResponse(res)
const mapped = arr.map(s => buildSceneLeafItem(s, "light"))
this.sceneSubs.light = mapped.length ? mapped : [...FALLBACK_LIGHT]
......@@ -291,12 +287,10 @@ export default {
sceneListWithOrder({ bizTypeCode: "2", businessType: 1 }),
sceneListWithOrder({ bizTypeCode: "2", businessType: 2 })
])
if (seq !== this._loadScenesSeq) return
this.rightsScenesForEquity = normalizeSceneResponse(res1)
this.rightsScenesForWarranty = normalizeSceneResponse(res2)
}
} catch (e) {
if (seq !== this._loadScenesSeq) return
if (category === "light") {
this.sceneSubs.light = [...FALLBACK_LIGHT]
} else {
......@@ -304,10 +298,8 @@ export default {
this.rightsScenesForWarranty = []
}
} finally {
if (seq === this._loadScenesSeq) {
this.scenesLoading = false
this.rightsScenesLoading = false
}
this.scenesLoading = false
this.rightsScenesLoading = false
}
},
ensureLeafInCategory() {
......
......@@ -800,9 +800,7 @@ export default {
const isLastCondition = condIndex === conditions.length - 1;
const condLogic = this.getConditionNextLogic(cond) || fallbackLogic;
const metricId = cond.metricId != null && cond.metricId !== ""
? Number(cond.metricId)
: null;
const metricId = this.getMetricId(group, cond);
const rule = {
sortNo: rules.length + 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!