|
@@ -38,6 +38,15 @@
|
|
</Input>
|
|
</Input>
|
|
</FormItem>
|
|
</FormItem>
|
|
</Col>
|
|
</Col>
|
|
|
|
+ <Col>
|
|
|
|
+ <FormItem label="货架:" label-for="pid">
|
|
|
|
+ <Select v-model="userFrom.agent_level" placeholder="请选择" element-id="agent_level" clearable
|
|
|
|
+ class="input-add"
|
|
|
|
+ @on-change="userSearchs">
|
|
|
|
+ <Option :value="item.id" v-for="(item,index) in treeData" :key="index">{{ item.name }}</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Col>
|
|
</Row>
|
|
</Row>
|
|
</Col>
|
|
</Col>
|
|
</Row>
|
|
</Row>
|
|
@@ -103,58 +112,54 @@
|
|
</Col>
|
|
</Col>
|
|
</Row>
|
|
</Row>
|
|
</Col>
|
|
</Col>
|
|
- <Col span="18">
|
|
|
|
- <Row>
|
|
|
|
- <Col>
|
|
|
|
- <FormItem label="会员等级:" label-for="level">
|
|
|
|
- <Select
|
|
|
|
- v-model="userFrom.level"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- element-id="level"
|
|
|
|
- clearable
|
|
|
|
- class="input-add"
|
|
|
|
- >
|
|
|
|
- <!-- <Option value="">全部</Option>-->
|
|
|
|
- <Option
|
|
|
|
- :value="item.id"
|
|
|
|
- v-for="(item, index) in levelList"
|
|
|
|
- :key="index"
|
|
|
|
- >{{ item.name }}</Option
|
|
|
|
- >
|
|
|
|
- </Select>
|
|
|
|
- </FormItem>
|
|
|
|
- </Col>
|
|
|
|
- <Col>
|
|
|
|
- <FormItem label="付费会员:" label-for="isMember">
|
|
|
|
- <Select
|
|
|
|
- v-model="userFrom.isMember"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- clearable
|
|
|
|
- class="input-add"
|
|
|
|
- >
|
|
|
|
- <!-- <Option value="">全部</Option>-->
|
|
|
|
- <Option value="1">是</Option>
|
|
|
|
- <Option value="0">否</Option>
|
|
|
|
- </Select>
|
|
|
|
- </FormItem>
|
|
|
|
- </Col>
|
|
|
|
- <Col>
|
|
|
|
- <FormItem label="身份:">
|
|
|
|
- <Select
|
|
|
|
- v-model="userFrom.is_promoter"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- clearable
|
|
|
|
- class="input-add"
|
|
|
|
- >
|
|
|
|
- <!-- <Option value="">全部</Option>-->
|
|
|
|
- <Option value="1">推广员</Option>
|
|
|
|
- <Option value="0">普通用户</Option>
|
|
|
|
- </Select>
|
|
|
|
- </FormItem>
|
|
|
|
- </Col>
|
|
|
|
- </Row>
|
|
|
|
- </Col>
|
|
|
|
-
|
|
|
|
|
|
+ <!-- <Col span="18">
|
|
|
|
+ <Row>
|
|
|
|
+ <Col>
|
|
|
|
+ <FormItem label="会员等级:" label-for="level">
|
|
|
|
+ <Select
|
|
|
|
+ v-model="userFrom.level"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ element-id="level"
|
|
|
|
+ clearable
|
|
|
|
+ class="input-add"
|
|
|
|
+ >
|
|
|
|
+ <Option
|
|
|
|
+ :value="item.id"
|
|
|
|
+ v-for="(item, index) in levelList"
|
|
|
|
+ :key="index"
|
|
|
|
+ >{{ item.name }}</Option
|
|
|
|
+ >
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col>
|
|
|
|
+ <FormItem label="付费会员:" label-for="isMember">
|
|
|
|
+ <Select
|
|
|
|
+ v-model="userFrom.isMember"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ clearable
|
|
|
|
+ class="input-add"
|
|
|
|
+ >
|
|
|
|
+ <Option value="1">是</Option>
|
|
|
|
+ <Option value="0">否</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col>
|
|
|
|
+ <FormItem label="身份:">
|
|
|
|
+ <Select
|
|
|
|
+ v-model="userFrom.is_promoter"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ clearable
|
|
|
|
+ class="input-add"
|
|
|
|
+ >
|
|
|
|
+ <Option value="1">推广员</Option>
|
|
|
|
+ <Option value="0">普通用户</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Col>
|
|
|
|
+ </Row>
|
|
|
|
+ </Col> -->
|
|
<Col span="18">
|
|
<Col span="18">
|
|
<Row>
|
|
<Row>
|
|
<Col class="dateMedia">
|
|
<Col class="dateMedia">
|
|
@@ -227,6 +232,20 @@
|
|
</Select>
|
|
</Select>
|
|
</FormItem>
|
|
</FormItem>
|
|
</Col>
|
|
</Col>
|
|
|
|
+ <Col>
|
|
|
|
+ <FormItem label="身份:">
|
|
|
|
+ <Select
|
|
|
|
+ v-model="userFrom.is_promoter"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ clearable
|
|
|
|
+ class="input-add"
|
|
|
|
+ >
|
|
|
|
+ <!-- <Option value="">全部</Option>-->
|
|
|
|
+ <Option value="1">推广员</Option>
|
|
|
|
+ <Option value="0">普通用户</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Col>
|
|
<Col v-if="userFrom.country === 'domestic'">
|
|
<Col v-if="userFrom.country === 'domestic'">
|
|
<FormItem label="省份:">
|
|
<FormItem label="省份:">
|
|
<Cascader
|
|
<Cascader
|
|
@@ -683,6 +702,9 @@ import {
|
|
extendInfo,
|
|
extendInfo,
|
|
batchProcess
|
|
batchProcess
|
|
} from "@/api/user";
|
|
} from "@/api/user";
|
|
|
|
+import {
|
|
|
|
+ membershipDataListApi,
|
|
|
|
+} from "@/api/membershipLevel";
|
|
import { agentSpreadApi } from "@/api/agent";
|
|
import { agentSpreadApi } from "@/api/agent";
|
|
import editFrom from "../../../components/from/from";
|
|
import editFrom from "../../../components/from/from";
|
|
import sendFrom from "@/components/sendCoupons/index";
|
|
import sendFrom from "@/components/sendCoupons/index";
|
|
@@ -900,6 +922,7 @@ export default {
|
|
level: "",
|
|
level: "",
|
|
group_id: "",
|
|
group_id: "",
|
|
field_key: "",
|
|
field_key: "",
|
|
|
|
+ agent_level:'',
|
|
},
|
|
},
|
|
field_key: "",
|
|
field_key: "",
|
|
level: "",
|
|
level: "",
|
|
@@ -943,7 +966,8 @@ export default {
|
|
day: 0,
|
|
day: 0,
|
|
spread_uid: '',
|
|
spread_uid: '',
|
|
},
|
|
},
|
|
- spread_name: ''
|
|
|
|
|
|
+ spread_name: '',
|
|
|
|
+ treeData:[],//货架列表
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -987,8 +1011,19 @@ export default {
|
|
this.userGroup();
|
|
this.userGroup();
|
|
this.levelLists();
|
|
this.levelLists();
|
|
this.groupLists();
|
|
this.groupLists();
|
|
|
|
+ this.getLevel();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 获取货架等级
|
|
|
|
+ getLevel() {
|
|
|
|
+ membershipDataListApi(this.formValidate)
|
|
|
|
+ .then(async (res) => {
|
|
|
|
+ let data = res.data;
|
|
|
|
+ this.treeData = data.list;
|
|
|
|
+ })
|
|
|
|
+ .catch((res) => {
|
|
|
|
+ });
|
|
|
|
+ },
|
|
checkboxItem(e){
|
|
checkboxItem(e){
|
|
let uid = parseInt(e.rowid);
|
|
let uid = parseInt(e.rowid);
|
|
let index = this.checkUidList.indexOf(uid);
|
|
let index = this.checkUidList.indexOf(uid);
|
|
@@ -1180,6 +1215,7 @@ export default {
|
|
user_time: this.userFrom.user_time,
|
|
user_time: this.userFrom.user_time,
|
|
user_time_type: this.userFrom.user_time_type,
|
|
user_time_type: this.userFrom.user_time_type,
|
|
user_type: this.userFrom.user_type,
|
|
user_type: this.userFrom.user_type,
|
|
|
|
+ agent_level:this.userFrom.agent_level,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
this.$modalForm(userSetGroup(uids)).then(() => this.getList());
|
|
this.$modalForm(userSetGroup(uids)).then(() => this.getList());
|
|
@@ -1212,6 +1248,7 @@ export default {
|
|
user_time: this.userFrom.user_time,
|
|
user_time: this.userFrom.user_time,
|
|
user_time_type: this.userFrom.user_time_type,
|
|
user_time_type: this.userFrom.user_time_type,
|
|
user_type: this.userFrom.user_type,
|
|
user_type: this.userFrom.user_type,
|
|
|
|
+ agent_level:this.userFrom.agent_level
|
|
};
|
|
};
|
|
}
|
|
}
|
|
this.labelShow = true;
|
|
this.labelShow = true;
|
|
@@ -1471,6 +1508,7 @@ export default {
|
|
label_id: "",
|
|
label_id: "",
|
|
page: 1, // 当前页
|
|
page: 1, // 当前页
|
|
limit: 20, // 每页显示条数
|
|
limit: 20, // 每页显示条数
|
|
|
|
+ agent_level:'',
|
|
};
|
|
};
|
|
this.field_key = "";
|
|
this.field_key = "";
|
|
this.level = "";
|
|
this.level = "";
|