Commit a65e51a0 by 徐忆琳

Merge branch 'xuyl_dev_v3.12.0' into 'v3.12.0'

更新代码

See merge request !487
2 parents b0e56638 43b0265f
<!-- 编辑sop -->
<template>
<div class="marketing edit-box">
<div class="marketing edit-box" v-loading="marketingSOPLoading">
<div class="sop-base-info">
<div class="container m-b-20">
<p class="edit-title">{{ title }}</p>
......@@ -260,7 +260,7 @@
</div>
</div>
<div class="event-btns">
<el-button v-if="editForm.sopStatus !==1" type="primary" size="small"
<el-button v-if="editForm.sopStatus !==1 && routeInfo.addOrEdit !== 'copy'" type="primary" size="small"
@click="handleEventView(item)">查看
</el-button>
<el-button v-if="new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
......@@ -315,6 +315,7 @@ export default {
title: '基本信息',
url: url,
marketingEventLoading: false,
marketingSOPLoading:false,
editChildRef: 'editChildRef',
editStatus: false,
editDisabled: false,
......@@ -890,14 +891,16 @@ export default {
},
getInfo() {
this.marketingSOPLoading = true
this.$apis.sop.getSopInfoDetailApi({sopId: this.routeInfo.id}).then(async res => {
this.marketingSOPLoading = false
if (this.routeInfo.addOrEdit == 'copy') {
this.editForm.sopType = res.sopType
res.eventList &&
res.eventList.map(item => {
item.eventStartDate = ''
item.eventTime = ''
})
// 判断有没有旧数据
await this.processOldSOPData(res).then(res => {
this.marketingEventLoading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!