Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
68ed7368
Commit
68ed7368
authored
Feb 08, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
d32559ab
93472477
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
9 deletions
+114
-9
EditTemplate.vue
src/components/EditTemplate.vue
+6
-2
ModifyVisaProduct.vue
src/components/SalesVisa/ModifyVisaProduct.vue
+82
-4
VisaProduct.vue
src/components/SalesVisa/VisaProduct.vue
+26
-3
No files found.
src/components/EditTemplate.vue
View file @
68ed7368
...
...
@@ -678,6 +678,7 @@
this
.
myQuillEditor
=
"editer_"
+
this
.
guid
();
this
.
myImageUploader
=
"imageUploader_"
+
this
.
guid
();
this
.
editorOption
.
modules
.
toolbar
=
"#"
+
this
.
myToolbar
;
if
(
this
.
toolbarShow
!=
null
)
{
for
(
let
key
in
this
.
toolbarShow
)
{
this
.
toolbar
[
key
]
=
this
.
toolbarShow
[
key
];
...
...
@@ -726,7 +727,8 @@
// 获取富文本组件实例
let
quill
=
this
.
$refs
[
this
.
myQuillEditor
].
quill
try
{
quill
.
getSelection
().
index
;
// quill.getSelection().index;
quill
.
selection
.
savedRange
.
index
;
}
catch
(
err
)
{
this
.
$message
.
error
(
this
.
$t
(
'objFill.wufahqgbwz'
));
return
;
...
...
@@ -741,7 +743,9 @@
// 如果上传成功
if
(
url
!=
null
&&
url
.
length
>
0
)
{
// 获取光标所在位置
let
length
=
quill
.
getSelection
().
index
;
let
length
// length = quill.getSelection().index;
length
=
quill
.
selection
.
savedRange
.
index
quill
.
insertEmbed
(
length
,
'image'
,
url
)
// 调整光标到最后
quill
.
setSelection
(
length
+
1
)
...
...
src/components/SalesVisa/ModifyVisaProduct.vue
View file @
68ed7368
...
...
@@ -332,6 +332,9 @@
.ModifyVisaProduct
.icon-img_bianji_small
{
font-size
:
12px
;
}
.ModifyVisaProduct
.icon-shanchu
{
font-size
:
12px
;
}
.ModifyVisaProduct
.el-upload-list
{
width
:
500px
;
}
...
...
@@ -524,7 +527,20 @@
icon=
"iconfont icon-img_bianji_small"
@
click=
"EditTag(tag,1)"
></el-button>
</el-tooltip>
</el-tooltip>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"primary"
style=
"background:#409EFF; border-color:#409EFF;padding:2px"
icon=
"iconfont icon-shanchu"
@
click=
"shanchuTag(tag,1)"
></el-button>
</el-tooltip>
-->
</span>
</div>
</li>
...
...
@@ -560,6 +576,19 @@
@
click=
"EditTag(tag,2)"
></el-button>
</el-tooltip>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"primary"
style=
"background:#409EFF; border-color:#409EFF;padding:2px"
icon=
"iconfont icon-shanchu"
@
click=
"shanchuTag(tag,2)"
></el-button>
</el-tooltip>
-->
</span>
</div>
</li>
...
...
@@ -595,6 +624,19 @@
@
click=
"EditTag(tag,3)"
></el-button>
</el-tooltip>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"primary"
style=
"background:#409EFF; border-color:#409EFF;padding:2px"
icon=
"iconfont icon-shanchu"
@
click=
"shanchuTag(tag,3)"
></el-button>
</el-tooltip>
-->
</span>
</div>
</li>
...
...
@@ -641,8 +683,11 @@
{{
$t
(
'objFill.feiyongbaohan'
)
}}
</div>
<div
class=
"ql-container"
>
<my-edit
v-on:edit-value=
"addMsg.VisaProductInfo.FeeInclude = arguments[0]"
v-bind:editValue=
"addMsg.VisaProductInfo.FeeInclude"
v-bind:toolbarShow=
"toolbar"
v-bind:referenceList=
"FeeInclude"
v-bind:defaultAccount=
"false"
></my-edit>
<my-edit
v-on:edit-value=
"addMsg.VisaProductInfo.FeeInclude = arguments[0]"
v-bind:editValue=
"addMsg.VisaProductInfo.FeeInclude"
v-bind:toolbarShow=
"toolbar"
v-bind:referenceList=
"FeeInclude"
v-bind:defaultAccount=
"false"
></my-edit>
</div>
<div
class=
"TNtitle NotContain"
>
...
...
@@ -767,7 +812,8 @@ export default {
toolbar
:
{
clean
:
false
,
//加粗
font
:
false
,
//字体
narrative
:
true
//叙述,
narrative
:
true
,
//叙述,
image
:
true
,
},
referenceList
:[],
FeeInclude
:[],
...
...
@@ -948,6 +994,9 @@ getCompanyList() {
let
data
=
res
.
data
.
data
;
data
.
RB_Branch_Id
=
String
(
data
.
RB_Branch_Id
)
this
.
addMsg
=
res
.
data
.
data
;
if
(
this
.
$route
.
query
.
copy
){
this
.
addMsg
.
Name
=
'【复制】'
+
this
.
addMsg
.
Name
}
this
.
PriceDates
.
push
(
data
.
EffectiveStartDate
)
this
.
PriceDates
.
push
(
data
.
SendVisaDate
)
let
val
=
data
.
VisaCountryId
;
...
...
@@ -1041,6 +1090,9 @@ getCompanyList() {
// this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`);
// return;
// }
if
(
this
.
$route
.
query
.
copy
){
this
.
addMsg
.
Id
=
0
}
this
.
apipost
(
"dmc_post_visa_SetVisaProduct_V1"
,
this
.
addMsg
,
...
...
@@ -1126,7 +1178,33 @@ getCompanyList() {
VisaCountry
(
val
)
{
this
.
GetProductLabel
(
val
);
},
// 删除标签
shanchuTag
(
tag
,
num
)
{
this
.
productlabel
.
TagType
=
num
this
.
productlabel
.
Id
=
tag
.
Id
;
this
.
CountryTagList
=
this
.
CountryTagList
.
filter
(
x
=>
x
.
Id
!=
tag
.
Id
);
console
.
log
(
list
,
tag
.
Id
)
return
this
.
$confirm
(
this
.
$t
(
'objFill.shifouscbkhf'
),
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
"warning"
})
.
then
(()
=>
{
this
.
apipost
(
''
,
{
Id
:
this
.
productlabel
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
})
})
.
catch
(()
=>
{});
},
// 双击编辑标签
EditTag
(
tag
,
num
)
{
this
.
showInput
(
num
);
...
...
src/components/SalesVisa/VisaProduct.vue
View file @
68ed7368
...
...
@@ -518,7 +518,18 @@
@
click=
"updateVisaStatus(scope.row)"
></el-button>
</el-tooltip>
<el-tooltip
effect=
"dark"
:content=
"$t('objFill.copy')"
placement=
"top-start"
>
<el-button
type=
"primary"
style=
"background:#F0A748; border-color:#F0A748"
icon=
"el-icon-document-copy"
@
click=
"EditVisaProduct(scope.row,'copy')"
></el-button>
</el-tooltip>
</el-button-group>
</
template
>
</el-table-column>
...
...
@@ -723,8 +734,20 @@ export default {
}
});
},
// 修改签证产品
EditVisaProduct
(
item
){
// 修改/复制签证产品
EditVisaProduct
(
item
,
type
){
if
(
type
&&
type
==
'copy'
){
return
this
.
$router
.
push
({
name
:
"ModifyVisaProduct"
,
query
:
{
Id
:
item
.
Id
,
copy
:
1
,
blank
:
"y"
,
tab
:
"配置签证产品"
,
copy
:
true
}
});
}
this
.
$router
.
push
({
name
:
"ModifyVisaProduct"
,
query
:
{
...
...
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