Commit cdf2ee76 by 李伟康

提交

1 parent 112122e4
......@@ -59,6 +59,7 @@ export default {
}
},
mounted () {
this.data = this.list || []
},
methods: {
click (tabIndex) {
......
......@@ -7,7 +7,7 @@
* @LastEditTime: 2021-06-30 11:23:25
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
import { utils } from 'glsx-common'
import { utils, Http } from 'glsx-common'
let config = require('./conf.js')
let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) {
......@@ -16,8 +16,9 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(config)
// }
let params = { moduleName: 'scrm-wx-work-psd-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params)
return new Http().get('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config')
// let params = { moduleName: 'scrm-wx-work-psd-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// return utils.getConfig(params)
}
export const cfg = {
install (vue, config) {
......
......@@ -9,7 +9,6 @@
<template v-if="groupList.length">
<tab
:list="groupList"
:updata="updata"
@change="change"
>
</tab>
......@@ -71,7 +70,6 @@ export default {
data () {
return {
groupList: [],
updata: Date.now(),
flag: false,
list: [],
pageNum: 1,
......@@ -139,7 +137,6 @@ export default {
const res = await marketingApi.getChatGroupList()
console.log(res)
this.groupList = ['全部', ...res]
this.updata = Date.now()
},
/**话术 */
async getChatLibraryList () {
......
......@@ -190,8 +190,8 @@ export default {
this.params.pushType = index == 0 ? '' : index
this.clearData()
},
confirmDate(e){
let {params} = this
confirmDate (e) {
let { params } = this
this.params = {
...params,
...e
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!