wangfei 6 vuotta sitten
vanhempi
commit
a45e780c0b

+ 4
- 1
src/pages/system/cardAndCouponManager/couponManager/edit.vue Näytä tiedosto

@@ -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
- 6
src/pages/system/cmsManager/majorProjects/edit.vue Näytä tiedosto

@@ -314,17 +314,14 @@ export default {
314 314
       'GetCourseList',
315 315
     ]),
316 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 317
       const courseids = (this.detail.Courses || []).map(x => x.CourseId).join(',')
321 318
       if (this.id === '') {
322 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 321
           this.afterSave()
325 322
         })
326 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 325
           this.afterSave()
329 326
         })
330 327
       }
@@ -358,7 +355,7 @@ export default {
358 355
       this.GetCaseInfo({id: this.id})
359 356
     },
360 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 360
     toggleSelection (rows) {
364 361
       if (rows) {

+ 1
- 1
src/pages/system/cmsManager/newsManager/add.vue Näytä tiedosto

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

+ 20
- 3
src/pages/system/courseManager/scheduleManager/edit.vue Näytä tiedosto

@@ -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
- 8
src/pages/system/courseManager/scheduleManager/index.vue Näytä tiedosto

@@ -69,7 +69,7 @@
69 69
           </li>
70 70
           <li class="flex-h">
71 71
             <span>开始时间:</span>
72
-            <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
72
+            <!-- <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
73 73
               <div>
74 74
                 <el-date-picker
75 75
                   v-model="currentCourseItem.BeginDate"
@@ -78,12 +78,12 @@
78 78
                   >
79 79
                 </el-date-picker>
80 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 83
           </li>
84 84
           <li class="flex-h">
85 85
             <span>结束时间:</span>
86
-            <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
86
+            <!-- <div class="flex-item" v-if="currentCourseItem.CourseStatus===0">
87 87
               <div>
88 88
                 <el-date-picker
89 89
                   v-model="currentCourseItem.EndDate"
@@ -91,8 +91,8 @@
91 91
                   placeholder="选择结束日期">
92 92
                 </el-date-picker>
93 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 96
           </li>
97 97
         </ul>
98 98
       </div>
@@ -196,8 +196,8 @@ export default {
196 196
     },
197 197
     handlUpdateDetail () {
198 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 201
         callback: this.AfterAction})
202 202
     },
203 203
     AfterAction () {

+ 5
- 5
src/pages/system/marketingActivities/activitiesList/index.vue Näytä tiedosto

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

+ 2
- 0
src/pages/system/systemSet/roleManager/index.vue Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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