许成详 6 years ago
parent
commit
0ca89a10ed

+ 2
- 1
src/pages/system/cardAndCouponManager/cardManager/edit.vue View File

@@ -144,7 +144,6 @@
144 144
             <div style="vertical-align: middle;">
145 145
               <a style="line-height: 40px;" v-if="videoOff" :href="cardInfo.VideoUrl" target="blank">{{cardInfo.VideoUrl}}</a>
146 146
               <el-upload
147
-                :disabled="isEdit"
148 147
                 class="avatar-uploader"
149 148
                 action='string'
150 149
                 :http-request="toolClass.upload"
@@ -264,11 +263,13 @@ export default {
264 263
           page: 1,
265 264
           pagesize: 10000
266 265
         }).then((res) => {
266
+          // console.log(JSON.stringify(res))
267 267
           this.courseList = res.list
268 268
           if (this.$route.query.id) {
269 269
             this.getCardById({
270 270
               id: this.$route.query.id
271 271
             }).then((res) => {
272
+              // console.log(JSON.stringify(res))
272 273
               if (res.Card.CaseId !== '') {
273 274
                 var aRes = res
274 275
                 this.GetChannelListList({

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

@@ -224,7 +224,6 @@
224 224
             <div style="vertical-align: middle;">
225 225
               <a style="line-height: 40px;" v-if="videoOff" :href="couponInfo.VideoUrl" target="blank">{{couponInfo.VideoUrl}}</a>
226 226
               <el-upload
227
-                :disabled="isEdit"
228 227
                 class="avatar-uploader"
229 228
                 action='string'
230 229
                 :http-request="toolClass.upload"
@@ -232,7 +231,7 @@
232 231
                 :on-success="videoSuccess">
233 232
                 <a style="line-height: 40px;padding: 0 10px;" :disabled="isEdit">{{videoOff ? '更换' : '添加'}}视频</a>
234 233
               </el-upload>
235
-              <el-button v-if="videoOff" type="danger" @click="deleteVideo" :disabled="isEdit">删除视频</el-button>
234
+              <el-button v-if="videoOff" type="danger" @click="deleteVideo">删除视频</el-button>
236 235
             </div>
237 236
           </div>
238 237
         </li>
@@ -404,7 +403,7 @@ export default {
404 403
         Price: '',
405 404
         TotalCount: '',
406 405
         SendType: '',
407
-        IsAll: '',
406
+        IsAll: 1,
408 407
         StartDate: '',
409 408
         EndDate: '',
410 409
         ValidDays: '',
@@ -685,7 +684,7 @@ export default {
685 684
         })
686 685
         return false
687 686
       }
688
-      if (this.couponInfo.IsAll === 0 && this.couponInfo.Targets[0].TargetId === '') {
687
+      if (!(this.couponInfo.IsAll - 0) && !this.courseList.length && !this.goodsList.length) {
689 688
         this.$message({
690 689
           type: 'error',
691 690
           message: '目标商品不能为空'

+ 21
- 2
src/pages/system/cmsManager/majorProjects/edit.vue View File

@@ -183,6 +183,13 @@
183 183
           </el-table-column>
184 184
         </el-table>
185 185
       </div>
186
+      <el-pagination
187
+        @current-change="handleCurrentChange"
188
+        :current-page.sync="postData.page"
189
+        :page-size="postData.pagesize"
190
+        layout="prev, pager, next, jumper"
191
+        :total="total">
192
+      </el-pagination>
186 193
       <span slot="footer" class="dialog-footer">
187 194
         <el-button @click="selCourseVisible = false">取 消</el-button>
188 195
         <el-button type="primary" @click="addCourseOk">确 定</el-button>
@@ -209,6 +216,11 @@ export default {
209 216
       detailimg: '',
210 217
       selCourseVisible: false,
211 218
       selCourseList: [],
219
+      postData: {
220
+        page: 1,
221
+        pagesize: 6
222
+      },
223
+      total: 0,
212 224
     }
213 225
   },
214 226
   components: {},
@@ -276,6 +288,10 @@ export default {
276 288
       }
277 289
       return true
278 290
     },
291
+    handleCurrentChange (val) {
292
+      this.postData.page = val
293
+      this.getCourse()
294
+    },
279 295
     submit () {
280 296
       var checkOff = this.checkFn([{
281 297
         target: Boolean(this.CaseId || ''),
@@ -309,7 +325,7 @@ export default {
309 325
       if (!checkOff) {
310 326
         return false
311 327
       }
312
-      if (this.detail.IsAllCourse === '0' && !this.detail.Courses.length) {
328
+      if (this.detail.IsAllCourse === 0 && !this.detail.Courses.length) {
313 329
         this.$message({
314 330
           message: '选择指定课程不能为空',
315 331
           type: 'error'
@@ -345,7 +361,10 @@ export default {
345 361
       this.GetCaseInfo({ id: this.id })
346 362
     },
347 363
     getCourse () {
348
-      this.GetCourseList({ caseid: this.CaseId === 'all' ? '' : this.CaseId, page: 1, pagesize: 100, status: 1 })
364
+      this.GetCourseList({ caseid: this.CaseId === 'all' ? '' : this.CaseId, ...this.postData, callback: this.coursesShow }).then((res) => {
365
+        this.postData.page = res.page
366
+        this.total = res.pagenum
367
+      })
349 368
     },
350 369
     toggleSelection (rows) {
351 370
       if (rows) {

+ 1
- 1
src/pages/system/dataStatistics/goodsOrderList/index.vue View File

@@ -113,7 +113,7 @@
113 113
             <div style="font-size:12px;">下单人:{{returnListItem(goodsOrderList, index).CustomerName}}</div>
114 114
             <span style="display:block;margin-top:10px;font-size:12px;">下单时间:{{toolClass.dateFormat(returnListItem(goodsOrderList, index).CreateDate)}}</span>
115 115
           </div>
116
-          <div style="padding:10px 10px;font-size:12px;">备注:{{item.Remark}}</div>
116
+          <div style="padding:10px 10px;font-size:12px;white-space: normal;">备注:{{item.Remark}}</div>
117 117
           <div style="text-align: right;font-size: 12px;">城的空间.城咖啡</div>
118 118
           <div style="height:10px"></div>
119 119
         </div>

+ 1
- 1
src/pages/system/newOrder/newOrderList/index.vue View File

@@ -43,7 +43,7 @@
43 43
               <span style="display:inline-block;width:20%;text-align:right">× {{item1.Number}}</span>
44 44
             </div>
45 45
           </div>
46
-          <div style="padding:10px 20px;border-bottom:1px solid #cccccc">备注:{{item.Remark}}</div>
46
+          <div style="padding:10px 20px;border-bottom:1px solid #cccccc;white-space: normal;">备注:{{item.Remark}}</div>
47 47
           <div style="padding:10px 20px;" @click="printPdf(`item${index}`)">下单人:{{item.UserName}}</div>
48 48
         </div>
49 49
         <div class="print-area" :class="'item_' + item.OrdersId" style="width:180px;">