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
993c6bcc
Commit
993c6bcc
authored
Jul 30, 2023
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台修改
parent
fd7b27de
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
387 additions
and
427 deletions
+387
-427
_base.scss
src/assets/scss/_base.scss
+3
-0
httpRequest.js
src/utils/httpRequest.js
+1
-1
announce-add-or-update.vue
src/views/modules/info/announce-add-or-update.vue
+1
-1
announce.vue
src/views/modules/info/announce.vue
+20
-26
indexcarouselmanage-add-or-update.vue
src/views/modules/info/indexcarouselmanage-add-or-update.vue
+2
-3
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+1
-1
news.vue
src/views/modules/info/news.vue
+26
-31
newsmovie-add-or-update.vue
src/views/modules/info/newsmovie-add-or-update.vue
+39
-14
newsmovie.vue
src/views/modules/info/newsmovie.vue
+24
-29
newtopic-add-or-update.vue
src/views/modules/info/newtopic-add-or-update.vue
+2
-2
newtopic.vue
src/views/modules/info/newtopic.vue
+25
-30
picture-add-or-update.vue
src/views/modules/info/picture-add-or-update.vue
+2
-2
logistics-add-or-update.vue
src/views/modules/logistics/logistics-add-or-update.vue
+1
-1
medical-add-or-update.vue
src/views/modules/medical/medical-add-or-update.vue
+2
-2
medical.vue
src/views/modules/medical/medical.vue
+26
-31
center-add-or-update.vue
src/views/modules/party/center-add-or-update.vue
+1
-1
center.vue
src/views/modules/party/center.vue
+25
-30
hotFlow-add-or-update.vue
src/views/modules/party/hotFlow-add-or-update.vue
+1
-1
hotFlow.vue
src/views/modules/party/hotFlow.vue
+25
-30
rules-add-or-update.vue
src/views/modules/party/rules-add-or-update.vue
+1
-1
rules.vue
src/views/modules/party/rules.vue
+25
-30
topicnews-add-or-update.vue
src/views/modules/party/topicnews-add-or-update.vue
+2
-2
topicnews.vue
src/views/modules/party/topicnews.vue
+25
-30
annual-add-or-update.vue
src/views/modules/planbranch/annual-add-or-update.vue
+1
-1
knowledgeinfo-add-or-update.vue
src/views/modules/plate/knowledgeinfo-add-or-update.vue
+1
-1
knowledgeinfo.vue
src/views/modules/plate/knowledgeinfo.vue
+26
-31
policy-add-or-update.vue
src/views/modules/policy/policy-add-or-update.vue
+1
-1
policy.vue
src/views/modules/policy/policy.vue
+24
-29
picture-add-or-update.vue
src/views/modules/retail/picture-add-or-update.vue
+1
-1
doc-add-or-update.vue
src/views/modules/service/doc-add-or-update.vue
+1
-1
doc.vue
src/views/modules/service/doc.vue
+3
-0
cases.vue
src/views/modules/standard/cases.vue
+25
-32
partners.vue
src/views/modules/standard/partners.vue
+24
-31
No files found.
src/assets/scss/_base.scss
View file @
993c6bcc
...
...
@@ -504,3 +504,6 @@ img {
.el-pagination__total
{
color
:
#000
;
}
.el-loading-mask
{
z-index
:
4000
;
}
src/utils/httpRequest.js
View file @
993c6bcc
...
...
@@ -6,7 +6,7 @@ import merge from 'lodash/merge'
import
{
clearLoginInfo
}
from
'@/utils'
const
http
=
axios
.
create
({
timeout
:
1000
*
30
,
//
timeout: 1000 * 30,
withCredentials
:
true
,
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
...
...
src/views/modules/info/announce-add-or-update.vue
View file @
993c6bcc
...
...
@@ -205,13 +205,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.fileurl === '' || this.dataForm.fileurl === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/announce/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
...
...
src/views/modules/info/announce.vue
View file @
993c6bcc
...
...
@@ -306,45 +306,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
ursStr
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/NoticeArticle?id=
${
item
.
id
}
&token=
${
data
.
data
}
`
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/NoticeArticle?id=
${
item
.
id
}
&token=
${
data
.
data
}
`
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/NoticeArticle?id=
${
item
.
id
}
&token=
${
data
.
data
}
`
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/info/indexcarouselmanage-add-or-update.vue
View file @
993c6bcc
...
...
@@ -213,8 +213,7 @@ export default {
{
label
:
'小轮播'
}
],
disabled
:
false
]
}
},
mounted
()
{
...
...
@@ -266,9 +265,9 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
this
.
disabled
=
true
if
(
this
.
dataForm
.
picIndexPath
===
''
||
this
.
dataForm
.
picIndexPath
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
...
...
src/views/modules/info/news-add-or-update.vue
View file @
993c6bcc
...
...
@@ -290,7 +290,6 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disabled
=
true
...
...
@@ -298,6 +297,7 @@ export default {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/news/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/info/news.vue
View file @
993c6bcc
...
...
@@ -443,43 +443,38 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// if (!item.directpath || item.directpath === null) {
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
// } else {
// ursStr = item.directpath + '&token=' + data.data
// this.$set(this.urlsJson, item.title, ursStr)
// }
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
...
...
src/views/modules/info/newsmovie-add-or-update.vue
View file @
993c6bcc
<
template
>
<el-dialog
:title=
"!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:title=
"!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal=
"false"
v-loading=
"loading"
element-loading-text=
"正在加载数据"
:visible
.
sync=
"visible"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmit()"
label-width=
"130px"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmit()"
label-width=
"130px"
>
<el-form-item
label=
"原始标题"
prop=
"titleOld"
>
<el-input
v-model=
"dataForm.titleOld"
placeholder=
"请输入原始标题"
v-show=
"!showInfo"
></el-input>
</el-form-item>
...
...
@@ -51,12 +53,12 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
stdate
}}
</p>
</el-form-item>
<el-form-item
label=
'语种'
prop=
'clanguage'
>
<el-select
v-model=
"dataForm.clanguage"
placeholder=
"请输入
级别
"
v-show=
"!showInfo"
>
<el-select
v-model=
"dataForm.clanguage"
placeholder=
"请输入
语种
"
v-show=
"!showInfo"
>
<el-option
v-for=
"item in clanguageList"
:key=
"item
.value
"
:label=
"item
.name
"
:value=
"item
.value
"
>
:key=
"item"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -148,7 +150,7 @@ export default {
longStr
:
''
,
stdate
:
''
,
clanguage
:
''
,
brief
:
''
,
brief
:
''
,
wavname
:
''
,
showtime
:
''
},
...
...
@@ -204,7 +206,7 @@ export default {
config
:
{}
},
piclevelList
,
clanguageList
:
[
'中文'
],
clanguageList
:
[
'中文'
,
'英文'
],
id
:
[],
title
:
''
}
...
...
@@ -250,7 +252,6 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.pic === '' || this.dataForm.pic === null) {
...
...
@@ -262,6 +263,7 @@ export default {
// this.$message.error('视频未上传,请上传视频!')
// return
// }
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/newsmovie/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
@@ -280,7 +282,7 @@ export default {
'wavname'
:
this
.
dataForm
.
wavname
,
'content'
:
this
.
dataForm
.
content
,
'showtime'
:
this
.
dataForm
.
showtime
,
'brief'
:
this
.
dataForm
.
brief
'brief'
:
this
.
dataForm
.
brief
})
}).
then
(({
data
})
=>
{
this
.
loading
=
false
...
...
@@ -351,8 +353,8 @@ export default {
this
.
$message
.
error
(
'请上传正确的视频格式'
)
return
false
}
// if (!isLt
1
00M) {
// this.$message.error('上传视频大小不能超过
1
00MB哦!')
// if (!isLt
2
00M) {
// this.$message.error('上传视频大小不能超过
2
00MB哦!')
// return false
// }
if
(
file
)
{
...
...
@@ -365,6 +367,10 @@ export default {
}
},
UploadVideo
()
{
this
.
loading
=
true
var
loading
=
this
.
$loading
({
target
:
'.el-dialog'
})
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/file/uploadFile'
),
method
:
'post'
,
...
...
@@ -374,11 +380,24 @@ export default {
}
})
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
dataForm
.
wavname
=
res
.
data
.
data
if
(
res
.
status
)
{
loading
.
close
()
this
.
$message
.
success
(
'视频上传成功'
)
console
.
log
(
res
)
this
.
dataForm
.
wavname
=
res
.
data
.
data
}
else
{
loading
.
close
()
this
.
dialogVisible2
=
false
this
.
$message
.
success
(
'视频上传失败'
)
this
.
videoUrlStr
=
''
}
}).
catch
(
err
=>
{
loading
.
close
()
this
.
$message
.
success
(
'视频上传失败'
)
this
.
videoUrlStr
=
''
console
.
log
(
err
)
})
this
.
loading
=
false
},
clearInp
()
{
...
...
@@ -412,4 +431,9 @@ export default {
color
:
red
;
font-size
:
10px
;
}
</
style
>
<
style
scoped
>
.el-loading-mask
{
z-index
:
9999
!important
;
}
</
style
>
\ No newline at end of file
src/views/modules/info/newsmovie.vue
View file @
993c6bcc
...
...
@@ -340,44 +340,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
item
.
directpath
&&
item
.
directpath
!==
""
&&
item
.
directpath
.
length
>
0
)
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/msgVideo?id=
${
item
.
id
}
&token=
${
data
.
data
}
`
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
)
}
}
}
)
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/msgVideo?id=
${
item
.
id
}
&token=
${
data
.
data
}
`
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/info/newtopic-add-or-update.vue
View file @
993c6bcc
...
...
@@ -247,13 +247,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.ppath === '' || this.dataForm.ppath === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/newtopic/
${
!
this
.
dataForm
.
classid
?
'save'
:
'update'
}
`
),
...
...
@@ -281,7 +281,7 @@ export default {
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
this
.
disabled
=
false
this
.
disabled
=
false
}
})
}
else
{
...
...
src/views/modules/info/newtopic.vue
View file @
993c6bcc
...
...
@@ -260,44 +260,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/viewsub?id=
${
item
.
classid
}
&token=
${
data
.
data
}
`
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
`
${
this
.
$store
.
state
.
config
.
urls
}
/News/viewsub?id=
${
item
.
classid
}
&token=
${
data
.
data
}
`
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/info/picture-add-or-update.vue
View file @
993c6bcc
...
...
@@ -206,7 +206,7 @@ export default {
imgUrl
:
new
FormData
(),
imgUrlStr
:
''
,
dialogVisible
:
false
,
articleId
:
''
articleId
:
''
}
},
created
()
{
...
...
@@ -263,13 +263,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
picFile
===
''
||
this
.
dataForm
.
picFile
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
...
...
src/views/modules/logistics/logistics-add-or-update.vue
View file @
993c6bcc
...
...
@@ -227,10 +227,10 @@
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disabled
=
true
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/logistics/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/medical/medical-add-or-update.vue
View file @
993c6bcc
...
...
@@ -210,10 +210,10 @@
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disabled
=
true
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/medical/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
@@ -250,7 +250,7 @@
})
}
})
},
},
// 获取医疗管理列表
getMedicalTypeList
()
{
this
.
$http
({
...
...
src/views/modules/medical/medical.vue
View file @
993c6bcc
...
...
@@ -59,7 +59,7 @@
width=
"360px"
label=
"标题"
>
<template
slot-scope=
"scope"
>
<a
:href=
"urlsJson[scope.row.
title
]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
<a
:href=
"urlsJson[scope.row.
id
]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -241,43 +241,38 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/HealthDetail?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
this
.
$set
(
this
.
urlsJson
,
item
.
id
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
id
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
(
{
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/HealthDetail?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/party/center-add-or-update.vue
View file @
993c6bcc
...
...
@@ -201,13 +201,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.pic === '' || this.dataForm.pic === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/center/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
...
...
src/views/modules/party/center.vue
View file @
993c6bcc
...
...
@@ -296,44 +296,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/party/hotFlow-add-or-update.vue
View file @
993c6bcc
...
...
@@ -199,13 +199,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.pic === '' || this.dataForm.pic === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/hotFlow/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
...
...
src/views/modules/party/hotFlow.vue
View file @
993c6bcc
...
...
@@ -293,44 +293,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/party/rules-add-or-update.vue
View file @
993c6bcc
...
...
@@ -199,13 +199,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.pic === '' || this.dataForm.pic === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/rules/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
...
...
src/views/modules/party/rules.vue
View file @
993c6bcc
...
...
@@ -295,44 +295,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/party/topicnews-add-or-update.vue
View file @
993c6bcc
...
...
@@ -201,13 +201,13 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// if (this.dataForm.pic === '' || this.dataForm.pic === null) {
// this.$message.error('图片未上传,请上传图片!')
// return
// }
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/topicnews/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
...
...
@@ -239,7 +239,7 @@ export default {
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
this
.
disabled
=
false
this
.
disabled
=
false
}
})
}
else
{
...
...
src/views/modules/party/topicnews.vue
View file @
993c6bcc
...
...
@@ -293,44 +293,39 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/msg?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/planbranch/annual-add-or-update.vue
View file @
993c6bcc
...
...
@@ -68,9 +68,9 @@
this
.
$message
.
error
(
'请上传附件!'
)
return
false
}
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
this
.
disabled
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/planbranch/batchUpdateStatus`
),
...
...
src/views/modules/plate/knowledgeinfo-add-or-update.vue
View file @
993c6bcc
...
...
@@ -162,10 +162,10 @@
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disabled
=
true
this
.
loading
=
true
console
.
log
(
this
.
dataForm
.
id
)
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/knowledgeinfo/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
...
...
src/views/modules/plate/knowledgeinfo.vue
View file @
993c6bcc
...
...
@@ -82,7 +82,7 @@
width=
"360px"
label=
"标题"
>
<template
slot-scope=
"scope"
>
<a
:href=
"urlsJson[scope.row.
title
]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
<a
:href=
"urlsJson[scope.row.
knowledgeinfoid
]"
target=
"_blank"
>
{{
scope
.
row
.
title
}}
</a>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -276,43 +276,38 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/Knowledge/article?id='
+
item
.
knowledgeinfoid
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
this
.
$set
(
this
.
urlsJson
,
item
.
knowledgeinfoid
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
knowledgeinfoid
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
(
{
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/Knowledge/article?id='
+
item
.
knowledgeinfoid
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/policy/policy-add-or-update.vue
View file @
993c6bcc
...
...
@@ -223,10 +223,10 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disabled
=
true
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/policy/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/policy/policy.vue
View file @
993c6bcc
...
...
@@ -297,43 +297,38 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/Knowledge/Statuteinfo?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
showMsg
(
item
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
(
{
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/Knowledge/Statuteinfo?id='
+
item
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败
'
)
window
.
open
(
item
.
directpath
+
'&token='
+
data
.
data
,
'_blank
'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
,
'_blank'
)
}
else
{
window
.
open
(
item
.
directpath
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 删除
deleteHandle
(
id
,
title
)
{
...
...
src/views/modules/retail/picture-add-or-update.vue
View file @
993c6bcc
...
...
@@ -234,9 +234,9 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loading
=
true
this
.
disabled
=
true
if
(
this
.
dataForm
.
picFile
===
''
||
this
.
dataForm
.
picFile
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
...
...
src/views/modules/service/doc-add-or-update.vue
View file @
993c6bcc
...
...
@@ -151,7 +151,6 @@ export default {
},
// 表单提交
dataFormSubmit
()
{
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
disabled
=
true
...
...
@@ -159,6 +158,7 @@ export default {
this
.
$message
.
error
(
'文件未上传,请上传文件!'
)
return
}
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/doc/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/service/doc.vue
View file @
993c6bcc
...
...
@@ -50,6 +50,9 @@
align=
"left"
width=
"360px"
label=
"标题"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"downFile(scope.row.docfile)"
>
{{
scope
.
row
.
title
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"author"
...
...
src/views/modules/standard/cases.vue
View file @
993c6bcc
...
...
@@ -419,49 +419,42 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/Service/Partners/caseMsg?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
title
,
ursStr
)
}
}
})
},
// 预览
previewHandle
(
info
)
{
console
.
log
(
info
,
'预览'
)
let
url
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
(
{
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/Service/Partners/caseMsg?id='
+
info
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败'
)
url
=
info
.
directpath
+
'&token='
+
data
.
data
window
.
open
(
url
,
'_blank'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
window
.
open
(
url
,
'_blank'
)
}
else
{
url
=
info
.
directpath
window
.
open
(
url
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 新增 / 修改
addOrUpdateHandle
(
id
,
showInfo
)
{
...
...
src/views/modules/standard/partners.vue
View file @
993c6bcc
...
...
@@ -467,49 +467,42 @@ export default {
},
copyUrls
(
item
)
{
let
ursStr
=
''
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
// 获取token
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
item
.
directpath
||
item
.
directpath
===
null
)
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
'/Service/Partners/content?id='
+
item
.
id
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
+
'&token='
+
data
.
data
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
}
})
}
else
if
(
/^
\/
/
.
test
(
item
.
directpath
))
{
ursStr
=
this
.
$store
.
state
.
config
.
urls
+
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
}
else
{
ursStr
=
item
.
directpath
this
.
$set
(
this
.
urlsJson
,
item
.
firmname
,
ursStr
)
}
}
})
},
// 预览
previewHandle
(
info
)
{
console
.
log
(
info
,
'预览'
)
let
url
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
this
.
$http
(
{
url
:
this
.
$http
.
adornUrl
(
'/office/token/getToken'
),
method
:
'post'
}).
then
(({
data
})
=>
{
console
.
log
(
data
)
if
(
data
&&
data
.
code
===
0
)
{
if
(
!
info
.
directpath
||
info
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/Service/Partners/content?id='
+
info
.
id
+
'&token='
+
data
.
data
,
'_blank'
)
}
else
{
this
.
$message
.
error
(
'获取失败'
)
url
=
info
.
directpath
+
'&token='
+
data
.
data
window
.
open
(
url
,
'_blank'
)
}
})
}
else
if
(
/^
\/
/
.
test
(
info
.
directpath
))
{
url
=
`
${
this
.
$store
.
state
.
config
.
urls
}${
info
.
directpath
}
`
window
.
open
(
url
,
'_blank'
)
}
else
{
url
=
info
.
directpath
window
.
open
(
url
,
'_blank'
)
}
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
})
},
// 新增 / 修改
...
...
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