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
ae3e6e54
Commit
ae3e6e54
authored
Apr 18, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签证管理添加供应商和公司
parent
1c6a49ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
526 additions
and
187 deletions
+526
-187
ModifyVisaProduct.vue
src/components/SalesVisa/ModifyVisaProduct.vue
+1
-0
VisaProductCountryManager.vue
src/components/SalesVisa/VisaProductCountryManager.vue
+90
-25
VisaManagement.vue
src/components/VisaCenter/VisaManagement.vue
+435
-162
No files found.
src/components/SalesVisa/ModifyVisaProduct.vue
View file @
ae3e6e54
...
@@ -881,6 +881,7 @@ export default {
...
@@ -881,6 +881,7 @@ export default {
let
path
=
"/Upload/DMC/Icon/"
;
let
path
=
"/Upload/DMC/Icon/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
url
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
let
url
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
console
.
log
(
'url'
,
url
)
let
Name
=
x
.
data
.
SourceFileName
;
let
Name
=
x
.
data
.
SourceFileName
;
this
.
addMsg
.
VisaProductInfo
.
DownloadMaterialsFileList
.
push
({
Url
:
url
,
Name
:
Name
,
name
:
Name
})
this
.
addMsg
.
VisaProductInfo
.
DownloadMaterialsFileList
.
push
({
Url
:
url
,
Name
:
Name
,
name
:
Name
})
...
...
src/components/SalesVisa/VisaProductCountryManager.vue
View file @
ae3e6e54
...
@@ -204,6 +204,7 @@
...
@@ -204,6 +204,7 @@
margin-left
:
10px
;
margin-left
:
10px
;
}
}
._top
img
{
._top
img
{
display
:
inline-block
;
width
:
71px
;
width
:
71px
;
height
:
46px
;
height
:
46px
;
}
}
...
@@ -237,7 +238,46 @@
...
@@ -237,7 +238,46 @@
top
:
2px
;
top
:
2px
;
right
:
0px
;
right
:
0px
;
}
}
.visa_pro_country
.TFimgList
{
float
:
left
;
width
:
170px
;
height
:
120px
;
border-radius
:
4px
;
position
:
relative
;
margin
:
0
10px
10px
0
;
overflow
:
hidden
;
}
.visa_pro_country
.TFIMGzhe
{
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
position
:
absolute
;
top
:
0
;
text-align
:
center
;
line-height
:
115px
;
border-radius
:
4px
;
display
:
none
;
}
.visa_pro_country
.TFreupload
{
width
:
32px
;
height
:
32px
;
border-radius
:
50%
;
line-height
:
32px
;
top
:
50px
;
left
:
53px
;
display
:
inline-block
;
text-align
:
center
;
background-color
:
gray
;
color
:
#fff
;
}
.visa_pro_country
.TFimgList
:hover
.TFIMGzhe
{
display
:
block
;
}
.visa_pro_country
.TFimgList
img
{
width
:
100%
;
height
:
100%
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page_visaMG visa_pro_country"
>
<div
class=
"page_visaMG visa_pro_country"
>
...
@@ -313,31 +353,56 @@
...
@@ -313,31 +353,56 @@
<el-input
v-model=
"country.Sort"
placeholder=
"排序"
/>
<el-input
v-model=
"country.Sort"
placeholder=
"排序"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"国家图标"
>
<el-form-item
label=
"国家图标"
>
<el-upload
<!--
<el-upload
:file-list=
"fileList"
:file-list=
"fileList"
:http-request=
"uploadTest"
:http-request=
"uploadTest"
:multiple=
"true"
:multiple=
"true"
:limit=
"2"
:limit=
"2"
:on-change=
"handleChange1"
:on-change=
"handleChange1"
action=
""
>
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
</el-upload>
-->
<div
class=
"TFimgList"
>
<img
v-if=
"!country.Icon"
src=
"../../assets/img/bg_c3@3x.png"
>
<img
v-else
:src=
'country.Icon'
>
<div
class=
"TFIMGzhe"
>
<div
class=
"TFreupload"
>
<el-upload
:file-list=
"fileList"
:http-request=
"uploadTest"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange1"
accept=
"image/jpeg, image/gif, image/png, image/bmp"
:show-file-list=
"false"
action=
""
>
<i
class=
"iconfont icon-Edit"
></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"背景图片"
>
<el-form-item
label=
"背景图片"
>
<el-upload
<
!--
<
el-upload
:file-list=
"fileList2"
:file-list=
"fileList2"
:http-request=
"uploadTest2"
:http-request=
"uploadTest2"
:multiple=
"true"
:multiple=
"true"
:limit=
"2"
:limit=
"2"
:on-change=
"handleChange2"
:on-change=
"handleChange2"
action=
""
>
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button></el-upload>
-->
</el-upload>
<div
class=
"TFimgList"
>
<img
v-if=
"!country.ImageFileList[0]"
src=
"../../assets/img/bg_c3@3x.png"
>
<img
v-else
:src=
'country.ImageFileList[0]'
>
<div
class=
"TFIMGzhe"
>
<div
class=
"TFreupload"
>
<el-upload
:file-list=
"fileList2"
:http-request=
"uploadTest2"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange2"
accept=
"image/jpeg, image/gif, image/png, image/bmp"
:show-file-list=
"false"
action=
""
>
<i
class=
"iconfont icon-Edit"
></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<!--
<el-form-item>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit()"
>
取消
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"saveVisa"
>
保存
</button>
</el-form-item>
-->
</el-form>
</el-form>
</div>
</div>
<!-- 国家产品标签 -->
<!-- 国家产品标签 -->
...
@@ -488,7 +553,7 @@ export default {
...
@@ -488,7 +553,7 @@ export default {
},
},
// 编辑标签
// 编辑标签
EditTag
(
tag
,
num
){
EditTag
(
tag
,
num
){
console
.
log
(
tag
);
this
.
showInput
(
num
);
this
.
showInput
(
num
);
this
.
inputValue
=
tag
.
TagTame
;
this
.
inputValue
=
tag
.
TagTame
;
this
.
productlabel
.
Id
=
tag
.
Id
;
this
.
productlabel
.
Id
=
tag
.
Id
;
...
@@ -587,11 +652,9 @@ export default {
...
@@ -587,11 +652,9 @@ export default {
"dmc_post_visa_GetVisaProductCountryTagList"
,
"dmc_post_visa_GetVisaProductCountryTagList"
,
{
VisaCountryId
:
item
},
{
VisaCountryId
:
item
},
res
=>
{
res
=>
{
console
.
log
(
res
);
this
.
tagloading
=
false
;
this
.
tagloading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CountryTagList
=
res
.
data
.
data
;
this
.
CountryTagList
=
res
.
data
.
data
;
console
.
log
(
this
.
CountryTagList
,
'countrylist'
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -648,8 +711,10 @@ export default {
...
@@ -648,8 +711,10 @@ export default {
this
.
fileList2
=
fileList
.
slice
(
-
1
);
this
.
fileList2
=
fileList
.
slice
(
-
1
);
},
},
handleChange1
(
file
,
fileList
)
{
handleChange1
(
file
,
fileList
)
{
this
.
fileList
=
fileList
.
slice
(
-
1
);
this
.
fileList
=
fileList
.
slice
(
-
1
);
},
},
// 修改国家图标
uploadTest
(
file
)
{
uploadTest
(
file
)
{
let
newArr
=
[];
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
newArr
.
push
(
file
.
file
);
...
@@ -700,7 +765,7 @@ export default {
...
@@ -700,7 +765,7 @@ export default {
},
},
saveVisa
()
{
saveVisa
()
{
//修改保存
//修改保存
// console.log("this.country",this.country);
if
(
this
.
country
.
CountryId
==
""
)
{
if
(
this
.
country
.
CountryId
==
""
)
{
this
.
$message
.
error
(
"请选择国家!"
);
this
.
$message
.
error
(
"请选择国家!"
);
return
;
return
;
...
...
src/components/VisaCenter/VisaManagement.vue
View file @
ae3e6e54
This diff is collapsed.
Click to expand it.
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