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
c3cb8ee3
authored
2022-11-28 17:13:36 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:文件夹的整理
1 parent
8a70c6ec
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
126 additions
and
134 deletions
src/api/notice.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/views/workflow/mixin/index.js
src/api/notice.js
deleted
100644 → 0
View file @
8a70c6e
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
// 新增系统通知
export
function
addSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/addSysNotice'
,
method
:
'post'
,
data
})
}
//编辑系统通知
export
function
updateSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/updateSysNotice'
,
method
:
'post'
,
data
})
}
// 获取通知列表
export
function
getSysNoticeList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysNoticeList'
,
method
:
'post'
,
data
})
}
//获取法律法规列表
export
function
getSysPolicyList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysPolicyList'
,
method
:
'post'
,
data
})
}
//删除系统通知
export
function
deleteSysNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/deleteSysNotice'
,
method
:
'get'
,
params
:
params
})
}
//发布通知
export
function
publishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/publishNotice'
,
method
:
'get'
,
params
:
params
})
}
//取消发布通知
export
function
unPublishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/unPublishNotice'
,
method
:
'get'
,
params
:
params
})
}
//设置已读状态
export
function
setReadStatus
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setReadStatus'
,
method
:
'get'
,
params
:
params
})
}
//一键设置已读
export
function
setAllRead
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setAllRead'
,
method
:
'get'
})
}
src/api/system.js
View file @
c3cb8ee
...
...
@@ -4,9 +4,9 @@ import SERVER from './config'
// 上传单个文件
export
function
upload
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/file/upload'
,
method
:
'post'
,
data
url
:
SERVER
.
SERVERAPI
+
'/rest/file/upload'
,
method
:
'post'
,
data
})
}
...
...
@@ -89,4 +89,86 @@ export function updateSysSqywmbsz (data) {
method
:
'put'
,
data
})
}
\ No newline at end of file
}
// 通知
// 新增系统通知
export
function
addSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/addSysNotice'
,
method
:
'post'
,
data
})
}
//编辑系统通知
export
function
updateSysNotice
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/updateSysNotice'
,
method
:
'post'
,
data
})
}
// 获取通知列表
export
function
getSysNoticeList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysNoticeList'
,
method
:
'post'
,
data
})
}
//获取法律法规列表
export
function
getSysPolicyList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/getSysPolicyList'
,
method
:
'post'
,
data
})
}
//删除系统通知
export
function
deleteSysNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/deleteSysNotice'
,
method
:
'get'
,
params
:
params
})
}
//发布通知
export
function
publishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/publishNotice'
,
method
:
'get'
,
params
:
params
})
}
//取消发布通知
export
function
unPublishNotice
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/unPublishNotice'
,
method
:
'get'
,
params
:
params
})
}
//设置已读状态
export
function
setReadStatus
(
params
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setReadStatus'
,
method
:
'get'
,
params
:
params
})
}
//一键设置已读
export
function
setAllRead
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysNotice/setAllRead'
,
method
:
'get'
})
}
...
...
src/views/home/index.vue
View file @
c3cb8ee
...
...
@@ -107,7 +107,6 @@
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/notice.js"
;
import
addDialog
from
"./components/addProject.vue"
;
export
default
{
name
:
'home'
,
...
...
src/views/system/flfg/components/addDialog.vue
View file @
c3cb8ee
...
...
@@ -25,7 +25,7 @@
</
template
>
<
script
>
import
{
addSysNotice
}
from
"@/api/
notice
.js"
import
{
addSysNotice
}
from
"@/api/
system
.js"
import
{
upload
}
from
"@/api/system.js"
export
default
{
props
:
{
...
...
src/views/system/flfg/flfg.vue
View file @
c3cb8ee
...
...
@@ -31,7 +31,7 @@
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./flfgdata"
;
import
{
getSysPolicyList
,
deleteSysNotice
}
from
"@/api/
notice
.js"
import
{
getSysPolicyList
,
deleteSysNotice
}
from
"@/api/
system
.js"
import
addDialog
from
"./components/addDialog.vue"
;
export
default
{
name
:
"flfg"
,
...
...
src/views/system/xttz/components/addDialog.vue
View file @
c3cb8ee
...
...
@@ -45,16 +45,15 @@
</el-form>
</dialogBox>
</
template
>
<
script
>
import
{
addSysNotice
,
updateSysNotice
}
from
"@/api/notice
.js"
;
import
{
addSysNotice
,
updateSysNotice
}
from
"@/api/system
.js"
;
import
{
upload
}
from
"@/api/system.js"
;
import
{
quillEditor
}
from
"vue-quill-editor"
;
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
isButtonFlag
:
{
type
:
Boolean
,
default
:
true
},
title
:
{
type
:
String
,
default
:
'新增系统通知'
}
title
:
{
type
:
String
,
default
:
'新增系统通知'
}
},
components
:
{
quillEditor
},
data
()
{
...
...
@@ -145,15 +144,15 @@ export default {
}
}
},
mounted
()
{},
mounted
()
{
},
methods
:
{
submitForm
()
{
let
that
=
this
;
that
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
that
.
ruleForm
.
bsmNotice
)
{
if
(
that
.
ruleForm
.
bsmNotice
)
{
that
.
editNotice
();
}
else
{
}
else
{
that
.
addNotice
();
}
}
else
{
...
...
@@ -168,7 +167,7 @@ export default {
this
.
resetRuleForm
();
},
//新增通知
addNotice
()
{
addNotice
()
{
addSysNotice
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
...
...
@@ -181,7 +180,7 @@ export default {
});
},
//编辑通知
editNotice
()
{
editNotice
()
{
updateSysNotice
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"编辑成功"
);
...
...
@@ -223,7 +222,7 @@ export default {
clipboardPictureChange
(
file
)
{
this
.
uploadPicture
(
file
)
},
getDetailInfo
(
item
)
{
getDetailInfo
(
item
)
{
this
.
ruleForm
=
item
},
uploadPicture
(
file
)
{
...
...
src/views/system/xttz/xttz.vue
View file @
c3cb8ee
...
...
@@ -33,13 +33,13 @@
:data=
"tableData.data"
>
</lb-table>
</div>
<addDialog
ref=
"addDialog"
v-model=
"isDialog"
:isButtonFlag=
"isButtonFlag"
:title=
"dialogTitle"
/>
<addDialog
ref=
"addDialog"
v-model=
"isDialog"
:isButtonFlag=
"isButtonFlag"
:title=
"dialogTitle"
/>
</div>
</
template
>
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./xttzdata"
;
import
{
getSysNoticeList
,
deleteSysNotice
,
publishNotice
,
unPublishNotice
}
from
"@/api/
notice
.js"
import
{
getSysNoticeList
,
deleteSysNotice
,
publishNotice
,
unPublishNotice
}
from
"@/api/
system
.js"
import
addDialog
from
"./components/addDialog.vue"
;
export
default
{
name
:
"xttz"
,
...
...
@@ -91,7 +91,7 @@ export default {
this
.
$refs
.
addDialog
.
getDetailInfo
(
item
);
this
.
dialogTitle
=
'系统通知详情'
})
}
else
{
}
else
{
this
.
isButtonFlag
=
true
;
this
.
dialogTitle
=
'新增系统通知'
}
...
...
@@ -164,7 +164,7 @@ export default {
});
},
//编辑通知
editNotice
(
item
)
{
editNotice
(
item
)
{
this
.
$nextTick
(()
=>
{
this
.
isButtonFlag
=
true
;
this
.
$refs
.
addDialog
.
getDetailInfo
(
item
);
...
...
src/views/system/xttz/xttzview.vue
View file @
c3cb8ee
...
...
@@ -25,13 +25,13 @@
:data=
"tableData.data"
>
</lb-table>
</div>
<addDialog
ref=
"addDialog"
v-model=
"isDialog"
:isButtonFlag=
"isButtonFlag"
:title=
"dialogTitle"
/>
<addDialog
ref=
"addDialog"
v-model=
"isDialog"
:isButtonFlag=
"isButtonFlag"
:title=
"dialogTitle"
/>
</div>
</
template
>
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./xttzviewdata"
;
import
{
getSysNoticeList
,
setReadStatus
,
setAllRead
}
from
"@/api/notice
.js"
import
{
getSysNoticeList
,
setReadStatus
,
setAllRead
}
from
"@/api/system
.js"
import
addDialog
from
"./components/addDialog.vue"
;
export
default
{
name
:
"xttzview"
,
...
...
@@ -73,33 +73,33 @@ export default {
},
//打开新增弹窗
openDialog
(
item
)
{
this
.
$nextTick
(()
=>
{
this
.
isButtonFlag
=
false
;
this
.
$refs
.
addDialog
.
getDetailInfo
(
item
);
this
.
dialogTitle
=
'系统通知详情'
this
.
isDialog
=
true
;
})
let
that
=
this
;
if
(
item
.
isRead
==
1
){
setReadStatus
({
bsmNotice
:
item
.
bsmNotice
}).
then
(
res
=>
{
if
(
res
.
code
==
200
){
that
.
$nextTick
(()
=>
{
item
.
isRead
=
2
})
}
this
.
$nextTick
(()
=>
{
this
.
isButtonFlag
=
false
;
this
.
$refs
.
addDialog
.
getDetailInfo
(
item
);
this
.
dialogTitle
=
'系统通知详情'
this
.
isDialog
=
true
;
})
let
that
=
this
;
if
(
item
.
isRead
==
1
)
{
setReadStatus
({
bsmNotice
:
item
.
bsmNotice
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
that
.
$nextTick
(()
=>
{
item
.
isRead
=
2
})
}
}
})
}
},
//一键已读
toReadAll
()
{
setAllRead
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'设置成功'
)
this
.
queryClick
();
}
else
{
this
.
$message
.
error
(
"设置失败"
)
}
})
toReadAll
()
{
setAllRead
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'设置成功'
)
this
.
queryClick
();
}
else
{
this
.
$message
.
error
(
"设置失败"
)
}
})
},
downloadFile
(
item
)
{
const
href
=
item
.
noticeFileUrl
...
...
src/views/workflow/mixin/index.js
View file @
c3cb8ee
...
...
@@ -143,12 +143,6 @@ export default {
bsmSlsq
:
this
.
bsmSlsq
,
entryType
:
'1'
},
cancel
:
()
=>
{
console
.
log
(
"取消回调"
);
},
confirm
:
()
=>
{
console
.
log
(
"确认回调"
);
},
})
break
;
case
"B7"
:
...
...
Please
register
or
sign in
to post a comment