Commit 4eb7da53 authored by 黄自鹏's avatar 黄自鹏

Merge branch 'master' of gitlab.gavelinfo.com:lisu/sgaqgl-vue

parents 22018f3b e69db8f7
import request from 'common/src/utils/request'
/* 查询 */
export function doQuery(query) {
return request({
url: '/aqgl/rcgl/fcghd/query',
method: 'post',
data: query||{}
})
}
/* 更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/rcgl/fcghd/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/rcgl/fcghd/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/rcgl/fcghd/delete',
method: 'post',
data: query||{}
})
}
export function doInitFlid(query) {
return request({
url: '/aqgl/rcgl/fcghd/init/zylx',
method: 'post',
data: query||{}
})
}
......@@ -663,7 +663,19 @@ export const powerRoutes=[
name:'nros',
path:"nros"
},
{
component:'daily/fcghd/index',
hidden:false,
meta:{
"title": "非常规作业活动",
"icon": "",
"noCache": false,
"link": null,
"mkid":905100300,
},
name:'fcghd',
path:"fcghd"
},
]
},
/*履职管理*/
......
......@@ -88,17 +88,17 @@
tableTitle: [
{label: "演练名称", prop: "name", fieldType: "ftString",width:300},
{label: "分公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "演练组织单位", prop: "yldwid", fieldType: "ftString",width:192},
{label: "演练计划", prop: "yljhName", fieldType: "ftString",width:192},
{label: "演练组织单位", prop: "yldwName", fieldType: "ftString",width:192},
// {label: "演练计划", prop: "yljhName", 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: "ylfs", fieldType: "ftString",width:160},
{label: "演练时间", prop: "ylrq", fieldType: "ftDateTime"},
{label: "演练责任人", prop: "ylzrrid", fieldType: "ftString",width:192},
{label: "演练责任人", prop: "ylzrrName", fieldType: "ftString",width:192},
{label: "演练时长", prop: "ylsc", fieldType: "float"},
{label: "主(协)办单位", prop: "zbdwid", fieldType: "ftString",width:192},
{label: "演练负责人", prop: "ylfzrid", fieldType: "ftString",width:192},
{label: "质量负责人", prop: "zlfzrid", fieldType: "ftString",width:192},
{label: "演练负责人", prop: "ylfzrName", fieldType: "ftString",width:192},
{label: "质量负责人", prop: "zlfzrName", fieldType: "ftString",width:192},
{label: "估计费用", prop: "gjfy", fieldType: "float"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
......
......@@ -15,9 +15,12 @@
</el-col> -->
<el-col :span="12">
<el-form-item label="演练组织单位" ref="yldwid" prop="yldwid">
<el-input :readonly="readonly" v-model="form.yldwid" ></el-input>
<!-- <el-input :readonly="readonly" v-model="form.yldwid" ></el-input> -->
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.yldwid' ></RelSelect>
</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>-->
......@@ -51,7 +54,8 @@
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="演练责任人" ref="ylzrrid" prop="ylzrrid">
<el-input :readonly="readonly" v-model="form.ylzrrid" ></el-input>
<personSelector :label="form.ylzrrName||'暂无'" @selected='ylzrrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.ylzrrid" ></el-input> -->
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -66,19 +70,21 @@
</el-col>
<el-col :span="12">
<el-form-item label="演练负责人" ref="ylfzrid" prop="ylfzrid">
<el-input :readonly="readonly" v-model="form.ylfzrid" ></el-input>
<personSelector :label="form.ylfzrName||'暂无'" @selected='ylfzrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.ylfzrid" ></el-input> -->
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="质量负责人" ref="zlfzrid" prop="zlfzrid">
<el-input :readonly="readonly" v-model="form.zlfzrid" ></el-input>
<personSelector :label="form.zlfzrName||'暂无'" @selected='zlfzrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.zlfzrid" ></el-input> -->
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="估计费用(元)" ref="gjfy" prop="gjfy">
<el-input :readonly="readonly" v-model="form.gjfy" ></el-input>
<el-input type='number' :readonly="readonly" v-model="form.gjfy" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
......@@ -171,6 +177,15 @@
}
},
methods: {
ylzrrSelected(row){
this.form.ylzrrid=row.id
},
ylfzrSelected(row){
this.form.ylfzrid=row.id
},
zlfzrSelected(row){
this.form.zlfzrid=row.id
}
}
}
......
<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="12">
<el-form-item label="分类ID" ref="flid" prop="flid">
<el-input :readonly="readonly" v-model="form.flid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="活动内容" ref="hdnr" prop="hdnr">
<el-input :readonly="readonly" v-model="form.hdnr" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="活动日期" ref="hdrq" prop="hdrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.hdrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<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="12">
<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() {
},
/* 组件名称*/
name: "aqgl/rcglFcghdEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//分类ID
flid:'',
//活动内容
hdnr:'',
//活动日期
hdrq:new Date().getTime(),
//附件数
attachcount:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<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/aqgl/rcgl/fcghd.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/rcglFcghd',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/rcgl/fcghd',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "分类ID", prop: "flid", fieldType: "ftString",width:60},
{label: "活动内容", prop: "hdnr", fieldType: "ftString",width:300},
{label: "活动日期", prop: "hdrq", fieldType: "ftDateTime"},
{label: "附件数", prop: "attachcount", fieldType: "int"},
{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