Commit 0edcae6f by tianlonglong

增加提示信息

1 parent 789321b3
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"dev": "vue-cli-service serve" "dev": "vue-cli-service serve"
}, },
......
...@@ -142,9 +142,9 @@ ...@@ -142,9 +142,9 @@
<el-table :data="item.hitRecords" style="width: 100%" border> <el-table :data="item.hitRecords" style="width: 100%" border>
<el-table-column type="index" label="序号" width="80"> <el-table-column type="index" label="序号" width="80">
</el-table-column> </el-table-column>
<el-table-column prop="counttime" label="时间" > <el-table-column prop="counttime" label="时间">
</el-table-column> </el-table-column>
<el-table-column prop="gateName" label="监控点名称" > <el-table-column prop="gateName" label="监控点名称">
</el-table-column> </el-table-column>
<el-table-column prop="direction" label="方向"> <el-table-column prop="direction" label="方向">
</el-table-column> </el-table-column>
...@@ -187,9 +187,7 @@ export default { ...@@ -187,9 +187,7 @@ export default {
setup() { setup() {
const accountList = ref([]); const accountList = ref([]);
const plazaList = ref([]); const plazaList = ref([]);
const tableDataList = ref([ const tableDataList = ref([]);
]);
const selectList = ref([]); const selectList = ref([]);
const router = useRouter(); const router = useRouter();
const isShow = ref(true); const isShow = ref(true);
...@@ -509,6 +507,13 @@ export default { ...@@ -509,6 +507,13 @@ export default {
}); });
identifyResultList.value = r.data; identifyResultList.value = r.data;
total_identify.value = r.data.total; total_identify.value = r.data.total;
} else {
// identifyResultList.value = [];
// total_identify.value =0;
ElMessage({
message: r.msg_info,
type: "warning",
});
} }
}); });
}; };
...@@ -617,7 +622,7 @@ export default { ...@@ -617,7 +622,7 @@ export default {
selectList.value = val; selectList.value = val;
console.log(val); console.log(val);
}; };
const formatUrlList=ref([]) const formatUrlList = ref([]);
const selectReport = () => { const selectReport = () => {
if (selectList.value.length <= 0) { if (selectList.value.length <= 0) {
return ElMessage({ return ElMessage({
...@@ -627,29 +632,29 @@ export default { ...@@ -627,29 +632,29 @@ export default {
} }
isShow.value = false; isShow.value = false;
let datas=selectList.value.map(item=>item.id).join(',') let datas = selectList.value.map((item) => item.id).join(",");
FeatureMatchingAccuracyApi.getfeatureReport({ FeatureMatchingAccuracyApi.getfeatureReport({
idList:datas idList: datas,
}).then(res=>{ }).then((res) => {
tableDataList.value=res tableDataList.value = res;
// console.log(tableDataList.value) // console.log(tableDataList.value)
// formatUrlList.value=tableDataList.value.picList.map(item=>{ // formatUrlList.value=tableDataList.value.picList.map(item=>{
// return window._baseImgUrl + "tool/picture/" + item // return window._baseImgUrl + "tool/picture/" + item
// }) // })
// console.log(formatUrlList.value) // console.log(formatUrlList.value)
}) });
}; };
const returns = () => { const returns = () => {
console.log(isShow.value); console.log(isShow.value);
isShow.value = true; isShow.value = true;
}; };
const formatUrl=(url)=>{ const formatUrl = (url) => {
return window._baseImgUrl + "tool/picture/" + url; return window._baseImgUrl + "tool/picture/" + url;
} };
const formatUrl1=(url)=>{ const formatUrl1 = (url) => {
return window._baseImgUrl + "picture/" + url; return window._baseImgUrl + "picture/" + url;
} };
return { return {
// sequence // sequence
tableDataList, tableDataList,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!