|
@ -22,7 +22,13 @@ |
|
|
</ButtonGradient> |
|
|
</ButtonGradient> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '90px' }" |
|
|
<InputSearch |
|
|
|
|
|
style="width: 402px;" |
|
|
|
|
|
:formList="searchFormList" |
|
|
|
|
|
:formConfigOptions="{ labelWidth: '90px' }" |
|
|
|
|
|
placeholder="请输入线路名称,回车搜索" |
|
|
|
|
|
type="input" |
|
|
|
|
|
:params="params" |
|
|
@handleSearch="handleSearch" /> |
|
|
@handleSearch="handleSearch" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@ -120,7 +126,8 @@ export default { |
|
|
data: [], |
|
|
data: [], |
|
|
dialogData: null, |
|
|
dialogData: null, |
|
|
editEventInformationDialogVisible: false, |
|
|
editEventInformationDialogVisible: false, |
|
|
isFirst: true |
|
|
isFirst: true, |
|
|
|
|
|
params: "sectionName", |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -134,11 +141,23 @@ export default { |
|
|
...this.getPagination() |
|
|
...this.getPagination() |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (this.searchData?.startStakeMark) result.startStakeMark = `K${this.searchData?.startStakeMark}`; |
|
|
result.startStakeMark = this.joinStakeMark(this.searchData?.startStakeMark); |
|
|
if (this.searchData?.endStakeMark) result.endStakeMark = `K${this.searchData?.endStakeMark}`; |
|
|
result.endStakeMark = this.joinStakeMark(this.searchData?.endStakeMark); |
|
|
|
|
|
|
|
|
return result |
|
|
return result |
|
|
}, |
|
|
}, |
|
|
|
|
|
//拼接桩号搜索条件 |
|
|
|
|
|
joinStakeMark(datas) { |
|
|
|
|
|
console.log("stakeMarks:",datas); |
|
|
|
|
|
let stakeMark = null; |
|
|
|
|
|
if (datas && datas[0]) { |
|
|
|
|
|
if(!datas[1]){ |
|
|
|
|
|
datas[1] = 0; |
|
|
|
|
|
} |
|
|
|
|
|
stakeMark = `K${datas[0]}+${datas[1]}`; |
|
|
|
|
|
} |
|
|
|
|
|
return stakeMark; |
|
|
|
|
|
}, |
|
|
async handleDelete(data) { |
|
|
async handleDelete(data) { |
|
|
await confirm({ message: "是否要删除该辖段信息?" }); |
|
|
await confirm({ message: "是否要删除该辖段信息?" }); |
|
|
|
|
|
|
|
|