Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
Overview
Overview
Details
Activity
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
吴迪
gs1-admin
Commits
84346e27
Commit
84346e27
authored
Jan 22, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug更改
parent
b8fc2da9
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
247 additions
and
247 deletions
+247
-247
_base.scss
src/assets/scss/_base.scss
+4
-0
indexcarouselmanage-add-or-update.vue
src/views/modules/info/indexcarouselmanage-add-or-update.vue
+3
-3
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+6
-6
newsmovie-add-or-update.vue
src/views/modules/info/newsmovie-add-or-update.vue
+6
-6
newtopic-add-or-update.vue
src/views/modules/info/newtopic-add-or-update.vue
+28
-32
newtopic.vue
src/views/modules/info/newtopic.vue
+1
-1
picture-add-or-update.vue
src/views/modules/info/picture-add-or-update.vue
+14
-14
logistics-add-or-update.vue
src/views/modules/logistics/logistics-add-or-update.vue
+3
-3
medical-add-or-update.vue
src/views/modules/medical/medical-add-or-update.vue
+3
-3
center-add-or-update.vue
src/views/modules/party/center-add-or-update.vue
+9
-9
hotFlow-add-or-update.vue
src/views/modules/party/hotFlow-add-or-update.vue
+9
-9
rules-add-or-update.vue
src/views/modules/party/rules-add-or-update.vue
+9
-9
topicnews-add-or-update.vue
src/views/modules/party/topicnews-add-or-update.vue
+9
-9
policy-add-or-update.vue
src/views/modules/policy/policy-add-or-update.vue
+3
-3
partners-add-or-update.vue
src/views/modules/standard/partners-add-or-update.vue
+140
-140
No files found.
src/assets/scss/_base.scss
View file @
84346e27
...
@@ -368,6 +368,7 @@ img {
...
@@ -368,6 +368,7 @@ img {
width
:
100%
;
width
:
100%
;
}
}
.avatar-uploader
>
.el-upload
{
.avatar-uploader
>
.el-upload
{
border
:
2px
dashed
#666666
;
border
:
2px
dashed
#666666
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
...
@@ -398,6 +399,9 @@ img {
...
@@ -398,6 +399,9 @@ img {
}
}
.avatar2
{
.avatar2
{
width
:
70%
;
width
:
70%
;
img
{
width
:
100%
;
}
}
}
p
{
p
{
margin
:
0
;
margin
:
0
;
...
...
src/views/modules/info/indexcarouselmanage-add-or-update.vue
View file @
84346e27
...
@@ -159,10 +159,10 @@
...
@@ -159,10 +159,10 @@
],
],
directpath
:
[
directpath
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
picIndexPath
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
]
]
// picIndexPath: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ]
// colorBackground: [
// colorBackground: [
// { required: true, message: '不能为空', trigger: 'blur' }
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// ],
...
...
src/views/modules/info/news-add-or-update.vue
View file @
84346e27
...
@@ -82,15 +82,15 @@
...
@@ -82,15 +82,15 @@
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-form-item
label=
"简介:"
prop=
"brief"
>
...
@@ -202,7 +202,7 @@
...
@@ -202,7 +202,7 @@
},
},
created
()
{
created
()
{
this
.
getClassList
([])
this
.
getClassList
([
5
,
9
])
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
classidList
)
console
.
log
(
this
.
classidList
)
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
this
.
loading
=
false
this
.
loading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
news
this
.
dataForm
=
data
.
news
this
.
getClassList
([])
this
.
getClassList
([
5
,
9
])
this
.
dataForm
.
ishead
=
parseInt
(
data
.
news
.
ishead
)
this
.
dataForm
.
ishead
=
parseInt
(
data
.
news
.
ishead
)
this
.
dataForm
.
classid
=
this
.
dataForm
.
classid
this
.
dataForm
.
classid
=
this
.
dataForm
.
classid
this
.
getClassList
([
this
.
dataForm
.
classid
])
this
.
getClassList
([
this
.
dataForm
.
classid
])
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
data
:
id
data
:
id
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
id
.
length
===
0
)
{
if
(
id
.
length
===
2
)
{
this
.
classidList
=
data
.
data
this
.
classidList
=
data
.
data
}
else
{
}
else
{
this
.
cclassidList
=
data
.
data
[
0
].
child
this
.
cclassidList
=
data
.
data
[
0
].
child
...
...
src/views/modules/info/newsmovie-add-or-update.vue
View file @
84346e27
...
@@ -64,27 +64,27 @@
...
@@ -64,27 +64,27 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"描述图片:"
prop=
"pic"
>
<el-form-item
label=
"描述图片:"
prop=
"pic"
>
<el-upload
<el-upload
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"MP4文件:"
prop=
"video"
>
<el-form-item
label=
"MP4文件:"
prop=
"video"
>
<el-upload
<el-upload
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"UploadVideo"
:http-request=
"UploadVideo"
:before-upload=
"beforeUploadVideo"
>
:before-upload=
"beforeUploadVideo"
>
<video
v-if=
"dialogVisible2"
:src=
"videoUrlStr"
class=
"
avatar
"
></video>
<video
v-if=
"dialogVisible2"
:src=
"videoUrlStr"
class=
""
></video>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><video
:src=
"videoUrlStr"
class=
"avatar"
></video></p>
<p
v-show=
"showInfo"
><video
:src=
"videoUrlStr"
class=
"avatar
2
"
></video></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"content"
>
<el-form-item
label=
""
prop=
"content"
>
...
...
src/views/modules/info/newtopic-add-or-update.vue
View file @
84346e27
...
@@ -46,29 +46,37 @@
...
@@ -46,29 +46,37 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
levels
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
levels
}}
</p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"显示时间:"
prop=
"showtime"
class=
" setdes setdes1"
>
<el-form-item
label=
"显示时间:"
prop=
"showtime"
class=
" setdes setdes1"
>
<el-row
v-show=
"!showInfo"
>
<el-col
:span=
"22"
>
<el-date-picker
<el-date-picker
v-show=
"!showInfo"
v-show=
"!showInfo"
v-model=
"dataForm.showtime"
v-model=
"dataForm.showtime"
value-format=
'yyyy-MM-dd'
value-format=
'yyyy-MM-dd'
type=
"date"
type=
"date"
placeholder=
"选择日期"
>
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
<span
v-show=
"!showInfo"
>
时间格式为:xxxx/xx/xx
</span>
</el-col>
<el-col
:span=
"2"
class=
"iconStyle"
>
<el-tooltip
placement=
"top"
effect=
"light"
>
<div
slot=
"content"
>
时间格式为:xxxx/xx/xx
</div>
<i
class=
"el-icon-warning"
></i>
</el-tooltip>
</el-col>
</el-row>
<p
v-show=
"showInfo"
>
{{
dataForm
.
showtime
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
showtime
}}
</p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"专题图片:"
prop=
"pic"
>
<el-form-item
label=
"专题图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"专题简介:"
prop=
"shortcontent"
>
<el-form-item
label=
"专题简介:"
prop=
"shortcontent"
>
<el-input
type=
"textarea"
v-model=
"dataForm.shortcontent"
placeholder=
"请输入专题简介"
v-show=
"!showInfo"
></el-input>
<el-input
type=
"textarea"
v-model=
"dataForm.shortcontent"
placeholder=
"请输入专题简介"
v-show=
"!showInfo"
></el-input>
...
@@ -135,12 +143,12 @@
...
@@ -135,12 +143,12 @@
levels
:
[
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
directpath
:
[
//
directpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
ppic
:
[
//
ppic: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
// content: [
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// ],
...
@@ -178,7 +186,7 @@
...
@@ -178,7 +186,7 @@
},
},
created
()
{
created
()
{
this
.
getClassList
([])
this
.
getClassList
([
9
,
12
,
13
])
},
},
mounted
()
{
mounted
()
{
...
@@ -256,13 +264,8 @@
...
@@ -256,13 +264,8 @@
data
:
id
data
:
id
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
id
.
length
===
0
)
{
this
.
classidList
=
data
.
data
this
.
classidList
=
data
.
data
}
else
{
}
else
{
this
.
dataForm
.
cclassid
=
''
this
.
cclassidList
=
data
.
data
[
0
].
child
}
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
$message
.
error
(
data
.
msg
)
}
}
})
})
...
@@ -321,19 +324,11 @@
...
@@ -321,19 +324,11 @@
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.form-list
{
padding-left
:
4%
!important
;
.iconStyle
{
}
font-size
:
18px
;
.el-form-item__content
{
text-align
:
center
;
width
:
50%
;
color
:
#e6a23c
;
}
cursor
:
pointer
;
.el-select
,
.el-input
{
}
width
:
241px
!important
;
}
.edui-editor
{
width
:
100%
;
}
.setdes1
.el-form-item__content
>
span
{
left
:
280px
!important
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/modules/info/newtopic.vue
View file @
84346e27
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<
script
>
<
script
>
import
{
piclevelList
}
from
'@/utils'
import
{
piclevelList
}
from
'@/utils'
import
AddOrUpdate
from
'./new
s
-add-or-update'
import
AddOrUpdate
from
'./new
topic
-add-or-update'
export
default
{
export
default
{
components
:
{
components
:
{
AddOrUpdate
AddOrUpdate
...
...
src/views/modules/info/picture-add-or-update.vue
View file @
84346e27
...
@@ -128,13 +128,13 @@ export default {
...
@@ -128,13 +128,13 @@ export default {
trigger
:
'blur'
trigger
:
'blur'
}
}
],
],
picFile
:
[
//
picFile: [
{
//
{
required
:
true
,
//
required: true,
message
:
'不能为空'
,
//
message: '不能为空',
trigger
:
'blur'
//
trigger: 'blur'
}
//
}
],
//
],
editor
:
[
editor
:
[
{
{
required
:
true
,
required
:
true
,
...
@@ -163,13 +163,13 @@ export default {
...
@@ -163,13 +163,13 @@ export default {
trigger
:
'blur'
trigger
:
'blur'
}
}
],
],
jumppath
:
[
//
jumppath: [
{
//
{
required
:
true
,
//
required: true,
message
:
'不能为空'
,
//
message: '不能为空',
trigger
:
'blur'
//
trigger: 'blur'
}
//
}
],
//
],
showtime
:
[
showtime
:
[
{
{
required
:
true
,
required
:
true
,
...
...
src/views/modules/logistics/logistics-add-or-update.vue
View file @
84346e27
...
@@ -134,9 +134,9 @@
...
@@ -134,9 +134,9 @@
keyword
:
[
keyword
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
jumppath
:
[
//
jumppath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
author
:
[
author
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
...
...
src/views/modules/medical/medical-add-or-update.vue
View file @
84346e27
...
@@ -126,9 +126,9 @@
...
@@ -126,9 +126,9 @@
keyword
:
[
keyword
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
jumpath
:
[
//
jumpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
author
:
[
author
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
...
...
src/views/modules/party/center-add-or-update.vue
View file @
84346e27
...
@@ -55,15 +55,15 @@
...
@@ -55,15 +55,15 @@
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-input
type=
"textarea"
rows=
"5"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
<el-input
type=
"textarea"
rows=
"5"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
...
@@ -134,12 +134,12 @@
...
@@ -134,12 +134,12 @@
levels
:
[
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
directpath
:
[
//
directpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
pic
:
[
//
pic: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
// content: [
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// ],
...
...
src/views/modules/party/hotFlow-add-or-update.vue
View file @
84346e27
...
@@ -55,15 +55,15 @@
...
@@ -55,15 +55,15 @@
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-input
type=
"textarea"
rows=
"5"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
<el-input
type=
"textarea"
rows=
"5"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
...
@@ -133,12 +133,12 @@
...
@@ -133,12 +133,12 @@
levels
:
[
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
directpath
:
[
//
directpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
pic
:
[
//
pic: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
// content: [
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// ],
...
...
src/views/modules/party/rules-add-or-update.vue
View file @
84346e27
...
@@ -55,15 +55,15 @@
...
@@ -55,15 +55,15 @@
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-input
type=
"textarea"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
<el-input
type=
"textarea"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
...
@@ -134,12 +134,12 @@
...
@@ -134,12 +134,12 @@
levels
:
[
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
directpath
:
[
//
directpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
pic
:
[
//
pic: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
// content: [
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// ],
...
...
src/views/modules/party/topicnews-add-or-update.vue
View file @
84346e27
...
@@ -55,15 +55,15 @@
...
@@ -55,15 +55,15 @@
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
>
:before-upload=
"beforeAvatarUpload"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-form-item
label=
"简介:"
prop=
"brief"
>
<el-input
type=
"textarea"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
<el-input
type=
"textarea"
v-model=
"dataForm.brief"
placeholder=
"请输入简介"
v-show=
"!showInfo"
></el-input>
...
@@ -134,12 +134,12 @@
...
@@ -134,12 +134,12 @@
levels
:
[
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
directpath
:
[
//
directpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
pic
:
[
//
pic: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
// content: [
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// ],
...
...
src/views/modules/policy/policy-add-or-update.vue
View file @
84346e27
...
@@ -135,9 +135,9 @@
...
@@ -135,9 +135,9 @@
keyword
:
[
keyword
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
directpath
:
[
//
directpath: [
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
//
{ required: true, message: '不能为空', trigger: 'blur' }
],
//
],
author
:
[
author
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
],
...
...
src/views/modules/standard/partners-add-or-update.vue
View file @
84346e27
...
@@ -105,16 +105,16 @@
...
@@ -105,16 +105,16 @@
<el-form-item
label=
"上传图片:"
prop=
"pic"
>
<el-form-item
label=
"上传图片:"
prop=
"pic"
>
<el-upload
<el-upload
v-show=
"!showInfo"
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
action=
""
:show-file-list=
"false"
:show-file-list=
"false"
:http-request=
"Upload"
:http-request=
"Upload"
:before-upload=
"beforeAvatarUpload"
:before-upload=
"beforeAvatarUpload"
>
>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
"
avatar
"
/>
<img
v-if=
"dialogVisible"
:src=
"imgUrlStr"
class=
""
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar"
/></p>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar
2
"
/></p>
</el-form-item>
</el-form-item>
<el-form-item
label=
"企业简介:"
prop=
"brief"
>
<el-form-item
label=
"企业简介:"
prop=
"brief"
>
...
@@ -138,166 +138,166 @@
...
@@ -138,166 +138,166 @@
<
script
>
<
script
>
import
{
piclevelList
}
from
'@/utils'
import
{
piclevelList
}
from
'@/utils'
import
Ueditor
from
"../temps/ueditor"
;
import
Ueditor
from
'../temps/ueditor'
export
default
{
export
default
{
components
:
{
components
:
{
Ueditor
,
Ueditor
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
showInfo
:
false
,
showInfo
:
false
,
visible
:
false
,
visible
:
false
,
defaultProps
:
{
defaultProps
:
{
children
:
"children"
,
children
:
'children'
,
label
:
"label"
,
label
:
'label'
},
},
technologyList
:
[
technologyList
:
[
{
{
value
:
"1"
,
value
:
'1'
,
label
:
"标识的打印和制作"
,
label
:
'标识的打印和制作'
},
},
{
{
value
:
"2"
,
value
:
'2'
,
label
:
"系统集成"
,
label
:
'系统集成'
},
},
{
{
value
:
"3"
,
value
:
'3'
,
label
:
"信息服务"
,
label
:
'信息服务'
},
},
{
{
value
:
"4"
,
value
:
'4'
,
label
:
"咨询服务"
,
label
:
'咨询服务'
},
},
{
{
value
:
"5"
,
value
:
'5'
,
label
:
"咨询服务"
,
label
:
'咨询服务'
}
,
}
],
],
serviceList
:
[
serviceList
:
[
{
{
value
:
"1"
,
value
:
'1'
,
label
:
"零售"
,
label
:
'零售'
},
},
{
{
value
:
"2"
,
value
:
'2'
,
label
:
"电子商务"
,
label
:
'电子商务'
},
},
{
{
value
:
"3"
,
value
:
'3'
,
label
:
"食品烟酒"
,
label
:
'食品烟酒'
},
},
{
{
value
:
"4"
,
value
:
'4'
,
label
:
"医疗"
,
label
:
'医疗'
},
},
{
{
value
:
"5"
,
value
:
'5'
,
label
:
"物流"
,
label
:
'物流'
},
},
{
{
value
:
"6"
,
value
:
'6'
,
label
:
"服装"
,
label
:
'服装'
},
},
{
{
value
:
"7"
,
value
:
'7'
,
label
:
"快速消费品"
,
label
:
'快速消费品'
},
},
{
{
value
:
"8"
,
value
:
'8'
,
label
:
"消费电子产品"
,
label
:
'消费电子产品'
},
},
{
{
value
:
"9"
,
value
:
'9'
,
label
:
"制造和零部件"
,
label
:
'制造和零部件'
},
},
{
{
value
:
"10"
,
value
:
'10'
,
label
:
"建材"
,
label
:
'建材'
},
},
{
{
value
:
"11"
,
value
:
'11'
,
label
:
"其他"
,
label
:
'其他'
}
,
}
],
],
dataForm
:
{
dataForm
:
{
id
:
0
,
id
:
0
,
firmname
:
""
,
firmname
:
''
,
technology
:
""
,
technology
:
''
,
service
:
""
,
service
:
''
,
site
:
""
,
site
:
''
,
name
:
""
,
name
:
''
,
phone
:
""
,
phone
:
''
,
email
:
""
,
email
:
''
,
levels
:
""
,
levels
:
''
,
pic
:
""
,
pic
:
''
,
brief
:
""
,
brief
:
''
},
},
cclassidStr
:
undefined
,
cclassidStr
:
undefined
,
dataRule
:
{
dataRule
:
{
firmname
:
[{
required
:
true
,
message
:
"企业名称不能为空"
,
trigger
:
"blur"
}],
firmname
:
[{
required
:
true
,
message
:
'企业名称不能为空'
,
trigger
:
'blur'
}],
technology
:
[{
required
:
true
,
message
:
"技术领域不能为空"
,
trigger
:
"blur"
}],
technology
:
[{
required
:
true
,
message
:
'技术领域不能为空'
,
trigger
:
'blur'
}],
service
:
[{
required
:
true
,
message
:
"服务行业不能为空"
,
trigger
:
"blur"
}],
service
:
[{
required
:
true
,
message
:
'服务行业不能为空'
,
trigger
:
'blur'
}],
site
:
[{
required
:
true
,
message
:
"网址不能为空"
,
trigger
:
"blur"
}],
site
:
[{
required
:
true
,
message
:
'网址不能为空'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
"联系人姓名不能为空"
,
trigger
:
"blur"
}],
name
:
[{
required
:
true
,
message
:
'联系人姓名不能为空'
,
trigger
:
'blur'
}],
phone
:
[{
required
:
true
,
message
:
"联系电话不能为空"
,
trigger
:
"blur"
}],
phone
:
[{
required
:
true
,
message
:
'联系电话不能为空'
,
trigger
:
'blur'
}],
email
:
[{
required
:
true
,
message
:
"邮箱不能为空"
,
trigger
:
"blur"
}],
email
:
[{
required
:
true
,
message
:
'邮箱不能为空'
,
trigger
:
'blur'
}],
levels
:
[{
required
:
true
,
message
:
"级别不能为空"
,
trigger
:
"blur"
}],
levels
:
[{
required
:
true
,
message
:
'级别不能为空'
,
trigger
:
'blur'
}],
pic
:
[{
required
:
true
,
message
:
"请上传图片"
,
trigger
:
"blur"
}],
pic
:
[{
required
:
true
,
message
:
'请上传图片'
,
trigger
:
'blur'
}],
brief
:
[{
required
:
true
,
message
:
"企业简介不能为空"
,
trigger
:
"blur"
}],
brief
:
[{
required
:
true
,
message
:
'企业简介不能为空'
,
trigger
:
'blur'
}]
},
},
imgUrl
:
new
FormData
(),
imgUrl
:
new
FormData
(),
imgUrlStr
:
""
,
imgUrlStr
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
ueditor
:
{
ueditor
:
{
value
:
""
,
value
:
''
,
config
:
{}
,
config
:
{}
},
},
piclevelList
,
piclevelList
}
;
}
},
},
methods
:
{
methods
:
{
getSelectName
(
list
,
id
)
{
getSelectName
(
list
,
id
)
{
let
arr
=
list
.
filter
((
item
)
=>
{
let
arr
=
list
.
filter
((
item
)
=>
{
return
item
.
id
===
id
;
return
item
.
id
===
id
})
;
})
return
arr
[
0
].
name
;
return
arr
[
0
].
name
},
},
init
(
id
,
showInfo
)
{
init
(
id
,
showInfo
)
{
this
.
dataForm
.
id
=
id
||
0
;
this
.
dataForm
.
id
=
id
||
0
this
.
visible
=
true
;
this
.
visible
=
true
this
.
showInfo
=
showInfo
;
this
.
showInfo
=
showInfo
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
clearInp
()
;
this
.
clearInp
()
if
(
this
.
dataForm
.
id
)
{
if
(
this
.
dataForm
.
id
)
{
this
.
loading
=
true
;
this
.
loading
=
true
this
.
$http
({
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/partners/info/
${
this
.
dataForm
.
id
}
`
),
url
:
this
.
$http
.
adornUrl
(
`/office/partners/info/
${
this
.
dataForm
.
id
}
`
),
method
:
"get"
,
method
:
'get'
,
params
:
this
.
$http
.
adornParams
()
,
params
:
this
.
$http
.
adornParams
()
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
partners
;
this
.
dataForm
=
data
.
partners
this
.
imgUrlStr
=
data
.
partners
.
pic
;
this
.
imgUrlStr
=
data
.
partners
.
pic
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
brief
;
this
.
ueditor
.
value
=
this
.
dataForm
.
brief
}
}
})
;
})
}
}
})
;
})
},
},
// 表单提交
// 表单提交
dataFormSubmit
()
{
dataFormSubmit
()
{
this
.
$refs
[
"dataForm"
].
validate
((
valid
)
=>
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
console
.
log
(
valid
,
'表单提交表单提交'
)
;
console
.
log
(
valid
,
'表单提交表单提交'
)
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
;
this
.
loading
=
true
this
.
$http
({
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
url
:
this
.
$http
.
adornUrl
(
`/office/partners/
${
!
this
.
dataForm
.
id
?
"save"
:
"update"
}
`
`/office/partners/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
),
method
:
"post"
,
method
:
'post'
,
data
:
this
.
$http
.
adornData
({
data
:
this
.
$http
.
adornData
({
id
:
this
.
dataForm
.
id
||
undefined
,
id
:
this
.
dataForm
.
id
||
undefined
,
firmname
:
this
.
dataForm
.
firmname
,
firmname
:
this
.
dataForm
.
firmname
,
...
@@ -309,89 +309,89 @@ export default {
...
@@ -309,89 +309,89 @@ export default {
email
:
this
.
dataForm
.
email
,
email
:
this
.
dataForm
.
email
,
levels
:
this
.
dataForm
.
levels
,
levels
:
this
.
dataForm
.
levels
,
pic
:
this
.
dataForm
.
pic
,
pic
:
this
.
dataForm
.
pic
,
brief
:
this
.
dataForm
.
brief
,
brief
:
this
.
dataForm
.
brief
})
,
})
}).
then
(({
data
})
=>
{
}).
then
(({
data
})
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
({
this
.
$message
({
message
:
"操作成功"
,
message
:
'操作成功'
,
type
:
"success"
,
type
:
'success'
,
duration
:
1500
,
duration
:
1500
,
onClose
:
()
=>
{
onClose
:
()
=>
{
this
.
visible
=
false
;
this
.
visible
=
false
this
.
$emit
(
"refreshDataList"
);
this
.
$emit
(
'refreshDataList'
)
}
,
}
})
;
})
}
else
{
}
else
{
this
.
$message
.
error
(
data
.
msg
)
;
this
.
$message
.
error
(
data
.
msg
)
}
}
})
;
})
}
}
})
;
})
},
},
// 上传之前校验
// 上传之前校验
beforeAvatarUpload
(
file
)
{
beforeAvatarUpload
(
file
)
{
const
isJPG
=
file
.
type
===
"image/jpeg"
;
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isPNG
=
file
.
type
===
"image/png"
;
const
isPNG
=
file
.
type
===
'image/png'
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
;
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
if
(
!
isJPG
)
{
if
(
!
isJPG
)
{
if
(
!
isPNG
)
{
if
(
!
isPNG
)
{
this
.
$message
.
error
(
"上传图片只能是 JPG, PNG 格式!"
);
this
.
$message
.
error
(
'上传图片只能是 JPG, PNG 格式!'
)
}
}
}
}
if
(
!
isLt2M
)
{
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
"上传头像图片大小不能超过 2MB!"
);
this
.
$message
.
error
(
'上传头像图片大小不能超过 2MB!'
)
}
}
if
(
file
)
{
if
(
file
)
{
var
windowURL
=
window
.
URL
||
window
.
webkitURL
;
var
windowURL
=
window
.
URL
||
window
.
webkitURL
this
.
imgUrlStr
=
windowURL
.
createObjectURL
(
file
)
;
this
.
imgUrlStr
=
windowURL
.
createObjectURL
(
file
)
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
this
.
imgUrl
.
append
(
"file"
,
file
);
this
.
imgUrl
.
append
(
'file'
,
file
)
}
}
},
},
Upload
()
{
Upload
()
{
this
.
$http
({
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
"/office/file/uploadFile"
),
url
:
this
.
$http
.
adornUrl
(
'/office/file/uploadFile'
),
method
:
"post"
,
method
:
'post'
,
data
:
this
.
imgUrl
,
data
:
this
.
imgUrl
,
headers
:
{
headers
:
{
"Content-Type"
:
"multipart/form-data"
,
'Content-Type'
:
'multipart/form-data'
}
,
}
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
)
;
console
.
log
(
res
)
this
.
dataForm
.
pic
=
res
.
data
.
data
;
this
.
dataForm
.
pic
=
res
.
data
.
data
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
err
)
;
console
.
log
(
err
)
})
;
})
},
},
// 选择栏目
// 选择栏目
handleChange
(
value
)
{
handleChange
(
value
)
{
if
(
value
.
length
===
1
)
{
if
(
value
.
length
===
1
)
{
this
.
classid
=
value
[
0
]
;
this
.
classid
=
value
[
0
]
}
else
if
(
value
.
length
===
2
)
{
}
else
if
(
value
.
length
===
2
)
{
this
.
dataForm
.
classid
=
value
[
0
]
;
this
.
dataForm
.
classid
=
value
[
0
]
this
.
dataForm
.
cclassid
=
value
[
1
]
;
this
.
dataForm
.
cclassid
=
value
[
1
]
}
}
},
},
clearInp
()
{
clearInp
()
{
this
.
$refs
[
"dataForm"
].
resetFields
();
this
.
$refs
[
'dataForm'
].
resetFields
()
this
.
imgUrlStr
=
""
;
this
.
imgUrlStr
=
''
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
this
.
ueditor
.
value
=
""
;
this
.
ueditor
.
value
=
''
},
},
// 更新父子组件内容
// 更新父子组件内容
editorReady
(
instance
)
{
editorReady
(
instance
)
{
instance
.
setContent
(
this
.
dataForm
.
brief
)
;
instance
.
setContent
(
this
.
dataForm
.
brief
)
instance
.
addListener
(
"contentChange"
,
()
=>
{
instance
.
addListener
(
'contentChange'
,
()
=>
{
this
.
dataForm
.
brief
=
instance
.
getContent
()
;
this
.
dataForm
.
brief
=
instance
.
getContent
()
})
;
})
}
,
}
}
,
}
}
;
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
/* .form-list{
/* .form-list{
...
...
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