Commit 7bf085a1 by chenwq

编辑sop-添加事件

1 parent 455abe18
......@@ -23,7 +23,11 @@
<div class="container edit-container">
<div class="edit-title flex" style="align-items: center;">
<p>营销事件设置</p>
<el-button class="m-r-20" :disabled="!editForm.customerList.length" :size="size" type="primary" @click="handleEventEdit('add')">添加事件</el-button>
<el-tooltip :disabled="!(!editForm.customerList.length || !editForm.sopName)" effect="dark" content="请先完善sop名称和营销对象" placement="top">
<div>
<el-button class="m-r-20" :disabled="!editForm.customerList.length || !editForm.sopName" :size="size" type="primary" @click="handleEventEdit('add')">添加事件</el-button>
</div>
</el-tooltip>
</div>
<div v-show="!editForm.eventList.length" class="event-empty">
<img class="empty-img" :src="url" />
......
......@@ -3,7 +3,7 @@
<div class="edit-event marketing p-t-20 edit-box">
<!-- 营销时间 -->
<div class="container m-b-20">
<p class="edit-title">营销时间{{ editForm.sopName }}</p>
<p class="edit-title">营销时间</p>
<glsx-combi-form class="edit-form-container m-r-20" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="sopNameFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefDate" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :formRef="editChildRef" :formObj="editForm" :formData="editFormDataDate" :formRules="editRule">
<div slot="eventStartDate" slot-scope="scope">
......@@ -18,13 +18,13 @@
<div class="flex-default m-r-20" slot="repeatTime" slot-scope="scope">
<div class="flex-default m-r-20" v-if="editForm.repeatMode == '2'">
<p style="width: 50px;">每周</p>
<el-select :size="size" v-model="editForm[scope.scope.name]" placeholder="请选择">
<el-select :size="size" v-model="editForm[scope.scope.name]" placeholder="请选择每周指定日期">
<el-option v-for="item in baseData.weekList" :key="item.confId" :label="item.confName" :value="item.confId"></el-option>
</el-select>
</div>
<div class="flex-default m-r-20" v-if="editForm.repeatMode == '3'">
<p style="width: 50px;">每月</p>
<el-select :size="size" v-model="editForm[scope.scope.name]" placeholder="请选择">
<el-select :size="size" v-model="editForm[scope.scope.name]" placeholder="请选择每月指定日期">
<el-option v-for="item in baseData.monthList" :key="item.confId" :label="item.confName" :value="item.confId"></el-option>
</el-select>
</div>
......@@ -37,7 +37,7 @@
</div>
<!-- 营销内容 -->
<div class="container m-b-20">
<p class="edit-title">营销内容{{ editForm.sopName }}</p>
<p class="edit-title">营销内容</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRefContent" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormDataContent" :formRules="editRule">
<div slot="eventContent" class="content">
<div class="content-bg">
......@@ -82,7 +82,7 @@
</div>
<!-- 营销渠道 -->
<div class="container edit-container">
<p class="edit-title">营销渠道{{ editForm.sopName }}</p>
<p class="edit-title">营销渠道</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRefChannel" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormDataChannel" :formRules="editRule"></glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!