diff --git a/config/index.js b/config/index.js index 0cca9a8..eb173e0 100644 --- a/config/index.js +++ b/config/index.js @@ -26,9 +26,9 @@ module.exports = { assetsPublicPath: "/", proxyTable: { "/api": { - // target: "http://192.168.31.214:8084/", //设置你调用的接口域名和端口号 别忘了加http 本地 + target: "http://192.168.31.214:8084/", //设置你调用的接口域名和端口号 别忘了加http 本地 //target: "http://192.168.31.209:8084/", //设置你调用的接口域名和端口号 别忘了加http 本地 - target: "http://192.168.31.201:8084/", //设置你调用的接口域名和端口号 别忘了加http 本地 + // target: "http://192.168.31.201:8084/", //设置你调用的接口域名和端口号 别忘了加http 本地 // target: "http://139.9.185.131:8098/", //设置你调用的接口域名和端口号 别忘了加http 天懿达正式 // target: "http://139.9.58.205:8084/", //设置你调用的接口域名和端口号 别忘了加http 天懿达正式华为云 // target: "http://139.9.185.131:9094/", //设置你调用的接口域名和端口号 别忘了加http 盛联 @@ -46,7 +46,7 @@ module.exports = { } }, // Various Dev Server settingsss - host: "192.168.31.194", // can be overwritten by process.env.HOST + host: "192.168.31.193", // can be overwritten by process.env.HOST port: 3000, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, diff --git a/src/api/statistics.js b/src/api/statistics.js index 0b67179..7572b8d 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -61,7 +61,7 @@ export function dayStatistic(params) { // 当日负卡金疗程记录查询 export function dayStatisticTreatment(params) { return service({ - url: "/api" + "/demay/ssm/negativeCard/CourseDayStatistic", + url: "/api" + "/demay/ssm/negativeCard/CourseDayStatistics", method: "post", data: params }); @@ -69,7 +69,7 @@ export function dayStatisticTreatment(params) { //当日负卡金充值记录查询 export function dayStatisticRecharge(params) { return service({ - url: "/api" + "/demay/ssm/negativeCard/rechargeDayStatistic", + url: "/api" + "/demay/ssm/negativeCard/rechargeDayStatistics", method: "post", data: params }); diff --git a/src/api/storeManage.js b/src/api/storeManage.js index ec08dd8..a306c32 100644 --- a/src/api/storeManage.js +++ b/src/api/storeManage.js @@ -5,6 +5,24 @@ import { localPath } from "./api.js"; +// 获取某门店参数 +export function allStores(data){ + return service({ + url: "/api" + '/demay/ssm/storePara/list', + method: "post", + data + }) +} + +// 同步总店数据 +export function totalData(params){ + return service({ + url: "/api" + '/demay/ssm/storePara/update1', + method: 'post', + params: params + }) +} + // 添加门店参数 export function addstorePara(params) { return service({ @@ -27,7 +45,9 @@ export function storeParaList(params) { method: "post", data: params }); -} // 修改门店参数 +} + +// 修改门店参数 export function editstorePara(params) { return service({ url: "/api" + "/demay/ssm/storePara/update", diff --git a/src/components/staffList/admin/index.vue b/src/components/staffList/admin/index.vue index 1cd86d1..d0d0370 100644 --- a/src/components/staffList/admin/index.vue +++ b/src/components/staffList/admin/index.vue @@ -248,7 +248,7 @@ export default { // arr.push(item); // } // }); - this.staffList = this.noRepeat(arr); + if(arr.length)this.staffList = this.noRepeat(arr); }, //获取员工数据 //获取数据 diff --git a/src/components/staffList/manager/index.vue b/src/components/staffList/manager/index.vue index 79c56d5..561c381 100644 --- a/src/components/staffList/manager/index.vue +++ b/src/components/staffList/manager/index.vue @@ -246,7 +246,7 @@ export default { // arr.push(item); // } // }); - this.staffList = this.noRepeat(arr); + if(arr.length)this.staffList = this.noRepeat(arr); }, //获取高管数据 //获取数据 diff --git a/src/components/staffList/staff/index.vue b/src/components/staffList/staff/index.vue index 6087819..e9572b2 100644 --- a/src/components/staffList/staff/index.vue +++ b/src/components/staffList/staff/index.vue @@ -127,7 +127,6 @@ export default { this.staffLists.forEach((item, index) => { if (index != 0) { number += item.ratio * 1; - console.l } this.staffLists[0].ratio = 100 - number }); @@ -146,7 +145,6 @@ export default { this.staffLists.forEach((item, index) => { if (index != 0) { number += item.ratio * 1; - console.l } this.staffLists[0].ratio = 100 - number }); @@ -200,7 +198,7 @@ export default { show(list, storeId) { this.staffLists = [...list]; this.staffLists.forEach((item) => { - if (item.id || item.staffId) { + if (item.id || item.staffId) { item.staffNames = item.brandNumber + "-" + item.staffName; } else { item.staffNames = ""; @@ -230,7 +228,6 @@ export default { }); this.$emit("staffslesData", list); - console.log("🚀 ~ file: index.vue ~ line 222 ~ confirm ~ list", list) }, //改变员工 去除未选择员工列表中的员工 changeStaff() { @@ -240,7 +237,7 @@ export default { let list = []; this.staffListCopy.forEach((items) => { if (item.id != items.id) { - list.push(items); + arr.push(items); } }); arr = list; @@ -258,8 +255,7 @@ export default { // arr.push(item); // } // }); - - this.staffList = this.noRepeat(arr); + if(arr.length){this.staffList = this.noRepeat(arr);} }, //获取员工数据 //获取数据 diff --git a/src/components/store/radio/index.vue b/src/components/store/radio/index.vue index 49192b6..484ff23 100644 --- a/src/components/store/radio/index.vue +++ b/src/components/store/radio/index.vue @@ -22,6 +22,13 @@ \ No newline at end of file diff --git a/src/pages/storeManage/storeParameters/storeParameters.vue b/src/pages/storeManage/storeParameters/storeParameters.vue index ffc31ce..23d5335 100644 --- a/src/pages/storeManage/storeParameters/storeParameters.vue +++ b/src/pages/storeManage/storeParameters/storeParameters.vue @@ -5,8 +5,9 @@
同步总店参数 修改 - 取消 + 取消 保存 + 设置分店参数
@@ -324,19 +325,26 @@ - +