From a75d86bc0d41018edf2e25b9740bc0be6978b735 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期二, 07 五月 2024 08:31:09 +0800
Subject: [PATCH] -

---
 jcdm-ui/src/views/main/sc/stationConf/index.vue |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/jcdm-ui/src/views/main/sc/stationConf/index.vue b/jcdm-ui/src/views/main/sc/stationConf/index.vue
index 202325f..89d2e39 100644
--- a/jcdm-ui/src/views/main/sc/stationConf/index.vue
+++ b/jcdm-ui/src/views/main/sc/stationConf/index.vue
@@ -135,8 +135,8 @@
           <el-select style="width: 100%" @change="handleSelectChangeprocessesCode(form.processesCode)" v-model="form.processesCode" placeholder="璇烽�夋嫨宸ュ簭缂栧彿">
             <el-option
               v-for="item in options"
-              :key="item.index"
-              :label="item.processesName"
+              :key="item.processesCode"
+              :label="item.processesCode"
               :value="item.processesCode">
             </el-option>
           </el-select>
@@ -161,7 +161,7 @@
 
 <script>
 import {listStationConf, getStationConf, delStationConf, addStationConf, updateStationConf} from "@/api/main/sc/stationConf";
-import {listProcesses} from "@/api/main/bs/processes/processes";
+import {listProcesses, listProcessesNoPage} from "@/api/main/bs/processes/processes";
 
 export default {
   name: "StationConf",
@@ -206,7 +206,7 @@
       processesCodeQueryParams:{
         pageNum: 1,
         pageSize: 10,
-        processesCodes: null,
+        processesCode: null,
       },
       // 琛ㄥ崟鍙傛暟
       form: {},
@@ -225,13 +225,15 @@
   methods: {
 
     handleSelectChangeprocessesCode(selectedOption) {
-      this.processesCodeQueryParams.processesCodes = selectedOption;
-      listProcesses(this.queryParams).then(response => {
+      this.processesCodeQueryParams.processesCode = selectedOption;
+      listProcesses(this.processesCodeQueryParams).then(response => {
         this.form.processesName = response.rows[0].processesName;
       });
+
     },
     initProcesses(){
-      listProcesses(this.queryParams).then(response => {
+      this.options = [];
+      listProcessesNoPage().then(response => {
         this.options = response.rows;
       });
     },

--
Gitblit v1.9.3