2.取消月度计划编制的选择列 3.优化代码
@ -8,9 +8,9 @@
<el-select v-model="queryParam.czbh" filterable placeholder="工程编号" @change="czbhChange" >
<el-option
v-for="item in projectData"
:key="item.cbbm"
:label="item.cbbm"
:value="item.cbbm">
:key="item.czbh"
:label="item.czbh"
:value="item.czbh">
</el-option>
</el-select>
</el-form-item>
@ -197,10 +197,10 @@ export default {
const tmpList=[]
const data=[]
for (const item of response.data.czbhs) {
if (tmpList.includes(item.cbbm)){
if (tmpList.includes(item.czbh)){
continue
}
tmpList.push(item.cbbm)
tmpList.push(item.czbh)
data.push(item)
this.projectData = data
@ -1215,7 +1215,6 @@ export default {
},
],*/
tableColumn:[
{ type: 'checkbox', width: 50 ,},
{ type: 'seq', width: 60, title: '序号',fixed: "left"},
{ field: 'dcCh', title: '船号',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
@ -69,7 +69,7 @@ export default {
search(){
this.queryParam.dcCh=this.$refs.projectSelectRef.getDcch()
this.$emit('search')
this.$emit('search',this.queryParam)
getQueryParam(){
return this.queryParam