| | |
| | | <Form-item label="联系方式" prop="mobile"> |
| | | <Input type="text" v-model="searchForm.mobile" placeholder="请输入会员联系方式" clearable style="width: 200px" /> |
| | | </Form-item> |
| | | <Form-item label="用户标签" prop="tags"> |
| | | <Select v-model="searchForm.tagIds" multiple filterable :loading="selectLoading" style="width:200px;"> |
| | | <Option v-for="item in options" :key="item.id" :label="item.tagName" :value="item.id"></Option> |
| | | </Select> |
| | | </Form-item> |
| | | |
| | | <Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button> |
| | | </Form> |
| | | </Row> |
| | |
| | | <Option v-for="item in options" :key="item.id" :label="item.tagName" :value="item.id"></Option> |
| | | </Select> |
| | | </FormItem> |
| | | <FormItem label="用户自定义标签" prop="customerTags"> |
| | | <span class="inf0o" v-for="(item,index) in memberTags" :key="index">{{item.tagName}}<span v-if="index < memberTags.length - 1">, </span></span> |
| | | </FormItem> |
| | | <FormItem label="性别" prop="sex"> |
| | | <RadioGroup type="button" button-style="solid" v-model="form.sex"> |
| | | <Radio :label="1"> |
| | |
| | | </FormItem> |
| | | <FormItem label="所在地" prop="mail"> |
| | | {{ form.region || '暂无地址' }} |
| | | |
| | | |
| | | <Button style="margin-left: 10px;" @click="$refs.map.open()">选择</Button> |
| | | |
| | | </FormItem> |
| | | </Form> |
| | | </Modal> |
| | |
| | | import ossManage from "@/views/sys/oss-manage/ossManage"; |
| | | import * as RegExp from "@/libs/RegExp.js"; |
| | | import { getTags } from "@/api/tag.js"; |
| | | import { detailById } from "@/api/memberCustomerTag.js" |
| | | |
| | | export default { |
| | | name: "member", |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | memberTags:[], |
| | | defaultPic: require('@/assets/default.png'), |
| | | descTitle: "", // modal标题 |
| | | descFlag: false, //编辑查看框 |
| | |
| | | username: "", |
| | | mobile: "", |
| | | disabled: "OPEN", |
| | | tagIds:[], |
| | | }, |
| | | picModelFlag: false, // 选择图片 |
| | | form: {}, // 表单数据 |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | getMemberTags(id){ |
| | | detailById(id).then(res =>{ |
| | | if (res.code === 200){ |
| | | this.memberTags = res.data; |
| | | } |
| | | }); |
| | | }, |
| | | // 回调给父级 |
| | | callback(val, index) { |
| | | this.selectMember.forEach(item => { item.___selected = false }) |
| | |
| | | }, |
| | | //查看详情修改 |
| | | editPerm(val) { |
| | | this.form = {}; |
| | | this.descTitle = `查看用户 ${val.username}`; |
| | | this.descFlag = true; |
| | | |
| | | this.getMemberTags(val.id); |
| | | this.getMemberInfo(val.id); |
| | | }, |
| | | addMember() { |