瀏覽代碼

bug修改

wangfei 6 年之前
父節點
當前提交
90cd7f3cee

+ 11
- 6
src/pages/system/caseManager/caseAreaManager/index.vue 查看文件

57
           </template>
57
           </template>
58
         </el-table-column>
58
         </el-table-column>
59
         <el-table-column
59
         <el-table-column
60
-          prop="CaseName"
61
-          label="案场">
60
+          label="案场" >
61
+          <template slot-scope="scope">
62
+            <span>{{getCaseName(scope.row.CaseId)}}</span>
63
+          </template>
62
         </el-table-column>
64
         </el-table-column>
63
         <el-table-column label="操作">
65
         <el-table-column label="操作">
64
           <template slot-scope="scope">
66
           <template slot-scope="scope">
117
       set (val) {
119
       set (val) {
118
         this.postData.caseid = val
120
         this.postData.caseid = val
119
       }
121
       }
120
-    }
122
+    },
121
   },
123
   },
122
   methods: {
124
   methods: {
123
     search () { // 搜索
125
     search () { // 搜索
125
       this.currentList = []
127
       this.currentList = []
126
       this.getList()
128
       this.getList()
127
     },
129
     },
130
+    getCaseName (caseid) {
131
+      return (this.cases.filter(x => x.CaseId === caseid)[0] || {}).CaseName
132
+    },
128
     getList () { // 获取列表
133
     getList () { // 获取列表
129
       this.$ajax(this.$api.caseManager.getCaseAreaList.url, {
134
       this.$ajax(this.$api.caseManager.getCaseAreaList.url, {
130
         method: this.$api.caseManager.getCaseAreaList.method,
135
         method: this.$api.caseManager.getCaseAreaList.method,
131
         queryData: { ...this.postData, caseid: this.CaseId }
136
         queryData: { ...this.postData, caseid: this.CaseId }
132
       }).then(res => {
137
       }).then(res => {
133
-        for (var n = 0; n < res.list.length; n++) {
134
-          res.list[n].CaseName = this.cases.filter(x => x.CaseId === res.list[n].CaseId)[0].CaseName
135
-        }
138
+        // for (var n = 0; n < res.list.length; n++) {
139
+        //   res.list[n].CaseName = this.cases.filter(x => x.CaseId === res.list[n].CaseId)[0].CaseName
140
+        // }
136
         this.currentList = res.list
141
         this.currentList = res.list
137
         this.postData.page = res.page
142
         this.postData.page = res.page
138
         this.total = res.pagenum
143
         this.total = res.pagenum

+ 18
- 4
src/pages/system/caseManager/caseInfo/addCase/index.vue 查看文件

16
           </div>
16
           </div>
17
         </li>
17
         </li>
18
         <li class="flex-h">
18
         <li class="flex-h">
19
-          <span>案场地址:</span>
19
+          <span>案场地址:<em>*</em></span>
20
           <div class="flex-item">
20
           <div class="flex-item">
21
             <div>
21
             <div>
22
               <el-input
22
               <el-input
57
           </div>
57
           </div>
58
         </li>
58
         </li>
59
         <li class="flex-h">
59
         <li class="flex-h">
60
-          <span>案场头像:</span>
60
+          <span>案场头像:<em>*</em></span>
61
           <div class="flex-item">
61
           <div class="flex-item">
62
             <div>
62
             <div>
63
               <!-- <a class="formImg">
63
               <!-- <a class="formImg">
176
       if (this.postData.CaseName === '') {
176
       if (this.postData.CaseName === '') {
177
         this.$message({
177
         this.$message({
178
           type: 'error',
178
           type: 'error',
179
-          message: '案场名称不能为空'
179
+          message: '请填写案场名称!'
180
+        })
181
+        return false
182
+      }
183
+      if (this.postData.CaseAddress === '') {
184
+        this.$message({
185
+          type: 'error',
186
+          message: '请填写案场地址!'
187
+        })
188
+        return false
189
+      }
190
+      if (this.postData.CaseIcon === '') {
191
+        this.$message({
192
+          type: 'error',
193
+          message: '请上传案场图片!'
180
         })
194
         })
181
         return false
195
         return false
182
       }
196
       }
183
       if (this.postData.Coordinate === '') {
197
       if (this.postData.Coordinate === '') {
184
         this.$message({
198
         this.$message({
185
           type: 'error',
199
           type: 'error',
186
-          message: '案场经纬度不能为空'
200
+          message: '案场在地图上的位置不明确,请在地图上抓取地址获取经纬度!'
187
         })
201
         })
188
         return false
202
         return false
189
       }
203
       }

+ 18
- 4
src/pages/system/caseManager/caseInfo/editCase/index.vue 查看文件

15
           </div>
15
           </div>
16
         </li>
16
         </li>
17
         <li class="flex-h">
17
         <li class="flex-h">
18
-          <span>案场地址:</span>
18
+          <span>案场地址:<em>*</em></span>
19
           <div class="flex-item">
19
           <div class="flex-item">
20
             <div>
20
             <div>
21
               <el-input
21
               <el-input
53
           </div>
53
           </div>
54
         </li>
54
         </li>
55
         <li class="flex-h">
55
         <li class="flex-h">
56
-          <span>案场头像:</span>
56
+          <span>案场头像:<em>*</em></span>
57
           <div class="flex-item">
57
           <div class="flex-item">
58
             <div>
58
             <div>
59
               <!-- <a class="formImg">
59
               <!-- <a class="formImg">
183
       if (this.postData.CaseName === '') {
183
       if (this.postData.CaseName === '') {
184
         this.$message({
184
         this.$message({
185
           type: 'error',
185
           type: 'error',
186
-          message: '案场名称不能为空'
186
+          message: '请填写案场名称!'
187
+        })
188
+        return false
189
+      }
190
+      if (this.postData.CaseAddress === '') {
191
+        this.$message({
192
+          type: 'error',
193
+          message: '请填写案场地址!'
194
+        })
195
+        return false
196
+      }
197
+      if (this.postData.CaseIcon === '') {
198
+        this.$message({
199
+          type: 'error',
200
+          message: '请上传案场图片!'
187
         })
201
         })
188
         return false
202
         return false
189
       }
203
       }
190
       if (this.postData.Coordinate === '') {
204
       if (this.postData.Coordinate === '') {
191
         this.$message({
205
         this.$message({
192
           type: 'error',
206
           type: 'error',
193
-          message: '案场经纬度不能为空'
207
+          message: '案场在地图上的位置不明确,请在地图上抓取地址获取经纬度!'
194
         })
208
         })
195
         return false
209
         return false
196
       }
210
       }

+ 4
- 0
src/pages/system/caseManager/caseInfo/index.vue 查看文件

48
 
48
 
49
 <script>
49
 <script>
50
 import tableSearch from '@/components/tableSearch/index'
50
 import tableSearch from '@/components/tableSearch/index'
51
+import { mapActions } from 'vuex'
51
 
52
 
52
 export default {
53
 export default {
53
   name: '',
54
   name: '',
71
     })
72
     })
72
   },
73
   },
73
   methods: {
74
   methods: {
75
+    ...mapActions([
76
+      'updateSystemInfo',
77
+    ]),
74
     pplConcerned (index, row) { // 相关人员
78
     pplConcerned (index, row) { // 相关人员
75
       this.$router.push({name: 'pplConcerned', query: {id: row.CaseId}})
79
       this.$router.push({name: 'pplConcerned', query: {id: row.CaseId}})
76
     },
80
     },

+ 1
- 0
src/pages/system/caseManager/caseTableManager/add.vue 查看文件

9
               <el-input
9
               <el-input
10
                 placeholder="请输入名称"
10
                 placeholder="请输入名称"
11
                 v-model="postData.TableNo"
11
                 v-model="postData.TableNo"
12
+                maxlength="6"
12
                 clearable>
13
                 clearable>
13
               </el-input>
14
               </el-input>
14
             </div>
15
             </div>

+ 1
- 0
src/pages/system/caseManager/caseTableManager/edit.vue 查看文件

9
               <el-input
9
               <el-input
10
                 placeholder="请输入名称"
10
                 placeholder="请输入名称"
11
                 v-model="postData.TableNo"
11
                 v-model="postData.TableNo"
12
+                maxlength="6"
12
                 clearable>
13
                 clearable>
13
               </el-input>
14
               </el-input>
14
             </div>
15
             </div>

+ 34
- 23
src/pages/system/cmsManager/bannerManager/add.vue 查看文件

77
         <li class="flex-h">
77
         <li class="flex-h">
78
           <span>图片:</span>
78
           <span>图片:</span>
79
           <div class="flex-item">
79
           <div class="flex-item">
80
-            <el-upload
80
+            <!-- <el-upload
81
               :action="$api.file.image.url"
81
               :action="$api.file.image.url"
82
               :limit='limit'
82
               :limit='limit'
83
               list-type="picture-card"
83
               list-type="picture-card"
89
             </el-upload>
89
             </el-upload>
90
             <el-dialog :visible.sync="dialogVisible">
90
             <el-dialog :visible.sync="dialogVisible">
91
               <img width="100%" :src="imgs" alt="">
91
               <img width="100%" :src="imgs" alt="">
92
-            </el-dialog>
92
+            </el-dialog> -->
93
+            <el-upload
94
+              class="avatar-uploader"
95
+              :action='$api.file.image.url'
96
+              :show-file-list="false"
97
+              :on-success="handleAvatarSuccess">
98
+              <img v-if="postData.ImageUrl" :src="postData.ImageUrl" class="avatar">
99
+              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
100
+            </el-upload>
93
           </div>
101
           </div>
94
         </li>
102
         </li>
95
         <!-- <li class="flex-h">
103
         <!-- <li class="flex-h">
192
       }
200
       }
193
       this.postData.OrgId = this.OrgId
201
       this.postData.OrgId = this.OrgId
194
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
202
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
195
-      this.postData.ImageUrl = ''
196
-      for (let i = 0; i < this.imgsArr.length; i++) {
197
-        this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
198
-      }
199
-      if (this.postData.ImageUrl) {
200
-        this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
201
-      }
203
+      // this.postData.ImageUrl = ''
204
+      // for (let i = 0; i < this.imgsArr.length; i++) {
205
+      //   this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
206
+      // }
207
+      // if (this.postData.ImageUrl) {
208
+      //   this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
209
+      // }
202
       this.$ajax(this.$api.cms.addImage.url, {
210
       this.$ajax(this.$api.cms.addImage.url, {
203
         method: this.$api.cms.addImage.method,
211
         method: this.$api.cms.addImage.method,
204
         data: this.postData
212
         data: this.postData
218
     cancel () {
226
     cancel () {
219
       this.$router.go(-1)
227
       this.$router.go(-1)
220
     },
228
     },
221
-    handlePictureCardPreview (res, file, fileList) {
222
-      this.imgs = res.result.url
223
-      this.dialogVisible = false
224
-      this.imgsArr = fileList
225
-    },
226
-    handleRemove (file, fileList) {
227
-      this.imgsArr = fileList
229
+    // handlePictureCardPreview (res, file, fileList) {
230
+    //   this.imgs = res.result.url
231
+    //   this.dialogVisible = false
232
+    //   this.imgsArr = fileList
233
+    // },
234
+    // handleRemove (file, fileList) {
235
+    //   this.imgsArr = fileList
236
+    // },
237
+    // exceed () {
238
+    //   this.$message({
239
+    //     message: '超过可传的图片上限',
240
+    //     type: 'info',
241
+    //     duration: 1000
242
+    //   })
243
+    // }
244
+    handleAvatarSuccess (res, file) {
245
+      this.postData.ImageUrl = res.result.url
228
     },
246
     },
229
-    exceed () {
230
-      this.$message({
231
-        message: '超过可传的图片上限',
232
-        type: 'info',
233
-        duration: 1000
234
-      })
235
-    }
236
   }
247
   }
237
 }
248
 }
238
 </script>
249
 </script>

+ 45
- 34
src/pages/system/cmsManager/bannerManager/edit.vue 查看文件

77
         <li class="flex-h">
77
         <li class="flex-h">
78
           <span>图片:</span>
78
           <span>图片:</span>
79
           <div class="flex-item">
79
           <div class="flex-item">
80
-            <el-upload
80
+            <!-- <el-upload
81
               :action="$api.file.image.url"
81
               :action="$api.file.image.url"
82
               :limit='limit'
82
               :limit='limit'
83
               list-type="picture-card"
83
               list-type="picture-card"
89
             </el-upload>
89
             </el-upload>
90
             <el-dialog :visible.sync="dialogVisible">
90
             <el-dialog :visible.sync="dialogVisible">
91
               <img width="100%" :src="imgs" alt="">
91
               <img width="100%" :src="imgs" alt="">
92
-            </el-dialog>
92
+            </el-dialog> -->
93
+            <el-upload
94
+              class="avatar-uploader"
95
+              :action='$api.file.image.url'
96
+              :show-file-list="false"
97
+              :on-success="handleAvatarSuccess">
98
+              <img v-if="postData.ImageUrl" :src="postData.ImageUrl" class="avatar">
99
+              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
100
+            </el-upload>
93
           </div>
101
           </div>
94
         </li>
102
         </li>
95
         <!-- <li class="flex-h">
103
         <!-- <li class="flex-h">
187
       this.postData.OrgId = this.OrgId
195
       this.postData.OrgId = this.OrgId
188
       this.postData.CaseId = this.CaseId
196
       this.postData.CaseId = this.CaseId
189
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
197
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
190
-      this.postData.ImageUrl = ''
191
-      for (let i = 0; i < this.imgsArr.length; i++) {
192
-        this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
193
-      }
194
-      if (this.postData.ImageUrl) {
195
-        this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
196
-      }
198
+      // this.postData.ImageUrl = ''
199
+      // for (let i = 0; i < this.imgsArr.length; i++) {
200
+      //   this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
201
+      // }
202
+      // if (this.postData.ImageUrl) {
203
+      //   this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
204
+      // }
197
       this.$ajax(this.$api.cms.editImage.url, {
205
       this.$ajax(this.$api.cms.editImage.url, {
198
         method: this.$api.cms.editImage.method,
206
         method: this.$api.cms.editImage.method,
199
         data: this.postData,
207
         data: this.postData,
226
         console.log(res)
234
         console.log(res)
227
         res.Status = res.Status + ''
235
         res.Status = res.Status + ''
228
         res.ForwardType === 'url' ? res.ForwardType = '1' : res.ForwardType = '0'
236
         res.ForwardType === 'url' ? res.ForwardType = '1' : res.ForwardType = '0'
229
-        let imgsArr = []
230
-        let item = {
231
-          url: res.ImageUrl,
232
-          response: {
233
-            result: {
234
-              url: res.ImageUrl
235
-            }
236
-          }
237
-        }
238
-        imgsArr.push(item)
239
-        this.imgsArr = imgsArr
237
+        // let imgsArr = []
238
+        // let item = {
239
+        //   url: res.ImageUrl,
240
+        //   response: {
241
+        //     result: {
242
+        //       url: res.ImageUrl
243
+        //     }
244
+        //   }
245
+        // }
246
+        // imgsArr.push(item)
247
+        // this.imgsArr = imgsArr
240
         this.postData = res
248
         this.postData = res
241
       }).catch(msg => {
249
       }).catch(msg => {
242
 
250
 
243
       })
251
       })
244
     },
252
     },
245
-    handlePictureCardPreview (res, file, fileList) {
246
-      this.imgs = res.result.url
247
-      this.dialogVisible = false
248
-      this.imgsArr = fileList
249
-    },
250
-    handleRemove (file, fileList) {
251
-      this.imgsArr = fileList
253
+    // handlePictureCardPreview (res, file, fileList) {
254
+    //   this.imgs = res.result.url
255
+    //   this.dialogVisible = false
256
+    //   this.imgsArr = fileList
257
+    // },
258
+    // handleRemove (file, fileList) {
259
+    //   this.imgsArr = fileList
260
+    // },
261
+    // exceed () {
262
+    //   this.$message({
263
+    //     message: '超过可传的图片上限',
264
+    //     type: 'info',
265
+    //     duration: 1000
266
+    //   })
267
+    // }
268
+    handleAvatarSuccess (res, file) {
269
+      this.postData.ImageUrl = res.result.url
252
     },
270
     },
253
-    exceed () {
254
-      this.$message({
255
-        message: '超过可传的图片上限',
256
-        type: 'info',
257
-        duration: 1000
258
-      })
259
-    }
260
   }
271
   }
