From a00e2784e108f248b252f54370b5c3fac64e3c08 Mon Sep 17 00:00:00 2001
From: duanxiaohai <1812246227@qq.com>
Date: Tue, 12 Nov 2024 17:11:17 +0800
Subject: [PATCH 1/2] gx
---
src/components/header.vue | 21 +-
src/router/index.js | 10 +
src/utils/request.js | 2 +-
src/view/hd_details.vue | 700 +++++++++++++++++++++++++++++++++++++
src/view/js_details.vue | 719 ++++++++++++++++++++++++++++++++++++++
src/view/sy_table.vue | 33 +-
6 files changed, 1464 insertions(+), 21 deletions(-)
create mode 100644 src/view/hd_details.vue
create mode 100644 src/view/js_details.vue
diff --git a/src/components/header.vue b/src/components/header.vue
index 8bdcfcf..55e305c 100644
--- a/src/components/header.vue
+++ b/src/components/header.vue
@@ -11,7 +11,12 @@
返回
@@ -109,15 +114,15 @@ const to = (url) => {
});
if (url == "/home/index/map") {
let menu = tools.data.get("menu");
- if(menu && menu.indexOf('ggfw:ystp') != -1){
+ if (menu && menu.indexOf("ggfw:ystp") != -1) {
data.nowTab = url;
data.menushow = false;
}
- }else{
+ } else {
data.nowTab = url;
data.menushow = false;
}
-
+
// data.nowTab = url;
// data.menushow = false;
};
@@ -198,19 +203,19 @@ const data = reactive({
],
nowTab: "/home/index",
});
-const timeT=ref(null);
+const timeT = ref(null);
onMounted(() => {
// 初始调用 updateClock 以立即显示时间
updateClock();
data.nowTab = router.currentRoute.value.fullPath;
// 每隔一秒钟调用一次 updateClock 以更新时钟显示
- timeT.value=setInterval(updateClock, 1000);
+ timeT.value = setInterval(updateClock, 1000);
});
onBeforeUnmount(() => {
if (timeT.value) {
clearInterval(timeT.value);
- console.log('定时器已清除');
- }
+ console.log("定时器已清除");
+ }
});
+
diff --git a/src/view/js_details.vue b/src/view/js_details.vue
new file mode 100644
index 0000000..cd89e0a
--- /dev/null
+++ b/src/view/js_details.vue
@@ -0,0 +1,719 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/view/sy_table.vue b/src/view/sy_table.vue
index a93c96c..53be267 100644
--- a/src/view/sy_table.vue
+++ b/src/view/sy_table.vue
@@ -214,21 +214,30 @@ const goto = (val) => {
// } else {
if (val.name == "公共交通") {
router.push({
- path: "/home/index/table/jtDetails",
- query: { name: val.name},
- });
- }else{
+ path: "/home/index/table/jtDetails",
+ query: { name: val.name },
+ });
+ } else if (val.name == "全民健身服务") {
router.push({
- path: "/home/index/table/details",
- query: { name: val.name, id: val.id, xh: val.xh },
- });
+ path: "/home/index/table/fitnessServices",
+ query: { name: val.name },
+ });
+ } else if (val.name == "校外活动服务") {
+ router.push({
+ path: "/home/index/table/afterschoolActivities",
+ query: { name: val.name },
+ });
+ } else {
+ router.push({
+ path: "/home/index/table/details",
+ query: { name: val.name, id: val.id, xh: val.xh },
+ });
}
-
- // ElMessage.warning({
- // message: `${val.name}暂无数据!`,
- // offset: 100, // 距离窗口顶部的偏移量
- // });
+ // ElMessage.warning({
+ // message: `${val.name}暂无数据!`,
+ // offset: 100, // 距离窗口顶部的偏移量
+ // });
// }
};
From abf7531d5a7f89f4e2df8e78136691d6aaf216bb Mon Sep 17 00:00:00 2001
From: duanxiaohai <1812246227@qq.com>
Date: Tue, 12 Nov 2024 17:17:29 +0800
Subject: [PATCH 2/2] gx
---
src/view/sy_details.vue | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/view/sy_details.vue b/src/view/sy_details.vue
index 6ed50f9..984ed2c 100644
--- a/src/view/sy_details.vue
+++ b/src/view/sy_details.vue
@@ -322,7 +322,7 @@ const data = reactive({
{
label: "姓名",
property: "xm",
- width: "100",
+ width: "110",
align: "center",
},
{
@@ -370,7 +370,7 @@ const data = reactive({
{
label: "姓名",
property: "xm",
- width: "100",
+ width: "110",
type: "slot",
align: "center",
},
@@ -400,6 +400,7 @@ const data = reactive({
{
label: "完成途径",
property: "operatesDeng",
+ align: "center",
type: "slot",
},
// {
@@ -475,7 +476,7 @@ const lampScreen = (val) => {
{
label: "姓名",
property: "xm",
- width: "100",
+ width: "110",
align: "center",
type: "slot",
},
@@ -515,7 +516,7 @@ const lampScreen = (val) => {
{
label: "姓名",
property: "xm",
- width: "100",
+ width: "110",
align: "center",
type: "slot",
},
@@ -545,6 +546,7 @@ const lampScreen = (val) => {
{
label: "完成途径",
property: "operatesDeng",
+ align: "center",
type: "slot",
},
];