瀏覽代碼

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

许成详 6 年之前
父節點
當前提交
ddef0b4948

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

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

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

@@ -287,11 +287,11 @@ export default {
287 287
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
288 288
       if (this.id === '') {
289 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 291
           this.afterSave()
292 292
         })
293 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 295
           this.afterSave()
296 296
         })
297 297
       }
@@ -313,7 +313,7 @@ export default {
313 313
       this.GetCaseInfo({ id: this.id })
314 314
     },
315 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 318
     toggleSelection (rows) {
319 319
       if (rows) {

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

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

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

@@ -5,7 +5,7 @@
5 5
         <div class="flex-item flex-h">
6 6
           <el-button
7 7
           size="mini"
8
-          type="primary" @click="goLast">继续排课</el-button>
8
+          type="primary" @click="goLast">排课月表</el-button>
9 9
         </div>
10 10
         <ul>
11 11
           <li>
@@ -223,8 +223,8 @@ export default {
223 223
       this.currentCourseItem.CourseId = row.CourseId
224 224
       this.currentCourseItem.BeginDate = null
225 225
       this.currentCourseItem.EndDate = null
226
-      this.currentCourseItem.DetailName = null
227
-      this.currentCourseItem.DetailDesc = null
226
+      this.currentCourseItem.DetailName = ''
227
+      this.currentCourseItem.DetailDesc = ''
228 228
       this.centerDialogVisible = true
229 229
     },
230 230
     search () { // 搜索
@@ -238,6 +238,22 @@ export default {
238 238
       this.getList()
239 239
     },
240 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 257
       const item = {...this.currentCourseItem,
242 258
         OrgId: this.orgid,
243 259
         CaseId: this.postData.caseid,
@@ -254,6 +270,7 @@ export default {
254 270
       })
255 271
       this.search()
256 272
       this.centerDialogVisible = false
273
+      this.goLast()
257 274
     },
258 275
     goLast () {
259 276
       const { courseid } = this.$route.query

+ 8
- 6
src/pages/system/courseManager/scheduleManager/index.vue 查看文件

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

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

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

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

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

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

@@ -344,7 +344,11 @@ export default {
344 344
         method: this.$api.systemSet.getUserRoles.method,
345 345
         queryData: { userid: row.UserId }
346 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 352
         this.currentEditItem = row
349 353
         this.getRole()
350 354
         this.dialogTableVisible = true