Browse Source

bug修改

wangfei 6 years ago
parent
commit
a45e780c0b

+ 4
- 1
src/pages/system/cardAndCouponManager/couponManager/edit.vue View File

287
             <el-table-column
287
             <el-table-column
288
               prop="TypeId"
288
               prop="TypeId"
289
               label="类别">
289
               label="类别">
290
+              <template slot-scope="scope">
291
+                <span>{{returnGoodsType(scope.row.TypeId)}}</span>
292
+              </template>
290
             </el-table-column>
293
             </el-table-column>
291
             <el-table-column
294
             <el-table-column
292
               prop="Price"
295
               prop="Price"
453
       set (val) {
456
       set (val) {
454
         this.couponInfo.caseid = val
457
         this.couponInfo.caseid = val
455
       }
458
       }
456
-    }
459
+    },
457
   },
460
   },
458
   methods: {
461
   methods: {
459
     ...mapGoodsActions([
462
     ...mapGoodsActions([

+ 3
- 6
src/pages/system/cmsManager/majorProjects/edit.vue View File

314
       'GetCourseList',
314
       'GetCourseList',
315
     ]),
315
     ]),
316
     submit () {
316
     submit () {
317
-      // const imgs = this.imgsArr.map(x => x.response.result.url).join(',')
318
-      // const detailimgs = this.detailimgsArr.map(x => x.response.result.url).join(',')
319
-
320
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
317
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
321
       if (this.id === '') {
318
       if (this.id === '') {
322
         this.detail.OrgId = this.OrgId
319
         this.detail.OrgId = this.OrgId
323
-        this.AddCaseInfo({...this.detail, OrgId: this.OrgId, imgs: this.img, detailimgs: this.detailimg, courseids}).then(res => {
320
+        this.AddCaseInfo({...this.detail, OrgId: this.OrgId, imgs: this.imgShow, detailimgs: this.detailImgShow, courseids}).then(res => {
324
           this.afterSave()
321
           this.afterSave()
325
         })
322
         })
326
       } else {
323
       } else {
327
-        this.AddCaseInfo({...this.detail, imgs: this.img, detailimgs: this.detailimg, courseids}).then(res => {
324
+        this.AddCaseInfo({...this.detail, imgs: this.imgShow, detailimgs: this.detailImgShow, courseids}).then(res => {
328
           this.afterSave()
325
           this.afterSave()
329
         })
326
         })
330
       }
327
       }
358
       this.GetCaseInfo({id: this.id})
355
       this.GetCaseInfo({id: this.id})
359
     },
356
     },
360
     getCourse () {
357
     getCourse () {
361
-      this.GetCourseList({caseid: this.CaseId, page: 1, pagesize: 100})
358
+      this.GetCourseList({caseid: this.CaseId, page: 1, pagesize: 100, status: 1})
362
     },
359
     },
363
     toggleSelection (rows) {
360
     toggleSelection (rows) {
364
       if (rows) {
361
       if (rows) {

+ 1
- 1
src/pages/system/cmsManager/newsManager/add.vue View File

179
           this.$router.push({ name: 'newsManager' })
179
           this.$router.push({ name: 'newsManager' })
180
         }, 1000)
180
         }, 1000)
181
       }).catch(msg => {
181
       }).catch(msg => {
182
-
182
+        console.log(msg)
183
       })
183
       })
184
     },
184
     },
185
     cancel () {
185
     cancel () {

+ 20
- 3
src/pages/system/courseManager/scheduleManager/edit.vue View File

5
         <div class="flex-item flex-h">
5
         <div class="flex-item flex-h">
6
           <el-button
6
           <el-button
7
           size="mini"
7
           size="mini"
8
-          type="primary" @click="goLast">继续排课</el-button>
8
+          type="primary" @click="goLast">排课月表</el-button>
9
         </div>
9
         </div>
10
         <ul>
10
         <ul>
11
           <li>
11
           <li>
223
       this.currentCourseItem.CourseId = row.CourseId
223
       this.currentCourseItem.CourseId = row.CourseId
224
       this.currentCourseItem.BeginDate = null
224
       this.currentCourseItem.BeginDate = null
225
       this.currentCourseItem.EndDate = null
225
       this.currentCourseItem.EndDate = null
226
-      this.currentCourseItem.DetailName = null
227
-      this.currentCourseItem.DetailDesc = null
226
+      this.currentCourseItem.DetailName = ''
227
+      this.currentCourseItem.DetailDesc = ''
228
       this.centerDialogVisible = true
228
       this.centerDialogVisible = true
229
     },
229
     },
230
     search () { // 搜索
230
     search () { // 搜索
238
       this.getList()
238
       this.getList()
239
     },
239
     },
240
     handleDetailSave () {
240
     handleDetailSave () {
241
+      if (this.currentCourseItem.DetailName === '') {
242
+        this.$message({
243
+          type: 'error',
244
+          message: '课程名称必填!'
245
+        })
246
+        return false
247
+      }
248
+
249
+      if (this.currentCourseItem.BeginDate === '' || this.currentCourseItem.EndDate === '' || this.currentCourseItem.BeginDate === null || this.currentCourseItem.EndDate === null) {
250
+        this.$message({
251
+          type: 'error',
252
+          message: '课程时间必填!'
253
+        })
254
+        return false
255
+      }
256
+
241
       const item = {...this.currentCourseItem,
257
       const item = {...this.currentCourseItem,
242
         OrgId: this.orgid,
258
         OrgId: this.orgid,
243
         CaseId: this.postData.caseid,
259
         CaseId: this.postData.caseid,
254
       })
270
       })
255
       this.search()
271
       this.search()
256
       this.centerDialogVisible = false
272
       this.centerDialogVisible = false
273
+      this.goLast()
257
     },
274
     },
258
     goLast () {
275
     goLast () {
259
       const { courseid } = this.$route.query
276
       const { courseid } = this.$route.query

+ 8
- 8
src/pages/system/courseManager/scheduleManager/index.vue View File

69
           </li>
69
           </li>
70
           <li class="flex-h">
70
           <li class="flex-h">
71
             <span>开始时间:</span>
71
             <span>开始时间:</span>
72
-            <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
72
+            <!-- <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
73
               <div>
73
               <div>
74
                 <el-date-picker
74
                 <el-date-picker
75
                   v-model="currentCourseItem.BeginDate"
75
                   v-model="currentCourseItem.BeginDate"
78
                   >
78
                   >
79
                 </el-date-picker>
79
                 </el-date-picker>
80
               </div>
80
               </div>
81
-            </div>
82
-            <span v-else>{{this.toolClass.dateFormat(currentCourseItem.BeginDate, 'yyyy-MM-dd hh:mm')}}</span>
81
+            </div> -->
82
+            <span>{{this.toolClass.dateFormat(currentCourseItem.BeginDate, 'yyyy-MM-dd hh:mm')}}</span>
83
           </li>
83
           </li>
84
           <li class="flex-h">
84
           <li class="flex-h">
85
             <span>结束时间:</span>
85
             <span>结束时间:</span>
86
-            <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
86
+            <!-- <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
87
               <div>
87
               <div>
88
                 <el-date-picker
88
                 <el-date-picker
89
                   v-model="currentCourseItem.EndDate"
89
                   v-model="currentCourseItem.EndDate"
91
                   placeholder="选择结束日期">
91
                   placeholder="选择结束日期">
92
                 </el-date-picker>
92
                 </el-date-picker>
93
               </div>
93
               </div>
94
-            </div>
95
-            <span v-else>{{this.toolClass.dateFormat(currentCourseItem.EndDate, 'yyyy-MM-dd hh:mm')}}</span>
94
+            </div> -->
95
+            <span>{{this.toolClass.dateFormat(currentCourseItem.EndDate, 'yyyy-MM-dd hh:mm')}}</span>
96
           </li>
96
           </li>
97
         </ul>
97
         </ul>
98
       </div>
98
       </div>
196
     },
196
     },
197
     handlUpdateDetail () {
197
     handlUpdateDetail () {
198
       this.UpdateDetail({...this.currentCourseItem,
198
       this.UpdateDetail({...this.currentCourseItem,
199
-        BeginDate: this.toolClass.dateFormat(this.currentCourseItem.BeginDate, 'yyyy-MM-ddThh:mm:ss'),
200
-        EndDate: this.toolClass.dateFormat(this.currentCourseItem.EndDate, 'yyyy-MM-ddThh:mm:ss'),
199
+        // BeginDate: this.toolClass.dateFormat(this.currentCourseItem.BeginDate, 'yyyy-MM-ddThh:mm:ss'),
200
+        // EndDate: this.toolClass.dateFormat(this.currentCourseItem.EndDate, 'yyyy-MM-ddThh:mm:ss'),
201
         callback: this.AfterAction})
201
         callback: this.AfterAction})
202
     },
202
     },
