Commit 1d0f9da3 by 胡悦

修改

1 parent 085db1d3
...@@ -13,11 +13,11 @@ import { Http } from 'glsx-common' ...@@ -13,11 +13,11 @@ import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function (isEnv = true) {
// console.log(1111111) // console.log(1111111)
if (isEnv) { // if (isEnv) {
let { request } = cfg // let { request } = cfg
Object.assign(request, { timeout }) // Object.assign(request, { timeout })
return Promise.resolve(cfg) // return Promise.resolve(cfg)
} // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config') return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
> >
<div slot="staffName" slot-scope="scope"> <div slot="staffName" slot-scope="scope">
<span>{{scope.scope.staffName}}</span> <span>{{scope.scope.staffName}}</span>
<span class="staff-title">{{scope.scope.staffTitle}}</span> <span class="staff-title" v-show="scope.scope.staffTitle">{{scope.scope.staffTitle}}</span>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -168,11 +168,11 @@ export default { ...@@ -168,11 +168,11 @@ export default {
onHidePopover() { onHidePopover() {
this.popoverVisible = false this.popoverVisible = false
}, },
listDepartmentTree(isHavCustomer) { listDepartmentTree(isFollowerStaff) {
const params = { addChildrensFlag: true } const params = { addChildrensFlag: true }
this.loading = true this.loading = true
params.isHavCustomer = true params.isHavCustomer = true
params.isHavCustomer = isHavCustomer params.isFollowerStaff = isFollowerStaff
this.$apis.customerTransform.listDepartmentTree(params).then(res => { this.$apis.customerTransform.listDepartmentTree(params).then(res => {
console.log(res) console.log(res)
this.loading = false this.loading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!