Commit 25547efa authored by 张伯涛's avatar 张伯涛

所属商家取值修改

parent aeea39f0
......@@ -564,10 +564,8 @@ export default {
queryParams: {
page: 1,
rows: 10,
username: '',
name: '',
flag: '',
identity: '',
phone: '',
deptId: ''
},
// 表单校验
......@@ -836,15 +834,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
page: 1,
rows: 10,
username: '',
name: '',
flag: '',
identity: '',
deptId: ''
}
this.queryParams.page = 1,
this.queryParams.rows = 10,
this.queryParams.name = '',
this.queryParams.phone = '',
this.roleFunction()
this.handleQuery()
},
......
......@@ -287,12 +287,8 @@ export default {
queryParams: {
page: 1,
rows: 10,
bannerPicture: undefined,
bannerName: undefined,
type: undefined,
weight: undefined,
linkUrl: undefined,
flag: '',
bannerName: '',
linkUrl: '',
unitId: ''
},
showImg: false,
......@@ -366,6 +362,11 @@ export default {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
if (res.data && res.data.length > 0) {
this.queryParams.unitId = res.data[0].businessId
} else {
this.queryParams.unitId = ''
}
}
})
},
......@@ -382,7 +383,7 @@ export default {
if (this.roles[0].roleKey !== 'admin') {
console.log('this.roles', this.roles)
this.queryShop = false
this.queryParams.unitId = this.deptId
// this.queryParams.unitId = this.deptId
}
},
// 封面图片预览
......@@ -477,17 +478,10 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
page: 1,
rows: 10,
bannerPicture: undefined,
bannerName: undefined,
type: undefined,
weight: undefined,
linkUrl: undefined,
flag: '',
unitId: ''
}
this.queryParams.page = 1,
this.queryParams.rows = 10,
this.queryParams.bannerName = '',
this.queryParams.linkUrl = '',
this.roleFunction()
this.handleQuery()
},
......
......@@ -952,6 +952,11 @@ export default {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
if (res.data && res.data.length > 0) {
this.queryParams.unitId = res.data[0].businessId
} else {
this.queryParams.unitId = ''
}
}
})
},
......@@ -959,7 +964,7 @@ export default {
if (this.roles[0].roleKey !== 'admin') {
console.log('this.roles', this.roles)
this.queryShop = false
this.queryParams.unitId = this.deptId
// this.queryParams.unitId = this.deptId
}
},
/** 取消按钮操作 */
......@@ -1352,12 +1357,9 @@ export default {
resetQuery() {
this.dateRangeBegin = []
this.dateRangeEnd = []
this.queryParams = {
page: 1,
rows: 10,
unitId: '',
title: ''
}
this.queryParams.page = 1,
this.queryParams.rows = 10,
this.queryParams.title = '',
this.roleFunction()
this.loadData()
},
......
......@@ -383,7 +383,6 @@ export default {
queryParams: {
page: 1,
rows: 10,
flag: '',
unitId: '',
title: ''
},
......@@ -520,7 +519,7 @@ export default {
if (this.roles[0].roleKey !== 'admin') {
console.log('this.roles', this.roles)
this.queryShop = false
this.queryParams.unitId = this.deptId
// this.queryParams.unitId = this.deptId
}
},
// 获取所有 部门信息
......@@ -528,6 +527,11 @@ export default {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
if (res.data && res.data.length > 0) {
this.queryParams.unitId = res.data[0].businessId
} else {
this.queryParams.unitId = ''
}
}
})
},
......@@ -570,14 +574,9 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
page: 1,
rows: 10,
flag: '',
unitId: '',
title: ''
}
this.queryParams.page = 1,
this.queryParams.rows = 10,
this.queryParams.title = '',
this.dateRange = []
this.roleFunction()
this.loadData()
......
......@@ -385,7 +385,7 @@ export default {
if (this.roles[0].roleKey !== 'admin') {
console.log('this.roles', this.roles)
this.queryShop = false
this.queryParams.unitId = this.deptId
// this.queryParams.unitId = this.deptId
}
},
// 获取所有部门信息
......@@ -393,6 +393,11 @@ export default {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
if (res.data && res.data.length > 0) {
this.queryParams.unitId = res.data[0].businessId
} else {
this.queryParams.unitId = ''
}
}
})
},
......@@ -435,14 +440,9 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
page: 1,
rows: 10,
flag: '',
unitId: '',
videoTitle: ''
}
this.queryParams.page = 1,
this.queryParams.rows = 10,
this.queryParams.videoTitle = '',
this.dateRange = []
this.roleFunction()
this.loadData()
......
......@@ -61,7 +61,7 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://106.3.99.36:20081/`,
// target: `http://192.168.1.23:8090/`, // 飞龙后端
target: `http://192.168.10.10:8099/`, // 奕霖后端
target: `http://192.168.10.10:8099/`,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment