|
@@ -2,8 +2,8 @@
|
|
|
<div class="mymain-container">
|
|
|
<slot name="header">
|
|
|
<el-row class="radio">
|
|
|
- <el-radio-group v-model="region">
|
|
|
- <el-radio label="0">指定</el-radio>
|
|
|
+ <el-radio-group v-model="region" @change="onChange">
|
|
|
+ <el-radio label="0">指定经销商</el-radio>
|
|
|
<el-radio label="1">广州经销商</el-radio>
|
|
|
<el-radio label="2">佛山经销商</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -140,7 +140,7 @@
|
|
|
</el-row>
|
|
|
<div style="margin: 20px 0">
|
|
|
<el-upload
|
|
|
- class="import-btn"
|
|
|
+ class="import-btn cus-btn"
|
|
|
:action="baseURL + 'student/import'"
|
|
|
:http-request="handleImports"
|
|
|
:file-list="importFileList"
|
|
@@ -368,12 +368,15 @@ export default {
|
|
|
getList() {
|
|
|
this.getCrList();
|
|
|
},
|
|
|
+ onChange(){
|
|
|
+ this.getCrList()
|
|
|
+ },
|
|
|
getCrList() {
|
|
|
const customerParams = {
|
|
|
pageNum: this.currentPages,
|
|
|
pageSize: this.pageSizes,
|
|
|
keyword: this.keyword,
|
|
|
- region: "",
|
|
|
+ region: this.region,
|
|
|
};
|
|
|
// 获取经销商列表
|
|
|
getCrList(customerParams).then((res) => {
|
|
@@ -669,7 +672,7 @@ export default {
|
|
|
},
|
|
|
// 提交数据
|
|
|
async handleSave() {
|
|
|
- this.$emit("handlEditPolicy", this.custoList);
|
|
|
+ this.$emit("handlEditPolicy", this.custoList,this.region);
|
|
|
},
|
|
|
handleReset() {
|
|
|
this.dataR = this.rightData = [];
|
|
@@ -687,7 +690,10 @@ export default {
|
|
|
margin: 0 0 20px 0;
|
|
|
}
|
|
|
.import-btn {
|
|
|
-
|
|
|
+ margin: 0 20px;
|
|
|
+}
|
|
|
+.cus-btn{
|
|
|
+ margin: 0;
|
|
|
}
|
|
|
.value {
|
|
|
::v-deep .el-input__prefix {
|