新建工成
This commit is contained in:
36
common/api/gc.js
Normal file
36
common/api/gc.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '../js/request';
|
||||
import config from '../js/config';
|
||||
|
||||
export function addEngineering(params, files) {
|
||||
return request({
|
||||
url: '/engineering/addEngineering',
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function auditEngineering(params) {
|
||||
return request({
|
||||
url: '/engineering/auditEngineering',
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export function queryEngineering(params) {
|
||||
return request({
|
||||
url: '/engineering/queryEngineering',
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export default {
|
||||
}).then((res) => {
|
||||
console.warn(res);
|
||||
let resultData =
|
||||
res.data?.list || res.data?.records || [];
|
||||
res.data?.list || res.data?.records || [];
|
||||
if (this.params.currentPage == 1) {
|
||||
this.data = resultData;
|
||||
if (resultData.length == 0 || resultData == 0) {
|
||||
|
||||
Reference in New Issue
Block a user