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

安全文档改结构传bmid为pid

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