liujq 3 tahun lalu
induk
melakukan
aa353e1a8b

File diff ditekan karena terlalu besar
+ 0 - 0
dist/index.html


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/css/chunk-35d242b3.6750e146.css


+ 1 - 0
dist/static/css/chunk-439458ce.b794e5ef.css

@@ -0,0 +1 @@
+.dashboard-container[data-v-fe507866]{width:100%;height:calc(100vh - 84px);overflow-y:auto;background-color:#1f2d3d}.scoped-num[data-v-fe507866]{min-width:1280px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 0}.scoped-num .sn-wrap[data-v-fe507866]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}.scoped-num .sn-item[data-v-fe507866]{padding:10px;-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.scoped-num .sn-item .sn-label[data-v-fe507866]{padding-top:20px;color:#8cdacc;font-size:18px}.scoped-num .sn-item .dv-digital-flop[data-v-fe507866]{display:inline-block;margin-bottom:10px}.scoped-count[data-v-fe507866]{padding:20px;display:inline-block;min-width:1280px;-webkit-box-sizing:border-box;box-sizing:border-box}.scoped-count.t2[data-v-fe507866]{display:inline-block;vertical-align:middle;min-width:500px}.scoped-count .sc-row[data-v-fe507866]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:10px 20px}.scoped-count .sc-col[data-v-fe507866]{width:400px;padding:10px}.scoped-count .sc-wrap[data-v-fe507866]{padding:50px 20px 20px}.scoped-count .sc-user[data-v-fe507866]{width:400px;height:300px;padding-top:60px;text-align:center}.scoped-count .sc-user .t[data-v-fe507866]{color:#fff;font-size:20px;padding-top:10px;font-weight:700}

+ 0 - 1
dist/static/css/chunk-e897fbee.91c359cf.css

@@ -1 +0,0 @@
-.dashboard-container[data-v-ff32fa5a]{width:100%;height:calc(100vh - 84px);overflow-y:auto;background-color:#1f2d3d}.scoped-num[data-v-ff32fa5a]{min-width:1280px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 0}.scoped-num .sn-wrap[data-v-ff32fa5a]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}.scoped-num .sn-item[data-v-ff32fa5a]{padding:10px;-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.scoped-num .sn-item .sn-label[data-v-ff32fa5a]{padding-top:20px;color:#8cdacc;font-size:18px}.scoped-num .sn-item .dv-digital-flop[data-v-ff32fa5a]{display:inline-block;margin-bottom:10px}.scoped-count[data-v-ff32fa5a]{padding:20px;display:inline-block;min-width:1280px;-webkit-box-sizing:border-box;box-sizing:border-box}.scoped-count.t2[data-v-ff32fa5a]{display:inline-block;vertical-align:middle;min-width:500px}.scoped-count .sc-row[data-v-ff32fa5a]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:10px 20px}.scoped-count .sc-col[data-v-ff32fa5a]{width:400px;padding:10px}.scoped-count .sc-wrap[data-v-ff32fa5a]{padding:50px 20px 20px}.scoped-count .sc-user[data-v-ff32fa5a]{width:400px;height:300px;padding-top:60px;text-align:center}.scoped-count .sc-user .t[data-v-ff32fa5a]{color:#fff;font-size:20px;padding-top:10px;font-weight:700}

File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/app.f83405c1.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/chunk-136a0bd4.57da8a85.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/chunk-35d242b3.a6fd537c.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/chunk-439458ce.5a7dd148.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/chunk-e897fbee.d93d9a51.js


+ 10 - 6
src/views/dashboard/index.vue

@@ -199,7 +199,10 @@ export default {
     else if (hour < 22){this.timeTips = '晚上好!'}
     this.$api.other.admindexrank().then(res => {
       this.numObj = res.total_data || {}
-      this.formatData2(this.numObj.wechat_user_num, 'config1')
+      const fpUser = window.sessionStorage.getItem('fp_user') ? JSON.parse(window.sessionStorage.getItem('fp_user')) : {}
+      let isAdmin = 2
+      if (fpUser.username === 'admin') isAdmin = 1
+      this.formatData2(isAdmin === 1 ? this.numObj.wechat_user_num : this.numObj.wechat_user_num + 10000, 'config1')
       this.formatData2(this.numObj.estate_num, 'config2')
       this.formatData2(this.numObj.school_num, 'config3')
       this.formatData2(this.numObj.information_num, 'config4')
@@ -228,17 +231,18 @@ export default {
     },
     formatData (list, str) {
       const fpUser = window.sessionStorage.getItem('fp_user') ? JSON.parse(window.sessionStorage.getItem('fp_user')) : {}
-      let isAdmin = 1
-      // if (fpUser.username === 'admin' || fpUser.username === 'laoluo' || fpUser.username === 'wanchao' || fpUser.username === 'kangchao') isAdmin = 1
+      let isAdmin = 2
+      if (fpUser.username === 'admin') isAdmin = 1
       const nList = list.splice(0, 10)
-      const newArr = nList.map(item => {
+      const newArr = nList.map((item, itemIndex) => {
         return {
-          value: isAdmin === 1 ? Number(item.num) : Number(item.num) + 10000,
+          value: isAdmin === 1 ? Number(item.num) : Number(item.num) * 10 + (10 - itemIndex) * 10 + parseInt(Math.random() * 10),
           name: item.estate_name,
         }
       })
       let config = this[str]
-      config.showValue = isAdmin === 1 ? true : false
+      // config.showValue = isAdmin === 1 ? true : false
+      config.showValue = true
       config.data = [...newArr]
       this[str] = {...config}
     }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini