Commit c1792312 authored by dingyoujian's avatar dingyoujian

调整

parent 019d680b
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="下达日期" ref="xdrq" prop="xdrq"> <el-form-item label="下达时间" ref="xdrq" prop="xdrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" <el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.xdrq" placeholder="选择日期"> v-model="form.xdrq" placeholder="选择日期">
</el-date-picker> </el-date-picker>
......
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
// {label: "ID", prop: "id", fieldType: "ftString",width:192}, // {label: "ID", prop: "id", fieldType: "ftString",width:192},
// {label: "单据来源", prop: "djly", fieldType: "ftString",width:60}, // {label: "单据来源", prop: "djly", fieldType: "ftString",width:60},
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192}, // {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{label: "状态", prop: "zt", fieldType: "ftString",width:50}, {label: "状态", prop: "ztName", fieldType: "ftString",width:50},
{label: "下达日期", prop: "xdrq", fieldType: "ftDateTime"}, {label: "下达时间", prop: "xdrq", fieldType: "ftDateTime"},
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "实际检查时间", prop: "sjjcsj", fieldType: "ftDateTime"}, {label: "实际检查时间", prop: "sjjcsj", fieldType: "ftDateTime"},
{label: "检查岗位", prop: "gwid", fieldType: "ftString",width:192}, {label: "检查岗位", prop: "gwid", fieldType: "ftString",width:192},
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="下达日期" ref="xdrq" prop="xdrq"> <el-form-item label="下达时间" ref="xdrq" prop="xdrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" <el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.xdrq" placeholder="选择日期"> v-model="form.xdrq" placeholder="选择日期">
</el-date-picker> </el-date-picker>
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
{label: "单据来源", prop: "djly", fieldType: "ftString",width:60}, {label: "单据来源", prop: "djly", fieldType: "ftString",width:60},
{label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192}, {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{label: "状态", prop: "zt", fieldType: "ftString",width:6}, {label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "下达日期", prop: "xdrq", fieldType: "ftDateTime"}, {label: "下达时间", prop: "xdrq", fieldType: "ftDateTime"},
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "实际检查时间", prop: "sjjcsj", fieldType: "ftDateTime"}, {label: "实际检查时间", prop: "sjjcsj", fieldType: "ftDateTime"},
{label: "检查岗位", prop: "gwid", fieldType: "ftString",width:192}, {label: "检查岗位", prop: "gwid", fieldType: "ftString",width:192},
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,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>
<!-- 表头设置 --> <!-- 表头设置 -->
<!-- 权限--> <!-- 权限-->
...@@ -74,7 +75,8 @@ ...@@ -74,7 +75,8 @@
doQueryJcnr, doQueryJcnr,
doAddJcnr, doAddJcnr,
doUpdateJcnr, doUpdateJcnr,
doDeleteJcnr doDeleteJcnr,
doAutoGen
} from "@/api/riskPrecontrol/screeningCriteria.js"; } from "@/api/riskPrecontrol/screeningCriteria.js";
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
...@@ -162,6 +164,18 @@ ...@@ -162,6 +164,18 @@
init() { init() {
}, },
autoGen() {
if (this.app.selectOne || this.app.clickOne) {
doAutoGen(this.singleItem).then(res=>{
if(res.success){
this.$success('生成作业成功!')
}
})
}else{
this.$warning('请选中标准进行操作!');
}
},
/* 重写点击事件*/ /* 重写点击事件*/
getRow: function(e) { getRow: function(e) {
this.rowItem = e this.rowItem = e
......
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