From f5b20b34960d28d60ae67a4c9294dd6943166a46 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Fri, 8 Nov 2024 09:18:34 +0800 Subject: [PATCH] gx --- src/view/sy_details.vue | 46 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/src/view/sy_details.vue b/src/view/sy_details.vue index 6872f90..6645a54 100644 --- a/src/view/sy_details.vue +++ b/src/view/sy_details.vue @@ -576,7 +576,7 @@ const tableType = reactive({ // 状态弹框 const statusDetails = (val) => { - if (data.name == "许可证编号") { + if (data.name == "食品安全监管" || data.name == "药品安全监管") { data.dxbm = val.dxbm; getTable2(tableType); } else { @@ -768,7 +768,7 @@ const getServiceList = async (pagination, sfxs) => { // 跳转人物详情 const handleRowClick = (row) => { console.log(row); // row 是当前行的数据 - if (data.name == "许可证编号") { + if (data.name == "食品安全监管" || data.name == "药品安全监管") { return; } data.identNo = row.sfzhm; @@ -800,7 +800,6 @@ const listAssignment = () => { pagination1.url = ""; pagination2.url = ""; if (data.name == "食品安全监管" || data.name == "药品安全监管") { - data.name = "许可证编号"; pagination.url = "/api/ggfwyth/pg/spypqy"; pagination1.url = "/api/ggfwyth/pg/fwnrqd"; pagination2.url = "/api/ggfwyth/pg/spypqy"; @@ -851,7 +850,46 @@ const rowState = (row) => { onMounted(() => { if (routers.query.name) { data.name = routers.query.name; - if (data.name == "食品安全监管" || data.name == "药品安全监管") { + if (data.name == "食品安全监管") { + data.columns = []; + data.column_2 = []; + data.columns = [ + { + label: "对象名称", + property: "dxmc", + }, + { + label: "统一社会信用代码", + property: "dxbm", + }, + { + label: "地址", + property: "dz", + }, + ]; + data.column_2 = [ + { + label: "对象名称", + property: "dxmc", + }, + { + label: "状态", + property: "deng", + width: "90", + align: "center", + type: "slot", + }, + { + label: "统一社会信用代码", + property: "dxbm", + }, + { + label: "地址", + property: "dz", + }, + ]; + } + if (data.name == "药品安全监管") { data.columns = []; data.column_2 = []; data.columns = [