|
|
@ -22,7 +22,13 @@ |
|
|
|
</ButtonGradient> |
|
|
|
</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" /> |
|
|
|
</div> |
|
|
|
|
|
|
@ -120,7 +126,8 @@ export default { |
|
|
|
data: [], |
|
|
|
dialogData: null, |
|
|
|
editEventInformationDialogVisible: false, |
|
|
|
isFirst: true |
|
|
|
isFirst: true, |
|
|
|
params: "sectionName", |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -134,11 +141,23 @@ export default { |
|
|
|
...this.getPagination() |
|
|
|
}; |
|
|
|
|
|
|
|
if (this.searchData?.startStakeMark) result.startStakeMark = `K${this.searchData?.startStakeMark}`; |
|
|
|
if (this.searchData?.endStakeMark) result.endStakeMark = `K${this.searchData?.endStakeMark}`; |
|
|
|
result.startStakeMark = this.joinStakeMark(this.searchData?.startStakeMark); |
|
|
|
result.endStakeMark = this.joinStakeMark(this.searchData?.endStakeMark); |
|
|
|
|
|
|
|
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) { |
|
|
|
await confirm({ message: "是否要删除该辖段信息?" }); |
|
|
|
|
|
|
|