261
 }
272
 }
262
 </script>
273
 </script>

+ 93
- 60
src/pages/system/cmsManager/majorProjects/edit.vue 查看文件

44
         <li class="flex-h">
44
         <li class="flex-h">
45
           <span>图片:</span>
45
           <span>图片:</span>
46
           <div class="flex-item">
46
           <div class="flex-item">
47
-            <el-upload
47
+            <!-- <el-upload
48
               :action="$api.file.image.url"
48
               :action="$api.file.image.url"
49
               list-type="picture-card"
49
               list-type="picture-card"
50
               :limit='limit'
50
               :limit='limit'
53
               :on-remove="handleRemove"
53
               :on-remove="handleRemove"
54
               :on-exceed="exceed">
54
               :on-exceed="exceed">
55
               <i class="el-icon-plus"></i>
55
               <i class="el-icon-plus"></i>
56
+            </el-upload> -->
57
+            <!-- 单选 -->
58
+            <el-upload
59
+              class="avatar-uploader"
60
+              :action='$api.file.image.url'
61
+              :show-file-list="false"
62
+              :on-success="handleImgSuccess">
63
+              <img v-if="imgShow" :src="imgShow" class="avatar">
64
+              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
56
             </el-upload>
65
             </el-upload>
57
           </div>
66
           </div>
58
         </li>
67
         </li>
59
         <li class="flex-h">
68
         <li class="flex-h">
60
           <span>详细图片:</span>
69
           <span>详细图片:</span>
61
           <div class="flex-item">
70
           <div class="flex-item">
62
-            <el-upload
71
+            <!-- <el-upload
63
               :action='$api.file.image.url'
72
               :action='$api.file.image.url'
64
               list-type="picture-card"
73
               list-type="picture-card"
65
               :limit='limit'
74
               :limit='limit'
68
               :on-remove="handleRemoveDetail"
77
               :on-remove="handleRemoveDetail"
69
               :on-exceed="exceed">
78
               :on-exceed="exceed">
70
               <i class="el-icon-plus"></i>
79
               <i class="el-icon-plus"></i>
80
+            </el-upload> -->
81
+            <!-- 单选 -->
82
+            <el-upload
83
+              class="avatar-uploader"
84
+              :action='$api.file.image.url'
85
+              :show-file-list="false"
86
+              :on-success="handleDetailImgSuccess">
87
+              <img v-if="detailImgShow" :src="detailImgShow" class="avatar">
88
+              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
71
             </el-upload>
89
             </el-upload>
72
           </div>
90
           </div>
73
         </li>
91
         </li>
200
     return {
218
     return {
201
       id: '',
219
       id: '',
202
       limit: 1,
220
       limit: 1,
203
-      imgs: null,
204
-      detailimgs: null,
221
+      // imgs: null,
222
+      // detailimgs: null,
223
+      img: '',
224
+      detailimg: '',
205
       selCourseVisible: false,
225
       selCourseVisible: false,
206
       selCourseList: [],
226
       selCourseList: [],
207
     }
227
     }
228
         this.getCourse()
248
         this.getCourse()
229
       }
249
       }
230
     },
250
     },
231
-    imgsArr: {
232
-      get () {
233
-        return this.imgs || (this.detail.CmsCaseImgs || []).filter(x => x.ImageType === 'cover').map(x => {
234
-          return {
235
-            url: x.CaseImageUrl,
236
-            response: {
237
-              result: {
238
-                url: x.CaseImageUrl
239
-              }
240
-            }
241
-          }
242
-        })
243
-      },
244
-      set (val) {
245
-        this.imgs = val
246
-      }
251
+    imgShow () {
252
+      return this.img || ((this.detail.CmsCaseImgs || []).filter(x => x.ImageType === 'cover')[0] || {}).CaseImageUrl
247
     },
253
     },
248
-    detailimgsArr: {
249
-      get () {
250
-        return this.detailimgs || (this.detail.CmsCaseImgs || []).filter(x => x.ImageType === 'detail').map(x => {
251
-          return {
252
-            url: x.CaseImageUrl,
253
-            response: {
254
-              result: {
255
-                url: x.CaseImageUrl
256
-              }
257
-            }
258
-          }
259
-        })
260
-      },
261
-      set (val) {
262
-        this.detailimgs = val
263
-      }
254
+    detailImgShow () {
255
+      return this.detailimg || ((this.detail.CmsCaseImgs || []).filter(x => x.ImageType === 'detail')[0] || {}).CaseImageUrl
264
     },
256
     },
257
+    // imgsArr: {
258
+    //   get () {
259
+    //     return this.imgs || (this.detail.CmsCaseImgs || []).filter(x => x.ImageType === 'cover').map(x => {
260
+    //       return {
261
+    //         url: x.CaseImageUrl,
262
+    //         response: {
263
+    //           result: {
264
+    //             url: x.CaseImageUrl
265
+    //           }
266
+    //         }
267
+    //       }
268
+    //     })
269
+    //   },
270
+    //   set (val) {
271
+    //     this.imgs = val
272
+    //   }
273
+    // },
274
+    // detailimgsArr: {
275
+    //   get () {
276
+    //     return this.detailimgs || (this.detail.CmsCaseImgs || []).filter(x => x.ImageType === 'detail').map(x => {
277
+    //       return {
278
+    //         url: x.CaseImageUrl,
279
+    //         response: {
280
+    //           result: {
281
+    //             url: x.CaseImageUrl
282
+    //           }
283
+    //         }
284
+    //       }
285
+    //     })
286
+    //   },
287
+    //   set (val) {
288
+    //     this.detailimgs = val
289
+    //   }
290
+    // },
265
     coursesList () {
291
     coursesList () {
266
       return (this.courses.list || []).map(x => {
292
       return (this.courses.list || []).map(x => {
267
         return {
293
         return {
284
       'GetCourseList',
310
       'GetCourseList',
285
     ]),
311
     ]),
286
     submit () {
312
     submit () {
287
-      const imgs = this.imgsArr.map(x => x.response.result.url).join(',')
288
-      const detailimgs = this.detailimgsArr.map(x => x.response.result.url).join(',')
313
+      // const imgs = this.imgsArr.map(x => x.response.result.url).join(',')
314
+      // const detailimgs = this.detailimgsArr.map(x => x.response.result.url).join(',')
315
+
289
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
316
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
290
       if (this.id === '') {
317
       if (this.id === '') {
291
         this.detail.OrgId = this.OrgId
318
         this.detail.OrgId = this.OrgId
292
-        this.AddCaseInfo({...this.detail, OrgId: this.OrgId, imgs, detailimgs, courseids}).then(res => {
319
+        this.AddCaseInfo({...this.detail, OrgId: this.OrgId, imgs: this.img, detailimgs: this.detailimg, courseids}).then(res => {
293
           this.afterSave()
320
           this.afterSave()
294
         })
321
         })
295
       } else {
322
       } else {
296
-        this.AddCaseInfo({...this.detail, imgs, detailimgs, courseids}).then(res => {
323
+        this.AddCaseInfo({...this.detail, imgs: this.img, detailimgs: this.detailimg, courseids}).then(res => {
297
           this.afterSave()
324
           this.afterSave()
298
         })
325
         })
299
       }
326
       }
311
     cancel () {
338
     cancel () {
312
       this.$router.go(-1)
339
       this.$router.go(-1)
313
     },
340
     },
314
-    handlePictureCardPreview (res, file, fileList) {
315
-      this.imgsArr = fileList
316
-    },
317
-    handleRemove (file, fileList) {
318
-      this.imgsArr = fileList
319
-    },
320
-    handlePictureCardPreviewDetail (res, file, fileList) {
321
-      this.detailimgsArr = fileList
322
-    },
323
-    handleRemoveDetail (file, fileList) {
324
-      this.detailimgsArr = fileList
325
-    },
341
+    // handlePictureCardPreview (res, file, fileList) {
342
+    //   this.imgsArr = fileList
343
+    // },
344
+    // handleRemove (file, fileList) {
345
+    //   this.imgsArr = fileList
346
+    // },
347
+    // handlePictureCardPreviewDetail (res, file, fileList) {
348
+    //   this.detailimgsArr = fileList
349
+    // },
350
+    // handleRemoveDetail (file, fileList) {
351
+    //   this.detailimgsArr = fileList
352
+    // },
326
     getDetail () {
353
     getDetail () {
327
       this.GetCaseInfo({id: this.id})
354
       this.GetCaseInfo({id: this.id})
328
     },
355
     },
338
         this.$refs.courseTable.clearSelection()
365
         this.$refs.courseTable.clearSelection()
339
       }
366
       }
340
     },
367
     },
341
-    exceed () {
342
-      this.$message({
343
-        message: '超过可传的图片上限',
344
-        type: 'info',
345
-        duration: 1000
346
-      })
347
-    },
368
+    // exceed () {
369
+    //   this.$message({
370
+    //     message: '超过可传的图片上限',
371
+    //     type: 'info',
372
+    //     duration: 1000
373
+    //   })
374
+    // },
348
     addCourse () {
375
     addCourse () {
349
       this.GetCourseList({caseid: this.CaseId, page: 1, pagesize: 100, callback: this.coursesShow})
376
       this.GetCourseList({caseid: this.CaseId, page: 1, pagesize: 100, callback: this.coursesShow})
350
     },
377
     },
365
     },
392
     },
366
     deleteItem (row) {
393
     deleteItem (row) {
367
       this.UpdateInfo({...this.detail, Courses: this.detail.Courses.filter(x => x.CourseId !== row.CourseId)})
394
       this.UpdateInfo({...this.detail, Courses: this.detail.Courses.filter(x => x.CourseId !== row.CourseId)})
368
-    }
395
+    },
396
+    handleImgSuccess (res, file) {
397
+      this.img = res.result.url
398
+    },
399
+    handleDetailImgSuccess (res, file) {
400
+      this.detailimg = res.result.url
401
+    },
369
   },
402
   },
370
   mounted () {
403
   mounted () {
371
     this.getCourse()
404
     this.getCourse()

+ 35
- 23
src/pages/system/cmsManager/newsManager/add.vue 查看文件

62
         <li class="flex-h">
62
         <li class="flex-h">
63
           <span>图片:</span>
63
           <span>图片:</span>
64
           <div class="flex-item">
64
           <div class="flex-item">
65
-            <el-upload
65
+            <!-- <el-upload
66
               :action="$api.file.image.url"
66
               :action="$api.file.image.url"
67
               :limit='limit'
67
               :limit='limit'
68
               list-type="picture-card"
68
               list-type="picture-card"
74
             </el-upload>
74
             </el-upload>
75
             <el-dialog :visible.sync="dialogVisible">
75
             <el-dialog :visible.sync="dialogVisible">
76
               <img width="100%" :src="imgs" alt="">
76
               <img width="100%" :src="imgs" alt="">
77
-            </el-dialog>
77
+            </el-dialog> -->
78
+            <!-- 单选 -->
79
+            <el-upload
80
+              class="avatar-uploader"
81
+              :action='$api.file.image.url'
82
+              :show-file-list="false"
83
+              :on-success="handleAvatarSuccess">
84
+              <img v-if="postData.ImageUrl" :src="postData.ImageUrl" class="avatar">
85
+              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
86
+            </el-upload>
78
           </div>
87
           </div>
79
         </li>
88
         </li>
80
         <li style="text-align:center">
89
         <li style="text-align:center">
148
       }
157
       }
149
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
158
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
150
       this.postData.locationids = this.postData.LocationIds.join(',')
159
       this.postData.locationids = this.postData.LocationIds.join(',')
151
-      this.postData.ImageUrl = ''
152
-      for (let i = 0; i < this.imgsArr.length; i++) {
153
-        this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
154
-      }
155
-      if (this.postData.ImageUrl) {
156
-        this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
157
-      }
160
+      // this.postData.ImageUrl = ''
161
+      // for (let i = 0; i < this.imgsArr.length; i++) {
162
+      //   this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
163
+      // }
164
+      // if (this.postData.ImageUrl) {
165
+      //   this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
166
+      // }
158
       this.$ajax(this.$api.cms.addNews.url, {
167
       this.$ajax(this.$api.cms.addNews.url, {
159
         method: this.$api.cms.addNews.method,
168
         method: this.$api.cms.addNews.method,
160
         data: this.postData
169
         data: this.postData
174
     cancel () {
183
     cancel () {
175
       this.$router.go(-1)
184
       this.$router.go(-1)
176
     },
185
     },
177
-    handlePictureCardPreview (res, file, fileList) {
178
-      this.imgs = res.result.url
179
-      this.dialogVisible = false
180
-      this.imgsArr = fileList
181
-    },
182
-    handleRemove (file, fileList) {
183
-      this.imgsArr = fileList
186
+    // handlePictureCardPreview (res, file, fileList) {
187
+    //   this.imgs = res.result.url
188
+    //   this.dialogVisible = false
189
+    //   this.imgsArr = fileList
190
+    // },
191
+    // handleRemove (file, fileList) {
192
+    //   this.imgsArr = fileList
193
+    // },
194
+    // exceed () {
195
+    //   this.$message({
196
+    //     message: '超过可传的图片上限',
197
+    //     type: 'info',
198
+    //     duration: 1000
199
+    //   })
200
+    // }
201
+    handleAvatarSuccess (res, file) {
202
+      this.postData.ImageUrl = res.result.url
184
     },
203
     },
185
-    exceed () {
186
-      this.$message({
187
-        message: '超过可传的图片上限',
188
-        type: 'info',
189
-        duration: 1000
190
-      })
191
-    }
192
   }
204
   }
193
 }
205
 }
194
 </script>
206
 </script>

+ 47
- 36
src/pages/system/cmsManager/newsManager/edit.vue 查看文件

62
         <li class="flex-h">
62
         <li class="flex-h">
63
           <span>图片:</span>
63
           <span>图片:</span>
64
           <div class="flex-item">
64
           <div class="flex-item">
65
-            <el-upload
65
+            <!-- <el-upload
66
               :action="$api.file.image.url"
66
               :action="$api.file.image.url"
67
               :limit='limit'
67
               :limit='limit'
68
               list-type="picture-card"
68
               list-type="picture-card"
74
             </el-upload>
74
             </el-upload>
75
             <el-dialog :visible.sync="dialogVisible">
75
             <el-dialog :visible.sync="dialogVisible">
76
               <img width="100%" :src="imgs" alt="">
76
               <img width="100%" :src="imgs" alt="">
77
-            </el-dialog>
77
+            </el-dialog> -->
78
+            <el-upload
79
+              class="avatar-uploader"
80
+              :action='$api.file.image.url'
81
+              :show-file-list="false"
82
+              :on-success="handleAvatarSuccess">
83
+              <img v-if="postData.ImageUrl" :src="postData.ImageUrl" class="avatar">
84
+              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
85
+            </el-upload>
78
           </div>
86
           </div>
79
         </li>
87
         </li>
80
         <li style="text-align:center">
88
         <li style="text-align:center">
144
       }
152
       }
145
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
153
       this.postData.ForwardType === '1' ? this.postData.ForwardType = 'url' : this.postData.ForwardType = 'course'
146
       this.postData.locationids = this.postData.LocationIds.join(',')
154
       this.postData.locationids = this.postData.LocationIds.join(',')
147
-      this.postData.ImageUrl = ''
148
-      for (let i = 0; i < this.imgsArr.length; i++) {
149
-        this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
150
-      }
151
-      if (this.postData.ImageUrl) {
152
-        this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
153
-      }
155
+      // this.postData.ImageUrl = ''
156
+      // for (let i = 0; i < this.imgsArr.length; i++) {
157
+      //   this.postData.ImageUrl += this.imgsArr[i].response.result.url + ','
158
+      // }
159
+      // if (this.postData.ImageUrl) {
160
+      //   this.postData.ImageUrl = this.postData.ImageUrl.substr(0, this.postData.ImageUrl.length - 1)
161
+      // }
154
       this.$ajax(this.$api.cms.editNews.url, {
162
       this.$ajax(this.$api.cms.editNews.url, {
155
         method: this.$api.cms.editNews.method,
163
         method: this.$api.cms.editNews.method,
156
         urlData: {
164
         urlData: {
173
     cancel () {
181
     cancel () {
174
       this.$router.go(-1)
182
       this.$router.go(-1)
175
     },
183
     },
176
-    handlePictureCardPreview (res, file, fileList) {
177
-      this.imgs = res.result.url
178
-      this.dialogVisible = false
179
-      this.imgsArr = fileList
180
-    },
181
-    handleRemove (file, fileList) {
182
-      this.imgsArr = fileList
183
-    },
184
-    exceed () {
185
-      this.$message({
186
-        message: '超过可传的图片上限',
187
-        type: 'info',
188
-        duration: 1000
189
-      })
190
-    },
184
+    // handlePictureCardPreview (res, file, fileList) {
185
+    //   this.imgs = res.result.url
186
+    //   this.dialogVisible = false
187
+    //   this.imgsArr = fileList
188
+    // },
189
+    // handleRemove (file, fileList) {
190
+    //   this.imgsArr = fileList
191
+    // },
192
+    // exceed () {
193
+    //   this.$message({
194
+    //     message: '超过可传的图片上限',
195
+    //     type: 'info',
196
+    //     duration: 1000
197
+    //   })
198
+    // },
191
     getDetail () {
199
     getDetail () {
192
       this.$ajax(this.$api.cms.newsDetail.url, {
200
       this.$ajax(this.$api.cms.newsDetail.url, {
193
         method: this.$api.cms.newsDetail.method,
201
         method: this.$api.cms.newsDetail.method,
203
           return previousValue
211
           return previousValue
204
         }, [])
212
         }, [])
205
         console.log(res.LocationIds)
213
         console.log(res.LocationIds)
206
-        let imgsArr = []
207
-        let item = {
208
-          url: res.ImageUrl,
209
-          response: {
210
-            result: {
211
-              url: res.ImageUrl
212
-            }
213
-          }
214
-        }
215
-        imgsArr.push(item)
216
-        this.imgsArr = imgsArr
214
+        // let imgsArr = []
215
+        // let item = {
216
+        //   url: res.ImageUrl,
217
+        //   response: {
218
+        //     result: {
219
+        //       url: res.ImageUrl
220
+        //     }
221
+        //   }
222
+        // }
223
+        // imgsArr.push(item)
224
+        // this.imgsArr = imgsArr
217
         this.postData = res
225
         this.postData = res
218
       }).catch(msg => {
226
       }).catch(msg => {
219
 
227
 
220
       })
228
       })
221
-    }
229
+    },
230
+    handleAvatarSuccess (res, file) {
231
+      this.postData.ImageUrl = res.result.url
232
+    },
222
   }
233
   }
223
 }
234
 }
224
 </script>
235
 </script>

+ 2
- 3
src/pages/system/courseManager/fiveA/edit.vue 查看文件

149
           id: this.$route.query.id
149
           id: this.$route.query.id
150
         }
150
         }
151
       }).then(res => {
151
       }).then(res => {
152
-        console.log(res)
153
         let imgsArr = []
152
         let imgsArr = []
154
         let item = {
153
         let item = {
155
-          url: res.ImageUrl,
154
+          url: res.TypeImg,
156
           response: {
155
           response: {
157
             result: {
156
             result: {
158
-              url: res.ImageUrl
157
+              url: res.TypeImg
159
             }
158
             }
160
           }
159
           }
161
         }
160
         }

+ 37
- 21
src/pages/system/goodsManager/goodManager/edit.vue 查看文件

33
           <span>商品图片:</span>
33
           <span>商品图片:</span>
34
           <div class="flex-item">
34
           <div class="flex-item">
35
             <div style="width:50%">
35
             <div style="width:50%">
36
-              <el-upload
36
+              <!-- 多选 -->
37
+              <!-- <el-upload
37
                 :action="$api.file.image.url"
38
                 :action="$api.file.image.url"
38
                 :limit='limit'
39
                 :limit='limit'
39
                 list-type="picture-card"
40
                 list-type="picture-card"
42
                 :on-remove="handleRemove"
43
                 :on-remove="handleRemove"
43
                 :on-exceed="exceed">
44
                 :on-exceed="exceed">
44
                 <i class="el-icon-plus"></i>
45
                 <i class="el-icon-plus"></i>
46
+              </el-upload> -->
47
+              <!-- 单选 -->
48
+              <el-upload
49
+                class="avatar-uploader"
50
+                :action='$api.file.image.url'
51
+                :show-file-list="false"
52
+                :on-success="handleAvatarSuccess">
53
+                <img v-if="Image" :src="Image" class="avatar">
54
+                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
45
               </el-upload>
55
               </el-upload>
46
             </div>
56
             </div>
47
           </div>
57
           </div>
105
   name: '',
115
   name: '',
106
   data () {
116
   data () {
107
     return {
117
     return {
108
-      limit: 2,
118
+      limit: 1,
109
       dialogVisible: false,
119
       dialogVisible: false,
110
       infoSpecs: null,
120
       infoSpecs: null,
111
     }
121
     }
128
       },
138
       },
129
       set (val) {
139
       set (val) {
130
         this.UpdateInfo({...this.detail, CaseId: val})
140
         this.UpdateInfo({...this.detail, CaseId: val})
141
+        this.detail.TypeId = ''
131
         this.GetGoodTypes({ pagesize: 1000, caseid: this.Case })
142
         this.GetGoodTypes({ pagesize: 1000, caseid: this.Case })
132
         this.GetGoodSpecs({ pagesize: 1000, caseid: this.Case })
143
         this.GetGoodSpecs({ pagesize: 1000, caseid: this.Case })
133
       }
144
       }
134
     },
145
     },
