浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

许成详 6 年前
父节点
当前提交
ddef0b4948

+ 4
- 1
src/pages/system/cardAndCouponManager/couponManager/edit.vue 查看文件

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
- 3
src/pages/system/cmsManager/majorProjects/edit.vue 查看文件

287
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
287
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
288
       if (this.id === '') {
288
       if (this.id === '') {
289
         this.detail.OrgId = this.OrgId
289
         this.detail.OrgId = this.OrgId
290
-        this.AddCaseInfo({ ...this.detail, OrgId: this.OrgId, imgs: this.img, detailimgs: this.detailimg, courseids }).then(res => {
290
+        this.AddCaseInfo({...this.detail, OrgId: this.OrgId, imgs: this.imgShow, detailimgs: this.detailImgShow, courseids}).then(res => {
291
           this.afterSave()
291
           this.afterSave()
292
         })
292
         })
293
       } else {
293
       } else {
294
-        this.AddCaseInfo({ ...this.detail, imgs: this.img, detailimgs: this.detailimg, courseids }).then(res => {
294
+        this.AddCaseInfo({...this.detail, imgs: this.imgShow, detailimgs: this.detailImgShow, courseids}).then(res => {
295
           this.afterSave()
295
           this.afterSave()
296
         })
296
         })
297
       }
297
       }
313
       this.GetCaseInfo({ id: this.id })
313
       this.GetCaseInfo({ id: this.id })
314
     },
314
     },
315
     getCourse () {
315
     getCourse () {
316
-      this.GetCourseList({ caseid: this.CaseId, page: 1, pagesize: 100 })
316
+      this.GetCourseList({caseid: this.CaseId, page: 1, pagesize: 100, status: 1})
317
     },
317
     },
318
     toggleSelection (rows) {
318
     toggleSelection (rows) {
319
       if (rows) {
319
       if (rows) {

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

214
           this.$router.push({ name: 'newsManager' })
214
           this.$router.push({ name: 'newsManager' })
215
         }, 1000)
215
         }, 1000)
216
       }).catch(msg => {
216
       }).catch(msg => {
217
-
217
+        console.log(msg)
218
       })
218
       })
219
     },
219
     },
220
     cancel () {
220
     cancel () {

+ 20
- 3
src/pages/system/courseManager/scheduleManager/edit.vue 查看文件

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
- 6
src/pages/system/courseManager/scheduleManager/index.vue 查看文件

71
           </li>
71
           </li>
72
           <li class="flex-h">
72
           <li class="flex-h">
73
             <span>开始时间:</span>
73
             <span>开始时间:</span>
74
-            <div class="flex-item">
74
+            <!-- <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
75
               <div>
75
               <div>
76
                 <el-date-picker
76
                 <el-date-picker
77
                   v-if="currentCourseItem.CourseStatus===0"
77
                   v-if="currentCourseItem.CourseStatus===0"
82
                 </el-date-picker>
82
                 </el-date-picker>
83
                 <span v-else>{{this.toolClass.dateFormat(currentCourseItem.BeginDate, 'yyyy-MM-dd hh:mm')}}</span>
83
                 <span v-else>{{this.toolClass.dateFormat(currentCourseItem.BeginDate, 'yyyy-MM-dd hh:mm')}}</span>
84
               </div>
84
               </div>
85
-            </div>
85
+            </div> -->
86
+            <span>{{this.toolClass.dateFormat(currentCourseItem.BeginDate, 'yyyy-MM-dd hh:mm')}}</span>
86
           </li>
87
           </li>
87
           <li class="flex-h">
88
           <li class="flex-h">
88
             <span>结束时间:</span>
89
             <span>结束时间:</span>
89
-            <div class="flex-item">
90
+            <!-- <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
90
               <div>
91
               <div>
91
                 <el-date-picker
92
                 <el-date-picker
92
                   v-if="currentCourseItem.CourseStatus===0"
93
                   v-if="currentCourseItem.CourseStatus===0"
96
                 </el-date-picker>
97
                 </el-date-picker>
97
                 <span v-else>{{this.toolClass.dateFormat(currentCourseItem.EndDate, 'yyyy-MM-dd hh:mm')}}</span>
98
                 <span v-else>{{this.toolClass.dateFormat(currentCourseItem.EndDate, 'yyyy-MM-dd hh:mm')}}</span>
98
               </div>
99
               </div>
99
-            </div>
100
+            </div> -->
101
+            <span>{{this.toolClass.dateFormat(currentCourseItem.EndDate, 'yyyy-MM-dd hh:mm')}}</span>
100
           </li>
102
           </li>
101
         </ul>
103
         </ul>
102
       </div>
104
       </div>
200
     },
202
     },
201
     handlUpdateDetail () {
203
     handlUpdateDetail () {
202
       this.UpdateDetail({...this.currentCourseItem,
204
       this.UpdateDetail({...this.currentCourseItem,
203
-        BeginDate: this.toolClass.dateFormat(this.currentCourseItem.BeginDate, 'yyyy-MM-ddThh:mm:ss'),
204
-        EndDate: this.toolClass.dateFormat(this.currentCourseItem.EndDate, 'yyyy-MM-ddThh:mm:ss'),
205
+        // BeginDate: this.toolClass.dateFormat(this.currentCourseItem.BeginDate, 'yyyy-MM-ddThh:mm:ss'),
206
+        // EndDate: this.toolClass.dateFormat(this.currentCourseItem.EndDate, 'yyyy-MM-ddThh:mm:ss'),
205
         callback: this.AfterAction})
207
         callback: this.AfterAction})
206
     },
208
     },
207
     AfterAction () {
209
     AfterAction () {

+ 2
- 2
src/pages/system/marketingActivities/activitiesList/index.vue 查看文件

66
             prop="Status"
66
             prop="Status"
67
             label="状态">
67
             label="状态">
68
             <template slot-scope="scope">
68
             <template slot-scope="scope">
69
-              <span>{{scope.row.Status === 0 ? '启用' : '停用'}}</span>
69
+              <span>{{scope.row.Status === 1 ? '启用' : '停用'}}</span>
70
             </template>
70
             </template>
71
           </el-table-column>
71
           </el-table-column>
72
           <el-table-column
72
           <el-table-column
80
                 type="danger"
80
                 type="danger"
81
                 @click="delet(scope.row.ActivityId)">删除</el-button>
81
                 @click="delet(scope.row.ActivityId)">删除</el-button>
82
               <el-button
82
               <el-button
83
-                v-if="scope.row.Status === 0"
83
+                v-if="scope.row.Status === 1"
84
                 size="mini"
84
                 size="mini"
85
                 type="warning"
85
                 type="warning"
86
                 @click="disable(scope.row.ActivityId)">停用</el-button>
86
                 @click="disable(scope.row.ActivityId)">停用</el-button>

+ 2
- 0
src/pages/system/systemSet/roleManager/index.vue 查看文件

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 查看文件

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