Commit 647cb88d authored by dingyoujian's avatar dingyoujian

履职标准生成任务,增加roleid,下拉选择角色

parent eb8d6c2a
......@@ -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||{}
})
}
......
......@@ -53,3 +53,5 @@ export function doAddDtl(query) {
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment