jufubao-admin-library 1.1.178 → 1.1.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,7 +399,7 @@ export default {
399
399
  multiple: true, //多选
400
400
  list: this.marketTagsList,
401
401
  },
402
- this.channelParams&&this.channelParams.scene === 'selected'&&{
402
+ (this.channelParams&&this.channelParams.scene === 'selected')||this.pagesType === 'special'&&{
403
403
  label: "平台标签:", //label
404
404
  ele: "xd-select-list", //package 名称
405
405
  valueKey: "partner_product_tags_obj", //form[valueKey]
@@ -123,6 +123,13 @@ export default {
123
123
  }
124
124
  }
125
125
  },
126
+ 'listValue.is_limit_work_number': {
127
+ handler(n, o) {
128
+ if(n&&n!==o){
129
+ this.initForm(this.listValue)
130
+ }
131
+ }
132
+ }
126
133
  },
127
134
 
128
135
  created () {
@@ -431,6 +438,55 @@ export default {
431
438
  { required: true, message: "请选择活动时间" }
432
439
  ]
433
440
  },
441
+ params.activity_type==='activity'&&{
442
+ label: '活动提交次数:', //label
443
+ ele: "xd-radio",
444
+ valueKey: 'is_limit_work_number', //form[valueKey]
445
+ value: params.is_limit_work_number || 'N', //v-model
446
+ placeholder: '请选择活动提交次数',
447
+ list: [{ value: 'N', label: '不限次数' }, { value: 'PER_PERSON', label: '按每人' }],
448
+ rules: [
449
+ { required: true, message: '请选择活动提交次数', trigger: ['blur', 'change'] },
450
+ ]
451
+ },
452
+ params.is_limit_work_number==='PER_PERSON'&&{
453
+ label: "",
454
+ ele: "xd-input-unit",
455
+ valueKey: "work_max_number",
456
+ value: params["work_max_number"] || "",
457
+ placeholder: {
458
+ unitPlaceholder: "请输入次数",
459
+ },
460
+ notice:'每人在活动周期内可提交的次数,如提交1次后又删除,则不记次',
461
+ setting: {
462
+ unit: "次",
463
+ pos: "append",
464
+ type: "number",
465
+ },
466
+ rules: [
467
+ {
468
+ required: true,
469
+ trigger: "blur",
470
+ validator: (rule, value, callback) => {
471
+ let flag = true;
472
+ if (value === null || value === "") {
473
+ flag = false;
474
+ callback("请输入次数");
475
+ return;
476
+ }
477
+ if (flag) {
478
+ if (value <= 0) {
479
+ flag = false;
480
+ callback("请输入正整数");
481
+ return;
482
+ }
483
+ }
484
+ if (flag) callback();
485
+ },
486
+ },
487
+ ],
488
+ inline: false,
489
+ },
434
490
  params.activity_type==='sign_up'&&{
435
491
  label: '报名时间:',
436
492
  ele: 'xd-date-range',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.178",
3
+ "version": "1.1.179",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {