|
@@ -7,16 +7,27 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="export-select">
|
|
|
- <a style="width:80px; margin-right: 20px" :href="exportUrl" download v-if="Tabs.length>1">
|
|
|
+ <!-- <a style="width:80px; margin-right: 20px" :href="exportUrl" download v-if="Tabs.length>1">
|
|
|
<el-button type="primary" style="width: 100%" >导出</el-button>
|
|
|
- </a>
|
|
|
- <el-select v-if="activeName == 1" v-model="custom_apply_type" placeholder="请选择申请类型" style="width: 300px; margin-right: 20px" clearable>
|
|
|
+ </a> -->
|
|
|
+ <date-picker
|
|
|
+ v-model="date_range"
|
|
|
+ type="date"
|
|
|
+ range
|
|
|
+ value-type="format"
|
|
|
+ :placeholder="`请选择${activeName===1?'提交':activeName===2?'申请':'发送'}时间`"
|
|
|
+ @change="getTableData">
|
|
|
+ </date-picker>
|
|
|
+ <el-select v-if="activeName == 1" v-model="custom_apply_type" placeholder="请选择申请类型" style="width: 160px;" clearable @change="getTableData">
|
|
|
<el-option v-for="item in applyArr" :key="item.name" :label="item.name" :value="item.name"> </el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-if="activeName == 1" v-model="custom_type" placeholder="请选择状态" style="width: 300px; margin-right: 20px" clearable multiple>
|
|
|
+ <el-select v-if="activeName == 1" v-model="custom_type" placeholder="请选择用户状态" style="width: 200px;" clearable multiple @change="getTableData">
|
|
|
<el-option v-for="item in statusArr" :key="item.name" :label="item.name" :value="item.name"> </el-option>
|
|
|
</el-select>
|
|
|
- <el-input placeholder="姓名/手机号/邮箱/公司名称" v-model="search_txt" clearable style="max-width: 500px">
|
|
|
+ <el-select v-model="group_type" placeholder="请选择分组" style="width: 160px;" clearable @change="getTableData">
|
|
|
+ <el-option v-for="item in groupArr" :key="item.name" :label="item.name" :value="item.name"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-input placeholder="姓名/手机号/邮箱/公司名称" v-model="search_txt" clearable style="max-width: 220px" @input="getTableData">
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -47,16 +58,22 @@
|
|
|
<span v-else>{{ row[item.key] }}</span> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="分组" align="center">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <span>{{row.Group}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <div v-if="activeName == 1">
|
|
|
+ <!-- <div v-if="activeName == 1">
|
|
|
<span class="editsty" v-if="row.OpStatus === 0 && row.IsMove === 0&&!(row.Status==='潜在用户'||row.Status==='流失')" @click="dealHandle(row)">标记处理</span>
|
|
|
- <span class="editsty" v-if="row.IsMove === 0" @click="moveHandle(row)">移动</span>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<span class="editsty" v-if="row.Status==='待处理'" @click="dealHandle(row)">标记处理</span>
|
|
|
- </div>
|
|
|
- <span class="editsty" style="color:#ff0000" v-if="row.DelBtn" @click="delHandle(row)">删除</span>
|
|
|
+ </div> -->
|
|
|
+ <span class="editsty" v-if="activeName == 1&&row.IsMove === 0" @click="moveHandle(row)">移动</span>
|
|
|
+ <span class="editsty" v-if="!row.Group" @click="handleChooseGroup(row)">标记</span>
|
|
|
+ <!-- <span class="editsty" style="color:#ff0000" v-if="row.DelBtn" @click="delHandle(row)">删除</span> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<div slot="empty" style="padding: 20px 0">
|
|
@@ -74,6 +91,27 @@
|
|
|
<intervewDia :isShowDia.sync="isShowDia" :item="dealObj" v-if="isShowDia" :activeName="activeName"/>
|
|
|
<!-- 移动弹窗 -->
|
|
|
<moveCustomDia :isShow.sync="isShowMoveDia" :item="dealObj" v-if="isShowMoveDia" />
|
|
|
+ <!-- 标记分组弹窗 -->
|
|
|
+ <el-dialog
|
|
|
+ v-dialogDrag
|
|
|
+ :visible.sync="isChooseGroupDialogShow"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :modal-append-to-body="false"
|
|
|
+ title="标记" width="480px" center
|
|
|
+ @close="isChooseGroupDialogShow=false">
|
|
|
+ <div class="dialog-container">
|
|
|
+ <div class="select" style="display:flex;align-items: center;">
|
|
|
+ <span>分组:</span>
|
|
|
+ <el-select v-model="choosed_group" placeholder="请选择分组" style="flex:1;margin-left: 10px;">
|
|
|
+ <el-option v-for="item in groupArr" :key="item.name" :label="item.name" :value="item.name"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display:flex;justify-content:center;margin:20px 0;">
|
|
|
+ <el-button type="primary" style="width:80px;marginRight:24px;" @click="chooseGroup">保存</el-button>
|
|
|
+ <el-button type="primary" plain style="width:80px;" @click="isChooseGroupDialogShow=false">取消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -109,8 +147,17 @@ export default {
|
|
|
{ name: "冻结", value: 4 },
|
|
|
{name:'试用暂停',value:5}
|
|
|
],
|
|
|
+ groupArr:[
|
|
|
+ {name:"楼颖丹组",value:"楼颖丹组"},
|
|
|
+ {name:"时代组",value:"时代组"},
|
|
|
+ {name:"岳梦琳组",value:"岳梦琳组"},
|
|
|
+ {name:"权益组",value:"权益组"}
|
|
|
+ ],
|
|
|
+ choosed_group:'',
|
|
|
custom_type:[],
|
|
|
custom_apply_type:'',//申请类型
|
|
|
+ date_range:[],
|
|
|
+ group_type:'',
|
|
|
applyArr:[
|
|
|
{name:'已申请',value:'已申请'},
|
|
|
{name:'未申请',value:'未申请'},
|
|
@@ -122,6 +169,7 @@ export default {
|
|
|
dealObj: {},
|
|
|
isShowDia: false, //处理弹窗
|
|
|
isShowMoveDia: false, //移动弹窗
|
|
|
+ isChooseGroupDialogShow:false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -147,20 +195,7 @@ export default {
|
|
|
return this.custom_type.join(',')
|
|
|
},//筛选客户的类型,可多选
|
|
|
},
|
|
|
- watch: {
|
|
|
- search_txt(newval) {
|
|
|
- this.page_no = 1;
|
|
|
- this.getTableData();
|
|
|
- },
|
|
|
- custom_type(newval) {
|
|
|
- this.page_no = 1;
|
|
|
- this.getTableData();
|
|
|
- },
|
|
|
- custom_apply_type(newval){
|
|
|
- this.page_no = 1;
|
|
|
- this.getTableData();
|
|
|
- }
|
|
|
- },
|
|
|
+ watch: {},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
this.tableColums = tableColums(1);
|
|
@@ -180,7 +215,7 @@ export default {
|
|
|
ApplyStatus:this.custom_apply_type
|
|
|
})
|
|
|
: await customInterence.trialList({
|
|
|
- PageSize: 10,
|
|
|
+ PageSize: this.pageSize,
|
|
|
CurrentIndex: this.page_no,
|
|
|
SourceType: this.activeName == 2 ? "中文官网" : this.activeName == 3 ? "英文官网" : "",
|
|
|
KeyWord: this.search_txt,
|
|
@@ -198,6 +233,13 @@ export default {
|
|
|
this.activeName = item.type;
|
|
|
this.tableColums = tableColums(this.activeName);
|
|
|
}
|
|
|
+ //重置筛选项
|
|
|
+ this.search_txt=''
|
|
|
+ this.custom_type=[]
|
|
|
+ this.custom_apply_type=[]
|
|
|
+ this.date_range=[]
|
|
|
+ this.group_type=''
|
|
|
+
|
|
|
this.page_no = 1;
|
|
|
this.getTableData();
|
|
|
},
|
|
@@ -236,10 +278,10 @@ export default {
|
|
|
this.isRead = true;
|
|
|
},
|
|
|
/* 关闭阅读报告弹窗 */
|
|
|
- cancelRead() {
|
|
|
- this.readTit = '阅读报告列表';
|
|
|
- this.isRead = false;
|
|
|
- },
|
|
|
+ cancelRead() {
|
|
|
+ this.readTit = '阅读报告列表';
|
|
|
+ this.isRead = false;
|
|
|
+ },
|
|
|
// 移动
|
|
|
moveHandle(item) {
|
|
|
this.dealObj = item;
|
|
@@ -269,12 +311,36 @@ export default {
|
|
|
}).catch(() => {
|
|
|
|
|
|
});
|
|
|
+ },
|
|
|
+ //打开标记分组弹窗
|
|
|
+ handleChooseGroup(){
|
|
|
+ this.isChooseGroupDialogShow = true
|
|
|
+ },
|
|
|
+ //标记分组
|
|
|
+ chooseGroup(){
|
|
|
+ if(!this.choosed_group){
|
|
|
+ this.$message.warning('请选择分组')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //请求接口
|
|
|
+ //then
|
|
|
+ this.$message.success('标记分组成功')
|
|
|
+ this.isChooseGroupDialogShow = false
|
|
|
+ this.choosed_group=''
|
|
|
}
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-<style scoped lang="less">
|
|
|
+<style lang="scss">
|
|
|
+.container-userapplication{
|
|
|
+ .mx-datepicker{
|
|
|
+ width:200px !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|
|
|
+<style scoped lang="scss">
|
|
|
.container-userapplication {
|
|
|
+ min-width: 1500px;
|
|
|
.userapplication-top {
|
|
|
display:flex;
|
|
|
align-items:center;
|
|
@@ -305,10 +371,15 @@ export default {
|
|
|
color: #409eff;
|
|
|
border-radius: 4px;
|
|
|
margin-right: 20px;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
.export-select {
|
|
|
display: flex;
|
|
|
+ flex: 1;
|
|
|
+ justify-content: flex-end;
|
|
|
+ align-items: flex-start;
|
|
|
+ gap: 10px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|