1.修复误删除代码导致选择框无了

master
董哲奇 1 month ago
parent f61fe13eea
commit 5627d6af54

@ -162,8 +162,8 @@ export default {
filterRender: { name: 'FilterCombination' } filterRender: { name: 'FilterCombination' }
}, },
{ {
field: 'zl', field: 'zl',ormatter: ['dictFormat', 'ZLLB'],
title: '组立',editRender: { name: '$select',options: [{label: '小组立',value:'X'},{label: '中大组立',value:'D'}], props: {clearable: true} }, title: '组立',editRender: { name: '$select',options: [], props: {clearable: true} },
width: 120, width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' } filterRender: { name: 'FilterCombination' }
@ -237,7 +237,6 @@ export default {
}, },
initBase(){ initBase(){
getPgdBase({}).then(res=>{ getPgdBase({}).then(res=>{
this.dictData = res.data
this.dictData = res.data this.dictData = res.data
this.projectData=res.data.cbbm this.projectData=res.data.cbbm
this.projectData1=res.data.cbbm this.projectData1=res.data.cbbm
@ -253,6 +252,14 @@ export default {
select.editRender.options=chList select.editRender.options=chList
const sldw = this.$refs.xGrid.getColumnByField('kw') const sldw = this.$refs.xGrid.getColumnByField('kw')
sldw.editRender.options = this.dictData.qgkw sldw.editRender.options = this.dictData.qgkw
const _zlList=JSON.parse(window.localStorage.getItem("ZLLB"))
const zlList=[]
_zlList.forEach(item=>{
zlList.push({label:item.bmsm,value:item.bm})
})
const zl = this.$refs.xGrid.getColumnByField('zl')
zl.editRender.options = zlList
}) })
getBFangDwxx().then((res)=>{ getBFangDwxx().then((res)=>{

Loading…
Cancel
Save