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
5c18a878
Commit
5c18a878
authored
Nov 08, 2022
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动生成按钮
parent
451106d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
maintenanceStandards.js
src/api/daily/maintenanceStandards.js
+12
-0
index.vue
src/views/daily/maintenanceStandards/index.vue
+18
-4
No files found.
src/api/daily/maintenanceStandards.js
View file @
5c18a878
...
...
@@ -43,6 +43,18 @@ export function doQueryZyfl(query) {
})
}
/**
* 生成危险作业
* in:id
*/
export
function
doAutoGen
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/wxzybz/genWxzy'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/daily/maintenanceStandards/index.vue
View file @
5c18a878
...
...
@@ -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/maintenanceStandards'
;
/* edit页面*/
import
Edit
from
'./edit'
...
...
@@ -89,18 +91,30 @@
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
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
()
{
}
}
},
components
:
{
Edit
,
...
...
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