Commit ca4dc500 authored by liwei's avatar liwei

修改了Ai工作站的管道温度bug

parent 2bd65778
...@@ -66,7 +66,7 @@ function getDataNew(item){ ...@@ -66,7 +66,7 @@ function getDataNew(item){
Page.rows = res.pageSize Page.rows = res.pageSize
}) })
} }
getData() // getData()
function getData(){ function getData(){
const item = reactive({ const item = reactive({
page: Page.page, page: Page.page,
...@@ -94,6 +94,7 @@ function getData(){ ...@@ -94,6 +94,7 @@ function getData(){
Page.rows = res.pageSize Page.rows = res.pageSize
}) })
} }
function getDataByParams(){ function getDataByParams(){
const item = { const item = {
page: Page.page, page: Page.page,
...@@ -137,6 +138,10 @@ defineExpose({ ...@@ -137,6 +138,10 @@ defineExpose({
const sortNewData = ref(new Map()) const sortNewData = ref(new Map())
let sortMapData = reactive(new Map()) let sortMapData = reactive(new Map())
let sortList = reactive([]) let sortList = reactive([])
//初始化
getDataByParams()
// 处理排序事件 // 处理排序事件
const handleSortChange = (data) => { const handleSortChange = (data) => {
sortList = [] sortList = []
......
...@@ -71,10 +71,9 @@ function getDataNew(item) { ...@@ -71,10 +71,9 @@ function getDataNew(item) {
}) })
} }
getData() // getData()
function getData() { function getData() {
console.log(222222222)
const item = reactive({ const item = reactive({
page: historyPage.page, page: historyPage.page,
size: historyPage.rows, size: historyPage.rows,
...@@ -194,6 +193,8 @@ const handleSortChange = (data) => { ...@@ -194,6 +193,8 @@ const handleSortChange = (data) => {
}) })
}; };
getDataByParams()
/**序号自增*/ /**序号自增*/
function Nindex(index) { function Nindex(index) {
// 当前页数 - 1 * 每页数据条数 + 1 // 当前页数 - 1 * 每页数据条数 + 1
......
...@@ -118,7 +118,7 @@ const queryParams = reactive({ ...@@ -118,7 +118,7 @@ const queryParams = reactive({
beginTime: '', beginTime: '',
endTime: '', endTime: '',
}); });
const Page = reactive({total: 0, rows: 20, page: 1}); const Page = reactive({total: 0, rows: 30, page: 1});
const searchData = ref([]); const searchData = ref([]);
const thermalAlarmTypeList = [ const thermalAlarmTypeList = [
{ {
...@@ -148,6 +148,8 @@ const thermalAlarmTypeList = [ ...@@ -148,6 +148,8 @@ const thermalAlarmTypeList = [
] ]
const childParams = ref({}) const childParams = ref({})
const search = () => { const search = () => {
console.log('--------')
console.log('queryParams:',queryParams)
let stationId = '' let stationId = ''
if (queryParams.stationId === undefined){ if (queryParams.stationId === undefined){
stationId = queryParams.stationId = '' stationId = queryParams.stationId = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment