From 7b3b6fb2ee57338c1752594b6b5d1db1ae83b20f Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Tue, 28 Jun 2022 21:39:46 +0800
Subject: [PATCH] 积分修改

---
 src/views/wel/home.vue          |   18 +++++----
 src/views/activitys/real.vue    |   22 +++++++---
 src/views/activitys/real_xc.vue |   22 +++++++---
 src/views/wel/openUp.vue        |   34 ++++++++--------
 src/views/activitys/real_px.vue |   24 ++++++++----
 5 files changed, 73 insertions(+), 47 deletions(-)

diff --git a/src/views/activitys/real.vue b/src/views/activitys/real.vue
index 3dfb09a..82084fc 100644
--- a/src/views/activitys/real.vue
+++ b/src/views/activitys/real.vue
@@ -525,18 +525,26 @@
           {
             label: "积分数值",
             prop: "integral",
-            type: "number",
-            // multiple: true,
-            // dicUrl: "/api/catalogs/catalogs/getBigTree",
-            // props: {
-            //   label: "title",
-            // },
+            type: "select",
+            dicData: [
+              {
+                label: "5",
+                value: "5",
+              },
+              {
+                label: "10",
+                value: "10",
+              },
+              {
+                label: "15",
+                value: "15",
+              },
+            ],
             width: 72,
             // hide: true,
             minRows: 1,
             value: 5,
             // leafOnly: "",
-            disabled: true,
             addDisplay: true,
             editDisplay: true,
             viewDisplay: true,
diff --git a/src/views/activitys/real_px.vue b/src/views/activitys/real_px.vue
index 3a71123..4ed3a07 100644
--- a/src/views/activitys/real_px.vue
+++ b/src/views/activitys/real_px.vue
@@ -525,18 +525,26 @@
           {
             label: "积分数值",
             prop: "integral",
-            type: "number",
-            // multiple: true,
-            // dicUrl: "/api/catalogs/catalogs/getBigTree",
-            // props: {
-            //   label: "title",
-            // },
+            type: "select",
+            dicData: [
+              {
+                label: "5",
+                value: "5",
+              },
+              {
+                label: "10",
+                value: "10",
+              },
+              {
+                label: "15",
+                value: "15",
+              },
+            ],
             width: 72,
             // hide: true,
             minRows: 1,
-            value: 10,
+            value: 5,
             // leafOnly: "",
-            disabled: true,
             addDisplay: true,
             editDisplay: true,
             viewDisplay: true,
diff --git a/src/views/activitys/real_xc.vue b/src/views/activitys/real_xc.vue
index de61221..ea8a0bb 100644
--- a/src/views/activitys/real_xc.vue
+++ b/src/views/activitys/real_xc.vue
@@ -527,18 +527,26 @@
           {
             label: "积分数值",
             prop: "integral",
-            type: "number",
-            // multiple: true,
-            // dicUrl: "/api/catalogs/catalogs/getBigTree",
-            // props: {
-            //   label: "title",
-            // },
+            type: "select",
+            dicData: [
+              {
+                label: "5",
+                value: "5",
+              },
+              {
+                label: "10",
+                value: "10",
+              },
+              {
+                label: "15",
+                value: "15",
+              },
+            ],
             width: 72,
             // hide: true,
             minRows: 1,
             value: 5,
             // leafOnly: "",
-            disabled: true,
             addDisplay: true,
             editDisplay: true,
             viewDisplay: true,
diff --git a/src/views/wel/home.vue b/src/views/wel/home.vue
index 3c059ab..3076168 100644
--- a/src/views/wel/home.vue
+++ b/src/views/wel/home.vue
@@ -206,13 +206,14 @@
       getLeftUp().then((res) => {
         var d = res.data.data;
         d.forEach((item, index, arr) => {
+          if (item.region == "治保会队伍" || item.region == "内保干部队伍" || item.region == "平安志愿者" || item.region == "信息员队伍" || item.region == "保安员队伍" || item.region == "警务辅助队伍"){
           this.OurNumLeftUp += item.num;
           let img =
             item.region == "治保会队伍"
               ? "/img/wyh.png"
               : item.region == "内保干部队伍"
               ? "/img/zabw.png"
-              : item.region == "治安巡防队伍"
+              : item.region == "平安志愿者"
               ? "/img/xf.png"
               : item.region == "信息员队伍"
               ? "/img/xxy.png"
@@ -223,17 +224,17 @@
               : "";
           let id =
             item.region == "治保会队伍"
-              ? "1424615693403414529"
+              ? "1495714130024673282"
               : item.region == "内保干部队伍"
-              ? "1424615773594312705"
-              : item.region == "治安巡防队伍"
-              ? "1424615835435130881"
+              ? "1495714221926068225"
+              : item.region == "平安志愿者"
+              ? "1416225906918195201"
               : item.region == "信息员队伍"
-              ? "1424615909959524354"
+              ? "1495714309071122434"
               : item.region == "保安员队伍"
-              ? "1424615972718895106"
+              ? "1495714343888039937"
               : item.region == "警务辅助队伍"
-              ? "1424616047083905026"
+              ? "1495714378025480193"
               : "";
           this.leftUp.push({
             name: item.region,
@@ -241,6 +242,7 @@
             value: item.num,
             id: id,
           });
+          }
         });
       });
     },
diff --git a/src/views/wel/openUp.vue b/src/views/wel/openUp.vue
index 56ea740..ba9bda0 100644
--- a/src/views/wel/openUp.vue
+++ b/src/views/wel/openUp.vue
@@ -114,23 +114,23 @@
           {
             label: "辖区",
             prop: "jurisdiction",
-            // type: "tree",
-            // dicUrl: "/api/blade-system/dept/selectInfo",
-            // props: {
-            //   label: "title",
-            //   value: "value"
-            // },
+            type: "tree",
+            dicUrl: "/api/jurisdiction/lazy-tree",
+            props: {
+              label: "title",
+              value: "value"
+            },
           },
-          {
-            label: "部门",
-            prop: "deptName",
-            // type: "tree",
-            // dicUrl: "/api/blade-system/dept/selectInfo",
-            // props: {
-            //   label: "title",
-            //   value: "value"
-            // },
-          },
+          // {
+          //   label: "部门",
+          //   prop: "deptName",
+          //   // type: "tree",
+          //   // dicUrl: "/api/blade-system/dept/selectInfo",
+          //   // props: {
+          //   //   label: "title",
+          //   //   value: "value"
+          //   // },
+          // },
         ],
       },
       data: [],
@@ -265,7 +265,7 @@
     },
     onLoad(page, params = {}) {
       this.loading = true;
-      params["deptId"] = this.id;
+      params["roleId"] = this.id;
       getOpenup(
         page.currentPage,
         page.pageSize,

--
Gitblit v1.9.3