feat(代理政策页面): 修改和保存数据时保存搜索条件中的countryCode
This commit is contained in:
parent
1fb6611b8f
commit
de507f7ab5
@ -211,6 +211,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 编辑表单 -->
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="policys"
|
:data="policys"
|
||||||
@ -218,6 +219,7 @@
|
|||||||
fit
|
fit
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
>
|
>
|
||||||
|
<!-- 等级 -->
|
||||||
<el-table-column label="等级" min-width="50" align="center">
|
<el-table-column label="等级" min-width="50" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
@ -228,6 +230,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 时间 -->
|
||||||
<el-table-column label="时间(Hour)" min-width="80" align="center">
|
<el-table-column label="时间(Hour)" min-width="80" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
@ -238,6 +241,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 有效天 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="有效天(当天满60分钟计有效)"
|
label="有效天(当天满60分钟计有效)"
|
||||||
min-width="80"
|
min-width="80"
|
||||||
@ -252,6 +256,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 目标 -->
|
||||||
<el-table-column label="目标" min-width="80" align="center">
|
<el-table-column label="目标" min-width="80" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
@ -262,6 +267,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 主播工资 -->
|
||||||
<el-table-column label="主播工资" min-width="80" align="center">
|
<el-table-column label="主播工资" min-width="80" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
@ -273,6 +279,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 代理工资 -->
|
||||||
<el-table-column label="代理工资" min-width="80" align="center">
|
<el-table-column label="代理工资" min-width="80" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
@ -284,12 +291,14 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 总工资 -->
|
||||||
<el-table-column label="总工资" min-width="80" align="center">
|
<el-table-column label="总工资" min-width="80" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
{{ getTotalSalary(scope.row) }}
|
{{ getTotalSalary(scope.row) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 道具 -->
|
||||||
<el-table-column label="道具" min-width="80" align="center">
|
<el-table-column label="道具" min-width="80" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<props-row
|
<props-row
|
||||||
@ -304,6 +313,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 操作按钮列表 -->
|
||||||
<el-table-column label="操作" min-width="100" align="center">
|
<el-table-column label="操作" min-width="100" align="center">
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<el-button type="text" @click="clickUp(scope.$index)"
|
<el-button type="text" @click="clickUp(scope.$index)"
|
||||||
@ -446,6 +456,7 @@ function getFormData() {
|
|||||||
id: "",
|
id: "",
|
||||||
sysOrigin: "",
|
sysOrigin: "",
|
||||||
region: "",
|
region: "",
|
||||||
|
countryCode: "",
|
||||||
release: false,
|
release: false,
|
||||||
title: "",
|
title: "",
|
||||||
policy: [],
|
policy: [],
|
||||||
@ -509,6 +520,9 @@ export default {
|
|||||||
renderData() {
|
renderData() {
|
||||||
const that = this;
|
const that = this;
|
||||||
that.listLoading = true;
|
that.listLoading = true;
|
||||||
|
that.formData.countryCode = that.listQuery.countryCode;
|
||||||
|
console.log("that.formData", that.formData);
|
||||||
|
|
||||||
teamPolicyReleases(that.listQuery)
|
teamPolicyReleases(that.listQuery)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
that.listLoading = false;
|
that.listLoading = false;
|
||||||
@ -543,8 +557,7 @@ export default {
|
|||||||
? that.selectedCountry.country.alphaTwo
|
? that.selectedCountry.country.alphaTwo
|
||||||
: "";
|
: "";
|
||||||
}
|
}
|
||||||
|
that.renderData();
|
||||||
this.renderData();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取国家列表
|
// 获取国家列表
|
||||||
@ -592,10 +605,12 @@ export default {
|
|||||||
that.propsFormEditVisable = true;
|
that.propsFormEditVisable = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 搜索
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.formData = getFormData();
|
this.formData = getFormData();
|
||||||
this.isEditing = false;
|
this.isEditing = false;
|
||||||
this.renderData();
|
this.renderData();
|
||||||
|
console.log("this.formData", this.formData);
|
||||||
},
|
},
|
||||||
|
|
||||||
// 系统修改重新获得值
|
// 系统修改重新获得值
|
||||||
@ -618,7 +633,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 下拉菜单点击
|
// 创建政策/展示历史政策
|
||||||
handleCreate(isNew) {
|
handleCreate(isNew) {
|
||||||
const that = this;
|
const that = this;
|
||||||
if (!isNew) {
|
if (!isNew) {
|
||||||
@ -661,7 +676,8 @@ export default {
|
|||||||
totalSalary: 0,
|
totalSalary: 0,
|
||||||
propsRewards: []
|
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.currentAddRowIndex = -1;
|
||||||
that.addRowsBoxVisible = false;
|
that.addRowsBoxVisible = false;
|
||||||
@ -809,6 +825,7 @@ export default {
|
|||||||
this.historyReleasesBoxVisible = false;
|
this.historyReleasesBoxVisible = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 选择区域
|
||||||
selectSystemRegion() {
|
selectSystemRegion() {
|
||||||
this.isEditing = false;
|
this.isEditing = false;
|
||||||
if (!this.listQuery.region) {
|
if (!this.listQuery.region) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user