|
|
@@ -302,6 +302,21 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="会员状态" prop="externalStatus">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.externalStatus"
|
|
|
+ placeholder="请选择会员状态"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ filterable>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in externalStatusOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@@ -377,7 +392,19 @@
|
|
|
:key="tableKey">
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column label="记录编号" align="center" prop="logId"/>
|
|
|
- <el-table-column label="客户昵称" align="center" prop="externalUserName" v-if="queryParams.sendType == 2"/>
|
|
|
+ <el-table-column label="客户昵称" align="center" prop="externalUserName" v-if="queryParams.sendType == 2">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.externalUserName }}</span>
|
|
|
+ <i
|
|
|
+ ref="copyIcon"
|
|
|
+ class="el-icon-document-copy"
|
|
|
+ style="margin-left: 5px; cursor: pointer; color: #409EFF;"
|
|
|
+ @click="copyText(scope.row.externalUserName, $event)"
|
|
|
+ title="点击复制"
|
|
|
+ ></i>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<!–
|
|
|
<el-table-column label="会员ID" align="center" prop="userId" v-if="queryParams.sendType == 1"/>
|
|
|
@@ -458,6 +485,11 @@
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="会员状态" align="center" prop="externalStatus">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="externalStatusOptions" :value="scope.row.externalStatus"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
@@ -739,6 +771,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import ClipboardJS from 'clipboard';
|
|
|
import {
|
|
|
addCourseWatchLog,
|
|
|
delCourseWatchLog,
|
|
|
@@ -823,6 +856,7 @@ export default {
|
|
|
videoList: [],
|
|
|
myQwUserList: [],
|
|
|
logTypeOptions: [],
|
|
|
+ externalStatusOptions:[],
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 导出遮罩层
|
|
|
@@ -914,6 +948,7 @@ export default {
|
|
|
videoId: null,
|
|
|
nickName: null,
|
|
|
logType: 2,
|
|
|
+ externalStatus:null,
|
|
|
qwExternalContactId: null,
|
|
|
externalUserName:null,
|
|
|
duration: null,
|
|
|
@@ -965,6 +1000,9 @@ export default {
|
|
|
});
|
|
|
this.getDicts("sys_course_project").then(response => {
|
|
|
this.projectOptions = response.data;
|
|
|
+ });
|
|
|
+ this.getDicts("sys_qw_external_contact_status").then(response => {
|
|
|
+ this.externalStatusOptions = response.data;
|
|
|
});
|
|
|
// 查询营期名称
|
|
|
listPeriodLabel().then(response => {
|
|
|
@@ -980,6 +1018,21 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ copyText(text, event) {
|
|
|
+ const clipboard = new ClipboardJS(event.currentTarget, {
|
|
|
+ text: () => text,
|
|
|
+ });
|
|
|
+
|
|
|
+ clipboard.on('success', (e) => {
|
|
|
+ this.$message.success('复制成功');
|
|
|
+ clipboard.destroy();
|
|
|
+ });
|
|
|
+
|
|
|
+ clipboard.on('error', (e) => {
|
|
|
+ this.$message.error('复制失败,请手动复制');
|
|
|
+ clipboard.destroy();
|
|
|
+ });
|
|
|
+ },
|
|
|
setToday(){
|
|
|
const today = new Date();
|
|
|
const todayStart = new Date(today - 60*60*24*7*1000) ;
|
|
|
@@ -1296,6 +1349,7 @@ export default {
|
|
|
userId: null,
|
|
|
videoId: null,
|
|
|
logType: null,
|
|
|
+ externalStatus:null,
|
|
|
createTime: null,
|
|
|
updateTime: null,
|
|
|
qwExternalContactId: null,
|
|
|
@@ -1854,3 +1908,8 @@ export default {
|
|
|
color: #606266;
|
|
|
}
|
|
|
</style>
|
|
|
+<style scoped>
|
|
|
+.el-icon-document-copy:hover {
|
|
|
+ color: #66b1ff; /* 悬停时的颜色 */
|
|
|
+}
|
|
|
+</style>
|