交办、整改责任人修改
This commit is contained in:
@@ -54,7 +54,7 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:245", "获取用户信息失败:", e);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:249", "获取用户信息失败:", e);
|
||||
try {
|
||||
const storedUserInfo = common_vendor.index.getStorageSync("userInfo");
|
||||
if (storedUserInfo) {
|
||||
@@ -69,7 +69,7 @@ const _sfc_main = {
|
||||
userInfo.phone = info.phone || "";
|
||||
}
|
||||
} catch (storageError) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:261", "从本地存储获取用户信息失败:", storageError);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:265", "从本地存储获取用户信息失败:", storageError);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -216,7 +216,7 @@ const _sfc_main = {
|
||||
initPlanExpandedState(records, { reset: true, expandFirst: true });
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:431", error);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:435", error);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
@@ -240,7 +240,7 @@ const _sfc_main = {
|
||||
common_vendor.index.showToast({ title: res.msg || "加载失败", icon: "none" });
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:454", error);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:458", error);
|
||||
common_vendor.index.showToast({ title: "加载失败", icon: "none" });
|
||||
}
|
||||
};
|
||||
@@ -282,13 +282,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:512", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:516", res);
|
||||
if (res.code === 0) {
|
||||
hiddenDangerData.value = res.data.records;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:515", hiddenDangerData.value, 1111);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:519", hiddenDangerData.value, 1111);
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:518", error);
|
||||
common_vendor.index.__f__("error", "at pages/index/index.vue:522", error);
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
@@ -314,6 +314,11 @@ const _sfc_main = {
|
||||
}
|
||||
common_vendor.index.navigateTo({ url });
|
||||
};
|
||||
const editRectification = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/hiddendanger/rectification?rectifyId=${item.rectifyId}&isEdit=1`
|
||||
});
|
||||
};
|
||||
const goAcceptance = (item) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/hiddendanger/acceptance?hazardId=${item.hazardId}&assignId=${item.assignId}&rectifyId=${item.rectifyId}`
|
||||
@@ -406,17 +411,25 @@ const _sfc_main = {
|
||||
j: common_vendor.o(($event) => viewHazardDetail(item), item.hazardId),
|
||||
k: item.statusName === "待整改" && item.canEdit
|
||||
}, item.statusName === "待整改" && item.canEdit ? {
|
||||
l: common_vendor.o(($event) => goRectification(item), item.hazardId)
|
||||
l: common_vendor.o(($event) => assignHazard(item), item.hazardId)
|
||||
} : {}, {
|
||||
m: item.statusName === "待验收" && canAcceptance.value
|
||||
m: item.statusName === "待整改" && item.canEdit
|
||||
}, item.statusName === "待整改" && item.canEdit ? {
|
||||
n: common_vendor.o(($event) => goRectification(item), item.hazardId)
|
||||
} : {}, {
|
||||
o: item.statusName === "待验收" && item.canEdit
|
||||
}, item.statusName === "待验收" && item.canEdit ? {
|
||||
p: common_vendor.o(($event) => editRectification(item), item.hazardId)
|
||||
} : {}, {
|
||||
q: item.statusName === "待验收" && canAcceptance.value
|
||||
}, item.statusName === "待验收" && canAcceptance.value ? {
|
||||
n: common_vendor.o(($event) => goAcceptance(item), item.hazardId)
|
||||
r: common_vendor.o(($event) => goAcceptance(item), item.hazardId)
|
||||
} : {}, {
|
||||
o: item.statusName === "待交办"
|
||||
s: item.statusName === "待交办"
|
||||
}, item.statusName === "待交办" ? {
|
||||
p: common_vendor.o(($event) => assignHazard(item), item.hazardId)
|
||||
t: common_vendor.o(($event) => assignHazard(item), item.hazardId)
|
||||
} : {}, {
|
||||
q: item.hazardId
|
||||
v: item.hazardId
|
||||
});
|
||||
}),
|
||||
n: common_vendor.gei(_ctx, "")
|
||||
|
||||
Reference in New Issue
Block a user