Commit fb07160a by 前端

二轮bug修复

1 parent 1e4edd86
......@@ -39,10 +39,10 @@
<template #pageTheme>
<div class="page-theme">
<el-form-item label="第一行" prop="theme1" >
<el-input v-model="configForm.theme1" maxlength="5" show-word-limit></el-input>
<el-input v-model.trim="configForm.theme1" maxlength="5" show-word-limit></el-input>
</el-form-item>
<el-form-item label="第二行" prop="theme2" >
<el-input v-model="configForm.theme2" maxlength="5" show-word-limit></el-input>
<el-input v-model.trim="configForm.theme2" maxlength="5" show-word-limit></el-input>
</el-form-item>
</div>
</template>
......@@ -53,7 +53,10 @@
>建议格式:高度88px,png</p>
<template #activityRuleDes>
<textBox style="width:45vw" @change="writeChange" ref="textBox" @forbid="forbidEdit"></textBox>
<el-form-item >
<textBox style="width:45vw" @change="writeChange" ref="textBox" @forbid="forbidEdit"></textBox>
</el-form-item>
</template>
<template #physicalWinningCfg>
......@@ -136,6 +139,7 @@ export default {
merchantId: [{required: true, message: '请选择所属渠道', trigger: 'change'}],
activityType: [{required: true, message: '请选择活动形式', trigger: 'change'}],
logo: [{required: true, message: '请上传卡片封面', trigger: 'change'}],
ruleDescribe:[{required: true, message: '请填写活动规则描述', trigger: 'change'}],
pageTheme: [{required: true, message: '请输入页面主题'}],
exchangeType: [{required: true, message: '请选择活动形式', trigger: 'change'}],
describeId: [{required: true, message: '请选择填写信息', trigger: 'change'}]
......@@ -200,6 +204,7 @@ export default {
},
{
label: '活动规则描述',
name: 'ruleDescribe',
addHtml: 'activityRuleDes'
},
{
......@@ -249,9 +254,20 @@ export default {
},
handleSave() {
this.validateForm().then(() => {
const {describeId,pageTheme,...params} = this.configForm
if (!params.theme1 && !params.theme2) return this.$message.error('请填写页面主题');
params.writeInfoList = [...describeId]
const {describeId,pageTheme,ruleDescribe,...params} = this.configForm
// 页面主题判断
if (!params.theme1 || !params.theme2) return this.$message.error('请填写页面主题');
// 判断富文本编辑器是不是只有空格(不改变ruleDescribe的值)
const plainTextCheck = ruleDescribe.replace(/&nbsp;|<[^>]+>/g, ' ').replace(/\s+/g, ' ');
if (plainTextCheck.trim() === '') {
this.$message.error('活动规则描述不能只输入空格');
return;
}
// 如果不是只有空格,使用原始的ruleDescribe
params.ruleDescribe = ruleDescribe;
params.writeInfoList = [...describeId];
this.$apis.redenvelope.newActivityTemplate(params).then(res => {
if (res.code == 0){
this.$message.success('新建活动模板成功');
......
......@@ -117,7 +117,7 @@ export default {
{
label: '核销状态',
minWidth: 150,
prop:'statusStr'
addHtml:'statusStr'
},
{
label: '核销时间',
......
......@@ -39,6 +39,14 @@
:buttonNum="3"
></GLTableButton>
</span>
<template slot="statusStr" slot-scope="scope">
<div class="table_circular_flex">
<div :class="['table_circular',colorFee[scope.scope.statusStr]]">
</div>
<span>{{scope.scope.statusStr}}</span>
</div>
</template>
</GLTable>
</div>
......@@ -70,7 +78,12 @@ import repeatMethods from "../common/repeatMethods";
import DeliverGoods from "./cpns/DeliverGoods";
import CancelAfterVerification from "./cpns/CancelAfterVerification";
const STAGE_COLOR = Object.freeze({
'已发货':'circular_green',
'待发货':'circular_yellow',
'待核销':'circular_yellow',
'已核销':'circular_green',
})
export default {
name: 'DisplayRecord',
mixins: [dataImportMixin,repeatMethods],
......@@ -80,6 +93,7 @@ export default {
},
data() {
return {
colorFee : STAGE_COLOR,
tipsObj:{
show:false,
text:'',
......
......@@ -63,6 +63,7 @@ import dataImportMixin from "./dataImportMixin";
import repeatMethods from "../common/repeatMethods";
import inputNumRange from "@/components/inputNumRange";
import regionCascader from "@/components/regionCascader";
const STAGE_COLOR = Object.freeze({
'已领取':'circular_green',
'发放中':'circular_blue',
......@@ -72,7 +73,6 @@ const STAGE_COLOR = Object.freeze({
'领取失败':'circular_red',
'发放失败':'circular_red',
})
export default {
name: 'DisplayRecord',
mixins: [dataImportMixin, repeatMethods],
......@@ -93,7 +93,7 @@ export default {
params.startAmount = params.startAmount ? params.startAmount * 100 : ''
params.endAmount = params.endAmount ? params.endAmount * 100 : ''
this.handleProvinceParams(params)
this.updateParams(params, 'winTime', 'winTime', 'startWinTime', 'startWinTime');
this.updateParams(params, 'winTime', 'winTime', 'startWinTime', 'endWinTime');
return params
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!