Bladeren bron

修改报错

qinhouyu 1 jaar geleden
bovenliggende
commit
38e7a7188f
2 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen
  1. 0 3
      src/api/zdsz/engineeringIndustry.js
  2. 2 1
      src/views/zdsz/engineeringIndustry/index.vue

+ 0 - 3
src/api/zdsz/engineeringIndustry.js

@@ -48,10 +48,7 @@ export function DelEngineeEngineeIndustry(id) {
 }
 
 export function QueryEngineeIndustry({id, type}) {
-  // alert(`${id}`)
-  // alert(`${type}`)
   return request({
-    // url: `/zdsz/engineeringIndustry/${id}/1`,
     url: `/zdsz/engineeringIndustry/${id}/${type}`,
     method: 'get',
   })

+ 2 - 1
src/views/zdsz/engineeringIndustry/index.vue

@@ -842,7 +842,8 @@ export default {
       if (!e) return
       console.log('todo: 获取数据', e)
       // todo: 获取数据
-      QueryEngineeIndustry({
+      let httpMethod = this.form.type=='1'?QueryEngineeIndustrys:QueryEngineeIndustry;
+      httpMethod({
         id: this.currentId,
         type: e
       }).then(res => {