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
9eecd254
Commit
9eecd254
authored
Feb 18, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fc516214
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
3 deletions
+115
-3
EducationvideoList.vue
src/components/EducationvideoList.vue
+1
-1
index.vue
src/components/index.vue
+2
-2
cityManagement.vue
src/components/platformModule/cityManagement.vue
+112
-0
No files found.
src/components/EducationvideoList.vue
View file @
9eecd254
...
...
@@ -14,7 +14,7 @@
<el-button
@
click=
"Search"
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"danger"
@
click=
"addList"
round
>
新增
</el-button>
<
el-button
style=
"margin-left:20px"
size=
"small"
type=
"primary"
@
click=
"goUrlHome"
round
>
返回
</el-button
>
<
!--
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"primary"
@
click=
"goUrlHome"
round
>
返回
</el-button>
--
>
</div>
<div
v-loading=
"loading"
class=
"Content"
>
<ul
class=
"videoUl"
>
...
...
src/components/index.vue
View file @
9eecd254
...
...
@@ -1126,7 +1126,7 @@
</div>
<div
style=
"text-align:center"
>
<p
style=
"font-size:26px;color:#111111;margin:40px 0"
>
第{{tsNumber}}期投诉案例分享已经发布
</p>
<a
@
click=
"CloseTs"
target=
"_blank"
href=
"http://we.oytour.com:8110/?/question/2
3
"
style=
"font-size:18px;color:#E95252;cursor:pointer;text-decoration:underline"
>
点击查看
</a>
<a
@
click=
"CloseTs"
target=
"_blank"
href=
"http://we.oytour.com:8110/?/question/2
4
"
style=
"font-size:18px;color:#E95252;cursor:pointer;text-decoration:underline"
>
点击查看
</a>
</div>
</div>
</div>
...
...
@@ -1183,7 +1183,7 @@ export default {
articleId
:
0
,
createEmpId
:
0
,
tsState
:
false
,
tsNumber
:
1
4
,
tsNumber
:
1
5
,
saleRnkShow
:
false
,
dialogTitleNot
:
''
,
outerVisibleNot
:
false
,
...
...
src/components/platformModule/cityManagement.vue
View file @
9eecd254
...
...
@@ -34,6 +34,61 @@
.cityManagement
.query-box
li
{
margin
:
20px
30px
20px
0
;
}
.cityManagement
._addUpload_box
>
div
:hover
{
background-color
:
#f5f5f5
;
}
.cityManagement
.el-upload-dragger
{
font-size
:
28px
;
color
:
#8c939d
;
width
:
126px
;
height
:
80px
;
line-height
:
41px
;
text-align
:
center
;
}
.cityManagement
._show_img_box
{
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
.6
);
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
9999
;
text-align
:
center
;
}
.cityManagement
._addUpload_box
{
display
:
block
;
}
.cityManagement
._addUpload_box
img
{
width
:
100%
;
height
:
100%
;
}
.cityManagement
._addUpload_box
>
div
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
border-radius
:
2px
;
cursor
:
pointer
;
margin-bottom
:
10px
;
padding
:
5px
;
margin-right
:
10px
;
position
:
relative
;
}
.cityManagement
._addUpload_box
.icon-guanbi1
{
font-size
:
12px
;
color
:
white
;
display
:
inline-block
;
margin-left
:
15px
;
position
:
absolute
;
right
:
-6px
;
top
:
-9px
;
background-color
:
#f56c6c
;
border-radius
:
50%
;
height
:
20px
;
width
:
20px
;
text-align
:
center
;
line-height
:
20px
;
}
</
style
>
<
template
>
<div
class=
"flexOne cityManagement"
>
...
...
@@ -193,6 +248,27 @@
<el-input
v-model=
"addMsg.ThreeCode"
class=
"w150"
maxlength=
"3"
></el-input>
</el-form-item>
</li>
<li>
<el-form-item
label=
"图片"
>
<div
class=
"_addUpload_box clearfix"
>
<div
v-if=
"addMsg.Images && addMsg.Images!=''"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<img
:src=
"addMsg.Images"
/>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile()"
></span>
</div>
<div
v-else
class=
"_pic_upload"
>
<el-upload
drag
:http-request=
"uploadFileBtn"
:multiple=
"false"
:show-file-list=
"false"
action=
""
>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
<div
class=
"el-upload__text"
>
{{
$t
(
"active.ld_djscwj"
)
}}
</div>
</el-upload>
</div>
</div>
</el-form-item>
</li>
<li>
<div
class=
"cityBtnList"
>
<input
type=
"button"
class=
"hollowFixedBtn"
@
click=
"cancelPanel"
value=
"取消"
/>
...
...
@@ -313,6 +389,41 @@ export default {
};
},
methods
:
{
deleteUploadFile
(){
// 删除上传文件
this
.
addMsg
.
Images
=
''
;
},
//上传图片
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
this
.
$t
(
'tips.wjdxbncgsz'
))
return
}
// 1 文档 2 数据 3 图片
let
typeArr
=
[
{
stringArr
:
'GIF|JPG|JPEG|PNG|BMP'
,
type
:
3
},
]
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
'.'
)
+
1
,
file
.
file
.
name
.
length
).
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
'-1'
)
{
fileTypeNumber
=
x
.
type
typeOk
=
true
;
}
})
if
(
!
typeOk
)
return
this
.
$message
.
error
(
this
.
$t
(
'tips.qsctpian'
));
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/plat/"
this
.
$message
.
info
(
this
.
$t
(
'tips.shangchuanzhong'
))
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
addMsg
.
Images
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
this
.
$message
.
success
(
this
.
$t
(
'tips.scchenggong'
));
// this.$forceUpdate();
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
initData
();
...
...
@@ -444,6 +555,7 @@ export default {
this
.
addMsg
.
CountryID
=
res
.
data
.
data
.
CountryID
;
this
.
addMsg
.
ProvinceID
=
res
.
data
.
data
.
ProvinceID
;
this
.
addMsg
.
CityID
=
res
.
data
.
data
.
CityID
;
this
.
addMsg
.
Images
=
res
.
data
.
data
.
Images
;
if
(
this
.
addMsg
.
Area
==
0
)
{
this
.
addMsg
.
Area
=
this
.
addMsg
.
Area
.
toString
();
}
else
{
...
...
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