135
     detailSpecs: {
146
     detailSpecs: {
136
       get () {
147
       get () {
148
+        console.log(this.infoSpecs || (this.detail.Specs || []).map(x => x.SpecId))
137
         return this.infoSpecs || (this.detail.Specs || []).map(x => x.SpecId)
149
         return this.infoSpecs || (this.detail.Specs || []).map(x => x.SpecId)
138
       },
150
       },
139
       set (val) {
151
       set (val) {
140
         this.infoSpecs = val
152
         this.infoSpecs = val
141
       },
153
       },
142
     },
154
     },
143
-    imgsArr () {
144
-      return (this.detail.Images || []).map(x => {
145
-        return {...x, url: x.url || x.ImgUrl}
146
-      })
147
-    },
155
+    // imgsArr () {
156
+    //   return (this.detail.Images || []).map(x => {
157
+    //     return {...x, url: x.url || x.ImgUrl}
158
+    //   })
159
+    // },
160
+    Image () {
161
+      return ((this.detail.Images || [])[0] || {}).ImgUrl
162
+    }
148
   },
163
   },
149
   methods: {
164
   methods: {
150
     ...mapGoodsActions([
165
     ...mapGoodsActions([
183
     cancel () {
198
     cancel () {
184
       this.$router.go(-1)
199
       this.$router.go(-1)
185
     },
200
     },
186
-    handlePictureCardPreview (res, file, fileList) {
187
-      this.detail.Images = fileList
201
+    // handlePictureCardPreview (res, file, fileList) {
202
+    //   this.detail.Images = fileList
203
+    // },
204
+    // handleRemove (file, fileList) {
205
+    //   this.detail.Images = fileList
206
+    // },
207
+    // exceed () {
208
+    //   this.$message({
209
+    //     message: '超过可传的图片上限',
210
+    //     type: 'info',
211
+    //     duration: 1000
212
+    //   })
213
+    // },
214
+    handleAvatarSuccess (res, file) {
215
+      this.UpdateInfo({...this.detail, Images: [{ImgUrl: res.result.url}]})
188
     },
216
     },
189
-    handleRemove (file, fileList) {
190
-      this.detail.Images = fileList
191
-    },
192
-    exceed () {
193
-      this.$message({
194
-        message: '超过可传的图片上限',
195
-        type: 'info',
196
-        duration: 1000
197
-      })
198
-    }
199
   },
217
   },
200
   created () {
218
   created () {
201
     this.GetGoodTypes({ pagesize: 1000, caseid: this.Case })
219
     this.GetGoodTypes({ pagesize: 1000, caseid: this.Case })
203
     const { id } = this.$route.query
221
     const { id } = this.$route.query
204
     if (id && id !== '') {
222
     if (id && id !== '') {
205
       this.GetGoodsByID({ id: id })
223
       this.GetGoodsByID({ id: id })
206
-    } else {
207
-      this.SetNull()
208
     }
224
     }
209
   }
225
   }
210
 }
226
 }

+ 3
- 0
src/pages/system/goodsManager/goodManager/index.vue 查看文件

140
       'GetGoodsList',
140
       'GetGoodsList',
141
       'GetGoodTypes',
141
       'GetGoodTypes',
142
       'DelGoods',
142
       'DelGoods',
143
+      'SetNull',
143
     ]),
144
     ]),
144
     getTypeName (typeid) {
145
     getTypeName (typeid) {
145
       return (this.types.list.filter(x => x.TypeId === typeid)[0] || {}).TypeName
146
       return (this.types.list.filter(x => x.TypeId === typeid)[0] || {}).TypeName
167
     },
168
     },
168
     handleEdit (index, row) {
169
     handleEdit (index, row) {
169
       // 编辑
170
       // 编辑
171
+      this.SetNull()
170
       this.$router.push({ name: 'editGoods', query: { id: row.GoodsId } })
172
       this.$router.push({ name: 'editGoods', query: { id: row.GoodsId } })
171
     },
173
     },
172
     handleDelete (index, row) {
174
     handleDelete (index, row) {
194
       this.getList()
196
       this.getList()
195
     },
197
     },
196
     addRole () {
198
     addRole () {
199
+      this.SetNull()
197
       this.$router.push({ name: 'editGoods' })
200
       this.$router.push({ name: 'editGoods' })
198
     },
201
     },
199
   },
202
   },

+ 9
- 3
src/pages/system/goodsManager/goodsTypeManager/index.vue 查看文件

41
         <el-table-column
41
         <el-table-column
42
           prop="CaseName"
42
           prop="CaseName"
43
           label="所属案场">
43
           label="所属案场">
44
+          <template slot-scope="scope">
45
+            <span>{{getCaseName(scope.row.CaseId)}}</span>
46
+          </template>
44
         </el-table-column>
47
         </el-table-column>
45
         <el-table-column label="操作">
48
         <el-table-column label="操作">
46
           <template slot-scope="scope">
49
           <template slot-scope="scope">
107
       this.currentList = []
110
       this.currentList = []
108
       this.getList()
111
       this.getList()
109
     },
112
     },