203
     AfterAction () {
203
     AfterAction () {

+ 5
- 5
src/pages/system/marketingActivities/activitiesList/index.vue View File

3
     <div class="title">
3
     <div class="title">
4
       活动列表
4
       活动列表
5
     </div>
5
     </div>
6
-    <div class="head-div">
6
+    <!-- <div class="head-div">
7
       每页数量/条
7
       每页数量/条
8
       <template>
8
       <template>
9
         <el-select v-model="postData.pageSize" placeholder="请选择">
9
         <el-select v-model="postData.pageSize" placeholder="请选择">
15
           </el-option>
15
           </el-option>
16
         </el-select>
16
         </el-select>
17
       </template>
17
       </template>
18
-    </div>
18
+    </div> -->
19
     <!-- 包含 按钮的div -->
19
     <!-- 包含 按钮的div -->
20
     <div class="button-div">
20
     <div class="button-div">
21
       <el-row>
21
       <el-row>
65
             prop="Status"
65
             prop="Status"
66
             label="状态">
66
             label="状态">
67
             <template slot-scope="scope">
67
             <template slot-scope="scope">
68
-              <span>{{scope.row.Status === 0 ? '启用' : '停用'}}</span>
68
+              <span>{{scope.row.Status === 1 ? '启用' : '停用'}}</span>
69
             </template>
69
             </template>
70
           </el-table-column>
70
           </el-table-column>
71
           <el-table-column
71
           <el-table-column
73
             label="操作">
73
             label="操作">
74
             <template slot-scope="scope">
74
             <template slot-scope="scope">
75
               <div v-if="scope.row.Status === 0">
75
               <div v-if="scope.row.Status === 0">
76
-                <a href="#" @click="disable(scope.row.ActivityId)">停用</a>&nbsp;&nbsp;<a href="#" @click="delet(scope.row.ActivityId)">删除</a>
76
+                <a href="#" @click="normal(scope.row.ActivityId)">启用</a>&nbsp;&nbsp;<a href="#" @click="delet(scope.row.ActivityId)">删除</a>
77
               </div>
77
               </div>
78
               <div v-else>
78
               <div v-else>
79
-                <a href="#" @click="normal(scope.row.ActivityId)">启用</a>
79
+                <a href="#" @click="disable(scope.row.ActivityId)">停用</a>
80
               </div>
80
               </div>
81
             </template>
81
             </template>
82
           </el-table-column>
82
           </el-table-column>

+ 2
- 0
src/pages/system/systemSet/roleManager/index.vue View File

137
     handlePermission (index, row) {
137
     handlePermission (index, row) {
138
       this.selid = row.RoleId
138
       this.selid = row.RoleId
139
       this.GetRoleMenu({id: this.selid})
139
       this.GetRoleMenu({id: this.selid})
140
+      console.log(this.roleMenus)
140
       this.dialogTableVisible = true
141
       this.dialogTableVisible = true
141
     },
142
     },
142
     handleNodeClick (node) {
143
     handleNodeClick (node) {
144
+      console.log(node)
143
     },
145
     },
144
     searchList (key) {
146
     searchList (key) {
145
       this.key = key
147
       this.key = key

+ 5
- 1
src/pages/system/systemSet/userManager/index.vue View File

344
         method: this.$api.systemSet.getUserRoles.method,
344
         method: this.$api.systemSet.getUserRoles.method,
345
         queryData: { userid: row.UserId }
345
         queryData: { userid: row.UserId }
346
       }).then(res => {
346
       }).then(res => {
347
-        if (res !== null) this.tags = res
347
+        if (res !== null) {
348
+          this.tags = res
349
+        } else {
350
+          this.tags = []
351
+        }
348
         this.currentEditItem = row
352
         this.currentEditItem = row
349
         this.getRole()
353
         this.getRole()
350
         this.dialogTableVisible = true
354
         this.dialogTableVisible = true