Commit 1b1ea748 by 李君

优化

1 parent 0c5891f2
......@@ -14,7 +14,7 @@ const axiosInstance = axios.create(
// 请求拦截器
axiosInstance.interceptors.request.use(
config => {
// Cookies.set('atoken','acea42b1-2da3-4cbb-b2b0-ed6603cb6448')
// Cookies.set('atoken','e0386268-5563-442d-8ef8-af92580d6903')
if(!Cookies.get('atoken')){
ElMessage({
message: `登录过期,请重新登录`,
......
......@@ -63,7 +63,7 @@
<a-input-number v-model:value="queryForm.maxPic" :min="0" style="width: 100px"/>
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="confirmSearch" :loading="isLoading">查询</a-button>
<a-button type="primary" @click="clickSearch" :loading="isLoading">查询</a-button>
</a-form-item>
</a-form>
<div v-loading="isLoading">
......@@ -354,7 +354,10 @@
}
)
}
const clickSearch = function() {
pageNum.value = 1
confirmSearch()
}
const confirmSearch = function() {
const rawData = toRaw(queryForm)
if(rawData.minPic>rawData.maxPic){
......@@ -670,6 +673,7 @@
onPlazaChange,
onZoneChange,
confirmSearch,
clickSearch,
formatDirection,
formatPersonType,
dragStart,
......
......@@ -59,7 +59,7 @@
<a-time-picker v-model:value="queryForm.endTime" style="width: 100px" />
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="confirmSearch" :loading="isLoading">查询</a-button>
<a-button type="primary" @click="clickSearch" :loading="isLoading">查询</a-button>
</a-form-item>
</a-form>
<div v-loading="isLoading">
......@@ -407,7 +407,10 @@
}
)
}
const clickSearch = function() {
pageNum.value = 1
confirmSearch()
}
const confirmSearch = function() {
isLoading.value = true
const rawData = toRaw(queryForm)
......@@ -715,7 +718,8 @@
openImage,
deleteImage,
addImage,
fullScreen
fullScreen,
clickSearch
}
}
}
......
......@@ -96,7 +96,7 @@
<a-input v-model:value="queryForm.maxPic" style="width: 129px"/>
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="confirmSearch" :loading="isLoading">查询</a-button>
<a-button type="primary" @click="clickSearch" :loading="isLoading">查询</a-button>
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="comparativeFun">特征对比</a-button>
......@@ -396,7 +396,10 @@ export default {
}
)
}
const clickSearch = function() {
pageNum.value = 1
confirmSearch()
}
const confirmSearch = function() {
isLoading.value = true
const rawData = toRaw(queryForm)
......@@ -456,6 +459,7 @@ export default {
})
dataList.value = r.data.persons
total.value = r.data.pageNum
document.getElementsByClassName('resultContent')[0].scrollTop = 0
}
)
}
......@@ -678,6 +682,7 @@ export default {
singleComparativeFun,
formatGender,
downloadTrajectoryFile,
clickSearch,
// ref
// imgModelRef,
DetailDialogRef,
......
......@@ -89,7 +89,7 @@
<a-time-picker v-model:value="queryForm.endTime" style="width: 140px"/>
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="confirmSearch" :loading="isLoading">查询</a-button>
<a-button type="primary" @click="clickSearch" :loading="isLoading">查询</a-button>
</a-form-item>
<a-form-item style="padding: 5px 0">
<a-button type="primary" @click="comparativeFun">特征对比验证</a-button>
......@@ -416,6 +416,7 @@ export default {
})
dataList.value = r.data.persons
total.value = r.data.pageNum
document.getElementsByClassName('resultContent')[0].scrollTop = 0
}
)
}
......@@ -498,6 +499,10 @@ export default {
}
DetailDialogRef.value.initDialog(currobj.value,parmas);
}
const clickSearch = function() {
pageNum.value = 1
confirmSearch()
}
const contentHeight = ref(0)
const __main = function() {
getAccountList()
......@@ -536,6 +541,7 @@ export default {
handleClick,
comparativeFun,
formatGender,
clickSearch,
// ref
DetailDialogRef,
imgModelRef
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!