Commit ceff8c49 authored by liwenhong's avatar liwenhong

fix:自提点地址+活动配置日期格式

parent dc24f027
......@@ -32,14 +32,20 @@
<el-button type="text" @click="handleActivityOnline(scope.row)">
{{ scope.row.online_status == 1 ? "活动下线" : "活动上线" }}
</el-button>
<el-button type="text" @click="handleConfig(scope.row)">活动配置</el-button>
<el-button type="text" v-if="scope.row.marketing_type == 6" @click="handleConfig(scope.row)">活动配置</el-button>
</template>
</el-table-column>
</el-table>
<el-dialog title="活动配置-团长分销" v-model="showConfigDialog" width="50%" top="2%" center>
<el-form :model="configForm" :rules="rules">
<el-form-item label="设置时间:">
<el-date-picker v-model="configForm.date" type="datetime" @change="timeChange" placeholder="请设置时间"></el-date-picker>
<el-date-picker
v-model="configForm.date"
type="datetime"
@change="timeChange"
format="YYYY-MM-DD"
placeholder="请设置时间"
></el-date-picker>
</el-form-item>
<el-form-item
class="config"
......@@ -198,7 +204,7 @@
},
async handleConfig(item) {
this.listParams.marketing_id = item.marketing_id;
let res = await yingxiaoConfig({ date: moment(new Date()).format("YYYY-MM-DD HH:mm:ss") });
let res = await yingxiaoConfig({ date: moment(new Date()).format("YYYY-MM-DD") });
if (res.code !== 0) return this.$message.error(res.reason);
else this.$message.success("操作成功");
this.configForm = {
......@@ -209,7 +215,7 @@
this.showConfigDialog = true;
},
async timeChange(val) {
let res = await yingxiaoConfig({ date: moment(val).format("YYYY-MM-DD HH:mm:ss") });
let res = await yingxiaoConfig({ date: moment(val).format("YYYY-MM-DD") });
if (res.code !== 0) return this.$message.error(res.reason);
this.configForm = {
result: res.result.list,
......
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