diff --git a/src/view/dialog/dialogPush.vue b/src/view/dialog/dialogPush.vue new file mode 100644 index 0000000..4187a53 --- /dev/null +++ b/src/view/dialog/dialogPush.vue @@ -0,0 +1,387 @@ + + + + + \ No newline at end of file diff --git a/src/view/dialog/dialogRW.vue b/src/view/dialog/dialogRW.vue index 408db45..d600cec 100644 --- a/src/view/dialog/dialogRW.vue +++ b/src/view/dialog/dialogRW.vue @@ -184,12 +184,10 @@ const props = defineProps({ }, }, }); -const emit = defineEmits(["close", "handle"]); +const emit = defineEmits(["close", "handle",'showList']); const handleRowClick = (row, column, event) => { - if (props.dj) { - console.log(row, props.dj, "rwxq"); - } + emit("showList", row); }; // 上报 const clicked = ref(false); @@ -288,6 +286,8 @@ watch( if (props.tableData.data.wxs.length > 0) { props.tableData.data.wxs.forEach((item, index) => { let obj = { + bm: item.bm, + xh: item.xh, deng: 2, bzlx: item.bzlx, qtbm: item.qtbm, @@ -302,6 +302,8 @@ watch( if (props.tableData.data.ysx.length > 0) { props.tableData.data.ysx.forEach((item, index) => { let obj = { + bm: item.bm, + xh: item.xh, deng: 1, bzlx: item.bzlx, qtbm: item.qtbm, diff --git a/src/view/sy_details.vue b/src/view/sy_details.vue index 988d5a3..180896c 100644 --- a/src/view/sy_details.vue +++ b/src/view/sy_details.vue @@ -70,7 +70,7 @@
-
+
+ +
@@ -250,6 +259,7 @@ import http from "@/utils/request.js"; import { ElMessage } from "element-plus"; import DialogLamp from "./dialog/dialogRW.vue"; import DialogSf from "./dialog/dialogSf.vue"; +import DialogPush from "./dialog/dialogPush.vue"; import lamp1 from "../assets/sy-table/green.gif"; import lamp2 from "../assets/sy-table/red.gif"; import lamp3 from "../assets/sy-table/lampYellow1.gif"; @@ -431,16 +441,44 @@ const lampScreen = (val) => { */ const dialogShow = ref(false); const dialogShowSf = ref(false); -const sfType=reactive({ +const dialogShowPush = ref(false); +const push = reactive({ + title: "推送记录", + data: [], + columns: [ + { + label: "序号", + property: "xm", + width: "90", + }, + { + label: "应用", + property: "app", + }, + { + label: "事项", + property: "content", + }, + { + label: "接收人", + property: "adminName", + }, + { + label: "推送时间", + property: "sendTime", + }, + ], +}); +const sfType = reactive({ url: ``, title: "服务事项名称", - data:{ - gkmx:'备注内容', - sr:'xxxxxxxxxx(输入内容)xxxxxxxxxx(输入内容)xxxxxxxxxx(输入内容)', - dblj:'对比逻辑', - sc:'输出', + data: { + gkmx: "备注内容", + sr: "xxxxxxxxxx(输入内容)xxxxxxxxxx(输入内容)xxxxxxxxxx(输入内容)", + dblj: "对比逻辑", + sc: "输出", }, -}) +}); const tableType = reactive({ url: `/api/ggfwyth/pg/fwjgqdxq`, title: "服务详情", @@ -461,13 +499,16 @@ const tableType = reactive({ { label: "牵头单位", property: "qtbm", - }, { + }, + { label: "业务科室", property: "zrks", - }, { + }, + { label: "负责人", property: "ywfzr", - }, { + }, + { label: "联系电话", property: "fgldsj", }, @@ -528,17 +569,43 @@ const closeJj = () => { tableType.data = []; pagination3.currentPage = 1; }; +//显示推送记录弹框 +const showList = (val) => { + http + .get(`/api/ggfwyth/pg/pushSendRecord?xh=${val.xh}&bm=${val.bm}`) + .then((res) => { + if (res.code == 200) { + push.data = res.data; + if (res.data.length == 0) { + ElMessage.warning({ + message: `该服务内容暂无推送记录!`, + }); + } else { + push.data = push.data.map((item, index1) => { + return { + ...item, + index: index1 + 1, + }; + }); + dialogShowPush.value = true; + } + } + }); +}; +//关闭推送弹框 +const closePush = () => { + dialogShowPush.value = false; +}; //获取算法模型数据 -const openSf=()=>{ - +const openSf = () => { http.get(`/api/ggfwyth/pg/sfljqd?xh=${routers.query.xh}`).then((res) => { if (res.code == 200) { - sfType.title=routers.query.name; - sfType.data=res.data; + sfType.title = routers.query.name; + sfType.data = res.data; dialogShowSf.value = true; } }); -} +}; const getTable = (pagination) => { http .get( diff --git a/src/view/table_gk/gk_jz.vue b/src/view/table_gk/gk_jz.vue index 05a93f3..32e32f5 100644 --- a/src/view/table_gk/gk_jz.vue +++ b/src/view/table_gk/gk_jz.vue @@ -79,9 +79,9 @@ :row-style="rowState" :header-cell-style="tableHeaderColor" > - - - + + +
@@ -126,14 +126,14 @@ :row-style="rowState" :header-cell-style="tableHeaderColor" > - + - - - - + + + +