updated
This commit is contained in:
parent
7b8dfb496f
commit
f6cef8c061
|
|
@ -32,7 +32,7 @@
|
||||||
<div class="left4_top">
|
<div class="left4_top">
|
||||||
<p @click="openList(item, 'list')"
|
<p @click="openList(item, 'list')"
|
||||||
style="font-weight: 400;font-size: 14px;cursor: pointer;color: #409eff">{{ item.dataset_name }} <span
|
style="font-weight: 400;font-size: 14px;cursor: pointer;color: #409eff">{{ item.dataset_name }} <span
|
||||||
class="mileage">{{ item.file_total }}</span></p>
|
class="mileage sample-file-total">{{ item.file_total }}</span></p>
|
||||||
<span class="org">{{ item.create_time }}</span>
|
<span class="org">{{ item.create_time }}</span>
|
||||||
</div>
|
</div>
|
||||||
<ul v-show="currenId == item.tsy_id && fold">
|
<ul v-show="currenId == item.tsy_id && fold">
|
||||||
|
|
@ -472,6 +472,18 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 数据样品集:仅保留潜次序号以 FDZ、SY 开头的记录
|
||||||
|
* @param {Array<Object>} list 搜索结果列表
|
||||||
|
* @returns {Array<Object>}
|
||||||
|
*/
|
||||||
|
filterSampleListByDivingSn(list) {
|
||||||
|
const allowedPrefixes = ['FDZ', 'SY']
|
||||||
|
return list.filter(item => {
|
||||||
|
const divingSn = String(item.diving_sn || '').trim().toUpperCase()
|
||||||
|
return allowedPrefixes.some(prefix => divingSn.startsWith(prefix))
|
||||||
|
})
|
||||||
|
},
|
||||||
// 添加高亮图层
|
// 添加高亮图层
|
||||||
addHighlightLayer(voyageName, i) {
|
addHighlightLayer(voyageName, i) {
|
||||||
Vue.config.maps["dataSearchMap"].setPaintProperty(`vector-${voyageName}-line`, "line-width", 4);
|
Vue.config.maps["dataSearchMap"].setPaintProperty(`vector-${voyageName}-line`, "line-width", 4);
|
||||||
|
|
@ -520,10 +532,14 @@ export default {
|
||||||
},
|
},
|
||||||
// 获取数据样品集坐标点位
|
// 获取数据样品集坐标点位
|
||||||
getDataPoints(arr) {
|
getDataPoints(arr) {
|
||||||
if (!arr.length) return false
|
const filteredArr = this.filterSampleListByDivingSn(arr)
|
||||||
|
if (!filteredArr.length) {
|
||||||
|
this.dataList = []
|
||||||
|
return false
|
||||||
|
}
|
||||||
let i = 0;
|
let i = 0;
|
||||||
const colors = ColorGenerator.generateDivergingColors(arr.length);
|
const colors = ColorGenerator.generateDivergingColors(filteredArr.length);
|
||||||
arr.forEach(item => {
|
filteredArr.forEach(item => {
|
||||||
// 加载测线/站位所在航次的轨迹
|
// 加载测线/站位所在航次的轨迹
|
||||||
// loadVectorLayer({layerId:item.voyage_name, features:["line", "symbol"], colors:[colors[i], colors[i]], visibility:"visible", mapId:"dataSearchMap", workspace:"dsds"});
|
// loadVectorLayer({layerId:item.voyage_name, features:["line", "symbol"], colors:[colors[i], colors[i]], visibility:"visible", mapId:"dataSearchMap", workspace:"dsds"});
|
||||||
// 添加测线/站位图层
|
// 添加测线/站位图层
|
||||||
|
|
@ -534,7 +550,7 @@ export default {
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
})
|
})
|
||||||
const voyageList = arr
|
const voyageList = filteredArr
|
||||||
voyageList.map(item => {
|
voyageList.map(item => {
|
||||||
if (item.job_type === '测线作业') {
|
if (item.job_type === '测线作业') {
|
||||||
// 获取样品列表
|
// 获取样品列表
|
||||||
|
|
@ -770,6 +786,15 @@ export default {
|
||||||
>.left4 {
|
>.left4 {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
|
||||||
|
/** 数据样品集:文件数量紧跟数据集名称,字号加大 */
|
||||||
|
.left4_1 .left4_top p .sample-file-total {
|
||||||
|
float: none;
|
||||||
|
margin-left: 100px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 数据样品集:设备类型、数据样品类型各占一整行 */
|
/** 数据样品集:设备类型、数据样品类型各占一整行 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue