Commit 114541f0 authored by 李苏's avatar 李苏 💬

调整

parent 624fcb97
......@@ -2,13 +2,14 @@
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
......@@ -45,27 +46,42 @@
{
label: '材质',
prop: 'cz',
span: 24,
span: 12,
type: 'input',
required:true
required: true
},
{
label: '异物产生原因',
prop: 'ywcsyy',
span: 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jxgl/ujxzyff/init/ywcsyy",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '异物地点',
prop: 'ywdd',
span: 24,
type: 'input',
required:true,
required: true,
},
{
label: '异物排查方法',
prop: 'ywpcff',
span: 24,
type: 'textarea',
required:true,
required: true,
},
{
label: '异物产生原因',
prop: 'ywcsyy',
label: '异物产生细节',
prop: 'ywcsxj',
span: 24,
type: 'textarea',
},
......
......@@ -67,6 +67,12 @@
fieldType: "ftString",
width: 300
},
{
label: "异物产生细节",
prop: "ywcsxj",
fieldType: "ftString",
width: 300
},
{
label: "备注",
prop: "bz",
......
......@@ -205,7 +205,21 @@
tree.loadAllNode() */
},
selectedTree: function(e) {
console.log(e)
let arr=this.$refs.basePage.$refs.TablePager.newGridList
if(e.id=='root'){
/* 隐藏材质列*/
arr.forEach(item=>{
if(item.prop=='cz'){
item.show=false
}
})
}else{
arr.forEach(item=>{
if(item.prop=='cz'){
item.show=true
}
})
}
this.$refs.basePage.treeInfo = e
this.$refs.basePage.queryParams.pid = e.id
this.$refs.basePage.refresh()
......
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