Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
73fb107a
authored
2023-07-14 13:27:59 +0800
by
yuanbo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
抽取sysNotice.js,修改所有引用文件
1 parent
bdd1588d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
132 additions
and
124 deletions
src/api/sysNotice.js
src/api/system.js
src/views/home/index.vue
src/views/system/flfg/components/addDialog.vue
src/views/system/flfg/flfg.vue
src/views/system/xttz/components/addDialog.vue
src/views/system/xttz/xttz.vue
src/views/system/xttz/xttzview.vue
src/api/sysNotice.js
0 → 100644
View file @
73fb107
/*
* @Description: 系统通知
* @Autor: renchao
* @LastEditTime: 2023-05-16 16:02:32
*/
import
request
from
'@/utils/request'
let
SERVER
=
window
.
config
?
window
.
config
:
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
/**
* @description: 新增系统通知
* @param {*} data
* @author: renchao
*/
export
function
addSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/addSysNotice'
,
method
:
'post'
,
data
})
}
/**
* @description: 编辑系统通知
* @param {*} data
* @author: renchao
*/
export
function
updateSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/updateSysNotice'
,
method
:
'post'
,
data
})
}
// 获取通知列表
/**
* @description:
* @param {*} data
* @author: renchao
*/
export
function
getSysNoticeList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysNoticeList'
,
method
:
'post'
,
data
})
}
/**
* @description: 获取法律法规列表
* @param {*} data
* @author: renchao
*/
export
function
getSysPolicyList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysPolicyList'
,
method
:
'post'
,
data
})
}
/**
* @description: 删除系统通知
* @param {*} params
* @author: renchao
*/
export
function
deleteSysNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/deleteSysNotice'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 发布通知
* @param {*} params
* @author: renchao
*/
export
function
publishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/publishNotice'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 取消发布通知
* @param {*} params
* @author: renchao
*/
export
function
unPublishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/unPublishNotice'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 设置已读状态
* @param {*} params
* @author: renchao
*/
export
function
setReadStatus
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setReadStatus'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 一键设置已读
* @author: renchao
*/
export
function
setAllRead
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setAllRead'
,
method
:
'get'
})
}
src/api/system.js
View file @
73fb107
...
...
@@ -8,122 +8,6 @@ import request from '@/utils/request'
let
SERVER
=
window
.
config
?
window
.
config
:
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
/**
* @description: 新增系统通知
* @param {*} data
* @author: renchao
*/
export
function
addSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/addSysNotice'
,
method
:
'post'
,
data
})
}
/**
* @description: 编辑系统通知
* @param {*} data
* @author: renchao
*/
export
function
updateSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/updateSysNotice'
,
method
:
'post'
,
data
})
}
// 获取通知列表
/**
* @description:
* @param {*} data
* @author: renchao
*/
export
function
getSysNoticeList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysNoticeList'
,
method
:
'post'
,
data
})
}
/**
* @description: 获取法律法规列表
* @param {*} data
* @author: renchao
*/
export
function
getSysPolicyList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysPolicyList'
,
method
:
'post'
,
data
})
}
/**
* @description: 删除系统通知
* @param {*} params
* @author: renchao
*/
export
function
deleteSysNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/deleteSysNotice'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 发布通知
* @param {*} params
* @author: renchao
*/
export
function
publishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/publishNotice'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 取消发布通知
* @param {*} params
* @author: renchao
*/
export
function
unPublishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/unPublishNotice'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 设置已读状态
* @param {*} params
* @author: renchao
*/
export
function
setReadStatus
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setReadStatus'
,
method
:
'get'
,
params
:
params
})
}
/**
* @description: 一键设置已读
* @author: renchao
*/
export
function
setAllRead
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setAllRead'
,
method
:
'get'
})
}
/**
* @description: 获取打印模板列表
* @param {*} data
* @author: renchao
...
...
src/views/home/index.vue
View file @
73fb107
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-12 09:23:03
-->
...
...
@@ -112,7 +112,7 @@
import
*
as
G2
from
'@antv/g2'
import
vueSeamlessScroll
from
"vue-seamless-scroll"
import
{
getHomeNoticeList
,
getHomeTodoList
,
getHomeDoneList
,
getHomeFrequentProjects
}
from
"@/api/home.js"
;
import
{
setReadStatus
}
from
'@/api/sys
tem
'
import
{
setReadStatus
}
from
'@/api/sys
Notice
'
import
addDialog
from
"./components/addProject.vue"
;
export
default
{
name
:
'home'
,
...
...
@@ -363,4 +363,4 @@
padding
:
3px
10px
5px
10px
;
overflow
:
hidden
;
}
</
style
>
\ No newline at end of file
</
style
>
...
...
src/views/system/flfg/components/addDialog.vue
View file @
73fb107
...
...
@@ -25,7 +25,7 @@
</
template
>
<
script
>
import
{
addSysNotice
}
from
"@/api/sys
tem
.js"
import
{
addSysNotice
}
from
"@/api/sys
Notice
.js"
import
{
upload
}
from
"@/api/file.js"
export
default
{
props
:
{
...
...
src/views/system/flfg/flfg.vue
View file @
73fb107
...
...
@@ -31,7 +31,7 @@
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./flfgdata"
;
import
{
getSysPolicyList
,
deleteSysNotice
}
from
"@/api/sys
tem
.js"
import
{
getSysPolicyList
,
deleteSysNotice
}
from
"@/api/sys
Notice
.js"
import
addDialog
from
"./components/addDialog.vue"
;
export
default
{
name
:
"flfg"
,
...
...
src/views/system/xttz/components/addDialog.vue
View file @
73fb107
...
...
@@ -54,7 +54,7 @@
</el-form>
</
template
>
<
script
>
import
{
addSysNotice
,
updateSysNotice
}
from
"@/api/sys
tem
.js"
;
import
{
addSysNotice
,
updateSysNotice
}
from
"@/api/sys
Notice
.js"
;
import
{
upload
}
from
"@/api/file.js"
;
import
{
quillEditor
}
from
"vue-quill-editor"
;
export
default
{
...
...
src/views/system/xttz/xttz.vue
View file @
73fb107
...
...
@@ -39,7 +39,7 @@
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./xttzdata"
;
import
{
getSysNoticeList
,
deleteSysNotice
,
publishNotice
,
unPublishNotice
}
from
"@/api/sys
tem
.js"
import
{
getSysNoticeList
,
deleteSysNotice
,
publishNotice
,
unPublishNotice
}
from
"@/api/sys
Notice
.js"
import
addDialog
from
"./components/addDialog.vue"
;
export
default
{
name
:
"xttz"
,
...
...
src/views/system/xttz/xttzview.vue
View file @
73fb107
...
...
@@ -31,7 +31,7 @@
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./xttzviewdata"
;
import
{
getSysNoticeList
,
setReadStatus
,
setAllRead
}
from
"@/api/sys
tem
.js"
import
{
getSysNoticeList
,
setReadStatus
,
setAllRead
}
from
"@/api/sys
Notice
.js"
import
addDialog
from
"./components/addDialog.vue"
;
export
default
{
name
:
"xttzview"
,
...
...
Please
register
or
sign in
to post a comment