Commit eb127e56 authored by dingyoujian's avatar dingyoujian

三违

parent 02660b01
...@@ -45,7 +45,12 @@ export function doInitGlcj(query) { ...@@ -45,7 +45,12 @@ export function doInitGlcj(query) {
}) })
} }
export function doQuerytree(query) {
return request({
url: '/aqgl/yjgl/yjya/query/tree',
method: 'post',
data: query||{}
})
}
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="标题" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
// this.form.mlid=this.app.queryParams.mlid
this.form.gsid=this.app.queryParams.gsid
},
/* 组件名称*/
name: 'appVersionEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
mlid:'',
gsid:'',
name: '',
bz: "",
// fbrq:new Date().getTime(),
// ssrq:new Date().getTime(),
mlid:''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
gsid: [{
required: true,
}, ],
}
}
},
methods: {
/* 重写方法,this.app来调用index页面定义的api*/
}
}
</script>
<style scoped lang="scss">
</style>
...@@ -2,96 +2,90 @@ ...@@ -2,96 +2,90 @@
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="24">
<el-col :span="6"> <el-col :span="12">
<el-form-item label="演练名称" ref="name" prop="name"> <el-form-item label="演练名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input> <el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="12">
<el-form-item label="分公司ID" ref="gsid" prop="gsid"> <el-form-item label="演练单位" ref="zzdw" prop="zzdw">
<el-input :readonly="readonly" v-model="form.gsid" ></el-input> <el-input :readonly="readonly" v-model="form.zzdw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练组织单位ID" ref="yldwid" prop="yldwid">
<el-input :readonly="readonly" v-model="form.yldwid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练计划ID" ref="yljhid" prop="yljhid">
<el-input :readonly="readonly" v-model="form.yljhid" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="24">
<el-col :span="6"> <el-col :span="12">
<el-form-item label="培训人数" ref="pxrs" prop="pxrs"> <el-form-item label="培训人数" ref="pxrs" prop="pxrs">
<el-input :readonly="readonly" v-model="form.pxrs" ></el-input> <el-input :readonly="readonly" v-model="form.pxrs" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> </el-row>
<el-row :gutter="24">
<el-col :span="24">
<el-form-item label="演练目标" ref="ylmb" prop="ylmb"> <el-form-item label="演练目标" ref="ylmb" prop="ylmb">
<el-input :readonly="readonly" v-model="form.ylmb" ></el-input> <el-input type='textarea' :readonly="readonly" v-model="form.ylmb" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> </el-row>
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="演练方式" ref="ylfs" prop="ylfs"> <el-form-item label="演练方式" ref="ylfs" prop="ylfs">
<el-input :readonly="readonly" v-model="form.ylfs" ></el-input> <el-input :readonly="readonly" v-model="form.ylfs" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="12">
<el-form-item label="演练时间" ref="ylrq" prop="ylrq"> <el-form-item label="演练季度" ref="quarter" prop="quarter">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yjgl/yjyljh/init/quarter' filterable clearable :match="{value:'id',label:'name'}" v-model='form.quarter' ></RelSelect>
v-model="form.ylrq" placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="24">
<el-col :span="6"> <el-col :span="12">
<el-form-item label="演练责任人" ref="ylzrrid" prop="ylzrrid"> <el-form-item label="演练责任人" ref="ylzrr" prop="ylzrr">
<el-input :readonly="readonly" v-model="form.ylzrrid" ></el-input> <el-input :readonly="readonly" v-model="form.ylzrr" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="12">
<el-form-item label="演练时长" ref="ylsc" prop="ylsc"> <el-form-item label="演练时长" ref="ylsc" prop="ylsc">
<el-input :readonly="readonly" v-model="form.ylsc" ></el-input> <el-input :readonly="readonly" v-model="form.ylsc" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> </el-row>
<el-form-item label="主(协)办单位" ref="zbdwid" prop="zbdwid"> <el-row :gutter="24">
<el-input :readonly="readonly" v-model="form.zbdwid" ></el-input> <el-col :span="12">
</el-form-item> <el-form-item label="主(协)办单位" ref="zbdw" prop="zbdw">
</el-col> <el-input :readonly="readonly" v-model="form.zbdw" ></el-input>
<el-col :span="6">
<el-form-item label="演练负责人ID" ref="ylfzrid" prop="ylfzrid">
<el-input :readonly="readonly" v-model="form.ylfzrid" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="24">
<el-col :span="6"> <el-col :span="24">
<el-form-item label="质量负责人ID" ref="zlfzrid" prop="zlfzrid"> <el-form-item label="目标完成标准" ref="mbwcbz" prop="mbwcbz">
<el-input :readonly="readonly" v-model="form.zlfzrid" ></el-input> <el-input type='textarea' :readonly="readonly" v-model="form.mbwcbz" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> </el-row>
<el-form-item label="估计费用" ref="gjfy" prop="gjfy"> <el-row :gutter="24">
<el-input :readonly="readonly" v-model="form.gjfy" ></el-input> <el-col :span="12">
<el-form-item label="演练负责人" ref="ylfzr" prop="ylfzr">
<el-input :readonly="readonly" v-model="form.ylfzr" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz"> <el-form-item label="质量负责人" ref="zlfzr" prop="zlfzr">
<el-input :readonly="readonly" v-model="form.bz" ></el-input> <el-input :readonly="readonly" v-model="form.zlfzr" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> </el-row>
<el-form-item label="系统版本" ref="sysversion" prop="sysversion"> <el-row :gutter="24">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input> <el-col :span="12">
<el-form-item label="估计费用" ref="gjfy" prop="gjfy">
<el-input :readonly="readonly" v-model="form.gjfy" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
...@@ -104,7 +98,7 @@ ...@@ -104,7 +98,7 @@
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqglYjylEdit", name: "aqglYjyljhEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
...@@ -121,30 +115,30 @@ ...@@ -121,30 +115,30 @@
id:'', id:'',
//演练名称 //演练名称
name:'', name:'',
//分公司ID //演练组织单位
gsid:'', zzdw:'',
//演练组织单位ID
yldwid:'',
//演练计划ID
yljhid:'',
//培训人数 //培训人数
pxrs:'', pxrs:'',
//演练目标 //演练目标
ylmb:'', ylmb:'',
//演练方式 //演练方式
ylfs:'', ylfs:'',
//演练时间 //年度
ylrq:new Date().getTime(), year:'',
//季度
quarter:'',
//演练责任人 //演练责任人
ylzrrid:'', ylzrr:'',
//演练时长 //演练时长
ylsc:'', ylsc:'',
//主(协)办单位 //主(协)办单位
zbdwid:'', zbdw:'',
//演练负责人ID //目标完成标准
ylfzrid:'', mbwcbz:'',
//质量负责人ID //演练负责人
zlfzrid:'', ylfzr:'',
//质量负责人
zlfzr:'',
//估计费用 //估计费用
gjfy:'', gjfy:'',
//备注 //备注
......
<template> <template>
<div class="min_full"> <div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;">
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.ksrq' ></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">名称:</span> <span class="search-span">结束日期:</span>
<el-input v-model="queryParams.info"></el-input> <el-date-picker value-format="timestamp" v-model='queryParams.jsrq' ></el-date-picker>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton> <!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton> -->
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<WorkFlowButton :app='this'></WorkFlowButton>
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
...@@ -29,75 +40,96 @@ ...@@ -29,75 +40,96 @@
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
</TablePager> </TablePager>
</div> </div>
</div> </div>
</template> <div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="应急演练" name="first" >
<Report ref="report" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
<script> <script>
/* 引入需要的接口*/
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
doQuery, doQuery,
doAdd, doAdd,
doUpdate, doUpdate,
doDelete doDelete
} from '@/api/contingency/yjyl.js'; } from '@/api/contingency/yjyljh.js';
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import Report from './report.vue'
import { import {
tableMixin tableMixin
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'aqglYjyl', name: 'appVersion',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
}, },
data() { data() {
return { return {
activeName: 'first',
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
type: '', type: '',
DialogTitle: '', DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: '/aqgl/yjgl/yjyl', baseUrl: '/aqgl/yjgl/yjyljh',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
info: '' info: '',
ksrq:new Date().getTime()-1000*60*60*24*30,
jsrq:new Date().getTime()
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "演练名称", prop: "name", fieldType: "ftString",width:300}, {label: "年度", prop: "year", fieldType: "int"},
{label: "分公司ID", prop: "gsid", fieldType: "ftString",width:192}, //{label: "季度", prop: "quarter", fieldType: "ftString",width:80},
{label: "演练组织单位ID", prop: "yldwid", fieldType: "ftString",width:192}, {label: "季度", prop: "quarterName", fieldType: "ftString",width:80},
{label: "演练计划ID", prop: "yljhid", fieldType: "ftString",width:192}, {label: "演练名称", prop: "name", fieldType: "ftString",width:180},
{label: "演练组织单位", prop: "zzdw", fieldType: "ftString",width:180},
{label: "培训人数", prop: "pxrs", fieldType: "int"}, {label: "培训人数", prop: "pxrs", fieldType: "int"},
{label: "演练目标", prop: "ylmb", fieldType: "ftString",width:300}, {label: "演练目标", prop: "ylmb", fieldType: "ftString",width:180},
{label: "演练方式", prop: "ylfs", fieldType: "ftString",width:60}, {label: "演练方式", prop: "ylfs", fieldType: "ftString",width:100},
{label: "演练时间", prop: "ylrq", fieldType: "ftDateTime"}, {label: "演练责任人", prop: "ylzrr", fieldType: "ftString",width:180},
{label: "演练责任人", prop: "ylzrrid", fieldType: "ftString",width:192}, {label: "演练时长", prop: "ylsc", fieldType: "int"},
{label: "演练时长", prop: "ylsc", fieldType: "float"}, {label: "主(协)办单位", prop: "zbdw", fieldType: "ftString",width:180},
{label: "主(协)办单位", prop: "zbdwid", fieldType: "ftString",width:192}, {label: "目标完成标准", prop: "mbwcbz", fieldType: "ftString",width:180},
{label: "演练负责人ID", prop: "ylfzrid", fieldType: "ftString",width:192}, {label: "演练负责人", prop: "ylfzr", fieldType: "ftString",width:180},
{label: "质量负责人ID", prop: "zlfzrid", fieldType: "ftString",width:192}, {label: "质量负责人", prop: "zlfzr", fieldType: "ftString",width:180},
{label: "估计费用", prop: "gjfy", fieldType: "float"}, {label: "估计费用", prop: "gjfy", fieldType: "money"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:180},
{label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
}, },
methods: { methods: {
getRow: function(e) {
this.rowItem = e
this.$refs.report.queryParams.yljhid=e.id
this.$refs.report.$refs.TablePager.pageQuery()
},
handleClick(val){
console.log(val,'val')
},
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
...@@ -107,12 +139,14 @@ ...@@ -107,12 +139,14 @@
/* 删除操作*/ /* 删除操作*/
apiDelete: doDelete, apiDelete: doDelete,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { /* 启用停用*/
}
}, },
components: { components: {
Edit, Edit,
Report,
} }
...@@ -120,6 +154,8 @@ ...@@ -120,6 +154,8 @@
</script> </script>
<style scoped> <style scoped>
/deep/.el-tabs__item {
font-size: 13px;
color: #666;
}
</style> </style>
<template>
<div class="min_full" style="height: 72vh;overflow: auto;" v-show='queryParams.yljhid' >
<!-- 查询条件-->
<!-- <div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">分类:</span>
<el-input></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
</el-row>
</div> -->
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doUpdate,
doDelete,
doAdd
} from '@/api/contingency/yjyl.js';
/* edit页面*/
import Edit from './reportEdit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/rcgl/lzbg',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: 'aqgl/yjgl/yjyl',
/* 查询参数*/
queryParams: {
yljhid: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "演练名称", prop: "name", fieldType: "ftString",width:300},
{label: "分公司ID", prop: "gsid", fieldType: "ftString",width:192},
{label: "演练组织单位ID", prop: "yldwid", fieldType: "ftString",width:192},
{label: "演练计划ID", prop: "yljhid", fieldType: "ftString",width:192},
{label: "培训人数", prop: "pxrs", fieldType: "int"},
{label: "演练目标", prop: "ylmb", fieldType: "ftString",width:300},
{label: "演练方式", prop: "ylfs", fieldType: "ftString",width:60},
{label: "演练时间", prop: "ylrq", fieldType: "ftDateTime"},
{label: "演练责任人", prop: "ylzrrid", fieldType: "ftString",width:192},
{label: "演练时长", prop: "ylsc", fieldType: "float"},
{label: "主(协)办单位", prop: "zbdwid", fieldType: "ftString",width:192},
{label: "演练负责人ID", prop: "ylfzrid", fieldType: "ftString",width:192},
{label: "质量负责人ID", prop: "zlfzrid", fieldType: "ftString",width:192},
{label: "估计费用", prop: "gjfy", fieldType: "float"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="演练名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="分公司ID" ref="gsid" prop="gsid">
<el-input :readonly="readonly" v-model="form.gsid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练组织单位ID" ref="yldwid" prop="yldwid">
<el-input :readonly="readonly" v-model="form.yldwid" ></el-input>
</el-form-item>
</el-col>
<!--<el-col :span="6">-->
<!--<el-form-item label="演练计划ID" ref="yljhid" prop="yljhid">-->
<!--<el-input :readonly="readonly" v-model="form.yljhid" ></el-input>-->
<!--</el-form-item>-->
<!--</el-col>-->
</el-row>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="培训人数" ref="pxrs" prop="pxrs">
<el-input :readonly="readonly" v-model="form.pxrs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练目标" ref="ylmb" prop="ylmb">
<el-input :readonly="readonly" v-model="form.ylmb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练方式" ref="ylfs" prop="ylfs">
<el-input :readonly="readonly" v-model="form.ylfs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练时间" ref="ylrq" prop="ylrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ylrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="演练责任人" ref="ylzrrid" prop="ylzrrid">
<el-input :readonly="readonly" v-model="form.ylzrrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练时长" ref="ylsc" prop="ylsc">
<el-input :readonly="readonly" v-model="form.ylsc" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="主(协)办单位" ref="zbdwid" prop="zbdwid">
<el-input :readonly="readonly" v-model="form.zbdwid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练负责人ID" ref="ylfzrid" prop="ylfzrid">
<el-input :readonly="readonly" v-model="form.ylfzrid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="质量负责人ID" ref="zlfzrid" prop="zlfzrid">
<el-input :readonly="readonly" v-model="form.zlfzrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="估计费用" ref="gjfy" prop="gjfy">
<el-input :readonly="readonly" v-model="form.gjfy" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.form.yljhid=this.app.queryParams.yljhid
},
/* 组件名称*/
name: "aqglYjylEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//演练名称
name:'',
//分公司ID
gsid:'',
//演练组织单位ID
yldwid:'',
//演练计划ID
yljhid:'',
//培训人数
pxrs:'',
//演练目标
ylmb:'',
//演练方式
ylfs:'',
//演练时间
ylrq:new Date().getTime(),
//演练责任人
ylzrrid:'',
//演练时长
ylsc:'',
//主(协)办单位
zbdwid:'',
//演练负责人ID
ylfzrid:'',
//质量负责人ID
zlfzrid:'',
//估计费用
gjfy:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
...@@ -3,40 +3,95 @@ ...@@ -3,40 +3,95 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="6">
<el-form-item label="名称" ref="name" prop="name"> <el-form-item label="演练名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input> <el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="6">
<el-form-item label="分级" ref="fjid" prop="fjid"> <el-form-item label="分公司ID" ref="gsid" prop="gsid">
<RelSelect :readonly="readonly" style="width: 100%;" src='/aqgl/yjgl/yjya/init/glcj' filterable clearable :match="{value:'id',label:'name'}" v-model='form.fjid' ></RelSelect> <el-input :readonly="readonly" v-model="form.gsid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练组织单位ID" ref="yldwid" prop="yldwid">
<el-input :readonly="readonly" v-model="form.yldwid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练计划ID" ref="yljhid" prop="yljhid">
<el-input :readonly="readonly" v-model="form.yljhid" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="6">
<el-form-item label="内容" ref="content" prop="content"> <el-form-item label="培训人数" ref="pxrs" prop="pxrs">
<el-input :readonly="readonly" v-model="form.content" ></el-input> <el-input :readonly="readonly" v-model="form.pxrs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练目标" ref="ylmb" prop="ylmb">
<el-input :readonly="readonly" v-model="form.ylmb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练方式" ref="ylfs" prop="ylfs">
<el-input :readonly="readonly" v-model="form.ylfs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练时间" ref="ylrq" prop="ylrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ylrq" placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="6">
<el-form-item label="部门" ref="bmid" prop="bmid"> <el-form-item label="演练责任人" ref="ylzrrid" prop="ylzrrid">
<RelSelect :readonly="readonly" style="width: 100%;" src='/kzzx/bm/query' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect> <el-input :readonly="readonly" v-model="form.ylzrrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练时长" ref="ylsc" prop="ylsc">
<el-input :readonly="readonly" v-model="form.ylsc" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="主(协)办单位" ref="zbdwid" prop="zbdwid">
<el-input :readonly="readonly" v-model="form.zbdwid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="演练负责人ID" ref="ylfzrid" prop="ylfzrid">
<el-input :readonly="readonly" v-model="form.ylfzrid" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="6">
<el-form-item label="质量负责人ID" ref="zlfzrid" prop="zlfzrid">
<el-input :readonly="readonly" v-model="form.zlfzrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="估计费用" ref="gjfy" prop="gjfy">
<el-input :readonly="readonly" v-model="form.gjfy" ></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="备注" ref="bz" prop="bz"> <el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input> <el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
...@@ -49,7 +104,7 @@ ...@@ -49,7 +104,7 @@
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqglRcglYjyaEdit", name: "aqglYjylEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
...@@ -64,16 +119,34 @@ ...@@ -64,16 +119,34 @@
form: { form: {
//ID //ID
id:'', id:'',
//名称 //演练名称
name:'', name:'',
//内容 //分公司ID
content:'', gsid:'',
//部门ID //演练组织单位ID
bmid:'', yldwid:'',
//分级ID //演练计划ID
fjid:'', yljhid:'',
//序号 //培训人数
xh:'', pxrs:'',
//演练目标
ylmb:'',
//演练方式
ylfs:'',
//演练时间
ylrq:new Date().getTime(),
//演练责任人
ylzrrid:'',
//演练时长
ylsc:'',
//主(协)办单位
zbdwid:'',
//演练负责人ID
ylfzrid:'',
//质量负责人ID
zlfzrid:'',
//估计费用
gjfy:'',
//备注 //备注
bz:'', bz:'',
//维护人编码 //维护人编码
...@@ -93,14 +166,7 @@ ...@@ -93,14 +166,7 @@
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
} }
} }
}, },
......
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/contingency/yjyl.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglYjyl',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/yjgl/yjyl',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "演练名称", prop: "name", fieldType: "ftString",width:300},
{label: "分公司ID", prop: "gsid", fieldType: "ftString",width:192},
{label: "演练组织单位ID", prop: "yldwid", fieldType: "ftString",width:192},
{label: "演练计划ID", prop: "yljhid", fieldType: "ftString",width:192},
{label: "培训人数", prop: "pxrs", fieldType: "int"},
{label: "演练目标", prop: "ylmb", fieldType: "ftString",width:300},
{label: "演练方式", prop: "ylfs", fieldType: "ftString",width:60},
{label: "演练时间", prop: "ylrq", fieldType: "ftDateTime"},
{label: "演练责任人", prop: "ylzrrid", fieldType: "ftString",width:192},
{label: "演练时长", prop: "ylsc", fieldType: "float"},
{label: "主(协)办单位", prop: "zbdwid", fieldType: "ftString",width:192},
{label: "演练负责人ID", prop: "ylfzrid", fieldType: "ftString",width:192},
{label: "质量负责人ID", prop: "zlfzrid", fieldType: "ftString",width:192},
{label: "估计费用", prop: "gjfy", fieldType: "float"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
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