更新
This commit is contained in:
@ -40,7 +40,7 @@ import Pages from "@/components/aboutTable/Pages.vue";
|
||||
import Xq from "./xq.vue";
|
||||
import { qbcjSelectPage } from "@/api/Intelligence.js";
|
||||
import {xxcjSelectPage,xxcjXxzsx} from '@/api/xxcj.js'
|
||||
import { ref, reactive, getCurrentInstance, watch } from "vue";
|
||||
import { ref, reactive, getCurrentInstance, watch, onMounted } from "vue";
|
||||
import { useRoute,useRouter } from 'vue-router'
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@ -102,29 +102,26 @@ const pageData = reactive({
|
||||
{ label: "上报人姓名", prop: "xssbr" },
|
||||
{ label: "情报编号", prop: "xsBh" },
|
||||
{ label: "情报标题", prop: "qbmc" },
|
||||
// { label: "情报类型", prop: "qblx", showSolt: true },
|
||||
// { label: "情报来源", prop: "qbly", showSolt: true },
|
||||
{ label: "情报上报时间", prop: "sxsbsj" ,watch:'300'},
|
||||
// { label: "指向地点", prop: "zxdz" },
|
||||
{ label: "情报内容", prop: "qbnr" },
|
||||
],
|
||||
tableHeight: "50vh",
|
||||
tableHeight: "45vh",
|
||||
});
|
||||
const parameter = ref()
|
||||
|
||||
onMounted(() => {
|
||||
changePage()
|
||||
})
|
||||
|
||||
const onSearch = (val) => {
|
||||
const promes = {
|
||||
startTime: val.startTime && val.startTime.length > 0 ? val.startTime[0] : '',
|
||||
endTime: val.startTime && val.startTime.length > 0 ? val.startTime[1] : '',
|
||||
startTime: val.startTime ? val.startTime[0] : '',
|
||||
endTime: val.endTime ? val.endTime[1] : '',
|
||||
}
|
||||
parameter.value = { ...val, ...promes }
|
||||
pageData.pageConfiger.pageCurrent = 1;
|
||||
changePage()
|
||||
}
|
||||
watch(() => props.modelValue, (val) => {
|
||||
if (val) {
|
||||
changePage()
|
||||
}
|
||||
})
|
||||
const changePage = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...parameter.value,qbjb:'01' };
|
||||
|
||||
Reference in New Issue
Block a user