Commit fe2d88ed authored by 李苏's avatar 李苏 💬

修改功能字段

parent 7fe173ff
......@@ -7,7 +7,7 @@
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
<el-input v-model="queryParams.name"></el-input>
</div>
</el-col>
</el-row>
......@@ -69,7 +69,7 @@
baseUrl: '/aqgl/rcgl/ufcgzylx',
/* 查询参数*/
queryParams: {
info: ''
name: ''
},
/* 表格标题对应参数*/
tableTitle: [
......
import request from 'common/src/utils/request'
/* query */
/*query */
export function doQuery(query) {
return request({
url: '/aqgl/zywsgl/ugrzyjkda/query',
......@@ -8,7 +8,7 @@ export function doQuery(query) {
data: query||{}
})
}
/* 更新 */
/*更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/zywsgl/ugrzyjkda/update',
......@@ -31,11 +31,23 @@ export function doDelete(query) {
})
}
export function doInitSyfw(query) {
return request({
url: '/aqgl/zywsgl/ugrzyjkda/init/syfw',
method: 'post',
data: query||{}
})
}
export function doQuerytree(query) {
export function initZt(query) {
return request({
url: '/aqgl/zywsgl/ugrzyjkda/query/tree',
url: '/aqgl/zywsgl/ugrzyjkda/init/zt',
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="100px" :rules="rules">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="职工" ref="userid" prop="userid">
<!-- <el-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<personSelector :label="form.username||form.userid||'暂无'" @selected='userSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="所属公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="健康档案内容" ref="jkdanr" prop="jkdanr" >
<el-input type="textarea" v-model='form.jkdanr' rows="5" >
</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/rcglYgczxxEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
gsid:'',
userName:'',
//ID
id:'',
//用户编码
userid:'',
jkdanr:''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
gsid: [{required: true,trigger: 'blur'}, ],
userid: [{required: true,trigger: 'blur'}, ],
}
}
},
methods: {
userSelected(row){
this.form.userid=row.id
}
}
}
</script>
<style scoped lang="scss">
</style>
This diff is collapsed.
<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="title" prop="title">
<el-input :readonly="readonly" v-model="form.title"></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:'',
title: '',
sytk: '',
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>
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