|
|
@@ -5,6 +5,7 @@
|
|
|
|
|
|
<el-tab-pane label="客户总览" name="manage">
|
|
|
<el-form :inline="true" :model="filterForm" class="filter-form" label-width="110px" :label-position="labelPosition">
|
|
|
+ <el-tag>客户总数:共 <b>{{total}}</b> 个需求方客户</el-tag>
|
|
|
<el-row>
|
|
|
<el-form-item label="客户来源">
|
|
|
<el-radio-group v-model="filterForm.source" size="mini">
|
|
|
@@ -13,9 +14,6 @@
|
|
|
<el-radio-button v-for="itm in counter.source" :label="itm.id" :key="itm.id">{{itm.name}}({{itm.counter}})</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-tag>客户总数:共 <b>{{total}}</b> 个需求方客户</el-tag>
|
|
|
- </el-form-item>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-form-item label="是否发布过项目">
|
|
|
@@ -74,6 +72,17 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="备注">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.remark_text }}</div>
|
|
|
+ <el-button type="text" @click="onToList(scope.row.uid, 6)">查看备注({{ scope.row.remark_num }})</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" @click="onRemark(scope.row, 6)">添加备注</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -182,12 +191,12 @@
|
|
|
<el-table-column label="备注">
|
|
|
<template slot-scope="scope">
|
|
|
<div>{{ scope.row.remark_text }}</div>
|
|
|
- <el-button type="text" @click="onToList(scope.row)">查看备注({{ scope.row.remark_num }})</el-button>
|
|
|
+ <el-button type="text" @click="onToList(scope.row.id, 4)">查看备注({{ scope.row.remark_num }})</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="onRemark(scope.row)">添加备注</el-button>
|
|
|
+ <el-button type="text" @click="onRemark(scope.row, 4)">添加备注</el-button>
|
|
|
<el-button type="text" v-if="scope.row.status === '0'" @click="onUpdateManager(scope.row)">立即处理
|
|
|
</el-button>
|
|
|
<el-button type="text" v-else disabled>已处理</el-button>
|
|
|
@@ -235,9 +244,10 @@ export default {
|
|
|
page: 1,
|
|
|
total: 0,
|
|
|
loading: false,
|
|
|
- remarkData: {id: '0', content: ''},
|
|
|
activeName: 'manage',
|
|
|
remarkModel: false,
|
|
|
+ remarkType: 6,
|
|
|
+ remarkData: {id: '0', content: ''},
|
|
|
labelPosition: 'left',
|
|
|
gradeData: [],
|
|
|
changeData: [],
|
|
|
@@ -320,15 +330,15 @@ export default {
|
|
|
window.location.href = '/api/admin/accountManager/exportUserList?download=1' +
|
|
|
'&source=' + this.filterForm.source + '&manager=' + this.filterForm.manager+ '&is_publish=' + this.filterForm.is_publish;
|
|
|
},
|
|
|
- onRemark(row) {
|
|
|
- this.remarkData.id = row.id;
|
|
|
- // this.remarkData.content = row.remark || '';
|
|
|
+ onRemark(row, type) {
|
|
|
+ this.remarkData.id = row.uid;
|
|
|
+ this.remarkType = type;
|
|
|
this.remarkModel = true;
|
|
|
},
|
|
|
- onToList(row) {
|
|
|
+ onToList(id, type) {
|
|
|
let data = {
|
|
|
- obj_id: row.id,
|
|
|
- type: 4
|
|
|
+ obj_id: id,
|
|
|
+ type: type
|
|
|
}
|
|
|
this.$router.push({path: '/main/remark_list', query: data});
|
|
|
},
|
|
|
@@ -340,7 +350,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
- let data = {content: this.remarkData.content, id: this.remarkData.id}
|
|
|
+ let data = {content: this.remarkData.content, id: this.remarkData.id, type:this.remarkType}
|
|
|
let res = await this.$post("/api/admin/accountManager/saveRemark", data);
|
|
|
if (res && res.status === 1) {
|
|
|
this.$message.success('备注成功')
|