Commit 43b0265f by 前端

更新代码

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