ming пре 3 година
родитељ
комит
4c9e6e6534
3 измењених фајлова са 5 додато и 19 уклоњено
  1. 1 0
      src/views/planOutage/index.vue
  2. 3 18
      src/views/stationManage/index.vue
  3. 1 1
      vue.config.js

+ 1 - 0
src/views/planOutage/index.vue

@@ -253,6 +253,7 @@ export default defineComponent({
     const cancelEvent = () => {
       console.log('cancel!')
     }
+
     //查询设备列表
     function Select() {
       store.commit('TimeAll_function', dateTime.value)

+ 3 - 18
src/views/stationManage/index.vue

@@ -17,7 +17,7 @@
           type="primary"
           icon="el-icon-search"
           class="search-button"
-          @click="SearchData()"
+          @click="platformList()"
         >
           搜索
         </el-button>
@@ -184,27 +184,12 @@ export default defineComponent({
         .platformList({
           size: pageSize.value,
           current: currentPage.value,
-        })
-        .then((requset) => {
-          if (requset.status === 'SUCCESS') {
-            tableData.value = requset.data.records
-            total.value = requset.data.total
-          } else {
-            ElMessage.error(requset.msg)
-          }
-        })
-    }
-
-    //筛选设备列表
-    function SearchData() {
-      api
-        .platformList({
           platformAreaName: platformAreaName.value,
         })
         .then((requset) => {
           if (requset.status === 'SUCCESS') {
             tableData.value = requset.data.records
-            // total.value = requset.data.total
+            total.value = requset.data.total
           } else {
             ElMessage.error(requset.msg)
           }
@@ -295,7 +280,7 @@ export default defineComponent({
       pageSize,
       currentPage,
 
-      SearchData,
+      platformList,
       goSiteList,
       getMsgFormSon,
       headClass,

+ 1 - 1
vue.config.js

@@ -88,7 +88,7 @@ module.exports = {
                 }
             }
         },
-        public: 'localhost:9999/',
+        // public: 'localhost:9999/',  
         // after: mockServer(),
     },
     configureWebpack() {