wenhongquan 2 years ago
parent
commit
daef65a4ac
3 changed files with 4 additions and 4 deletions
  1. 1 1
      src/views/detection/list/index.vue
  2. 1 1
      src/views/maintain/list/index.vue
  3. 2 2
      vite.config.js

+ 1 - 1
src/views/detection/list/index.vue

@@ -861,7 +861,7 @@ const deltask = (row) => {
 };
 
 {
-  listFacilities().then((res) => {
+  listFacilities({pageSize:1000}).then((res) => {
     alldevices.value = res.rows.map((i) => {
       i.ext1 = JSON.parse(i.ext1);
       return i;

+ 1 - 1
src/views/maintain/list/index.vue

@@ -694,7 +694,7 @@ function setdatakey(dept) {
 onMounted(() => { });
 
 {
-  listFacilities().then((res) => {
+  listFacilities({ pageSize:1000 }).then((res) => {
     alldevices.value = res.rows.map((i) => {
       i.ext1 = JSON.parse(i.ext1);
       return i;

+ 2 - 2
vite.config.js

@@ -38,8 +38,8 @@ export default defineConfig(({ mode, command }) => {
             proxy: {
                 // 'http://nnbpbg.xt.wenhq.top:8083'
                 "/dev-api": {
-                    target: "http://localhost:8080/api",
-                    // target:"http://nnbpbg.xt.wenhq.top:8083/api",
+                    // target: "http://localhost:8080/api",
+                    target:"http://nnbpbg.xt.wenhq.top:8083/api",
                     changeOrigin: true,
                     rewrite: (p) => p.replace(/^\/dev-api/, ""),
                 },