Commit 59ed6172 by 前端

店面配置区域督导接口换成新接口

1 parent 333168a3
......@@ -90,6 +90,10 @@ export function findMerchantStaffList(data) {
// return request(data, "post")
return request(data)
}
export function merchantStaffByRoleList(data) {
data.method = `${path2}merchant.staff.by.role.list`
return request(data)
}
// 隐私协议标题查询
export function getPrivacyAgreement(data) {
......
......@@ -294,7 +294,8 @@
import { deepClone } from '@/common/util'
import { getShopSetting, listByMerchantIdAndYear, shopSetting, findSellerMerchantStaffList, getResidentStaffList } from '@/api/shopConfig.js'
import { serviceGetMerchantList } from '@api/merchant'
import { findMerchantStaffList } from '@api/index'
// import { findMerchantStaffList } from '@api/index'
import { merchantStaffByRoleList } from '@api/index'
import { businessNature, sceneForShop } from '@/common/constants.js'
import { mapActions } from 'vuex'
import { rangePickerOptions_year, limitPrice } from '@/common/format'
......@@ -385,7 +386,7 @@ export default {
this.nowDay = nowDate.getDate()
this.info = this.$route.params?.info
this.getShopSetting(this.info)
this.findMerchantStaffList()
this.merchantStaffByRoleList()
this.getSelectList(this.info)
this.listByMerchantIdAndYear(this.year)
this.findSellerMerchantStaffList()
......@@ -474,8 +475,8 @@ export default {
return false
}
},
findMerchantStaffList() {
findMerchantStaffList({ merchantId: -1 }).then((result) => {
merchantStaffByRoleList() {
merchantStaffByRoleList({ roleName: '区域督导' }).then((result) => {
let copyResult = deepClone(result)
this.supervisionOptionsList = copyResult.map((item) => {
return {
......@@ -491,7 +492,7 @@ export default {
if (val.roleName == baseConfig.roleName) arr.push({
userId: val.uuid,
userName: val.staffName
})
})
})
this.serviceBossList = arr
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!