From 11104263ee56284089e6dbd196929e9174f9d371 Mon Sep 17 00:00:00 2001
From: Apcallover <1503963513@qq.com>
Date: Wed, 28 Feb 2024 15:19:45 +0800
Subject: [PATCH] flat: 123
---
src/views/tenant/main/serve/index.vue | 198 ++++++++++++++++++++++++--
1 file changed, 187 insertions(+), 11 deletions(-)
diff --git a/src/views/tenant/main/serve/index.vue b/src/views/tenant/main/serve/index.vue
index b56fb0a..cd51081 100644
--- a/src/views/tenant/main/serve/index.vue
+++ b/src/views/tenant/main/serve/index.vue
@@ -58,6 +58,9 @@
+
{{ row.worktypes | ellipsis }}
@@ -192,7 +195,10 @@
@current-change="workCurrentChange"
>
-
+
+
{{ row.missionDesc.length > 50 ? row.missionDesc.substring(0, 50) : row.missionDesc}}
@@ -218,6 +224,43 @@
@size-change="policySizeChange"
@current-change="policyCurrentChange"
>
+
+
+
+ {{ row.policyContent.length > 50 ? row.policyContent.substring(0, 50) : row.policyContent}}
+
+
+
+
+
+ {{ row.labelName.length > 50 ? row.labelName.substring(0, 50) : row.labelName}}
+
+
+
+
+ {{ item }}
+
+
+
+
+ {{row.policyContent}}
+
+
+
+
+ {{row.guidelineContent}}
+
+
+
+
+ {{row.policyContent}}
+
+
+
{
result.push({ name: item });
});
@@ -654,7 +816,7 @@ export default {
val.forEach((item) => {
arr.push(item.name);
});
- this.obj.serveLabels = arr.join(",");
+ this.obj.labelName = arr.join(",");
},
},
worktypeData() {
@@ -680,6 +842,20 @@ export default {
this.getLabelList();
},
methods: {
+ toPolicyDetail(row) {
+ console.log(row)
+ console.log()
+ },
+ clipStr(str) {
+ const clip = []
+ if(str && str.length > 50) {
+ for (let i = 0; i < Math.ceil(str.length / 50); i++) {
+ clip.push(str.slice(i * 50,i * 50 + 50))
+ }
+ return clip
+ }
+ return [str]
+ },
getLabelList() {
getLabelList().then( (res) => {
const arr = res.data.data.flatMap(obj => obj.child.map(item => item.concatName));