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) {
...
@@ -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 @@
...
@@ -23,6 +23,7 @@
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 额外按钮-->
<el-button
size=
'mini'
@
click
.
native=
"autoGen()"
type=
"primary"
>
生成作业
</el-button>
<!-- 表头设置 -->
<!-- 表头设置 -->
<!-- 权限-->
<!-- 权限-->
...
@@ -44,7 +45,8 @@
...
@@ -44,7 +45,8 @@
doQuery
,
doQuery
,
doAdd
,
doAdd
,
doUpdate
,
doUpdate
,
doDelete
doDelete
,
doAutoGen
}
from
'@/api/daily/maintenanceStandards'
;
}
from
'@/api/daily/maintenanceStandards'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
...
@@ -89,18 +91,30 @@
...
@@ -89,18 +91,30 @@
},
},
methods
:
{
methods
:
{
/* 基础查询*/
/* 基础查询*/
query
:
doQuery
,
query
:
doQuery
,
/* 基础增*/
/* 基础增*/
apiAdd
:
doAdd
,
apiAdd
:
doAdd
,
/* 基础更新*/
/* 基础更新*/
apiUpdate
:
doUpdate
,
apiUpdate
:
doUpdate
,
/* 删除操作*/
/* 删除操作*/
apiDelete
:
doDelete
,
apiDelete
:
doDelete
,
autoGen
()
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
doAutoGen
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'生成作业成功!'
)
}
})
}
else
{
this
.
$warning
(
'请选中标准进行操作!'
);
}
},
/* 初始化赋值操作*/
/* 初始化赋值操作*/
init
()
{
init
()
{
}
}
},
},
components
:
{
components
:
{
Edit
,
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