113
+    getCaseName (caseid) {
114
+      return (this.cases.filter(x => x.CaseId === caseid)[0] || {}).CaseName
115
+    },
110
     getList () { // 获取列表
116
     getList () { // 获取列表
111
       this.$ajax(this.$api.goodsManager.getGoodsTypeList.url, {
117
       this.$ajax(this.$api.goodsManager.getGoodsTypeList.url, {
112
         method: this.$api.goodsManager.getGoodsTypeList.method,
118
         method: this.$api.goodsManager.getGoodsTypeList.method,
113
         queryData: { ...this.postData, caseid: this.CaseId }
119
         queryData: { ...this.postData, caseid: this.CaseId }
114
       }).then(res => {
120
       }).then(res => {
115
-        for (var n = 0; n < res.list.length; n++) {
116
-          res.list[n].CaseName = this.cases.filter(x => x.CaseId === res.list[n].CaseId)[0].CaseName
117
-        }
121
+        // for (var n = 0; n < res.list.length; n++) {
122
+        //   res.list[n].CaseName = this.cases.filter(x => x.CaseId === res.list[n].CaseId)[0].CaseName
123
+        // }
118
         this.currentList = res.list
124
         this.currentList = res.list
119
         this.postData.page = res.page
125
         this.postData.page = res.page
120
         this.total = res.pagenum
126
         this.total = res.pagenum

+ 27
- 0
src/pages/system/systemSet/userManager/add.vue 查看文件

14
             </div>
14
             </div>
15
           </div>
15
           </div>
16
         </li>
16
         </li>
17
+        <li class="flex-h" style="padding: 0;margin: 0;">
18
+          <span></span>
19
+          <div class="flex-item">
20
+            <div style="min-height: 0;">
21
+              <span style="font-size:10px;color:#bbb;">默认密码:123456</span>
22
+            </div>
23
+          </div>
24
+        </li>
17
         <li class="flex-h">
25
         <li class="flex-h">
18
           <span>用户头像:</span>
26
           <span>用户头像:</span>
19
           <div class="flex-item">
27
           <div class="flex-item">
216
           message: '手机号不能为空'
224
           message: '手机号不能为空'
217
         })
225
         })
218
         return false
226
         return false
227
+      } else {
228
+        var myreg = /^[1][3,4,5,6,7,8][0-9]{9}$/
229
+        if (!myreg.test(this.postData.Phone)) {
230
+          this.$message({
231
+            type: 'error',
232
+            message: '请输入正确的手机号!'
233
+          })
234
+          return false
235
+        }
236
+      }
237
+      if (this.postData.Email !== '') {
238
+        var emailreg = new RegExp('^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$')
239
+        if (!emailreg.test(this.postData.Email)) {
240
+          this.$message({
241
+            type: 'error',
242
+            message: '邮箱格式不正确!'
243
+          })
244
+          return false
245
+        }
219
       }
246
       }
220
       if (this.postData.BelongCaseId === '') this.postData.BelongCaseId = this.CaseId
247
       if (this.postData.BelongCaseId === '') this.postData.BelongCaseId = this.CaseId
221
       this.$ajax(this.$api.systemSet.addUser.url, {
248
       this.$ajax(this.$api.systemSet.addUser.url, {

+ 27
- 0
src/pages/system/systemSet/userManager/edit.vue 查看文件

14
             </div>
14
             </div>
15
           </div>
15
           </div>
16
         </li>
16
         </li>
17
+        <li class="flex-h" style="padding: 0;margin: 0;">
18
+          <span></span>
19
+          <div class="flex-item">
20
+            <div style="min-height: 0;">
21
+              <span style="font-size:10px;color:#bbb;">默认密码:123456</span>
22
+            </div>
23
+          </div>
24
+        </li>
17
         <li class="flex-h">
25
         <li class="flex-h">
18
           <span>用户头像:</span>
26
           <span>用户头像:</span>
19
           <div class="flex-item">
27
           <div class="flex-item">
234
           message: '手机号不能为空'
242
           message: '手机号不能为空'
235
         })
243
         })
236
         return false
244
         return false
245
+      } else {
246
+        var myreg = /^[1][3,4,5,6,7,8][0-9]{9}$/
247
+        if (!myreg.test(this.postData.Phone)) {
248
+          this.$message({
249
+            type: 'error',
250
+            message: '请输入正确的手机号!'
251
+          })
252
+          return false
253
+        }
254
+      }
255
+      if (this.postData.Email !== '') {
256
+        var emailreg = new RegExp('^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$')
257
+        if (!emailreg.test(this.postData.Email)) {
258
+          this.$message({
259
+            type: 'error',
260
+            message: '邮箱格式不正确!'
261
+          })
262
+          return false
263
+        }
237
       }
264
       }
238
       if (this.postData.BelongCaseId === '') this.postData.BelongCaseId = this.BelongCaseId
265
       if (this.postData.BelongCaseId === '') this.postData.BelongCaseId = this.BelongCaseId
239
       if (this.postData.TagIds === '') this.postData.TagIds = this.TagIds.join(',')
266
       if (this.postData.TagIds === '') this.postData.TagIds = this.TagIds.join(',')

+ 3
- 3
src/pages/system/systemSet/userManager/index.vue 查看文件

76
         <el-table-column
76
         <el-table-column
77
           prop="WorkNo"
77
           prop="WorkNo"
78
           label="工号"
78
           label="工号"
79
-          width="200">
79
+          width="150">
80
         </el-table-column>
80
         </el-table-column>
81
         <el-table-column
81
         <el-table-column
82
           prop="Phone"
82
           prop="Phone"
83
           label="手机号"
83
           label="手机号"
84
-          width="150">
84
+          width="200">
85
         </el-table-column>
85
         </el-table-column>
86
         <el-table-column
86
         <el-table-column
87
           prop="UserTypeNames"
87
           prop="UserTypeNames"
231
       })
231
       })
232
     },
232
     },
233
     resetPasswd (index, row) { // 重置密码
233
     resetPasswd (index, row) { // 重置密码
234
-      this.$confirm('确认重置此用户密码?', '提示', {
234
+      this.$confirm('确认重置此用户密码为:123456?', '提示', {
235
         confirmButtonText: '确定',
235
         confirmButtonText: '确定',
236
         cancelButtonText: '取消',
236
         cancelButtonText: '取消',
237
         type: 'warning'
237
         type: 'warning'