Commit b6a2840c by 胡悦

合并

2 parents b773cd75 8bc0f8ff
{ {
"name": "custom", "name": "newcustom",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http2 } from '@/main'
//获取数据概览上方的数据 /rop-scrm-datahub //获取数据概览上方的数据 /rop-scrm-datahub
export function getDataOverview(params){ export function getDataOverview(params){
params.method='entmicro.api.Customer.customer.view.data' params.method='entmicro.api.Customer.customer.view.data'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
//获取数据概览下方柱状图的数据 //获取数据概览下方柱状图的数据
export function getDataOverviewBarMap(params){ export function getDataOverviewBarMap(params){
params.method='entmicro.api.customer.view.chart' params.method='entmicro.api.customer.view.chart'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http2,http3 } from '@/main'
export function getTableList (params){ export function getTableList (params){
params.method='entmicro.api.customer.base.page' params.method='entmicro.api.customer.base.page'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
} }
export function syncCustomerBase(params){ export function syncCustomerBase(params){
params.method='entmicro.api.synchro.syncCustomerBase' params.method='entmicro.api.synchro.syncCustomerBase'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
} }
export function getTableDetail(params){ export function getTableDetail(params){
params.method='entmicro.api.customer.base.detail' params.method='entmicro.api.customer.base.detail'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
} }
export function getClientTableDetail(params){ export function getClientTableDetail(params){
params.method='entmicro.api.customer.detail' params.method='entmicro.api.customer.detail'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
// 客户群的客户列表获取分页数据接口 // 客户群的客户列表获取分页数据接口
export function getDetailTableList(params){ export function getDetailTableList(params){
params.method='entmicro.api.customer.base.cust.page' params.method='entmicro.api.customer.base.cust.page'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
*/ */
export function getStatus(params) { export function getStatus(params) {
params.method = 'scrm.api.work.wechat.access.status' params.method = 'scrm.api.work.wechat.access.status'
return http({ return http3({
url: '/rop-scrm-wechat/router', url: '/rop-scrm-wechat/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -76,7 +76,7 @@ export function getStatus(params) { ...@@ -76,7 +76,7 @@ export function getStatus(params) {
// POST /router/entmicro.api.customer.base.staff.page/1.0.0 // POST /router/entmicro.api.customer.base.staff.page/1.0.0
export function getDetailStaffTableList(params){ export function getDetailStaffTableList(params){
params.method='entmicro.api.customer.base.staff.page' params.method='entmicro.api.customer.base.staff.page'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -89,7 +89,7 @@ export function getDetailStaffTableList(params){ ...@@ -89,7 +89,7 @@ export function getDetailStaffTableList(params){
*/ */
export function getDetailQuitTableList(params){ export function getDetailQuitTableList(params){
params.method='entmicro.api.customer.base.quit.cust.page' params.method='entmicro.api.customer.base.quit.cust.page'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){ ...@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){
*/ */
export function getDetailPotentialTableList(params){ export function getDetailPotentialTableList(params){
params.method='entmicro.api.customer.base.potential.cust.page' params.method='entmicro.api.customer.base.potential.cust.page'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){ ...@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){
//客户群管理(群聊管理)导出 //客户群管理(群聊管理)导出
export function clientGroupExportApi(params){ export function clientGroupExportApi(params){
params.method=`entmicro.api.customer.base.list.export` params.method=`entmicro.api.customer.base.list.export`
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){ ...@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){
// 全部客户导出 // 全部客户导出
export function clientExportApi(params){ export function clientExportApi(params){
params.method=`entmicro.api.customer.base.cust.export` params.method=`entmicro.api.customer.base.cust.export`
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -132,7 +132,7 @@ export function clientExportApi(params){ ...@@ -132,7 +132,7 @@ export function clientExportApi(params){
//跟进员工导出 //跟进员工导出
export function followEmployeeExportApi(params){ export function followEmployeeExportApi(params){
params.method=`entmicro.api.customer.base.staff.export` params.method=`entmicro.api.customer.base.staff.export`
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){ ...@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){
//退群客户导出 //退群客户导出
export function leaveGroupExportApi(params){ export function leaveGroupExportApi(params){
params.method=`entmicro.api.customer.base.quit.export` params.method=`entmicro.api.customer.base.quit.export`
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){ ...@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){
export function potentialClientExportApi(params){ export function potentialClientExportApi(params){
params.method=`entmicro.api.customer.base.potential.export` params.method=`entmicro.api.customer.base.potential.export`
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http,http2 } from '@/main'
//const commonUrl='&format=json&appKey=48e5e13229b82c1b4e6e8c96151f0637&v=1.0.*×tamp=1654487354&source=sub-client-custom&sign=sdf9787dfs87987sf9879sdf87sdf' //const commonUrl='&format=json&appKey=48e5e13229b82c1b4e6e8c96151f0637&v=1.0.*×tamp=1654487354&source=sub-client-custom&sign=sdf9787dfs87987sf9879sdf87sdf'
//获取客户列表内容 //获取客户列表内容
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
export function getAllTagTree (params){ export function getAllTagTree (params){
params.method='scrm.api.datahub.label.querylabeltree' // params.method='scrm.api.datahub.label.querylabeltree'
// params.method='scrm.api.datahub.labelgroup.queryLabelTree' params.method='scrm.api.datahub.labelgroup.queryLabelTree'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop" // params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
// params.timestamp=new Date().getTime() // params.timestamp=new Date().getTime()
// +'?method=org.ore.api.customer.page' // +'?method=org.ore.api.customer.page'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
} }
export function syncCustomer(params){ export function syncCustomer(params){
params.method='entmicro.api.synchro.syncCustomer' params.method='entmicro.api.synchro.syncCustomer'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
params.method='entmicro.api.customer.detail' params.method='entmicro.api.customer.detail'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop" // params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
*/ */
export function getDictionaryFun(params){ export function getDictionaryFun(params){
params.method='entmicro.api.common.dictdata.list' params.method='entmicro.api.common.dictdata.list'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
//客户信息管理导出 //客户信息管理导出
export function clientManageExportApi(params){ export function clientManageExportApi(params){
params.method=`entmicro.api.customer.list.export` params.method=`entmicro.api.customer.list.export`
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http2, http3 } from '@/main'
const URL = '/rop-scrm-entmicro/router' const URL = '/rop-scrm-entmicro/router'
const PATH = 'entmicro.api.one.template.' const PATH = 'entmicro.api.one.template.'
const WURL = '/rop-scrm-wechat/router' const WURL = '/rop-scrm-wechat/router'
...@@ -14,7 +14,7 @@ const PATH2 = 'entmicro.api.group.' ...@@ -14,7 +14,7 @@ const PATH2 = 'entmicro.api.group.'
const templateList = params => { const templateList = params => {
params.method = `${PATH}page` params.method = `${PATH}page`
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -24,7 +24,7 @@ const templateList = params => { ...@@ -24,7 +24,7 @@ const templateList = params => {
const insert = params => { const insert = params => {
params.method = `${PATH}insert` params.method = `${PATH}insert`
return http({ return http2({
url: URL, url: URL,
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -34,7 +34,7 @@ const insert = params => { ...@@ -34,7 +34,7 @@ const insert = params => {
const update = params => { const update = params => {
params.method = `${PATH}update` params.method = `${PATH}update`
return http({ return http2({
url: URL, url: URL,
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -44,7 +44,7 @@ const update = params => { ...@@ -44,7 +44,7 @@ const update = params => {
const detail = params => { const detail = params => {
params.method = `${PATH}detail` params.method = `${PATH}detail`
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -54,7 +54,7 @@ const detail = params => { ...@@ -54,7 +54,7 @@ const detail = params => {
const status = params => { const status = params => {
params.method = `${PATH}status` params.method = `${PATH}status`
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -64,7 +64,7 @@ const status = params => { ...@@ -64,7 +64,7 @@ const status = params => {
const listDepartmentTree = params => { const listDepartmentTree = params => {
params.method = 'entmicro.api.department.listDepartmentTree' params.method = 'entmicro.api.department.listDepartmentTree'
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -74,7 +74,7 @@ const listDepartmentTree = params => { ...@@ -74,7 +74,7 @@ const listDepartmentTree = params => {
const nameVaild = params => { const nameVaild = params => {
params.method = 'entmicro.api.one.template.name.valid' params.method = 'entmicro.api.one.template.name.valid'
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -84,7 +84,7 @@ const nameVaild = params => { ...@@ -84,7 +84,7 @@ const nameVaild = params => {
const updateNameVaild = params => { const updateNameVaild = params => {
params.method = 'entmicro.api.one.template.name.update.valid' params.method = 'entmicro.api.one.template.name.update.valid'
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -94,7 +94,7 @@ const updateNameVaild = params => { ...@@ -94,7 +94,7 @@ const updateNameVaild = params => {
const getStatus = params => { const getStatus = params => {
params.method = 'scrm.api.work.wechat.access.status' params.method = 'scrm.api.work.wechat.access.status'
return http({ return http3({
url: WURL, url: WURL,
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -103,8 +103,8 @@ const getStatus = params => { ...@@ -103,8 +103,8 @@ const getStatus = params => {
} }
//一客一群详情页 //一客一群详情页
const getListApi = params => { const getListApi = params => {
params.method = `${PATH}detail` params.method = `${PATH}page`
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -114,7 +114,7 @@ const getListApi = params => { ...@@ -114,7 +114,7 @@ const getListApi = params => {
const customerList = params => { const customerList = params => {
params.method = `${PATH2}template.customer.page` params.method = `${PATH2}template.customer.page`
return http({ return http2({
url: URL, url: URL,
method: 'GET', method: 'GET',
data: params, data: params,
...@@ -124,7 +124,7 @@ const customerList = params => { ...@@ -124,7 +124,7 @@ const customerList = params => {
const getFollower = params => { const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage' params.method = 'entmicro.api.staff.listFollowerStaffByPage'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http2 } from '@/main'
//计算是第几次接触该页面 //计算是第几次接触该页面
export function getLoginCount (params){ export function getLoginCount (params){
params.method='entmicro.api.common.findLoginCount' params.method='entmicro.api.common.findLoginCount'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
import { http } from '@/main' import { http } from '@/main'
export function getTableList (params){ export function getTableList (params){
params.method='scrm.api.datahub.label.querylabeltree' // params.method='scrm.api.datahub.label.querylabeltree'
// params.method='scrm.api.datahub.labelgroup.queryLabelTree' params.method='scrm.api.datahub.labelgroup.queryLabelTree'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
} }
//计算表格上面的数量 //计算表格上面的数量
export function getTableTagNum(params){ export function getTableTagNum(params){
params.method='scrm.api.datahub.label.queryLabelCount' // params.method='scrm.api.datahub.label.queryLabelCount'
// params.method='scrm.api.datahub.labelgroup.queryLabelCount' params.method='scrm.api.datahub.labelgroup.queryLabelCount'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
} }
export function newAddTag(params){ export function newAddTag(params){
params.method='scrm.api.datahub.label.addlabel' // params.method='scrm.api.datahub.label.addlabel'
// params.method='scrm.api.datahub.labelgroup.addLabel' params.method='scrm.api.datahub.labelgroup.addLabel'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
} }
//修改标签 //修改标签
export function updateTag(params){ export function updateTag(params){
params.method='scrm.api.datahub.label.updatelabel' // params.method='scrm.api.datahub.label.updatelabel'
// params.method='scrm.api.datahub.labelgroup.updateLabel' params.method='scrm.api.datahub.labelgroup.updateLabel'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
} }
//获取单条数据labelList数组 //获取单条数据labelList数组
export function queryLabelListByGroupId(params){ export function queryLabelListByGroupId(params){
params.method='scrm.api.datahub.label.queryLabelListByGroupId' // params.method='scrm.api.datahub.label.queryLabelListByGroupId'
// params.method='scrm.api.datahub.labelgroup.queryLabelListByGroupId' params.method='scrm.api.datahub.labelgroup.queryLabelListByGroupId'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
......
...@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) { ...@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) {
} }
// https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base // https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base
// https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config // https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config
return new Http({request:{timeout:3000}}).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config') return new Http({request:{timeout:3000}}).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -42,4 +42,6 @@ Object.keys(filters).forEach(key => { ...@@ -42,4 +42,6 @@ Object.keys(filters).forEach(key => {
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params)
export const http3 = params => Vue.prototype.$http3(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
...@@ -13,12 +13,14 @@ let routes = [] ...@@ -13,12 +13,14 @@ let routes = []
let router = null let router = null
let instance = null let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) { export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch)//globalState.configSwitch const { response, request,request2,request3, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch)//globalState.configSwitch
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http3 = new common.Http({ response, request: request3, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
......
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
this.$message.closeAll() this.$message.closeAll()
}, },
mounted() { mounted() {
this.wxTips() this.wxTips()
}, },
methods: { methods: {
jumpWx() { jumpWx() {
......
...@@ -10,8 +10,20 @@ ...@@ -10,8 +10,20 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-box"> <div class="table-box">
<GLTable v-if="dialogVisible" ref="table" :layout="layout" :tableData="tableData" :hasNum="false" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable" @row-click="rowClick"></GLTable> <GLTable
<div class="form-tips">必须配置至少1个跟进专员</div> v-if="dialogVisible"
ref="table"
:layout="layout"
:tableData="tableData"
:hasNum="false"
:tableTotal="tableTotal"
:pageConf="pageConf"
:tableParams="tableParams"
@refreshTable="handleSearch"
@selectionTable="selectionTable"
@row-click="rowClick"
></GLTable>
<div class="form-tips">必须配置至少1个跟进专员</div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">新增专员</a> <a class="dialog-jump" @click="jumpUrl">新增专员</a>
...@@ -55,7 +67,7 @@ export default { ...@@ -55,7 +67,7 @@ export default {
} }
] ]
}, },
layout: '', layout: 'pager',
tableData: [], tableData: [],
tableTotal: 0, tableTotal: 0,
selectItem: [], selectItem: [],
...@@ -80,7 +92,7 @@ export default { ...@@ -80,7 +92,7 @@ export default {
} }
this.tableData.forEach(item => { this.tableData.forEach(item => {
this.selectEmp.forEach((itm, index) => { this.selectEmp.forEach((itm, index) => {
if (itm.staffId == item.relationId) { if (itm.staffId == item.id) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item) this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
this.selectEmp.splice(index, 1) this.selectEmp.splice(index, 1)
} }
...@@ -109,11 +121,11 @@ export default { ...@@ -109,11 +121,11 @@ export default {
rowClick(row) { rowClick(row) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(row) this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(row)
}, },
handleCancel: utils.debounce(function () { handleCancel: utils.debounce(function() {
this.dialogVisible = false this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection() this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, 300), }, 300),
handleSelect: utils.debounce(function () { handleSelect: utils.debounce(function() {
this.loading = true this.loading = true
let selectEmp = this.selectEmp.map(item => { let selectEmp = this.selectEmp.map(item => {
return { return {
...@@ -137,7 +149,7 @@ export default { ...@@ -137,7 +149,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.dialog-jump { .dialog-jump {
color: #5850FF; color: #5850ff;
float: left; float: left;
line-height: 24px; line-height: 24px;
text-decoration: underline; text-decoration: underline;
......
...@@ -437,14 +437,6 @@ export default { ...@@ -437,14 +437,6 @@ export default {
}, },
setTableFinishFun(content) { setTableFinishFun(content) {
console.log('表格完成', this.$refs.tagsManage.data) console.log('表格完成', this.$refs.tagsManage.data)
// if (this.$refs.tagsManage.data.length) {
// this.$refs.tagsManage.data.forEach(item => {
// item.expande = true
// item.needShowExpande = false
// })
// } else {
// this.$refs.tagsManage.setTableHeightFun()
// }
this.$refs.tagsManage.data.length ? (this.$refs.tagsManage.tableHeightValues = '') : this.$refs.tagsManage.setTableHeightFun() this.$refs.tagsManage.data.length ? (this.$refs.tagsManage.tableHeightValues = '') : this.$refs.tagsManage.setTableHeightFun()
}, },
getLoginCountFun() { getLoginCountFun() {
...@@ -605,7 +597,6 @@ export default { ...@@ -605,7 +597,6 @@ export default {
if (!res) { if (!res) {
return return
} }
// console.log(res, 'res信息')
if (res.data.code == 0) { if (res.data.code == 0) {
this.$message.success('添加成功') this.$message.success('添加成功')
this.handleClose() this.handleClose()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!