Преглед на файлове

Merge remote-tracking branch 'origin/gzb' into wzl

gzb
wangzhonglu преди 8 месеца
родител
ревизия
50a1304035
променени са 3 файла, в които са добавени 11 реда и са изтрити 15 реда
  1. 2
    0
      src/views/dope/dope.vue
  2. 6
    1
      src/views/layout.vue
  3. 3
    14
      src/views/regionSection/setting/powerUp.vue

+ 2
- 0
src/views/dope/dope.vue Целия файл

@@ -125,6 +125,8 @@ export default {
125 125
                 v.hasread = 1;
126 126
               }
127 127
             });
128
+            //修改首页未读条数
129
+            this.$EventBus.$emit("nreadChange");
128 130
           } else {
129 131
             this.$Message.error(res.msg);
130 132
           }

+ 6
- 1
src/views/layout.vue Целия файл

@@ -17,7 +17,7 @@
17 17
         </div>
18 18
         <div class="dope" @click="headerDope" v-if="powerParams.rtype != 1">
19 19
           <img class="img1" src="../assets/img/dope.png" />
20
-          <div class="img2">
20
+          <div class="img2" v-if="nreadNum > 0">
21 21
             {{ nreadNum }}
22 22
           </div>
23 23
         </div>
@@ -237,6 +237,11 @@ export default {
237 237
       return this.$store.getters.powerParams;
238 238
     }
239 239
   },
240
+  mounted() {
241
+    this.$EventBus.$on("nreadChange", () => {
242
+      this.nreadNum = this.nreadNum > 0 ? this.nreadNum - 1 : 0;
243
+    });
244
+  },
240 245
   methods: {
241 246
     init() {
242 247
       logdoperatemsg_get_nrn({

+ 3
- 14
src/views/regionSection/setting/powerUp.vue Целия файл

@@ -18,14 +18,6 @@
18 18
             placeholder="请输入页面地址"
19 19
           ></Input>
20 20
         </FormItem>
21
-        <FormItem label="约定标识" style="width: 100%">
22
-          <RadioGroup v-model="adminInfo.singleType">
23
-            <Radio :label="1">账号</Radio>
24
-            <Radio :label="2">学号</Radio>
25
-            <Radio :label="3">手机号码</Radio>
26
-            <Radio :label="4">身份证号码</Radio>
27
-          </RadioGroup>
28
-        </FormItem>
29 21
       </Form>
30 22
     </div>
31 23
     <div class="footer">
@@ -50,8 +42,7 @@ export default {
50 42
       adminInfo: {
51 43
         regionid: "",
52 44
         appPackage: "",
53
-        authUrl: "",
54
-        singleType: 1
45
+        authUrl: ""
55 46
       },
56 47
       userInfo: {},
57 48
       showLoading: false
@@ -80,8 +71,7 @@ export default {
80 71
           if (res.obj) {
81 72
             this.adminInfo = {
82 73
               appPackage: res.obj.appPackage,
83
-              authUrl: res.obj.authUrl,
84
-              singleType: res.obj.singleType
74
+              authUrl: res.obj.authUrl
85 75
             };
86 76
           }
87 77
         } else {
@@ -99,8 +89,7 @@ export default {
99 89
         objectid: this.powerParams.objectid,
100 90
         regionid: this.powerParams.objectid,
101 91
         appPackage: this.adminInfo.appPackage,
102
-        authUrl: this.adminInfo.authUrl,
103
-        singleType: this.adminInfo.singleType
92
+        authUrl: this.adminInfo.authUrl
104 93
       };
105 94
       this.showLoading = true;
106 95
       autoapp_edit(form).then((res) => {

Loading…
Отказ
Запис