办公用品

This commit is contained in:
XaoLi717 2024-11-06 16:19:21 +08:00
parent 6b8dec160b
commit 137ceebbde
8 changed files with 4 additions and 15 deletions

View File

@ -15,7 +15,6 @@ export interface onlyofVO {
export const onlyofApi = {
// 文件编辑
getOnlyOfList: async () => {
console.log('getOnlyOfList',await request.get({ url: `/only/onlyof/filelist`}))
return await request.get({ url: `/only/onlyof/filelist`})
},
// 新增文件编辑

View File

@ -390,7 +390,6 @@ const more = async () => {
/** 处理审批按钮 */
const handleAudit = (row: any) => {
console.log("processInstanceId",row.processInstanceId.id)
push({
name: 'BpmProcessInstanceDetail',
query: {

View File

@ -109,23 +109,18 @@ const userInfo = ref('') // 用户名字
//
const getUserInfo = async () => {
const user = await getUserProfile();
console.log("user",user)
if (formData.value.deptId == ''||formData.value.deptId == undefined){
formData.value.deptId = user.dept.id
}
if (formData.value.userId == ''||formData.value.userId == undefined){
console.log("user",user)
formData.value.userId = user.id
}
if (formData.value.deptId != undefined){
console.log("deptId",formData.value.deptId)
deptInfo.value = await getDept(formData.value.deptId)
console.log("deptInfo",deptInfo.value)
}
if (user != undefined){
userInfo.value = user.nickname
}
console.log("formData",formData.value)
}
const formData = ref({
id: undefined,

View File

@ -284,7 +284,6 @@ const resetQuery = () => {
/** 添加/修改操作 */
const formRef = ref()
const openForm = (type: string, id?: number) => {
console.log("id",id)
formRef.value.open(type, id)
}

View File

@ -137,7 +137,6 @@ const open = async (type: string, id?: number) => {
formLoading.value = true
try {
formData.value = await pjApi.getpj(id)
console.log("formData",formData.value)
} finally {
formLoading.value = false
}

View File

@ -81,18 +81,18 @@ const getFileList = async () => {
//
const upload = async () => {
console.log("myFile: ",myfile)
console.log("myFile: ",myfile.value)
// console.log("myFile: ",myfile)
// console.log("myFile: ",myfile.value)
const fileInput = myfile.value;
const file = fileInput.files[0];
console.log("file",file)
// console.log("file",file)
const formData = new FormData();
const token = getAccessToken();
const configs = {
headers: { 'Authorization': `Bearer ${token}`,'Content-Type': 'multipart/form-data' }
}
formData.append('file', file);
console.log("configs",configs)
// console.log("configs",configs)
try {
const response = await axios.post('http://192.168.1.15:48080/admin-api/only/onlyof/update', formData, configs);
console.log(response);

View File

@ -76,7 +76,6 @@ const submitForm = async () => {
try {
const data = formData.value as unknown as Star2VO
if (formType.value === 'create') {
console.log("data",data)
await Star2Api.createStar2(data)
message.success(t('common.createSuccess'))
} else {

View File

@ -150,7 +150,6 @@ const exportLoading = ref(false) // 导出的加载中
const getList = async () => {
loading.value = true
try {
console.log("queryParams",queryParams)
const data = await Star2Api.getStar2Page(queryParams)
list.value = data.list
total.value = data.total