Commit 845947dd by 张权

客户类型

1 parent e00b982a
......@@ -7,9 +7,7 @@
<div class="detail-wrap">
<el-form class="form" ref="form" :model="basicForm" label-width="128px">
<el-form-item label="客户类型">
<el-select v-model="basicForm.condition" placeholder="请选择客户类型">
<el-option v-for="item in menberType" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<span>{{ clientType == 1 ? '升级客户' : '战败客户' }}</span>
</el-form-item>
<el-form-item label="轻改专家">
<el-button size="small" icon="el-icon-plus" @click="openMembers">
......@@ -56,16 +54,7 @@ export default {
return {
size: 'small',
eventBus: new Vue(),
menberType: [
{
value: '1',
label: '升级客户'
},
{
value: '2',
label: '战败客户'
}
],
clientType: 1,
btnList: [
{
id: 1,
......@@ -112,6 +101,12 @@ export default {
selectPerson: null
}
},
mounted() {
const urlParam = this.$route.params
console.log(urlParam, 79)
let param = JSON.parse(urlParam.id)
this.clientType = param.clientType
},
methods: {
addConfig() {},
// 成员弹窗
......
......@@ -20,18 +20,18 @@
<el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button>
</span>
</glsx-combi-form>
<GLTable ref="expertTable" :pageConf="batchPageConf" :searchForm="batchListSearch" :tableParams="batchTableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<GLTable ref="expertTable" @hook:mounted="setTabelHeight" :pageConf="batchPageConf" :searchForm="batchListSearch" :tableParams="batchTableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton fn="编辑" type="text" @click="addConfig(2)">编辑</GLButton>
<el-button type="text" @click="addConfig(3)">{{ scope.scope.status == 1 ? '禁用' : '启用' }}</el-button>
<GLButton fn="编辑" type="text" @click="addConfig(2)">删除</GLButton>
</div>
<div slot="additionalContent" class="default-box">
<img class="default-img" :src="imagBaseURL + 'serviceser.png'" alt="" />
<span class="tip">用于「精品升级」客户线上化,配置轻改专家成员,可通过精品升级的质保卡活码拉新。</span>
<GLButton :size="size" fn="新增配置" icon="el-icon-plus" type="primary" @click="addConfig(1)">配置门店轻改专家</GLButton>
</div>
</GLTable>
<div class="default-box">
<img class="default-img" :src="imagBaseURL + 'serviceser.png'" alt="" />
<span class="tip">用于「精品升级」客户线上化,配置轻改专家成员,可通过精品升级的质保卡活码拉新。</span>
<GLButton :size="size" fn="新增配置" icon="el-icon-plus" type="primary" @click="addConfig(1)">配置门店轻改专家</GLButton>
</div>
</div>
</div>
</template>
......@@ -159,12 +159,22 @@ export default {
addConfig() {
this.showClientType = true
},
setTabelHeight() {
this.$refs.expertTable.tableHeightValues = '455'
},
goDetail() {
this.$router.push({ path: '/expert/detail/5' })
},
selectClientType(type) {
selectClientType(type, id) {
this.showClientType = false
this.$router.push({ path: '/expert/detail/5' })
let paraFormat = {
clientType: type
}
if (id) {
paraFormat.expertId = id
}
const urlpara = JSON.stringify(paraFormat)
this.$router.push({ path: '/expert/detail/' + urlpara })
},
beforeSearchFn() {
return new Promise((resolve, reject) => {
......@@ -178,7 +188,7 @@ export default {
params.commitTimeStart = util.dateFormat(this.batchListSearch.activeTime[0]) + ' 00:00:00'
params.commitTimeEnd = util.dateFormat(this.batchListSearch.activeTime[1]) + ' 23:59:59'
}
params.searchText = ''
params.searchText = 'dasda'
return params
},
handleSearch() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!