Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
61574e7b
Commit
61574e7b
authored
Dec 25, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售 另存为 模版
parent
0a7d6f3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
8 deletions
+49
-8
index.vue
src/views/Editor/EditorHeader/index.vue
+49
-8
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
61574e7b
...
...
@@ -74,16 +74,50 @@
<IconDownload
class=
"icon"
/>
</div>
<el-button
type=
"primary"
v-if=
"
userInfo.IsEditTripTemplate==1||ConfigId>0||model=
=2"
v-if=
"
(userInfo.IsEditTripTemplate==1||ConfigId>0)&&model!
=2"
size=
"small"
:loading=
"datas.loading"
@
click=
"setTemplate"
style=
"color: #ffff;margin-left: 10px;"
>
<
template
v-if=
"
(userInfo.IsEditTripTemplate==1&&model==1)||model==2
"
>
<
template
v-if=
"
userInfo.IsEditTripTemplate==1&&model==1
"
>
保存模板
</
template
>
<
template
v-if=
"(ConfigId>0&&model!=2)"
>
保存行程
</
template
>
</el-button>
<
template
v-if=
"model==2"
>
<Popover
trigger=
"click"
placement=
"bottom-start"
v-model:value=
"sellSaveVisible"
>
<template
#
content
>
<div>
<el-button
type=
"primary"
size=
"small"
:loading=
"datas.loading"
style=
"color: #ffff;margin-left: 10px;"
@
click=
"setTemplate(0)"
>
保存模板
</el-button>
</div>
<div
class=
"q-mt-md"
>
<el-button
type=
"primary"
size=
"small"
:loading=
"datas.loading"
style=
"color: #ffff;margin-left: 10px;"
@
click=
"setTemplate(1)"
>
另存模板
</el-button>
</div>
</
template
>
<el-button
v-if=
"searchData.sellId>0"
type=
"primary"
size=
"small"
:loading=
"datas.loading"
style=
"color: #ffff;margin-left: 10px;"
>
保存
</el-button>
</Popover>
<el-button
v-if=
"!searchData.sellId"
type=
"primary"
size=
"small"
:loading=
"datas.loading"
style=
"color: #ffff;margin-left: 10px;"
@
click=
"setTemplate(0)"
>
保存模板
</el-button>
</template>
</div>
<Drawer
...
...
@@ -153,6 +187,7 @@ const hotkeyDrawerVisible = ref(false)
const
editingTitle
=
ref
(
false
)
const
titleInputRef
=
ref
<
InstanceType
<
typeof
Input
>>
()
const
titleValue
=
ref
(
''
)
const
sellSaveVisible
=
ref
(
false
)
const
{
setNewDatasList
}
=
useEditor
()
...
...
@@ -234,16 +269,19 @@ const setNewDatas = (type,i) => {
CoverImgStore
.
setCoverImg
(
null
)
}
}
// 导入PSD
// 导入PSD
6
const
UploadPsdHandler
=
()
=>
{
psdVisibleStatus
.
value
=
true
}
// 销售新增修改模版
const
SetSellTemplate
=
async
()
=>
{
const
SetSellTemplate
=
async
(
type
)
=>
{
try
{
let
Id
=
0
if
(
searchData
.
value
.
sellId
&&!
type
)
Id
=
searchData
.
value
.
sellId
if
(
type
==
1
)
Id
=
0
let
queryMsg
=
{
Id
:
searchData
.
value
.
sellId
?
searchData
.
value
.
sellId
:
0
,
Id
:
Id
,
TempId
:
queryObj
.
value
.
TempId
,
TempData
:
queryObj
.
value
.
TempData
,
Title
:
queryObj
.
value
.
Title
...
...
@@ -255,7 +293,10 @@ const SetSellTemplate = async () => {
message
:
'操作成功'
,
type
:
'success'
,
})
SalesEditorStore
.
setSalesEditor
(
0
)
sellSaveVisible
.
value
=
false
setTimeout
(()
=>
{
SalesEditorStore
.
setSalesEditor
(
0
)
},
100
)
}
else
{
ElMessage
({
showClose
:
true
,
...
...
@@ -396,7 +437,7 @@ const SetTripTemplateConfig = async () => {
}
// 保存
const
setTemplate
=
async
()
=>
{
const
setTemplate
=
async
(
type
)
=>
{
queryObj
.
value
.
Title
=
title
.
value
datas
.
loading
=
true
if
(
SourceLoading
.
value
)
setNewDatasList
(
datas
.
DataSource
)
...
...
@@ -465,7 +506,7 @@ const setTemplate = async () =>{
}
else
if
(
ConfigId
.
value
&&
model
.
value
!=
2
){
await
SetTripTemplateConfig
()
}
else
if
(
model
.
value
==
2
){
await
SetSellTemplate
()
await
SetSellTemplate
(
type
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment