Commit cdf2ee76 by 李伟康

提交

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