许成详 6 anos atrás
pai
commit
0921e7f762

+ 2
- 2
config/index.js Ver arquivo

@@ -12,11 +12,11 @@ module.exports = {
12 12
     proxyTable: {
13 13
       '/api': {
14 14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
-        target: 'http://192.168.0.62:8080', //wf
15
+        // target: 'http://192.168.0.62:8080', //wf
16 16
         // target: 'http://127.0.0.1:8080', 
17 17
         // target: 'http://localhost:8080', //wf
18 18
         // target: 'http://192.168.0.11', //ys
19
-        // target: 'http://192.168.0.125:8080', //hyq
19
+        target: 'http://192.168.0.125:8080', //hyq
20 20
         // target: 'http://dev.ycjcjy.com/', //frp
21 21
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
22 22
         // pathRewrite: {

+ 1
- 1
src/pages/system/cardAndCouponManager/cardManager/index.vue Ver arquivo

@@ -91,7 +91,7 @@
91 91
               size="mini"
92 92
               type="success"
93 93
               v-if="scope.row.SendType === 'channel'"
94
-              v-clipboard:copy="clientUrl + '/receiveChannelShared/' + scope.row.CardId + '/card/receive'"
94
+              v-clipboard:copy="clientUrl + '/user.html#/receiveChannelShared/' + scope.row.CardId + '/card/receive'"
95 95
               v-clipboard:success="onCopy"
96 96
               v-clipboard:error="onError"
97 97
               >点击复制链接</el-button>

+ 1
- 1
src/pages/system/cardAndCouponManager/couponManager/index.vue Ver arquivo

@@ -93,7 +93,7 @@
93 93
               size="mini"
94 94
               type="success"
95 95
               v-if="scope.row.SendType === 'channel'"
96
-              v-clipboard:copy="clientUrl + '/receiveChannelShared/' + scope.row.CouponId + '/coupon/receive'"
96
+              v-clipboard:copy="clientUrl + '/user.html#/receiveChannelShared/' + scope.row.CouponId + '/coupon/receive'"
97 97
               v-clipboard:success="onCopy"
98 98
               v-clipboard:error="onError"
99 99
               >点击复制链接</el-button>

+ 3
- 3
src/pages/system/cmsManager/bannerManager/add.vue Ver arquivo

@@ -164,8 +164,9 @@ export default {
164 164
           })
165 165
           return false
166 166
         } else {
167
-          var reg = /[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$/  // eslint-disable-line
168
-          if (!reg.test(this.postData.ForwardUrl)) {
167
+          var strRegex = '^((https|http|ftp|rtsp|mms)://)?[a-z0-9A-Z]{3}\.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z]\.com|net|cn|cc (:s[0-9]{1-4})?/$'  // eslint-disable-line
168
+          var re = new RegExp(strRegex)
169
+          if (!re.test(this.postData.ForwardUrl)) {
169 170
             this.$message({
170 171
               message: '链接地址格式不正确',
171 172
               type: 'error',
@@ -198,7 +199,6 @@ export default {
198 199
         return false
199 200
       }
200 201
       this.postData.OrgId = this.OrgId
201
-      // this.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
202 202
       this.$ajax(this.$api.cms.addImage.url, {
203 203
         method: this.$api.cms.addImage.method,
204 204
         data: this.postData

+ 3
- 2
src/pages/system/cmsManager/bannerManager/edit.vue Ver arquivo

@@ -153,8 +153,9 @@ export default {
153 153
           })
154 154
           return false
155 155
         } else {
156
-          var reg = /[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$/  // eslint-disable-line
157
-          if (!reg.test(this.postData.ForwardUrl)) {
156
+         var strRegex = '^((https|http|ftp|rtsp|mms)://)?[a-z0-9A-Z]{3}\.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z]\.com|net|cn|cc (:s[0-9]{1-4})?/$'  // eslint-disable-line
157
+          var re = new RegExp(strRegex)
158
+          if (!re.test(this.postData.ForwardUrl)) {
158 159
             this.$message({
159 160
               message: '链接地址格式不正确',
160 161
               type: 'error',

+ 25
- 14
src/pages/system/dashboard/index.vue Ver arquivo

@@ -47,6 +47,7 @@ import brokenLineGraph from '../../../components/brokenLineGraph/index'
47 47
 import ringChart from '../../../components/ringChart/index'
48 48
 import dashboard from '../../../components/dashboard/index'
49 49
 import brokenLineGraphGroup from '../../../components/brokenLineGraphGroup/index'
50
+
50 51
 const { mapActions: mapStaActions } = createNamespacedHelpers('sta')
51 52
 
52 53
 export default {
@@ -94,36 +95,46 @@ export default {
94 95
     }),
95 96
     CaseId: {
96 97
       get () {
97
-        return this.postData.caseid || this.defaultCaseId
98
+        return this.postData.caseid || this.defaultCaseId || this.cases[0].CaseId
98 99
       },
99 100
       set (val) {
100 101
         this.postData.caseid = val
101 102
       }
102 103
     }
103 104
   },
105
+  watch: {
106
+    defaultCaseId: function (val) {
107
+      if (!this.postData.caseid) {
108
+        this.postData.caseid = val
109
+      }
110
+      this.getData(val)
111
+      this.getBottomData(val, 'week')
112
+    },
113
+  },
104 114
   mounted () {
105 115
     this.$nextTick(function () {
106
-      console.log(this.defaultCaseId)
107
-      console.log(JSON.stringify(this.cases))
108
-      this.postData.caseid = this.postData.caseid || this.cases[0].CaseId
116
+    })
117
+  },
118
+  methods: {
119
+    ...mapStaActions([
120
+      'getDashboardData',
121
+      'getDashboardBottomData',
122
+    ]),
123
+    getData (id) {
109 124
       this.getDashboardData({
110
-        caseid: this.postData.caseid
125
+        caseid: id
111 126
       }).then((res) => {
112 127
         console.log(JSON.stringify(res))
113 128
       })
129
+    },
130
+    getBottomData (id, type) {
114 131
       this.getDashboardBottomData({
115
-        caseid: this.postData.caseid,
116
-        statype: 'week'
132
+        caseid: id,
133
+        statype: type
117 134
       }).then((res) => {
118 135
         console.log(JSON.stringify(res))
119 136
       })
120
-    })
121
-  },
122
-  methods: {
123
-    ...mapStaActions([
124
-      'getDashboardData',
125
-      'getDashboardBottomData',
126
-    ]),
137
+    },
127 138
   }
128 139
 }
129 140
 </script>