Commit cf54ed04 authored by 彭松's avatar 彭松

1

parent 4f392e03
VUE_APP_API_BASE_URL=http://192.168.0.98:11072 VUE_APP_API_BASE_URL=http://8.136.255.30:11072
\ No newline at end of file \ No newline at end of file
# 开发环境配置 # 开发环境配置
NODE_ENV = development NODE_ENV = development
VUE_APP_API_BASE_URL=http://192.168.0.98:11078 VUE_APP_API_BASE_URL=http://8.136.255.30:11078
#图片显示拼接 #图片显示拼接
VUE_APP_API_IMG_URL=http://192.168.0.98:11078/ VUE_APP_API_IMG_URL=http://8.136.255.30:11078/
#余林 #余林
VUE_APP_API_PHP_URL=http://192.168.0.98:8090 VUE_APP_API_PHP_URL=http://8.136.255.30:8090
#宜宾 #宜宾
#VUE_APP_API_BASE_URL=http://10.12.185.213:11072 #VUE_APP_API_BASE_URL=http://10.12.185.213:11072
#正式
VUE_APP_API_PRP_RUL=http://112.19.80.237:11007
#test
VUE_APP_API_TEST_RUL=http://8.136.255.30:80
import http from "../request/http"; import http from "../request/http";
let baseURL = process.env.VUE_APP_API_PRP_RUL let baseURL = process.env.VUE_APP_API_TEST_RUL
let proURL = process.env.VUE_APP_API_PRP_RUL;
// http://8.136.255.30/eas/customer/list
// 查询客户管理列表 // 查询客户管理列表
export function getCustomer(params) { export function getCustomer(params) {
return http.post(`${baseURL}/eas/customer/list`, params); return http.post(`${baseURL}/eas/customer/list`, params);
} }
// http://112.19.80.237:11007/basics_api/base/window/list
// 窗口列表 // 窗口列表
export function windowList(params) { export function windowList(params) {
return http.post(`${baseURL}/basics_api/base/window/list`, params); return http.post(`${proURL}/basics_api/base/window/list`, params);
} }
...@@ -13,20 +13,14 @@ ...@@ -13,20 +13,14 @@
<b>视频作品数:<i>0个</i></b> <b>视频作品数:<i>0个</i></b>
</div> </div>
<span class="topBoxFlex"> <span class="topBoxFlex">
<a-input allowClear v-model="searchName" placeholder="请输入用户姓名/手机号搜索"> <a-input allowClear v-model="searchForm.query" placeholder="请输入用户姓名/手机号搜索">
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
<a-select default-value="001"> <a-select v-model="searchForm.memberLevel">
<!-- <a-select-option <a-select-option value=""> 全部 </a-select-option>
v-for="(item, index) of selectOptions" <a-select-option v-for="(item, index) of levelList" :key="index" :value="index">
:key="index" {{ item }}
:value="item.value" </a-select-option>
>
{{ item.label }}
</a-select-option> -->
<a-select-option value="001"> 等级001 </a-select-option>
<a-select-option value="002"> 等级002 </a-select-option>
</a-select> </a-select>
<a-button type="primary">搜索</a-button> <a-button type="primary">搜索</a-button>
</span> </span>
...@@ -36,7 +30,7 @@ ...@@ -36,7 +30,7 @@
selectedRowKeys: tableSelectedKeys, selectedRowKeys: tableSelectedKeys,
onChange: onSelectChange, onChange: onSelectChange,
}" :scroll="{ y: 590 }" :pagination="tablePagination" @change="pagTableChange" :loading="tableLoading" }" :scroll="{ y: 590 }" :pagination="tablePagination" @change="pagTableChange" :loading="tableLoading"
:columns="tableHeaders" :dataSource="tableSourceData"> :columns="tableHeaders" :dataSource="tableList">
<template slot="zhenshixingming" slot-scope="text, record, index"> <template slot="zhenshixingming" slot-scope="text, record, index">
<a-button type="link" @click="openUserDetails">{{ text }}</a-button> <a-button type="link" @click="openUserDetails">{{ text }}</a-button>
</template> </template>
...@@ -51,17 +45,30 @@ ...@@ -51,17 +45,30 @@
</template> </template>
<script> <script>
import table from "@/mixins/table"; import table from "@/mixins/table";
import UserDetails from "./components/UserDetails.vue"; import UserDetails from "./components/UserDetails.vue";
import PicWorks from "./components/PicWorks.vue"; import PicWorks from "./components/PicWorks.vue";
import { import {
getCustomer getCustomer
} from "@/api/customer"; } from "@/api/customer";
export default { const levelList = {
0: '未开启',
1: '试用客户',
2: 'VIP',
3: '设计师'
}
export default {
mixins: [table], mixins: [table],
name: "PortalAdminVuePoliticsShow", name: "PortalAdminVuePoliticsShow",
data() { data() {
return { return {
levelList: levelList,
tableList: [],
searchForm: {
query: "",//姓名手机号查询条件
memberLevel: "",//会员等级查询条件
customerSrc: "",//客户来源查询条件
},
tableHeaders: [{ tableHeaders: [{
title: "序号", title: "序号",
dataIndex: "index", dataIndex: "index",
...@@ -73,48 +80,44 @@ ...@@ -73,48 +80,44 @@
{ {
title: "真实姓名", title: "真实姓名",
align: "center", align: "center",
dataIndex: "zhenshixingming", dataIndex: "custName"
scopedSlots: {
customRender: "zhenshixingming",
},
}, },
{ {
title: "联系电话", title: "联系电话",
align: "center", align: "center",
dataIndex: "lianxidianhua", dataIndex: "contactTelphone",
}, },
{ {
title: "单位名称", title: "单位名称",
align: "center", align: "center",
dataIndex: "danweimingcheng", dataIndex: "organization",
}, },
{ {
title: "图片作品数量", title: "图片作品数量",
align: "center", align: "center",
dataIndex: "tupianzuopinshuliang", dataIndex: "customerDesignPictures",
scopedSlots: {
customRender: "tupianzuopinshuliang",
},
}, },
{ {
title: "视频作品数量", title: "视频作品数量",
align: "center", align: "center",
dataIndex: "shipinzuopinshuliang", dataIndex: "customerDesignVideos",
}, },
{ {
title: "会员等级", title: "会员等级",
align: "center", align: "center",
dataIndex: "huiyuandengji", dataIndex: "memberLevel",
customRender: (text, record, index) => levelList[text],
}, },
{ {
title: "最近登录时间", title: "最近登录时间",
align: "center", align: "center",
dataIndex: "zuijingdenglushijian", dataIndex: "lastLoginTime",
}, },
{ {
title: "使用状态", title: "使用状态",
align: "center", align: "center",
dataIndex: "shiyongzhuangtai", dataIndex: "status",
customRender: (text, record, index) => text == 1 ? '正常' : '禁用',
}, },
], ],
searchName: undefined, searchName: undefined,
...@@ -126,19 +129,6 @@ ...@@ -126,19 +129,6 @@
}, },
mounted() { mounted() {
this.setMoment(); this.setMoment();
for (let key = 0; key < 20; key++) {
this.tableSourceData.push({
id: `00${key + 1}`,
zhenshixingming: `陈飞云${key + 1}`,
lianxidianhua: `13880888888`,
danweimingcheng: `宜宾人力资源与社保管理局${key + 1}`,
tupianzuopinshuliang: `1${key + 1}`,
shipinzuopinshuliang: `-- ${key + 1}`,
huiyuandengji: `vip ${key + 1}`,
zuijingdenglushijian: `2020-09-09 19:19:19`,
shiyongzhuangtai: `正常 ${key + 1}`,
});
}
}, },
created() { created() {
this.getList(); this.getList();
...@@ -157,11 +147,16 @@ ...@@ -157,11 +147,16 @@
data, data,
total total
} = res.data; } = res.data;
this.tableList = data; this.tableList = data;
this.tablePagination.total = total; this.tablePagination.total = total;
return data;
} }
}, },
//分页
changeTablePage(page) {
this.pagTableChange(page);
this.getList();
},
QueueState(type) { QueueState(type) {
switch (type) { switch (type) {
case 0: case 0:
...@@ -183,11 +178,11 @@ ...@@ -183,11 +178,11 @@
this.$refs.UserDetails.modalInfo.visible = true; this.$refs.UserDetails.modalInfo.visible = true;
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/deep/.ant-spin-container { /deep/.ant-spin-container {
display: block; display: block;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment