修改并优化了一些功能及bug
This commit is contained in:
@@ -70,7 +70,7 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
};
|
||||
const infoList = common_vendor.ref([
|
||||
const allMenuList = [
|
||||
{
|
||||
name: "成员管理",
|
||||
src: "/static/home_icon/chengyuangaunli.png"
|
||||
@@ -87,10 +87,10 @@ const _sfc_main = {
|
||||
name: "检查清单",
|
||||
src: "/static/home_icon/jiachaqingdan.png"
|
||||
},
|
||||
{
|
||||
name: "检查记录",
|
||||
src: "/static/home_icon/jianchajilu.png"
|
||||
},
|
||||
// {
|
||||
// name: '检查记录',
|
||||
// src: '/static/home_icon/jianchajilu.png'
|
||||
// },
|
||||
{
|
||||
name: "证件管理",
|
||||
src: "/static/home_icon/zhengjianguanli.png"
|
||||
@@ -103,12 +103,14 @@ const _sfc_main = {
|
||||
name: "隐患销号",
|
||||
src: "/static/home_icon/yinhuanxiaohao.png"
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// name: '设备登记',
|
||||
// src: '/static/home_icon/shebeidengji.png'
|
||||
// }
|
||||
]);
|
||||
];
|
||||
const commonMenuNames = ["隐患排查", "隐患销号"];
|
||||
const infoList = common_vendor.computed(() => {
|
||||
if (userInfo.role === "common") {
|
||||
return allMenuList.filter((item) => commonMenuNames.includes(item.name));
|
||||
}
|
||||
return allMenuList;
|
||||
});
|
||||
const ViewDetails = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/plandetail/plandetail?id=${item.id}`
|
||||
@@ -147,12 +149,12 @@ const _sfc_main = {
|
||||
const getCheckPlanLists = async () => {
|
||||
try {
|
||||
const res = await request_api.getCheckPlanList(checkPlanParams.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:331", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:339", res);
|
||||
if (res.code === 0) {
|
||||
checkPlanData.value = res.data.records;
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:336", error);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:344", error);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
@@ -188,13 +190,13 @@ const _sfc_main = {
|
||||
const getHiddenDangerLists = async () => {
|
||||
try {
|
||||
const res = await request_api.getHiddenDangerList(hiddenDangerParams.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:388", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:396", res);
|
||||
if (res.code === 0) {
|
||||
hiddenDangerData.value = res.data.records;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:391", hiddenDangerData.value, 1111);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:399", hiddenDangerData.value, 1111);
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:394", error);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:402", error);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
@@ -225,6 +225,8 @@
|
||||
.level-tag.data-v-1cf27b2a {
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 8rpx;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.level-minor.data-v-1cf27b2a {
|
||||
background: #F6FFED;
|
||||
|
||||
Reference in New Issue
Block a user