Prechádzať zdrojové kódy

修改时获取xml数据

wolyshaw 3 rokov pred
rodič
commit
aadecedfc9
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      src/views/accompaniment/modals/form.vue

+ 3 - 0
src/views/accompaniment/modals/form.vue

@@ -347,6 +347,7 @@
   </div>
 </template>
 <script>
+import axios from 'axios'
 import { Add, Update, queryPageSysExam, queryTree } from "../api";
 import { getAllmemberRank } from "@/views/resetTeaming/api";
 export default {
@@ -421,6 +422,8 @@ export default {
       } else {
         this.form.rankIdType = 0;
       }
+      const xmlres = await axios(this.detail.xmlUrl)
+      this.partListNames = this.getPartListNames(xmlres.data)
       this.FeatchDetailList();
     } else {
       // 新增条件下默认设置为收费