diff --git a/package.json b/package.json index 4e4662a5682f069a1b12b059534b6d44f58c0778..a4f2cef02c3920e9b1e97d424dcd297f6368bec6 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@ztree/ztree_v3": "^3.5.42", - "axios": "^0.18.1", + "axios": "^0.21.1", "babel-polyfill": "^6.26.0", "core-js": "^2.6.5", "crypto": "^1.0.1", diff --git a/src/config/api.js b/src/config/api.js index c5a44be7f28ac91dbfae1400aca85e7758d9f1f8..1fcca9b58b52d3bfe4e9fb7fae859e814e193312 100644 --- a/src/config/api.js +++ b/src/config/api.js @@ -6,6 +6,14 @@ import {get, post, save, deletep, put, upload, putX} from './http' */ export const login_Url = p => post('/login/auth', p); + +/** + * 根据 ID 查询 + * @param p + * @returns {Promise} + */ +export const findById = p => post('/user/findById', p); + /** * 查询所有 * @param p @@ -18,18 +26,20 @@ export const findAll = p => post('/user/findAll', p); * @param p * @returns {Promise} */ -export const insert = p => save('/user/findAll', p); +export const insert = p => save('/user/insert', p); /** - * 删除 + * 修改 * @param p * @returns {Promise} */ -export const deleteSafetyAimInfo_Url = p => deletep('/quality/safety/safetyAim/deleteSafetyAimInfo', p); +export const update = p => put('/user/update', p); /** - * 修改 + * 删除 * @param p * @returns {Promise} */ -export const updateSafetyAimInfo_Url = p => put('/quality/safety/safetyAim/updateSafetyAimInfo', p); +export const del = p => deletep('/user/delete', p); + + diff --git a/src/views/user/basicInformation.vue b/src/views/user/basicInformation.vue index 0944467591ab97f294d2ee3d57f19e1aad4360fc..4abbfe82263c6c844640d0782b51a5cf88de55aa 100644 --- a/src/views/user/basicInformation.vue +++ b/src/views/user/basicInformation.vue @@ -95,9 +95,6 @@ @click="skip(scope.$index, scope.row, scope)">{{ scope.row.id }} - - @@ -166,18 +163,9 @@