Commit 9191b82d by crushh

update: dist

parent 3f808682
......@@ -23,7 +23,7 @@ export const gicPaymentList = params => requests(PREFIX + 'query-gic-payment-lis
export const getEcmInfo = params => requests(PREFIX + 'get-ecm-info', params);
// 智能营销--ECM营销引擎-- 新建/修改 [保存]计划信息
export const saveEcmInfo = params => requests(PREFIX + 'check-ecm-send-count', params);
export const saveEcmInfo = params => requests(PREFIX + 'save-update-ecm', params);
// 智能营销--下线
export const offlineEcmPlan = params => requests(PREFIX + 'ecm-plan-offline', params);
......
......@@ -61,6 +61,7 @@ export default {
describe: '',
lateDays: '',
brithday_day: '',
brithday_dayval: 0,
brithday_type: 1,
attention_day: '',
lastCost_day: '',
......@@ -489,11 +490,12 @@ export default {
this.hasSearchData = result.filterJson || '{}';
}
if (this.form.effectType === 1) {
commonScene.brithday_day == 0 ? (this.form.brithday_dayval = 0) : (this.form.brithday_dayval = 1);
this.form.brithday_day = commonScene.brithday_day;
this.form.brithday_type = commonScene.brithday_type || 1;
this.form.attention_day = commonScene.attention_day;
this.form.lastCost_day = commonScene.lastCost_day;
if (this.form.brithday_day) {
if (this.form.brithday_day == 0 || this.form.brithday_day) {
this.checked = ['brithday_day'];
} else if (this.form.attention_day) {
this.checked = ['attention_day'];
......@@ -939,7 +941,7 @@ export default {
expireType: this.form.expireType,
beginDate: this.form.expireType ? formatDateTimeByType(this.form.beginDate, 'yyyy-MM-dd-HH-mm-ss') : '',
endDate: this.form.expireType ? formatDateTimeByType(this.form.endDate, 'yyyy-MM-dd-HH-mm-ss') : '',
brithday_day: this.form.effectType == 1 ? this.form.brithday_day : undefined,
brithday_day: this.form.effectType == 1 ? (this.form.brithday_dayval == 0 ? 0 : this.form.brithday_day) : undefined,
brithday_type: this.form.effectType == 1 ? this.form.brithday_type : undefined,
attention_day: this.form.effectType == 1 ? this.form.attention_day : undefined,
lastCost_day: this.form.effectType == 1 ? this.form.lastCost_day : undefined,
......
......@@ -69,13 +69,22 @@
<div class="fz12 gray">选填,勾选后生效</div>
<el-checkbox-group v-model="checked" :max="1">
<div class="pb10" style="display:flex;">
<el-checkbox :disabled="!isAdd" class="w150" label="brithday_day">会员生日前 </el-checkbox>
<el-checkbox :disabled="!isAdd" class="w150" label="brithday_day" style="margin-right:0">会员生日前 </el-checkbox>
<el-select class="w100" :disabled="!isAdd" v-model="form.brithday_type" placeholder="请选择生日类型" @change="effectActionChange">
<el-option label="阳历生日" :value="1"></el-option>
<el-option label="阴历生日" :value="2"></el-option>
</el-select>
<el-input-number controls-position="right" :min="checked[0] === 'brithday_day' ? 1 : 0" style="width:244px;" :disabled="checked[0] !== 'brithday_day' || isEdit" v-model="form.brithday_day"></el-input-number>
<el-radio style="margin-left:10px" :disabled="checked[0] !== 'brithday_day' || isEdit" v-model="form.brithday_dayval" :label="0">
<span style="line-height:32px">当天</span>
</el-radio>
<el-radio :disabled="checked[0] !== 'brithday_day' || isEdit" v-model="form.brithday_dayval" :label="1">
之前
<el-input-number controls-position="right" :min="1" style="width:244px;" :disabled="checked[0] !== 'brithday_day' || isEdit" v-model="form.brithday_day"></el-input-number>
<span style="line-height:32px;font-size: 14px;margin-left:20px">执行</span>
</el-radio>
</div>
<div class="pb10">
<el-checkbox :disabled="!isAdd" class="w150" label="attention_day">关注时长超过 </el-checkbox>
<el-input-number controls-position="right" :min="checked[0] === 'attention_day' ? 1 : 0" :max="100000" style="width:344px;" :disabled="checked[0] !== 'attention_day' || isEdit" v-model="form.attention_day"></el-input-number>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment