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
4d19c97a
Commit
4d19c97a
authored
Jan 20, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台bug更改
parent
6faec595
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
204 additions
and
67 deletions
+204
-67
_base.scss
src/assets/scss/_base.scss
+7
-1
home.vue
src/views/common/home.vue
+1
-11
main-content.vue
src/views/main-content.vue
+13
-0
announce-add-or-update.vue
src/views/modules/info/announce-add-or-update.vue
+1
-1
announce.vue
src/views/modules/info/announce.vue
+11
-3
indexcarouselmanage-add-or-update.vue
src/views/modules/info/indexcarouselmanage-add-or-update.vue
+25
-17
indexcarouselmanage.vue
src/views/modules/info/indexcarouselmanage.vue
+10
-4
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+7
-3
news.vue
src/views/modules/info/news.vue
+11
-2
newsmovie.vue
src/views/modules/info/newsmovie.vue
+11
-2
newtopic.vue
src/views/modules/info/newtopic.vue
+11
-2
picture-add-or-update.vue
src/views/modules/info/picture-add-or-update.vue
+5
-3
picture.vue
src/views/modules/info/picture.vue
+16
-6
logistics.vue
src/views/modules/logistics/logistics.vue
+10
-1
medical.vue
src/views/modules/medical/medical.vue
+10
-1
center.vue
src/views/modules/party/center.vue
+11
-2
hotFlow.vue
src/views/modules/party/hotFlow.vue
+11
-2
rules.vue
src/views/modules/party/rules.vue
+11
-2
topicnews.vue
src/views/modules/party/topicnews.vue
+11
-2
policy.vue
src/views/modules/policy/policy.vue
+11
-2
No files found.
src/assets/scss/_base.scss
View file @
4d19c97a
...
...
@@ -376,7 +376,7 @@ img {
.avatar-uploaderFile
>
.el-upload
{
border
:none
}
.avatar-uploader
.el-upload
:hover
{
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409EFF
;
}
.avatar-uploader-icon
{
...
...
@@ -386,6 +386,9 @@ img {
height
:
64px
;
line-height
:
64px
;
text-align
:
center
;
&
:hover
{
color
:
#409EFF
;
}
}
.avatar
{
...
...
@@ -393,6 +396,9 @@ img {
height
:
64px
;
display
:
block
;
}
.avatar2
{
width
:
70%
;
}
p
{
margin
:
0
;
}
...
...
src/views/common/home.vue
View file @
4d19c97a
...
...
@@ -13,17 +13,7 @@
}
},
created
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/domain/api/list'
),
method
:
'get'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$store
.
commit
(
'config/updateUrls'
,
data
.
data
)
console
.
log
(
this
.
$store
.
state
.
config
.
urls
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
}).
catch
(()
=>
{})
}
}
</
script
>
...
...
src/views/main-content.vue
View file @
4d19c97a
...
...
@@ -79,6 +79,19 @@
}
},
created
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/domain/api/list'
),
method
:
'get'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$store
.
commit
(
'config/updateUrls'
,
data
.
data
)
console
.
log
(
this
.
$store
.
state
.
config
.
urls
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
}).
catch
(()
=>
{})
},
mounted
()
{
console
.
log
(
this
.
mainTabs
)
console
.
log
(
this
.
mainTabsActiveName
)
...
...
src/views/modules/info/announce-add-or-update.vue
View file @
4d19c97a
...
...
@@ -107,7 +107,7 @@
label
:
'中心公告'
},
{
value
:
2
,
value
:
3
,
label
:
'地方公告'
}
],
...
...
src/views/modules/info/announce.vue
View file @
4d19c97a
...
...
@@ -144,7 +144,7 @@
<el-button
v-if=
"isAuth('manage:announce:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:announce:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:announce:check')"
/>
<el-button
v-if=
"isAuth('manage:announce:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:announce:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:announce:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:announce:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -177,7 +177,7 @@
addOrUpdateVisible
:
false
,
dataForm
:
{
'title'
:
''
,
'levels'
:
'0'
,
'levels'
:
null
,
'editor'
:
''
,
'keyword'
:
''
,
'status'
:
''
,
...
...
@@ -273,7 +273,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/NoticeArticle?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/info/indexcarouselmanage-add-or-update.vue
View file @
4d19c97a
...
...
@@ -11,7 +11,7 @@
<el-form-item
label=
"背景颜色:"
prop=
"colorBackground"
class=
" setdes setdes1"
>
<el-row
v-show=
"!showInfo"
>
<el-col
:span=
"22"
>
<el-select
v-model=
"dataForm.colorBackground"
placeholder=
"请选择背景颜色"
v-show=
"!showInfo"
>
<el-select
v-model=
"dataForm.colorBackground"
placeholder=
"请选择背景颜色"
v-show=
"!showInfo"
:disabled=
'disabled'
>
<el-option
v-for=
"item in colorBackgroundList"
:key=
"item.label"
...
...
@@ -33,7 +33,7 @@
<el-form-item
label=
"按钮跳转色:"
prop=
"colorMore"
class=
"setdes setdes1"
>
<el-row
v-show=
"!showInfo"
>
<el-col
:span=
"22"
>
<el-select
v-model=
"dataForm.colorMore"
placeholder=
"请选择背景颜色"
v-show=
"!showInfo"
>
<el-select
v-model=
"dataForm.colorMore"
placeholder=
"请选择背景颜色"
v-show=
"!showInfo"
:disabled=
'disabled'
>
<el-option
v-for=
"item in colorMoreList"
:key=
"item.label"
...
...
@@ -52,7 +52,7 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
colorMore
}}
</p>
</el-form-item>
<el-form-item
label=
"类型:"
prop=
"classnum"
>
<el-select
v-model=
"dataForm.classnum"
placeholder=
"请选择类别"
v-show=
"!showInfo"
>
<el-select
v-model=
"dataForm.classnum"
placeholder=
"请选择类别"
v-show=
"!showInfo"
@
change=
"getLunbo"
>
<el-option
v-for=
"item in classnumList"
:key=
"item.label"
...
...
@@ -90,7 +90,7 @@
<el-form-item
label=
"轮播简介:"
prop=
"brief"
class=
"setdes setdes1"
>
<el-row
v-show=
"!showInfo"
>
<el-col
:span=
"22"
>
<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"
:disabled=
'disabled'
></el-input>
</el-col>
<el-col
:span=
"2"
class=
"iconStyle"
>
<el-tooltip
placement=
"top"
effect=
"light"
>
...
...
@@ -105,17 +105,17 @@
<el-form-item
label=
"图片:"
prop=
"picIndexPath"
class=
"setdes setdes3"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
:show-file-list=
"false"
:http-request=
"Upload"
: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>
</el-upload>
<!--
<el-input
v-model=
"dataForm.picIndexPath"
placeholder=
""
></el-input>
-->
<span
v-show=
"!showInfo"
style=
"font-size:12px;color:red"
>
图片尺寸大轮播600X400px 小轮播360x160px
</span>
<p><img
:src=
"imgUrlStr"
class=
"avatar"
v-show=
"showInfo"
></p>
<p><img
:src=
"imgUrlStr"
class=
"avatar
2
"
v-show=
"showInfo"
></p>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
v-show=
"!showInfo"
>
...
...
@@ -151,9 +151,9 @@
title
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
brief
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
//
brief: [
//
{ required: true, message: '不能为空', trigger: 'blur' }
//
],
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
...
...
@@ -162,13 +162,13 @@
],
picIndexPath
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
colorBackground
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
colorMore
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
]
// colorBackground: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
// colorMore: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ]
},
imgUrl
:
new
FormData
(),
imgUrlStr
:
''
,
...
...
@@ -197,7 +197,8 @@
{
label
:
'小轮播'
}
]
],
disabled
:
false
}
},
mounted
()
{
...
...
@@ -238,6 +239,13 @@
}
})
},
getLunbo
(
e
)
{
if
(
e
===
'大轮播'
)
{
this
.
disabled
=
false
}
else
if
(
e
===
'小轮播'
)
{
this
.
disabled
=
true
}
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
...
...
src/views/modules/info/indexcarouselmanage.vue
View file @
4d19c97a
...
...
@@ -137,7 +137,7 @@
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:indexcarouselmanage:check')"
/>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -169,7 +169,7 @@
addOrUpdateVisible
:
false
,
dataForm
:
{
title
:
''
,
levels
:
'0'
,
levels
:
null
,
status
:
''
,
classnum
:
''
,
inputdate
:
''
...
...
@@ -262,8 +262,14 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
id
)
{
window
.
open
(
this
.
urls
+
'/News/msg?id='
+
id
,
'_blank'
)
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
...
...
src/views/modules/info/news-add-or-update.vue
View file @
4d19c97a
...
...
@@ -26,6 +26,7 @@
<el-form-item
label=
"栏目:"
prop=
"classid"
>
<el-select
v-model=
"dataForm.classid"
@
change=
"getClassList([dataForm.classid])"
style=
'width:121px!important'
v-show=
"!showInfo"
>
<el-option
ref =
'sel1'
v-for=
"item in classidList"
:key=
"item.id"
:label=
"item.name"
...
...
@@ -34,13 +35,14 @@
</el-select>
<el-select
v-model=
"dataForm.cclassid"
style=
'width:121px!important'
v-show=
"!showInfo"
>
<el-option
ref =
'sel2'
v-for=
"item in cclassidList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
<p
v-show=
"showInfo"
>
{{
className
+
'/'
+
cclassName
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
className
+
'/'
+
dataForm
.
cclassName
}}
</p>
</el-form-item>
<el-form-item
label=
'级别:'
prop=
'levels'
>
<el-select
v-model=
"dataForm.levels"
placeholder=
"请输入级别"
v-show=
"!showInfo"
>
...
...
@@ -228,8 +230,11 @@
this
.
loading
=
false
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
news
this
.
getClassList
([
this
.
dataForm
.
classid
])
this
.
getClassList
([])
this
.
dataForm
.
ishead
=
parseInt
(
data
.
news
.
ishead
)
this
.
dataForm
.
classid
=
this
.
dataForm
.
classid
this
.
getClassList
([
this
.
dataForm
.
classid
])
this
.
dataForm
.
cclassid
=
this
.
dataForm
.
cclassid
this
.
imgUrlStr
=
data
.
news
.
pic
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
...
...
@@ -293,7 +298,6 @@
if
(
id
.
length
===
0
)
{
this
.
classidList
=
data
.
data
}
else
{
this
.
dataForm
.
cclassid
=
''
this
.
cclassidList
=
data
.
data
[
0
].
child
}
}
else
{
...
...
src/views/modules/info/news.vue
View file @
4d19c97a
...
...
@@ -150,7 +150,7 @@
<el-button
v-if=
"isAuth('manage:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:news:check')"
/>
<el-button
v-if=
"isAuth('manage:news:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:news:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:news:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:news:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -183,7 +183,7 @@
addOrUpdateVisible
:
false
,
dataForm
:
{
'title'
:
''
,
'levels'
:
'0'
,
'levels'
:
null
,
'author'
:
''
,
'editor'
:
''
,
'keyword'
:
''
,
...
...
@@ -274,6 +274,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
...
...
src/views/modules/info/newsmovie.vue
View file @
4d19c97a
...
...
@@ -187,7 +187,7 @@
<el-button
v-if=
"isAuth('manage:newsmovie:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:newsmovie:check')"
/>
<el-button
v-if=
"isAuth('manage:newsmovie:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:newsmovie:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -225,7 +225,7 @@
'keyword'
:
''
,
'status'
:
''
,
'clanguage'
:
''
,
'levels'
:
'0'
'levels'
:
null
},
dataList
:
[],
pageIndex
:
1
,
...
...
@@ -312,6 +312,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msgVideo?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/info/newtopic.vue
View file @
4d19c97a
...
...
@@ -122,7 +122,7 @@
<el-button
v-if=
"isAuth('manage:newtopic:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.classid,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.classid,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:newtopic:check')"
/>
<el-button
v-if=
"isAuth('manage:newtopic:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.classid,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.classid)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:newtopic:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.classid)"
>
删除
</el-button>
</
template
>
...
...
@@ -154,7 +154,7 @@
addOrUpdateVisible
:
false
,
dataForm
:
{
title
:
''
,
levels
:
'0'
,
levels
:
null
,
status
:
''
,
classnum
:
''
,
inputdate
:
''
...
...
@@ -235,6 +235,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/viewsub?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/info/picture-add-or-update.vue
View file @
4d19c97a
...
...
@@ -68,15 +68,15 @@
<el-form-item
label=
'图片:'
prop=
'picFile'
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader"
class=
"avatar-uploader
avatar2
"
action=
""
:show-file-list=
"false"
:http-request=
"Upload"
: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>
</el-upload>
<p><img
:src=
"imgUrlStr"
class=
"avatar"
v-show=
"showInfo"
></p>
<p><img
:src=
"imgUrlStr"
class=
"avatar
2
"
v-show=
"showInfo"
></p>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
v-show=
"!showInfo"
>
...
...
@@ -267,10 +267,12 @@ export default {
if
(
!
isJPG
)
{
if
(
!
isPNG
)
{
this
.
$message
.
error
(
'上传图片只能是 JPG, PNG 格式!'
)
return
}
}
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'上传头像图片大小不能超过 2MB!'
)
return
}
if
(
file
)
{
var
windowURL
=
window
.
URL
||
window
.
webkitURL
...
...
src/views/modules/info/picture.vue
View file @
4d19c97a
<
template
>
<div
class=
"mod-config mod-list-form"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
label-width=
"80px"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList
Sub
()"
label-width=
"80px"
>
<el-form-item
label=
'标题'
prop=
'title'
>
<el-input
v-model=
'dataForm.title'
placeholder=
'请输入标题'
clearable
></el-input>
</el-form-item>
...
...
@@ -52,7 +52,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
Sub
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:picture:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -100,7 +100,7 @@
<el-button
v-if=
"isAuth('manage:picture:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.pictureid,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:picture:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.pictureid,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:picture:check')"
/>
<el-button
v-if=
"isAuth('manage:picture:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.pictureid,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:picture:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:picture:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.pictureid)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:picture:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.pictureid)"
>
删除
</el-button>
</
template
>
...
...
@@ -129,7 +129,7 @@
addOrUpdateVisible
:
false
,
dataForm
:
{
title
:
''
,
pictureLevel
:
'0'
,
pictureLevel
:
null
,
editor
:
''
,
keyword
:
''
,
status
:
''
,
...
...
@@ -172,6 +172,10 @@
this
.
getDataList
()
},
methods
:
{
getDataListSub
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -223,8 +227,14 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
id
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
id
,
'_blank'
)
showMsg
(
data
)
{
if
(
!
data
.
jumppath
||
data
.
jumppath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
pictureid
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
jumppath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
jumppath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
jumppath
,
'_blank'
)
}
},
// 删除
...
...
src/views/modules/logistics/logistics.vue
View file @
4d19c97a
...
...
@@ -90,7 +90,7 @@
<el-button
v-if=
"isAuth('manage:logistics:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:logistics:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:logistics:check')"
/>
<el-button
v-if=
"isAuth('manage:logistics:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:logistics:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:logistics:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:logistics:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -203,6 +203,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
jumppath
||
data
.
jumppath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
jumppath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
jumppath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
jumppath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/medical/medical.vue
View file @
4d19c97a
...
...
@@ -88,7 +88,7 @@
<el-button
v-if=
"isAuth('manage:medical:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:medical:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:medical:check')"
/>
<el-button
v-if=
"isAuth('manage:medical:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:medical:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:medical:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:medical:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -183,6 +183,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/HealthDetail?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/party/center.vue
View file @
4d19c97a
...
...
@@ -148,7 +148,7 @@
<el-button
v-if=
"isAuth('manage:center:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:center:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:center:check')"
/>
<el-button
v-if=
"isAuth('manage:center:check')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:center:check')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:center:check')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:center:check')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -185,7 +185,7 @@
editor
:
''
,
keyword
:
''
,
status
:
''
,
levels
:
'0'
levels
:
null
},
dataList
:
[],
pageIndex
:
1
,
...
...
@@ -270,6 +270,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/party/hotFlow.vue
View file @
4d19c97a
...
...
@@ -145,7 +145,7 @@
<el-button
v-if=
"isAuth('manage:hotFlow:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:hotFlow:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:hotFlow:check')"
/>
<el-button
v-if=
"isAuth('manage:hotFlow:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:hotFlow:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:hotFlow:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:hotFlow:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -182,7 +182,7 @@
editor
:
''
,
keyword
:
''
,
status
:
''
,
levels
:
'0'
levels
:
null
},
dataList
:
[],
pageIndex
:
1
,
...
...
@@ -266,6 +266,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/party/rules.vue
View file @
4d19c97a
...
...
@@ -148,7 +148,7 @@
<el-button
v-if=
"isAuth('manage:rules:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:rules:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:rules:check')"
/>
<el-button
v-if=
"isAuth('manage:rules:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:rules:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:rules:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:rules:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -185,7 +185,7 @@
editor
:
''
,
keyword
:
''
,
status
:
''
,
levels
:
'0'
levels
:
null
},
dataList
:
[],
pageIndex
:
1
,
...
...
@@ -269,6 +269,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/party/topicnews.vue
View file @
4d19c97a
...
...
@@ -146,7 +146,7 @@
<el-button
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
/>
<el-button
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -183,7 +183,7 @@
editor
:
''
,
keyword
:
''
,
status
:
''
,
levels
:
'0'
levels
:
null
},
dataList
:
[],
pageIndex
:
1
,
...
...
@@ -267,6 +267,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
src/views/modules/policy/policy.vue
View file @
4d19c97a
...
...
@@ -139,7 +139,7 @@
<el-button
v-if=
"isAuth('manage:policy:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('manage:policy:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('manage:policy:check')"
/>
<el-button
v-if=
"isAuth('manage:policy:info')"
type=
"text"
size=
"small"
@
click=
"
addOrUpdateHandle(scope.row.id,true
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:policy:info')"
type=
"text"
size=
"small"
@
click=
"
showMsg(scope.row
)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('manage:policy:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('manage:policy:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
...
...
@@ -172,7 +172,7 @@
addOrUpdateVisible
:
false
,
dataForm
:
{
'title'
:
''
,
'levels'
:
'0'
,
'levels'
:
null
,
'class1'
:
''
,
'editor'
:
''
,
'keyword'
:
''
,
...
...
@@ -269,6 +269,15 @@
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
})
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/Knowledge/Statuteinfo?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
data
.
directpath
,
'_blank'
)
}
},
// 删除
deleteHandle
(
id
)
{
var
ids
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
...
...
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