@@ -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',
})
@@ -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 => {