Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 43b0265f
authored
Jun 14, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新代码
1 parent
a6ee0dfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/baseInfo.vue
View file @
43b0265
<!-- 编辑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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment