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

调整

parent 624fcb97
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <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-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this"> <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-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import { import {
editMixin editMixin
} from 'common' } from 'common'
...@@ -45,27 +46,42 @@ ...@@ -45,27 +46,42 @@
{ {
label: '材质', label: '材质',
prop: 'cz', prop: 'cz',
span: 24, span: 12,
type: 'input', 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: '异物地点', label: '异物地点',
prop: 'ywdd', prop: 'ywdd',
span: 24, span: 24,
type: 'input', type: 'input',
required:true, required: true,
}, },
{ {
label: '异物排查方法', label: '异物排查方法',
prop: 'ywpcff', prop: 'ywpcff',
span: 24, span: 24,
type: 'textarea', type: 'textarea',
required:true, required: true,
}, },
{ {
label: '异物产生原因', label: '异物产生细节',
prop: 'ywcsyy', prop: 'ywcsxj',
span: 24, span: 24,
type: 'textarea', type: 'textarea',
}, },
......
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
fieldType: "ftString", fieldType: "ftString",
width: 300 width: 300
}, },
{
label: "异物产生细节",
prop: "ywcsxj",
fieldType: "ftString",
width: 300
},
{ {
label: "备注", label: "备注",
prop: "bz", prop: "bz",
......
...@@ -205,7 +205,21 @@ ...@@ -205,7 +205,21 @@
tree.loadAllNode() */ tree.loadAllNode() */
}, },
selectedTree: function(e) { 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.treeInfo = e
this.$refs.basePage.queryParams.pid = e.id this.$refs.basePage.queryParams.pid = e.id
this.$refs.basePage.refresh() 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