fix:优化
This commit is contained in:
parent
bf0b232f66
commit
725267388e
@ -1,53 +0,0 @@
|
||||
import request from '@/utils/axios';
|
||||
|
||||
/**
|
||||
* @Title: 列表
|
||||
*/
|
||||
export function GetEntityList(data, params) {
|
||||
return request('/store/user/query-user', {
|
||||
method: 'POST',
|
||||
data: data,
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @Title: 新增
|
||||
*/
|
||||
export function AddEntity(data, params = {}) {
|
||||
return request('/store/user/add-user', {
|
||||
method: 'POST',
|
||||
data: data,
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @Title: 修改
|
||||
*/
|
||||
export function UpdateEntity(data, params = {}) {
|
||||
return request('/store/user/update-user', {
|
||||
method: 'PUT',
|
||||
data: data,
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @Title: 删除
|
||||
*/
|
||||
export function DeleteEntity(data, params) {
|
||||
return request('/store/user/del-user', {
|
||||
method: 'DELETE',
|
||||
data: data,
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
export function UploadAvatar(data, params) {
|
||||
return request('/store/self/generate-avatar-pic-upload-url', {
|
||||
method: 'POST',
|
||||
data: data,
|
||||
params: params,
|
||||
});
|
||||
}
|
@ -63,7 +63,7 @@ import { isEmpty, imageToBase64, getAssetsFile, downloadFile } from '@/utils';
|
||||
import { useUserStore } from '@/store/modules/user';
|
||||
import { CommonUpload } from '@/apis';
|
||||
import { compact } from 'lodash';
|
||||
import { GetEntityList, AddEntity, UpdateEntity, DeleteEntity, ImportEntity, ExportEntity } from '@/apis/coding';
|
||||
import { GetEntityList, AddEntity, UpdateEntity, DeleteEntity, ImportEntity, ExportEntity } from '@/apis/trace/coding';
|
||||
import CustomInfo from './info.vue';
|
||||
import CustomQualityAdd from '../quality/form.vue';
|
||||
|
||||
|
@ -23,7 +23,7 @@ import { reactive, ref, watch } from 'vue';
|
||||
import { useApp } from '@/hooks';
|
||||
import { CRUD_VIEW_OPTIONS } from '@/config';
|
||||
import { downloadFile } from '@/utils';
|
||||
import { GetEntity } from '@/apis/coding';
|
||||
import { GetEntity } from '@/apis/trace/coding';
|
||||
|
||||
const props = defineProps({
|
||||
row: {
|
||||
|
@ -26,7 +26,7 @@ import { reactive, ref, watch } from 'vue';
|
||||
import { isEmpty, imageToBase64, setUploadField } from '@/utils';
|
||||
import { useApp } from '@/hooks';
|
||||
import { CommonUpload } from '@/apis';
|
||||
import { AddEntity } from '@/apis/quality';
|
||||
import { AddEntity } from '@/apis/trace/quality';
|
||||
|
||||
const props = defineProps({
|
||||
row: {
|
||||
|
@ -59,7 +59,7 @@ import { useApp } from '@/hooks';
|
||||
import { CRUD_OPTIONS } from '@/config';
|
||||
import { isEmpty, imageToBase64, setUploadField, downloadFile } from '@/utils';
|
||||
import { CommonUpload } from '@/apis';
|
||||
import { GetEntityList, AddEntity, UpdateEntity, DeleteEntity } from '@/apis/quality';
|
||||
import { GetEntityList, AddEntity, UpdateEntity, DeleteEntity } from '@/apis/trace/quality';
|
||||
|
||||
const app = useApp();
|
||||
const crudRef = ref(null);
|
||||
|
@ -103,7 +103,7 @@ import { useRouter, useRoute } from 'vue-router';
|
||||
import { useApp } from '@/hooks';
|
||||
import { CRUD_VIEW_OPTIONS } from '@/config';
|
||||
import { isEmpty } from '@/utils';
|
||||
import { GetTraceDetail } from '@/apis/coding';
|
||||
import { GetTraceDetail } from '@/apis/trace/coding';
|
||||
|
||||
const { VITE_APP_NAME } = import.meta.env;
|
||||
const router = useRouter();
|
||||
|
Loading…
x
Reference in New Issue
Block a user