Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
5a08c379
authored
2023-07-31 15:59:46 +0800
by
yuanbo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加注释
1 parent
4481a1bf
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
706 additions
and
8 deletions
src/views/sthj/components/editDialog.vue
src/views/sthj/dbrzcx/index.vue
src/views/sthj/sbbwcx/components/detailDialog.vue
src/views/sthj/sbbwcx/index.vue
src/views/sthj/sjsbsb/components/detailDialog.vue
src/views/sthj/sjsbsb/index.vue
src/views/sthj/ywjr/edit-dialog.vue
src/views/sthj/ywjr/index.vue
src/views/sthj/ywjr/roleslistdiglog.vue
src/views/system/components/addTask.vue
src/views/system/components/editValidRule.vue
src/views/system/dictionaries/components/editDialog.vue
src/views/system/dictionaries/dictionaries.vue
src/views/system/information/base-set.vue
src/views/system/information/index.vue
src/views/system/information/password-edit.vue
src/views/system/menus/JsonEditors/index.vue
src/views/system/menus/edit-dialog.vue
src/views/system/menus/index.vue
src/views/system/roles/edit-dialog.vue
src/views/system/roles/index.vue
src/views/system/roles/roleslistdiglog.vue
src/views/system/timedTask/index.vue
src/views/system/users/edit-dialog.vue
src/views/system/users/index.vue
src/views/system/validationRule/index.vue
src/views/sthj/components/editDialog.vue
View file @
5a08c37
...
...
@@ -297,10 +297,19 @@
},
methods
:
{
// 关闭弹框事件
/**
* @description: 关闭弹框事件
* @author: renchao
*/
closeDialog
()
{
this
.
dialogVisible
=
false
;
},
// 展示弹框
/**
* @description: 展示弹框
* @param {*} item
* @author: renchao
*/
isShow
(
item
)
{
this
.
title
=
'登薄日志('
+
item
.
ACCESSDATE
+
')'
this
.
titleName
=
'sjmx'
...
...
@@ -310,6 +319,7 @@
},
/**
* @description: 获取列表接口
* @param {*} data
* @author: renchao
*/
_getDetails
(
data
)
{
...
...
@@ -356,6 +366,10 @@
})
},
// 当日登薄详单
/**
* @description: 当日登薄详单
* @author: renchao
*/
handleDBAdd
()
{
this
.
tableDBData
.
data
.
push
({
YWH
:
''
,
...
...
@@ -371,6 +385,11 @@
this
.
$set
(
item
,
'index'
,
index
)
})
},
/**
* @description: handleDBMinus
* @param {*} row
* @author: renchao
*/
handleDBMinus
(
row
)
{
this
.
$confirm
(
'此操作将删除列表, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -393,6 +412,10 @@
})
},
// 当日上报详单
/**
* @description: 当日上报详单
* @author: renchao
*/
handleSBAdd
()
{
this
.
tableSBData
.
data
.
push
({
YWH
:
''
,
...
...
@@ -404,6 +427,11 @@
this
.
$set
(
item
,
'index'
,
index
)
})
},
/**
* @description: handleSBMinus
* @param {*} row
* @author: renchao
*/
handleSBMinus
(
row
)
{
this
.
$confirm
(
'此操作将删除列表, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
src/views/sthj/dbrzcx/index.vue
View file @
5a08c37
...
...
@@ -129,9 +129,18 @@
},
methods
:
{
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange
(
val
)
{
this
.
form
.
endTime
=
timeFormat
(
new
Date
(
val
),
true
)
},
/**
* @description: featchData
* @author: renchao
*/
featchData
()
{
getRecordLogPage
({
...
this
.
form
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -143,12 +152,21 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
$refs
.
ruleForm
.
resetFields
();
this
.
form
.
currentPage
=
1
this
.
featchData
();
},
// 编辑
/**
* @description: 编辑
* @param {*} row
* @author: renchao
*/
handleEdit
(
row
)
{
this
.
$refs
.
editLog
.
isShow
(
row
);
this
.
$store
.
dispatch
(
'business/setReportLogEdit'
)
...
...
src/views/sthj/sbbwcx/components/detailDialog.vue
View file @
5a08c37
...
...
@@ -82,9 +82,17 @@ export default {
}
},
methods
:
{
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$emit
(
'input'
,
false
)
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit
()
{
this
.
$emit
(
'input'
,
false
)
}
...
...
src/views/sthj/sbbwcx/index.vue
View file @
5a08c37
...
...
@@ -202,10 +202,19 @@
},
methods
:
{
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange
(
val
)
{
this
.
form
.
exchangeEndTime
=
timeFormat
(
new
Date
(
val
),
true
)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchData
()
{
getDataReportPage
({
...
this
.
form
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -217,8 +226,17 @@
});
},
// 上报
/**
* @description: 上报
* @author: renchao
*/
handleEscalation
()
{
},
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetail
(
row
)
{
this
.
title
=
row
.
rectypeName
;
this
.
$refs
.
editLog
.
isShow
(
row
);
...
...
@@ -229,6 +247,10 @@
}
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
$refs
.
ruleForm
.
resetFields
();
this
.
form
.
exchangeEndTime
=
""
...
...
src/views/sthj/sjsbsb/components/detailDialog.vue
View file @
5a08c37
...
...
@@ -82,9 +82,17 @@ export default {
}
},
methods
:
{
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$emit
(
'input'
,
false
)
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit
()
{
this
.
$emit
(
'input'
,
false
)
}
...
...
src/views/sthj/sjsbsb/index.vue
View file @
5a08c37
...
...
@@ -219,10 +219,19 @@
},
methods
:
{
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange
(
val
)
{
this
.
form
.
exchangeEndTime
=
timeFormat
(
new
Date
(
val
),
true
)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchData
()
{
getSjsbReportPage
({
...
this
.
form
,
...
this
.
formData
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -234,8 +243,17 @@
});
},
// 上报
/**
* @description: 上报
* @author: renchao
*/
handleEscalation
()
{
},
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetail
(
row
)
{
this
.
title
=
row
.
rectypeName
;
this
.
$refs
.
editLog
.
isShow
(
row
);
...
...
@@ -246,12 +264,21 @@
}
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
$refs
.
ruleForm
.
resetFields
();
this
.
form
.
exchangeEndTime
=
""
this
.
form
.
currentPage
=
1
this
.
featchData
();
},
/**
* @description: ywhClick
* @param {*} item
* @author: renchao
*/
ywhClick
(
item
)
{
window
.
open
(
'http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100'
,
'_blank'
)
//判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面
...
...
src/views/sthj/ywjr/edit-dialog.vue
View file @
5a08c37
...
...
@@ -92,6 +92,10 @@
},
methods
:
{
// 保存新增或关闭事件
/**
* @description: 保存新增或关闭事件
* @author: renchao
*/
submitForm
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -152,6 +156,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
dialogForm
=
{
roleName
:
''
,
...
...
@@ -159,6 +167,10 @@
this
.
$refs
.
form
.
resetFields
()
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close
()
{
this
.
resetForm
()
this
.
$emit
(
'input'
,
false
)
...
...
src/views/sthj/ywjr/index.vue
View file @
5a08c37
...
...
@@ -139,6 +139,10 @@
mounted
()
{
},
methods
:
{
//查询
/**
* @description: 查询
* @author: renchao
*/
searchQuery
()
{
if
(
this
.
form
.
rolesName
)
{
this
.
listdata
=
this
.
childrenFn
(
this
.
setlistdata
,
this
.
form
.
rolesName
);
...
...
@@ -146,6 +150,12 @@
this
.
getTableData
()
}
},
/**
* @description: childrenFn
* @param {*} arr
* @param {*} key
* @author: renchao
*/
childrenFn
(
arr
,
key
)
{
let
searchTree
=
[];
arr
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -159,6 +169,10 @@
}
},
// 获取角色列表
/**
* @description: 获取角色列表
* @author: renchao
*/
getTableData
()
{
getRolesById
([
1
,
2
])
.
then
((
res
)
=>
{
...
...
src/views/sthj/ywjr/roleslistdiglog.vue
View file @
5a08c37
...
...
@@ -136,6 +136,12 @@
methods
:
{
// 人员配置点击行勾选数据
/**
* @description: 人员配置点击行勾选数据
* @param {*} row
* @param {*} event
* @author: renchao
*/
handleClickTableRow
(
row
,
event
)
{
this
.
checkNum
=
0
;
this
.
isCheck
=
false
;
...
...
@@ -176,6 +182,15 @@
},
// 获取授权主体的菜单权限
// getMenuAuthorityList
/**
* @description: 获取授权主体的菜单权限
* @param {*} operationList
* @param {*} id
* @param {*} Code
* @param {*} menutablelistData
* @param {*} operationCodes
* @author: renchao
*/
menulist
(
operationList
,
id
,
Code
,
menutablelistData
,
operationCodes
)
{
this
.
selectedSubsystemCode
=
Code
this
.
menuList
=
menutablelistData
;
...
...
@@ -198,9 +213,11 @@
},
/**
* 递归渲染列表数据
* list:原始数组
* authorityList:已授权数组
* @description: 递归渲染列表数据
* @param {*} list 原始数组
* @param {*} authorityList 已授权数组
* @param {*} operationCodes
* @author: renchao
*/
getRecursionTreeData
(
list
,
authorityList
,
operationCodes
)
{
++
this
.
menukey
...
...
@@ -239,6 +256,13 @@
// this.setCheckAllArr(list)
},
// 授权条件
/**
* @description: 授权条件
* @param {*} authorityList
* @param {*} checkArr
* @param {*} item
* @author: renchao
*/
setAuthorizedConditions
(
authorityList
,
checkArr
,
item
)
{
if
(
this
.
roleId
===
''
)
{
checkArr
.
forEach
(
ele
=>
{
...
...
@@ -272,6 +296,10 @@
this
.
$set
(
item
,
'checkArr'
,
this
.
$deepCopy
(
checkArr
))
},
// 获取拼接授权信息
/**
* @description: 获取拼接授权信息
* @author: renchao
*/
getAuthorizedInfo
()
{
const
lastArr
=
[]
const
authorizedList
=
[]
...
...
@@ -306,6 +334,12 @@
}
},
// 获取人员列表做筛选
/**
* @description: 获取人员列表做筛选
* @param {*} a
* @param {*} rid
* @author: renchao
*/
personlist
(
a
,
rid
)
{
this
.
roleId
=
rid
;
this
.
visible
=
true
;
...
...
@@ -326,10 +360,18 @@
});
},
// 关闭事件
/**
* @description: 关闭事件
* @author: renchao
*/
close
()
{
this
.
visible
=
false
;
},
// 保存事件
/**
* @description: 保存事件
* @author: renchao
*/
handleSaveMember
()
{
// 人员授权
const
idList
=
this
.
usermultipleSelection
.
map
((
item
)
=>
{
...
...
@@ -357,6 +399,11 @@
})
},
// 勾选人员事件
/**
* @description: 勾选人员事件
* @param {*} val
* @author: renchao
*/
handleSelectionChange
(
val
)
{
this
.
lastuserList
.
forEach
((
element
,
index
)
=>
{
delete
this
.
lastuserList
[
index
].
selectStatus
...
...
@@ -371,6 +418,12 @@
});
},
// 数据筛选
/**
* @description: 数据筛选
* @param {*} scope
* @param {*} arr
* @author: renchao
*/
setarrdata
(
scope
,
arr
)
{
arr
.
forEach
((
item
,
index
,
arr
)
=>
{
...
...
@@ -384,6 +437,13 @@
},
// 勾选菜单事件
/**
* @description: 勾选菜单事件
* @param {*} flag
* @param {*} checkId
* @param {*} scope
* @author: renchao
*/
changeCheck
(
flag
,
checkId
,
scope
)
{
this
.
checklistbor
=
[]
this
.
setarrdata
(
scope
,
this
.
lastMenuList
)
...
...
@@ -400,6 +460,12 @@
)
this
.
getAuthorizedInfo
()
},
/**
* @description: handleClick
* @param {*} tab
* @param {*} event
* @author: renchao
*/
handleClick
(
tab
,
event
)
{
this
.
lastuserList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
selectStatus
===
0
)
{
...
...
src/views/system/components/addTask.vue
View file @
5a08c37
...
...
@@ -83,6 +83,10 @@
}
},
methods
:
{
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit
()
{
let
_this
=
this
this
.
$refs
[
'ruleForm'
].
validate
(
async
(
valid
)
=>
{
...
...
@@ -125,6 +129,10 @@
}
})
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose
()
{
this
.
$emit
(
"input"
,
false
);
}
...
...
src/views/system/components/editValidRule.vue
View file @
5a08c37
...
...
@@ -163,6 +163,10 @@
}
},
methods
:
{
/**
* @description: isShow
* @author: renchao
*/
isShow
()
{
setTimeout
(()
=>
{
this
.
ruleForm
=
this
.
ruleData
...
...
@@ -170,9 +174,18 @@
},
0
)
this
.
$refs
.
validRule
.
isShow
()
},
/**
* @description: handleEdit
* @param {*} scope
* @author: renchao
*/
handleEdit
(
scope
)
{
this
.
$set
(
scope
.
row
,
'_edit'
,
true
)
},
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd
()
{
this
.
tableData
.
data
.
push
({
field
:
''
,
...
...
@@ -182,9 +195,19 @@
message
:
''
})
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus
(
index
,
row
)
{
this
.
tableData
.
data
.
splice
(
index
,
1
);
},
/**
* @description: handleSubmit
* @author: renchao
*/
async
handleSubmit
()
{
this
.
ruleForm
.
sysYwsjbFieldList
=
this
.
tableData
.
data
try
{
...
...
@@ -203,6 +226,10 @@
}
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose
()
{
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
$refs
.
validRule
.
isHide
()
...
...
src/views/system/dictionaries/components/editDialog.vue
View file @
5a08c37
...
...
@@ -262,6 +262,12 @@
},
methods
:
{
// 添加索引
/**
* @description: 添加索引
* @param {*} data
* @param {*} isAdd
* @author: renchao
*/
addIndexes
(
data
=
this
.
tableData
,
isAdd
=
true
)
{
data
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
)
{
...
...
@@ -283,6 +289,10 @@
}
});
},
/**
* @description: itemShowFalse
* @author: renchao
*/
itemShowFalse
()
{
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
item
.
codeShow
=
false
;
...
...
@@ -291,11 +301,21 @@
item
.
normnameShow
=
false
;
});
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus
(
index
,
row
)
{
removeTreeListItem
(
this
.
tableData
,
row
.
dictid
,
'dictid'
);
this
.
tableData
=
judgeSort
(
this
.
tableData
)
this
.
key
++
;
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit
()
{
editDictNode
({
dictid
:
this
.
details
.
rowData
.
dictid
,
...
...
@@ -311,10 +331,19 @@
}
});
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$emit
(
"input"
,
false
);
},
// 增加下级
/**
* @description: 增加下级
* @param {*} row
* @author: renchao
*/
handleAddSubordinate
(
row
)
{
if
(
!
row
.
children
)
{
row
.
children
=
[];
...
...
@@ -332,6 +361,10 @@
this
.
keyList
.
push
(
row
.
dictid
);
},
// 增加
/**
* @description: 增加
* @author: renchao
*/
handleAdd
()
{
this
.
$nextTick
(()
=>
{
let
container
=
this
.
$el
.
querySelector
(
".el-table__body-wrapper"
);
...
...
@@ -351,12 +384,24 @@
this
.
key
++
;
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward
(
index
,
row
)
{
realMove
(
row
.
dictid
,
"UP"
,
this
.
tableData
);
let
id
=
findParents
(
this
.
tableData
,
row
.
dictid
);
this
.
keyList
=
id
;
this
.
key
++
;
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown
(
index
,
row
)
{
realMove
(
row
.
dictid
,
"DOWN"
,
this
.
tableData
);
let
id
=
findParents
(
this
.
tableData
,
row
.
dictid
);
...
...
src/views/system/dictionaries/dictionaries.vue
View file @
5a08c37
...
...
@@ -86,6 +86,10 @@
},
methods
:
{
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick
()
{
getQlxxDictList
({
...
this
.
ruleForm
,
...
this
.
pageData
}).
then
(
res
=>
{
let
{
records
,
total
}
=
res
.
result
...
...
@@ -93,11 +97,19 @@
this
.
tableData
.
total
=
total
?
total
:
0
})
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch
()
{
this
.
pageData
.
currentPage
=
1
this
.
tableData
.
data
=
[]
this
.
queryClick
()
},
/**
* @description: handleRefresh
* @author: renchao
*/
handleRefresh
()
{
this
.
$confirm
(
'是否确认刷新'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -123,6 +135,12 @@
});
});
},
/**
* @description: editClick
* @param {*} row
* @param {*} val
* @author: renchao
*/
editClick
(
row
,
val
)
{
this
.
details
.
rowData
=
row
this
.
details
.
isenable
=
val
...
...
src/views/system/information/base-set.vue
View file @
5a08c37
...
...
@@ -108,6 +108,11 @@
]
},
methods
:
{
/**
* @description: getUserdata
* @param {*} id
* @author: renchao
*/
getUserdata
(
id
)
{
getAction
(
`
${
api
.
users
}
/
${
id
}
`
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
...
...
@@ -117,6 +122,10 @@
}
})
},
/**
* @description: updateInfo
* @author: renchao
*/
updateInfo
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
src/views/system/information/index.vue
View file @
5a08c37
...
...
@@ -54,9 +54,17 @@
created
()
{
},
mounted
()
{
},
methods
:
{
/**
* @description: information
* @author: renchao
*/
information
()
{
this
.
isshow
=
true
;
},
/**
* @description: password
* @author: renchao
*/
password
()
{
this
.
isshow
=
false
;
},
...
...
src/views/system/information/password-edit.vue
View file @
5a08c37
...
...
@@ -83,9 +83,21 @@
}
},
methods
:
{
/**
* @description: getid
* @param {*} val
* @author: renchao
*/
getid
(
val
)
{
this
.
userId
=
val
.
id
;
},
/**
* @description: validatorConfirmPassword
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
validatorConfirmPassword
(
rule
,
value
,
callback
)
{
const
{
newPassword
}
=
this
.
form
;
if
(
value
!==
newPassword
)
{
...
...
@@ -94,6 +106,10 @@
callback
();
}
},
/**
* @description: updatePassword
* @author: renchao
*/
updatePassword
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
src/views/system/menus/JsonEditors/index.vue
View file @
5a08c37
...
...
@@ -88,10 +88,19 @@
},
methods
:
{
/**
* @description: onJsonChange
* @param {*} value
* @author: renchao
*/
onJsonChange
(
value
)
{
// 只有在格式正确的时候进入此事件
this
.
hasJsonFlag
=
true
},
/**
* @description: onJsonSave
* @author: renchao
*/
onJsonSave
()
{
const
value
=
this
.
resultInfo
if
(
this
.
hasJsonFlag
===
false
)
{
...
...
@@ -104,17 +113,34 @@
return
true
}
},
/**
* @description: onError
* @param {*} value
* @author: renchao
*/
onError
(
value
)
{
this
.
hasJsonFlag
=
false
},
/**
* @description: openDialog
* @author: renchao
*/
openDialog
()
{
this
.
dialogVisible
=
true
},
/**
* @description: cancel
* @author: renchao
*/
cancel
()
{
this
.
resultInfo
=
this
.
tmpResultInfo
this
.
dialogVisible
=
false
},
// 放大
/**
* @description: 放大
* @author: renchao
*/
enLarge
()
{
const
fullarea
=
document
.
getElementById
(
'minejson'
)
if
(
fullarea
.
requestFullscreen
)
{
...
...
src/views/system/menus/edit-dialog.vue
View file @
5a08c37
...
...
@@ -136,6 +136,11 @@
},
methods
:
{
// 获取父级菜单
/**
* @description: 获取父级菜单
* @param {*} id
* @author: renchao
*/
getParentMenuList
(
id
)
{
getParentMenuListAction
(
id
).
then
((
res
)
=>
{
...
...
@@ -156,16 +161,30 @@
})
},
// 配置参数
/**
* @description: 配置参数
* @param {*} data
* @author: renchao
*/
getJsonString
(
data
)
{
this
.
form
.
metadata
=
data
},
// 新增菜单
/**
* @description: 新增菜单
* @author: renchao
*/
add
()
{
this
.
getParentMenuList
(
this
.
productId
)
this
.
type
=
0
this
.
form
.
jumpMode
=
1
},
// 编辑菜单
/**
* @description: 编辑菜单
* @param {*} record
* @author: renchao
*/
edit
(
record
)
{
this
.
type
=
1
// 若有id为编辑
...
...
@@ -177,10 +196,20 @@
}
},
// 选择上级菜单
/**
* @description: 选择上级菜单
* @param {*} value
* @author: renchao
*/
handleChange
(
value
)
{
this
.
form
.
parentId
=
value
},
// 保存
/**
* @description: 保存
* @param {*} submitType
* @author: renchao
*/
submitForm
(
submitType
)
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -216,6 +245,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
$refs
.
form
.
resetFields
()
this
.
form
=
{
...
...
@@ -224,6 +257,10 @@
}
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close
()
{
this
.
resetForm
()
this
.
$emit
(
'input'
,
false
)
...
...
src/views/system/menus/index.vue
View file @
5a08c37
...
...
@@ -158,6 +158,10 @@
},
methods
:
{
//查询
/**
* @description: 查询
* @author: renchao
*/
searchQuery
()
{
if
(
this
.
form
.
menuName
)
{
this
.
tablelistData
=
this
.
childrenFn
(
this
.
listData
,
this
.
form
.
menuName
);
...
...
@@ -166,6 +170,12 @@
}
},
// 数据处理方法
/**
* @description: 数据处理方法
* @param {*} arr
* @param {*} key
* @author: renchao
*/
childrenFn
(
arr
,
key
)
{
const
that
=
this
;
let
searchTree
=
[];
...
...
@@ -195,6 +205,10 @@
}
},
// 加载表格数据
/**
* @description: 加载表格数据
* @author: renchao
*/
getTableList
()
{
getMenuInfo
(
this
.
BASE_API
.
CODE
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -231,6 +245,10 @@
})
},
// 新增菜单
/**
* @description: 新增菜单
* @author: renchao
*/
handleAdd
()
{
this
.
isDialog
=
true
this
.
$refs
.
dialogForm
.
add
();
...
...
@@ -238,12 +256,23 @@
},
// 修改
/**
* @description: 修改
* @param {*} record
* @author: renchao
*/
handleEdit
(
record
)
{
this
.
isDialog
=
true
this
.
$refs
.
dialogForm
.
edit
(
record
);
this
.
$refs
.
dialogForm
.
title
=
"修改"
;
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete
(
id
,
content
)
{
this
.
$confirm
(
`<div class="customer-message-wrapper">
...
...
@@ -284,11 +313,21 @@
.
catch
(()
=>
{
})
},
// 新增、编辑回显
/**
* @description: 获新增、编辑回显
* @author: renchao
*/
reloadTableData
()
{
this
.
getTableList
()
},
// 排序
/**
* @description: 排序
* @param {*} row
* @param {*} operate
* @author: renchao
*/
moveUp
(
row
,
operate
)
{
if
(
row
.
isTop
)
{
return
;
...
...
@@ -296,6 +335,12 @@
this
.
realMove
(
row
,
operate
);
}
},
/**
* @description: moveDown
* @param {*} row
* @param {*} operate
* @author: renchao
*/
moveDown
(
row
,
operate
)
{
if
(
row
.
isBottom
)
{
return
;
...
...
@@ -305,6 +350,12 @@
},
//树形表格移动
/**
* @description: 树形表格移动
* @param {*} row
* @param {*} operate
* @author: renchao
*/
realMove
(
row
,
operate
)
{
function
tarverse
(
nodes
,
id
)
{
let
result
;
...
...
src/views/system/roles/edit-dialog.vue
View file @
5a08c37
...
...
@@ -92,6 +92,10 @@
},
methods
:
{
// 保存新增或关闭事件
/**
* @description: 保存新增或关闭事件
* @author: renchao
*/
submitForm
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -151,6 +155,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
dialogForm
=
{
roleName
:
''
,
...
...
@@ -158,6 +166,10 @@
this
.
$refs
.
form
.
resetFields
()
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close
()
{
this
.
resetForm
()
this
.
$emit
(
'input'
,
false
)
...
...
src/views/system/roles/index.vue
View file @
5a08c37
...
...
@@ -259,6 +259,10 @@
mounted
()
{
},
methods
:
{
//查询
/**
* @description: 查询
* @author: renchao
*/
searchQuery
()
{
if
(
this
.
form
.
rolesName
)
{
this
.
listdata
=
this
.
childrenFn
(
this
.
setlistdata
,
this
.
form
.
rolesName
);
...
...
@@ -266,6 +270,12 @@
this
.
getTableData
()
}
},
/**
* @description: childrenFn
* @param {*} arr
* @param {*} key
* @author: renchao
*/
childrenFn
(
arr
,
key
)
{
let
searchTree
=
[];
arr
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -279,6 +289,10 @@
}
},
// 获取角色列表
/**
* @description: 获取角色列表
* @author: renchao
*/
getTableData
()
{
getRolesById
([
1
,
2
])
.
then
((
res
)
=>
{
...
...
@@ -290,6 +304,10 @@
},
// 获取菜单列表
/**
* @description: 获取菜单列表
* @author: renchao
*/
getTableList
()
{
getMenuInfo
(
this
.
BASE_API
.
CODE
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -361,6 +379,12 @@
});
},
// 获取权限列表
/**
* @description: 获取权限列表
* @param {*} productId
* @param {*} code
* @author: renchao
*/
getAuthorityList
(
productId
,
code
)
{
getAuthorityListAction
(
productId
,
code
).
then
(
res
=>
{
...
...
@@ -380,6 +404,11 @@
},
// 配置
/**
* @description: 配置
* @param {*} row
* @author: renchao
*/
getList
(
row
)
{
this
.
getTableList
()
const
params
=
{};
...
...
@@ -430,6 +459,11 @@
});
},
// 新增、修改角色
/**
* @description: 新增、修改角色
* @param {*} value
* @author: renchao
*/
handleAddEdit
(
value
)
{
this
.
isDialog
=
true
this
.
$refs
.
addEditDialog
.
menuType
=
this
.
menuType
;
...
...
@@ -445,6 +479,12 @@
this
.
$refs
.
addEditDialog
.
title
=
value
.
id
?
"修改"
:
"新增"
;
},
//排序
/**
* @description: 排序
* @param {*} record
* @param {*} operate
* @author: renchao
*/
updateOrder
(
record
,
operate
)
{
const
findIndex
=
this
.
listdata
.
findIndex
(
item
=>
item
.
id
===
record
.
id
)
let
swapId
=
''
...
...
@@ -463,6 +503,12 @@
})
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete
:
function
(
id
,
content
=
""
)
{
this
.
$confirm
(
`<div class="customer-message-wrapper">
...
...
@@ -503,6 +549,10 @@
.
catch
(()
=>
{
});
},
// 新增回显
/**
* @description: 新增回显
* @author: renchao
*/
reloadTableData
()
{
this
.
getTableData
();
},
...
...
src/views/system/roles/roleslistdiglog.vue
View file @
5a08c37
...
...
@@ -134,6 +134,12 @@
methods
:
{
// 人员配置点击行勾选数据
/**
* @description: 人员配置点击行勾选数据
* @param {*} row
* @param {*} event
* @author: renchao
*/
handleClickTableRow
(
row
,
event
)
{
this
.
checkNum
=
0
;
this
.
isCheck
=
false
;
...
...
@@ -174,6 +180,14 @@
},
// 获取授权主体的菜单权限
// getMenuAuthorityList
/**
* @description: 获取授权主体的菜单权限
* @param {*} operationList
* @param {*} id
* @param {*} menutablelistData
* @param {*} operationCodes
* @author: renchao
*/
menulist
(
operationList
,
id
,
Code
,
menutablelistData
,
operationCodes
)
{
this
.
selectedSubsystemCode
=
Code
this
.
menuList
=
menutablelistData
;
...
...
@@ -196,9 +210,11 @@
},
/**
* 递归渲染列表数据
* list:原始数组
* authorityList:已授权数组
* @description: 递归渲染列表数据
* @param {*} list 原始数组
* @param {*} authorityList 已授权数组
* @param {*} operationCodes
* @author: renchao
*/
getRecursionTreeData
(
list
,
authorityList
,
operationCodes
)
{
++
this
.
menukey
...
...
@@ -237,6 +253,13 @@
// this.setCheckAllArr(list)
},
// 授权条件
/**
* @description: 授权条件
* @param {*} authorityList
* @param {*} checkArr
* @param {*} item
* @author: renchao
*/
setAuthorizedConditions
(
authorityList
,
checkArr
,
item
)
{
if
(
this
.
roleId
===
''
)
{
checkArr
.
forEach
(
ele
=>
{
...
...
@@ -270,6 +293,10 @@
this
.
$set
(
item
,
'checkArr'
,
this
.
$deepCopy
(
checkArr
))
},
// 获取拼接授权信息
/**
* @description: 获取拼接授权信息
* @author: renchao
*/
getAuthorizedInfo
()
{
const
lastArr
=
[]
const
authorizedList
=
[]
...
...
@@ -304,6 +331,12 @@
}
},
// 获取人员列表做筛选
/**
* @description: 获取人员列表做筛选
* @param {*} e
* @param {*} rid
* @author: renchao
*/
personlist
(
a
,
rid
)
{
this
.
roleId
=
rid
;
this
.
visible
=
true
;
...
...
@@ -324,10 +357,18 @@
});
},
// 关闭事件
/**
* @description: 关闭事件
* @author: renchao
*/
close
()
{
this
.
visible
=
false
;
},
// 保存事件
/**
* @description: 保存事件
* @author: renchao
*/
handleSaveMember
()
{
// 人员授权
const
idList
=
this
.
usermultipleSelection
.
map
((
item
)
=>
{
...
...
@@ -355,6 +396,11 @@
})
},
// 勾选人员事件
/**
* @description: 勾选人员事件
* @param {*} val
* @author: renchao
*/
handleSelectionChange
(
val
)
{
this
.
lastuserList
.
forEach
((
element
,
index
)
=>
{
delete
this
.
lastuserList
[
index
].
selectStatus
...
...
@@ -369,6 +415,12 @@
});
},
// 数据筛选
/**
* @description: 数据筛选
* @param {*} scope
* @param {*} arr
* @author: renchao
*/
setarrdata
(
scope
,
arr
)
{
arr
.
forEach
((
item
,
index
,
arr
)
=>
{
...
...
@@ -382,6 +434,13 @@
},
// 勾选菜单事件
/**
* @description: 勾选菜单事件
* @param {*} flag
* @param {*} checkId
* @param {*} scope
* @author: renchao
*/
changeCheck
(
flag
,
checkId
,
scope
)
{
this
.
checklistbor
=
[]
this
.
setarrdata
(
scope
,
this
.
lastMenuList
)
...
...
@@ -398,6 +457,12 @@
)
this
.
getAuthorizedInfo
()
},
/**
* @description: handleClick
* @param {*} tab
* @param {*} event
* @author: renchao
*/
handleClick
(
tab
,
event
)
{
this
.
lastuserList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
selectStatus
===
0
)
{
...
...
src/views/system/timedTask/index.vue
View file @
5a08c37
...
...
@@ -106,14 +106,26 @@
}
},
methods
:
{
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd
()
{
this
.
taskData
=
null
this
.
isDialog
=
true
},
/**
* @description: resetSe
* @author: renchao
*/
resetSe
()
{
this
.
form
.
jobName
=
''
this
.
featchData
()
},
/**
* @description: featchData
* @author: renchao
*/
async
featchData
()
{
try
{
this
.
form
=
Object
.
assign
(
this
.
form
,
this
.
formData
)
...
...
@@ -124,6 +136,11 @@
this
.
message
=
error
}
},
/**
* @description: recover
* @param {*} row
* @author: renchao
*/
recover
(
row
)
{
this
.
$confirm
(
'此操将进行恢复操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -156,6 +173,11 @@
})
},
/**
* @description: handleActive
* @param {*} row
* @author: renchao
*/
handleActive
(
row
)
{
this
.
$confirm
(
'此操将进行激活操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -188,6 +210,11 @@
})
},
// 暂停
/**
* @description: 暂停
* @param {*} row
* @author: renchao
*/
handleSuspend
(
row
)
{
this
.
$confirm
(
'此操将进行暂停操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -219,10 +246,20 @@
})
})
},
/**
* @description: handleEdit
* @param {*} row
* @author: renchao
*/
handleEdit
(
row
)
{
this
.
taskData
=
row
this
.
isDialog
=
true
},
/**
* @description: handleDel
* @param {*} row
* @author: renchao
*/
handleDel
(
row
)
{
this
.
$confirm
(
'此操将进行删除操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
src/views/system/users/edit-dialog.vue
View file @
5a08c37
...
...
@@ -125,6 +125,10 @@
this
.
getdistricts
()
},
methods
:
{
/**
* @description: getdistricts
* @author: renchao
*/
getdistricts
()
{
getAction
(
api
.
departments
,
{
queryOptions
:
{
orderBys
:
[{
property
:
"sort"
,
direction
:
"desc"
}]
},
...
...
@@ -132,14 +136,21 @@
this
.
districtAreaList
=
res
.
content
;
});
},
// 添加人员
/**
* @description: 添加人员
* @author: renchao
*/
adds
()
{
this
.
showLoginName
=
false
},
// 编辑
/**
* @description: 编辑
* @param {*} record
* @author: renchao
*/
edit
(
record
)
{
this
.
showLoginName
=
true
// 若有id为编辑
...
...
@@ -150,6 +161,10 @@
}
},
// 保存
/**
* @description: 保存
* @author: renchao
*/
submitForm
()
{
this
.
districtAreaList
.
forEach
((
item
)
=>
{
if
(
this
.
form
.
departmentId
==
item
.
id
)
{
...
...
@@ -185,6 +200,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm
()
{
this
.
form
=
{
sex
:
'0'
...
...
@@ -192,6 +211,10 @@
this
.
$refs
.
form
.
resetFields
()
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close
()
{
this
.
resetForm
()
this
.
$emit
(
'input'
,
false
)
...
...
src/views/system/users/index.vue
View file @
5a08c37
...
...
@@ -230,12 +230,20 @@
},
},
methods
:
{
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd
()
{
this
.
isDialog
=
true
this
.
$refs
.
dialogForm
.
adds
();
this
.
$refs
.
dialogForm
.
title
=
"添加"
;
},
// 查询
/**
* @description: 查询
* @author: renchao
*/
getTableList
()
{
this
.
queryParam
=
{
name
:
this
.
form
.
name
,
...
...
@@ -258,6 +266,11 @@
})
},
// 获取组织机构
/**
* @description: 获取组织机构
* @param {*} deptIdArr
* @author: renchao
*/
getDepts
(
deptIdArr
)
{
let
params
=
{
queryOptions
:
{
...
...
@@ -307,6 +320,11 @@
// },
// 重置用户密码
/**
* @description: 重置用户密码
* @param {*} data
* @author: renchao
*/
resetPassword
(
data
)
{
const
ids
=
[]
if
(
data
instanceof
Array
)
{
...
...
@@ -352,6 +370,12 @@
.
catch
(()
=>
{
})
},
//排序
/**
* @description: 排序
* @param {*} record
* @param {*} operate
* @author: renchao
*/
updateOrder
(
record
,
operate
)
{
const
findIndex
=
this
.
tableData
.
data
.
findIndex
(
item
=>
item
.
id
===
record
.
id
)
let
swapId
=
''
...
...
@@ -371,12 +395,23 @@
},
// 修改人员信息
/**
* @description: 修改人员信息
* @param {*} row
* @author: renchao
*/
handleEdit
(
row
)
{
this
.
isDialog
=
true
this
.
$refs
.
dialogForm
.
edit
(
row
);
this
.
$refs
.
dialogForm
.
title
=
"修改"
;
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete
(
id
,
content
)
{
this
.
$confirm
(
deleteDomStr
(
content
),
'执行确认'
,
{
dangerouslyUseHTMLString
:
true
,
...
...
@@ -399,6 +434,10 @@
.
catch
(()
=>
{
})
},
// 新增回显
/**
* @description: 新增回显
* @author: renchao
*/
reloadTableData
()
{
this
.
getTableList
()
},
...
...
src/views/system/validationRule/index.vue
View file @
5a08c37
...
...
@@ -124,6 +124,10 @@
};
},
methods
:
{
/**
* @description: featchData
* @author: renchao
*/
async
featchData
()
{
try
{
this
.
form
=
Object
.
assign
(
this
.
form
,
this
.
formData
);
...
...
@@ -141,11 +145,21 @@
this
.
$refs
.
msg
.
messageShow
();
}
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch
()
{
this
.
form
.
currentPage
=
1
this
.
tableData
.
data
=
[]
this
.
featchData
()
},
/**
* @description: handleEdit
* @param {*} index
* @param {*} row
* @author: renchao
*/
async
handleEdit
(
index
,
row
)
{
try
{
let
{
result
:
res
}
=
await
ruleConfig
.
eidtConfigRule
(
row
.
BSM_YWSJB
);
...
...
@@ -158,6 +172,12 @@
});
}
},
/**
* @description: handleDel
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleDel
(
index
,
row
)
{
let
_this
=
this
;
this
.
$confirm
(
"此操作将进行删除校验规则, 是否继续?"
,
"提示"
,
{
...
...
@@ -192,6 +212,10 @@
});
});
},
/**
* @description: handleUpdateDic
* @author: renchao
*/
handleUpdateDic
()
{
this
.
$store
.
dispatch
(
"dictionaries/generateDic"
).
then
((
res
)
=>
{
if
(
res
)
{
...
...
Please
register
or
sign in
to post a comment