Commit 2767a879 by 前端

战报配置bug修复

1 parent 94ba1484
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' 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
...@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) { ...@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) {
// 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' }) // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config') return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
} }
export const config = { export const config = {
......
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
}, },
watch: { watch: {
filterText(val) { filterText(val) {
console.log(val)
this.$refs.tree.filter(val) this.$refs.tree.filter(val)
}, },
selectlist(val) { selectlist(val) {
...@@ -156,7 +157,7 @@ export default { ...@@ -156,7 +157,7 @@ export default {
}, },
filterNode(value, data) { filterNode(value, data) {
if (!value) return true if (!value) return true
return data.label.indexOf(value) !== -1 return data.name.indexOf(value) !== -1
}, },
search() {}, search() {},
handleNodeClick() { handleNodeClick() {
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
battleSetHandle() { battleSetHandle() {
if (this.setectList.length == 0) { if (this.setectList.length == 0) {
this.$message({ this.$message({
message: '请先选择专员', message: '请选择活动',
type: 'error' type: 'error'
}) })
return return
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
handlebattleConfirm() { handlebattleConfirm() {
if (this.userList.length == 0) { if (this.userList.length == 0) {
this.$message({ this.$message({
message: '请先选择专员', message: '请选择专员',
type: 'error' type: 'error'
}) })
return return
...@@ -266,10 +266,12 @@ export default { ...@@ -266,10 +266,12 @@ export default {
this.battleVisible = false this.battleVisible = false
this.handleSearch() this.handleSearch()
this.activeName = 'first' this.activeName = 'first'
this.setectList = []
} }
}) })
}, },
handlebattleClose() { handlebattleClose() {
this.setectList = []
this.battleVisible = false this.battleVisible = false
}, },
handleDetails() {}, handleDetails() {},
...@@ -282,7 +284,6 @@ export default { ...@@ -282,7 +284,6 @@ export default {
}, },
getStaffList(data) { getStaffList(data) {
this.$apis.battle.getStaffList({ id: data.activityId }).then(res => { this.$apis.battle.getStaffList({ id: data.activityId }).then(res => {
console.log(res, '00000000')
this.merchantId = res.staffs[0].merchantId this.merchantId = res.staffs[0].merchantId
this.merchantName = res.staffs[0].merchantName this.merchantName = res.staffs[0].merchantName
this.userList = res.staffs this.userList = res.staffs
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!