Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
sgaqgl-vue
Commits
647cb88d
Commit
647cb88d
authored
Nov 08, 2022
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
履职标准生成任务,增加roleid,下拉选择角色
parent
eb8d6c2a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
maintenanceDuty.js
src/api/daily/maintenanceDuty.js
+11
-1
performanceReport.js
src/api/daily/performanceReport.js
+2
-0
index.vue
src/views/daily/maintenanceDuty/index.vue
+16
-3
No files found.
src/api/daily/maintenanceDuty.js
View file @
647cb88d
...
...
@@ -31,7 +31,17 @@ export function doDelete(query) {
})
}
/**
* 生成履职任务
* in:id
*/
export
function
doAutoGen
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/lzbz/genLzrw'
,
method
:
'post'
,
data
:
query
||
{}
})
}
...
...
src/api/daily/performanceReport.js
View file @
647cb88d
...
...
@@ -53,3 +53,5 @@ export function doAddDtl(query) {
src/views/daily/maintenanceDuty/index.vue
View file @
647cb88d
...
...
@@ -23,6 +23,7 @@
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<el-button
size=
'mini'
@
click
.
native=
"autoGen()"
type=
"primary"
>
生成任务
</el-button>
<!-- 表头设置 -->
<!-- 权限-->
...
...
@@ -44,7 +45,8 @@
doQuery
,
doAdd
,
doUpdate
,
doDelete
doDelete
,
doAutoGen
}
from
'@/api/daily/maintenanceDuty.js'
;
/* edit页面*/
import
Edit
from
'./edit'
...
...
@@ -91,6 +93,17 @@
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
autoGen
()
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
doAutoGen
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'生成任务成功!'
)
}
})
}
else
{
this
.
$warning
(
'请选中标准进行操作!'
);
}
},
/* 初始化赋值操作*/
init
()
{
...
...
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