diff --git a/commons/utils/storageManage.js b/commons/utils/storageManage.js index 690d214..1f60dcf 100644 --- a/commons/utils/storageManage.js +++ b/commons/utils/storageManage.js @@ -34,9 +34,11 @@ const model = { // 1. 清空app级别缓存。 Object.keys(appCache).forEach(k => appCache[k] = null) const merchantName=uni.getStorageSync('merchantName') + const MerchantId=uni.getStorageSync('MerchantId') let envName = model.env() // 获取到当前的环境变量 uni.clearStorageSync() // 清除所有的缓存信息 uni.setStorageSync('merchantName',merchantName) + uni.setStorageSync('MerchantId',MerchantId) model.env(envName) // 重置env }, diff --git a/components/JeepayNavigation/JeepayNavigation.vue b/components/JeepayNavigation/JeepayNavigation.vue index 43f8845..ae0f0d3 100644 --- a/components/JeepayNavigation/JeepayNavigation.vue +++ b/components/JeepayNavigation/JeepayNavigation.vue @@ -42,7 +42,9 @@ import { reactive, ref, computed } from "vue" import go from "@/commons/utils/go.js" import ent from '@/commons/utils/ent.js' - + import { + hasPermission + } from '@/commons/utils/hasPermission.js'; // 定义组件参数 const props = defineProps({ //显示类型: 支持 grid-宫格 list-列表 @@ -59,7 +61,9 @@ const props = defineProps({ }) // 点击事件 -function clickFunc(nav) { +async function clickFunc(nav) { +let res =await hasPermission('允许查看经营数据') +console.log(res,'调试11111') // 包含回调事件 if (nav.clickFunc) { return nav.clickFunc(nav) diff --git a/http/yskApi/http.js b/http/yskApi/http.js index e09d557..573c932 100644 --- a/http/yskApi/http.js +++ b/http/yskApi/http.js @@ -16,10 +16,10 @@ import { import infoBox from "@/commons/utils/infoBox.js" import go from '@/commons/utils/go.js'; // 测试服 -let baseUrl = 'https://admintestpapi.sxczgkj.cn' +// let baseUrl = 'https://admintestpapi.sxczgkj.cn' // 王伟本地测 // let baseUrl = '/ww' -// let baseUrl = 'http://192.168.1.15:8000' +let baseUrl = 'http://192.168.1.15:8000' // 多少 ms 以内, 不提示loading const loadingShowTime = 200 @@ -64,7 +64,6 @@ function commonsProcess(showLoading, httpReqCallback) { return httpReqCallback().then((httpData) => { reqFinishFunc(); // 请求完毕的动作 -console.log(httpData,'调试1') // 从http响应数据中解构响应数据 [ 响应码、 bodyData ] let { statusCode, diff --git a/http/yskApi/requestAll.js b/http/yskApi/requestAll.js index e24e07c..3b9dcd2 100644 --- a/http/yskApi/requestAll.js +++ b/http/yskApi/requestAll.js @@ -220,10 +220,11 @@ export function callTablecall(data) { }); } // 获取员工列表 -export function rolesGet() { +export function rolesGet(params) { return request({ url: `/api/tbPlussShopStaff`, - method: "get" + method: "get", + params }); } // 删除员工 diff --git a/pagePrinter/add-printer/add-printer.vue b/pagePrinter/add-printer/add-printer.vue index a5b4a82..76bfb9e 100644 --- a/pagePrinter/add-printer/add-printer.vue +++ b/pagePrinter/add-printer/add-printer.vue @@ -43,7 +43,7 @@ - 分类打印 + 分类打印(仅打印制作单[厨房])