feat(代理政策页面): 修改和保存数据时保存搜索条件中的countryCode

This commit is contained in:
hzj 2026-02-02 12:12:02 +08:00
parent 1fb6611b8f
commit de507f7ab5

View File

@ -211,6 +211,7 @@
/>
</div>
<!-- 编辑表单 -->
<el-table
v-loading="listLoading"
:data="policys"
@ -218,6 +219,7 @@
fit
highlight-current-row
>
<!-- 等级 -->
<el-table-column label="等级" min-width="50" align="center">
<template scope="scope">
<el-input
@ -228,6 +230,7 @@
</template>
</el-table-column>
<!-- 时间 -->
<el-table-column label="时间(Hour)" min-width="80" align="center">
<template scope="scope">
<el-input
@ -238,6 +241,7 @@
</template>
</el-table-column>
<!-- 有效天 -->
<el-table-column
label="有效天(当天满60分钟计有效)"
min-width="80"
@ -252,6 +256,7 @@
</template>
</el-table-column>
<!-- 目标 -->
<el-table-column label="目标" min-width="80" align="center">
<template scope="scope">
<el-input
@ -262,6 +267,7 @@
</template>
</el-table-column>
<!-- 主播工资 -->
<el-table-column label="主播工资" min-width="80" align="center">
<template scope="scope">
<el-input
@ -273,6 +279,7 @@
</template>
</el-table-column>
<!-- 代理工资 -->
<el-table-column label="代理工资" min-width="80" align="center">
<template scope="scope">
<el-input
@ -284,12 +291,14 @@
</template>
</el-table-column>
<!-- 总工资 -->
<el-table-column label="总工资" min-width="80" align="center">
<template scope="scope">
{{ getTotalSalary(scope.row) }}
</template>
</el-table-column>
<!-- 道具 -->
<el-table-column label="道具" min-width="80" align="center">
<template scope="scope">
<props-row
@ -304,6 +313,7 @@
</template>
</el-table-column>
<!-- 操作按钮列表 -->
<el-table-column label="操作" min-width="100" align="center">
<template scope="scope">
<el-button type="text" @click="clickUp(scope.$index)"
@ -446,6 +456,7 @@ function getFormData() {
id: "",
sysOrigin: "",
region: "",
countryCode: "",
release: false,
title: "",
policy: [],
@ -509,6 +520,9 @@ export default {
renderData() {
const that = this;
that.listLoading = true;
that.formData.countryCode = that.listQuery.countryCode;
console.log("that.formData", that.formData);
teamPolicyReleases(that.listQuery)
.then(res => {
that.listLoading = false;
@ -543,8 +557,7 @@ export default {
? that.selectedCountry.country.alphaTwo
: "";
}
this.renderData();
that.renderData();
},
//
@ -592,10 +605,12 @@ export default {
that.propsFormEditVisable = true;
},
//
handleSearch() {
this.formData = getFormData();
this.isEditing = false;
this.renderData();
console.log("this.formData", this.formData);
},
//
@ -618,7 +633,7 @@ export default {
});
},
//
// /
handleCreate(isNew) {
const that = this;
if (!isNew) {
@ -661,7 +676,8 @@ export default {
totalSalary: 0,
propsRewards: []
};
that.policys.splice(that.currentAddRowIndex + 1, 0, policy);
that.policys.splice(that.currentAddRowIndex + 1, 0, policy); //
console.log("that.policys", that.policys);
}
that.currentAddRowIndex = -1;
that.addRowsBoxVisible = false;
@ -809,6 +825,7 @@ export default {
this.historyReleasesBoxVisible = false;
},
//
selectSystemRegion() {
this.isEditing = false;
if (!this.listQuery.region) {