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
88b53ae9
authored
2023-07-20 15:51:48 +0800
by
yuanbo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加注释
1 parent
8b931f4d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
149 additions
and
0 deletions
src/views/error-page/404.vue
src/views/home/components/addProject.vue
src/views/home/index.vue
src/views/jkfw/ptjk/components/addDialog.vue
src/views/jkfw/ptjk/components/retrieveDialog.vue
src/views/jkfw/ptjk/ptjk.vue
src/views/error-page/404.vue
View file @
88b53ae
...
...
@@ -14,6 +14,10 @@ export default {
}
},
methods
:
{
/**
* @description: nextTo
* @author: renchao
*/
nextTo
()
{
this
.
$router
.
push
({
path
:
this
.
redirect
||
'/'
,
...
...
src/views/home/components/addProject.vue
View file @
88b53ae
...
...
@@ -49,6 +49,10 @@ export default {
this
.
dealCheckedItem
();
},
methods
:
{
/**
* @description: submitForm
* @author: renchao
*/
submitForm
()
{
var
checkedNodes
=
this
.
$refs
.
tree
.
getCheckedNodes
();
if
(
checkedNodes
.
length
>
6
)
{
...
...
@@ -65,6 +69,10 @@ export default {
}
})
},
/**
* @description: queryClick
* @author: renchao
*/
queryClick
()
{
let
that
=
this
getMenuInfo
().
then
(
res
=>
{
...
...
@@ -79,13 +87,28 @@ export default {
}
this
.
defaultCheckeds
=
lookForAllId
()
},
/**
* @description: dealCheckedItem
* @author: renchao
*/
dealCheckedItem
()
{
},
//关闭窗口
/**
* @description: 关闭窗口
* @author: renchao
*/
closeDialog
()
{
this
.
$emit
(
"input"
,
false
);
},
//节点选择状态发生改变时
/**
* @description: 节点选择状态发生改变时
* @param {*} data
* @param {*} checked
* @param {*} node
* @author: renchao
*/
handleClick
(
data
,
checked
,
node
)
{
var
checkedNodes
=
this
.
$refs
.
tree
.
getCheckedNodes
();
if
(
checkedNodes
.
length
>
6
)
{
...
...
src/views/home/index.vue
View file @
88b53ae
...
...
@@ -193,15 +193,29 @@
this
.
queryProjectList
();
//获取常办项目列表
},
methods
:
{
/**
* @description: handleProject
* @param {*} item
* @author: renchao
*/
handleProject
(
item
)
{
let
url
=
item
.
uri
.
split
(
'/'
).
slice
(
0
,
3
).
join
(
'/'
)
this
.
$router
.
push
(
url
)
},
/**
* @description: handleView
* @param {*} pdfUrl
* @author: renchao
*/
handleView
(
pdfUrl
)
{
const
href
=
pdfUrl
window
.
open
(
href
,
'_blank'
);
},
//获取待办事项列表
/**
* @description: 获取待办事项列表
* @author: renchao
*/
queryTodoList
()
{
getHomeTodoList
().
then
(
res
=>
{
if
(
res
.
result
)
{
...
...
@@ -210,6 +224,10 @@
})
},
//获取已办事项列表
/**
* @description: 获取已办事项列表
* @author: renchao
*/
queryDoneList
()
{
getHomeDoneList
().
then
(
res
=>
{
if
(
res
.
result
)
{
...
...
@@ -218,6 +236,10 @@
})
},
//获取通知列表
/**
* @description: 获取通知列表
* @author: renchao
*/
queryNoticeList
()
{
getHomeNoticeList
().
then
(
res
=>
{
if
(
res
.
result
)
{
...
...
@@ -230,6 +252,10 @@
})
},
//获取常办项目列表
/**
* @description: 获取常办项目列表
* @author: renchao
*/
queryProjectList
()
{
getHomeFrequentProjects
().
then
(
res
=>
{
if
(
res
.
result
&&
res
.
result
.
length
>
0
)
{
...
...
@@ -239,6 +265,10 @@
}
})
},
/**
* @description: _timedate
* @author: renchao
*/
_timedate
(
d
)
{
var
td
=
new
Date
();
td
=
new
Date
(
td
.
getFullYear
(),
td
.
getMonth
(),
td
.
getDate
());
...
...
@@ -253,6 +283,10 @@
return
d
}
},
/**
* @description: buildChart
* @author: renchao
*/
buildChart
()
{
let
height
=
document
.
getElementById
(
"mountNodeCon"
).
offsetHeight
-
20
var
chart
=
new
G2
.
Chart
({
...
...
@@ -283,6 +317,10 @@
chart
.
line
().
position
(
'year*value'
).
size
(
2
).
shape
(
'smooth'
);
chart
.
render
();
},
/**
* @description: loginTimeChart
* @author: renchao
*/
loginTimeChart
()
{
var
data
=
[{
item
:
'用户1'
,
...
...
@@ -334,13 +372,25 @@
chart
.
render
();
},
//跳转到更多通知列表页面
/**
* @description: 跳转到更多通知列表页面
* @author: renchao
*/
jumpToMoreNotice
()
{
console
.
log
(
this
.
$route
);
},
//配置常办项目
/**
* @description: 配置常办项目
* @author: renchao
*/
setFrequencyProject
()
{
this
.
projectDialog
=
true
;
},
/**
* @description: handleNotice
* @author: renchao
*/
handleNotice
(
item
)
{
setReadStatus
({
bsmNotice
:
item
.
bsmNotice
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
...
...
src/views/jkfw/ptjk/components/addDialog.vue
View file @
88b53ae
...
...
@@ -113,6 +113,10 @@
},
methods
:
{
//表单提交
/**
* @description: 表单提交
* @author: renchao
*/
submitForm
()
{
let
that
=
this
;
that
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
...
...
@@ -129,6 +133,10 @@
});
},
//新增接口
/**
* @description: 新增接口
* @author: renchao
*/
addInterface
()
{
addSysInterface
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -141,6 +149,10 @@
})
},
//编辑接口
/**
* @description: 编辑接口
* @author: renchao
*/
editInterface
()
{
editSysInterface
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -153,10 +165,19 @@
})
},
//获取详情
/**
* @description: 获取详情
* @param {*} item
* @author: renchao
*/
getDetailInfo
(
item
)
{
this
.
ruleForm
=
item
},
//关闭弹窗
/**
* @description: 关闭弹窗
* @author: renchao
*/
closeDialog
()
{
this
.
$emit
(
"input"
,
false
);
this
.
ruleForm
=
{
...
...
src/views/jkfw/ptjk/components/retrieveDialog.vue
View file @
88b53ae
...
...
@@ -72,6 +72,10 @@ export default {
},
methods
:
{
//表单提交
/**
* @description: 表单提交
* @author: renchao
*/
submitForm
()
{
console
.
log
(
this
.
interfaceParams
);
console
.
log
(
this
.
hasJsonFlag
);
...
...
@@ -89,10 +93,19 @@ export default {
})
},
//获取详情
/**
* @description: 获取详情
* @param {*} item
* @author: renchao
*/
getDetailInfo
(
item
){
this
.
ruleForm
=
item
},
//关闭弹窗
/**
* @description: 关闭弹窗
* @author: renchao
*/
closeDialog
()
{
this
.
$emit
(
"input"
,
false
);
this
.
interfaceParams
=
{}
...
...
@@ -100,6 +113,11 @@ export default {
this
.
hasJsonFlag
=
true
},
//获取接口类型
/**
* @description: 获取接口类型
* @param {*} code
* @author: renchao
*/
getInterfaceType
(
code
){
let
name
=
''
for
(
let
item
of
this
.
interfaceTypes
)
{
...
...
@@ -110,13 +128,28 @@ export default {
}
return
name
;
},
/**
* @description: onJsonChange
* @param {*} value
* @author: renchao
*/
onJsonChange
(
value
){
this
.
onJsonSave
();
},
/**
* @description: onJsonSave
* @param {*} value
* @author: renchao
*/
onJsonSave
(
value
)
{
this
.
interfaceParams
=
value
this
.
hasJsonFlag
=
true
},
/**
* @description: onError
* @param {*} value
* @author: renchao
*/
onError
(
value
)
{
this
.
hasJsonFlag
=
false
},
...
...
src/views/jkfw/ptjk/ptjk.vue
View file @
88b53ae
...
...
@@ -78,6 +78,10 @@
};
},
methods
:
{
/**
* @description: queryClick
* @author: renchao
*/
queryClick
()
{
this
.
$startLoading
()
getSysInterfaceList
({
...
this
.
ruleForm
,
...
this
.
pageData
},
{
'target'
:
'#ptjkLoading'
}).
then
(
res
=>
{
...
...
@@ -90,17 +94,31 @@
})
},
//打开新增
/**
* @description: 打开新增
* @author: renchao
*/
openDialog
()
{
this
.
editFlag
=
false
;
this
.
addDialog
=
true
;
},
//打开编辑
/**
* @description: 打开编辑
* @param {*} item
* @author: renchao
*/
editInterface
(
item
)
{
this
.
editFlag
=
true
;
this
.
addDialog
=
true
;
this
.
$refs
.
addDialog
.
getDetailInfo
(
item
);
},
//打开调试窗口
/**
* @description: 打开调试窗口
* @param {*} item
* @author: renchao
*/
tuneInterface
(
item
)
{
this
.
retrieveDialog
=
true
;
this
.
$refs
.
retrieveDialog
.
getDetailInfo
(
item
);
...
...
Please
register
or
sign in
to post a comment