Commit 942b45b0 authored by 李苏's avatar 李苏 💬

安全文档改结构传bmid为pid

parent 8195726b
<template>
<div class="min_full" style="overflow: auto;height: 140vh;">
<MainIndex :vMain='this' ref="mainIndex"></MainIndex>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;height: 140vh;">
<TreeBase :app='this' @selected='selectedTree'></TreeBase>
</div>
<div class="min_full" style="overflow: auto;height: 140vh;width: calc(100% - 200px)">
<MainIndex :vMain='this' ref="mainIndex" ></MainIndex>
<LessIndex :vMain='this' ref="lessIndex" ></LessIndex>
</div>
</div>
</template>
<script>
import {
QueryUser,
QueryApptype,
AddUser,
DeleteUser,
UpdateUser,
QtUser,
QueryBm,
Setcanlogin,
ResetPassword
} from "common/src/api/system/dmgSystem.js";
import MainIndex from './mainIndex.vue'
import LessIndex from './lessIndex.vue'
export default {
......@@ -16,8 +32,20 @@
},
data() {
return{
treeTitle: '部门列表',
treeDefaultProps: {
children: 'children',
label: 'bmmc'
},
}
},
methods:{
selectedTree(val){
this.$refs.mainIndex.queryParams.pid=val.id
this.$refs.mainIndex.$refs['TablePager'].pageQuery({setFirstCurrent:true})
},
apiTreeQuery: QueryBm,
}
}
......
......@@ -3,11 +3,11 @@
<!-- 填写表单内容,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="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" fieldType='int'></el-input>
<el-col :span="24">
<el-form-item label="组织" ref="pid" prop="pid">
<RelSelect :readonly="readonly" filterable clearable style="width: 100%;" src='kzzx/bm/query' :match="{value:'id',label:'bmmc'}" v-model='form.pid' ></RelSelect>
</el-form-item>
</el-col> -->
</el-col>
<el-col :span="24">
<el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input>
......@@ -30,7 +30,7 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.systemType = JSON.parse(JSON.stringify(this.app.systemType))
this.form.pid=this.app.queryParams.pid
},
/* 组件名称*/
name: 'mainEdit',
......@@ -44,6 +44,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
pid:'',
xh: '',
name: '',
bz: ""
......
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