sujunling преди 5 месеца
родител
ревизия
44342b827c
променени са 2 файла, в които са добавени 51 реда и са изтрити 43 реда
  1. 45 38
      public/config.js
  2. 6 5
      src/views/groupPage/districtPageModules/decisionSupport/constructionProgressSimulation/index.vue

Файловите разлики са ограничени, защото са твърде много
+ 45 - 38
public/config.js


+ 6 - 5
src/views/groupPage/districtPageModules/decisionSupport/constructionProgressSimulation/index.vue

@@ -19,6 +19,7 @@
 import LeftBox from './LeftBox.vue'
 import RightBox from './RightBox.vue'
 import BottomBox from './BottomBox.vue'
+import { getResultList } from 'staticPub/config'
 
 export default {
   name: 'constructionProgressSimulation',
@@ -91,7 +92,7 @@ export default {
       } else {
         return this.$message.error('请填写完整的开始计划时间和调整计划时间!')
       }
-    //   this.getData(this.data)
+      //   this.getData(this.data)
     },
 
     getData(data, callback) {
@@ -122,7 +123,7 @@ export default {
         best_time_score: -224.421390070922,
         mpp_file: null
       })
-      fetch('http://127.0.0.1:8000/run', {
+      fetch(getResultList.sgjdmn_analysis, {
         method: 'POST',
         headers: {
           'Content-Type': 'application/json'
@@ -134,8 +135,8 @@ export default {
         })
         .then((r) => {
           console.log('分析结果:', r)
-          this.startType = false;
-          this.title = '开始模拟';
+          this.startType = false
+          this.title = '开始模拟'
           if (r.code == 1) {
             if (r.result.outcome && r.result.outcome.all_results && r.result.outcome.all_results.length) {
               this.$refs.BottomBox.changeTable(r.result.outcome.all_results, r.result.outcome.best_schedule)
@@ -172,7 +173,7 @@ export default {
     },
 
     addFile() {
-      fetch('./static/testData.json')
+      fetch(getResultList.sgjdmn_init)
         .then((e) => {
           return e.json()
         })