Commit 59ed6172 by 前端

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

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