no message

This commit is contained in:
小陌 2023-06-06 18:57:17 +08:00
parent 68deffd548
commit de91e8fccf
4 changed files with 137 additions and 166 deletions

View File

@ -1,15 +1,5 @@
/*
* @创建文件时间: 2021-08-14 17:37:36
* @Auther: 猿小天
* @最后修改人: 猿小天
* @最后修改时间: 2021-08-14 21:20:16
* 联系Qq:1638245306
* @文件介绍: 文件管理
*/
import { request } from '@/api/service'
export const urlPrefix = '/system/file/'
export const urlPrefix = '/system/file'
export function GetList (query) {
return request({
@ -29,7 +19,7 @@ export function AddObj (obj) {
export function UpdateObj (obj) {
return request({
url: urlPrefix + obj.id + '/',
url: urlPrefix +'/update',
method: 'put',
data: obj
})
@ -37,7 +27,7 @@ export function UpdateObj (obj) {
export function DelObj (id) {
return request({
url: urlPrefix + id + '/',
url: urlPrefix + '/delete',
method: 'delete',
data: { id }
})

View File

@ -25,18 +25,23 @@ export const crudOptions = (vm) => {
}
},
viewOptions: {
componentType: 'form'
// componentType: 'form'
},
formOptions: {
defaultSpan: 12 // 默认的表单 span
},
indexRow: { // 或者直接传true,不显示title不居中
title: '序号',
columns: [{
title: 'ID',
align: 'center',
width: 100
key: 'id',
width: 50,
form: {
disabled: true
},
columns: [
{
search: {
disabled: false
},
}, {
title: '关键词',
key: 'search',
show: false,
@ -53,17 +58,7 @@ export const crudOptions = (vm) => {
view: {
disabled: true
}
},
{
title: 'ID',
key: 'id',
width: 90,
disabled: true,
form: {
disabled: true
}
},
{
}, {
title: '文件名称',
key: 'name',
search: {
@ -76,8 +71,7 @@ export const crudOptions = (vm) => {
placeholder: '请输入文件名称'
}
}
},
{
}, {
title: '文件地址',
key: 'url',
type: 'file-uploader',
@ -85,8 +79,7 @@ export const crudOptions = (vm) => {
disabled: true
},
width: 220
},
{
}, {
title: '文件MD5',
key: 'md5sum',
width: 200,
@ -96,8 +89,7 @@ export const crudOptions = (vm) => {
form: {
disabled: false
}
},
{
}, {
title: '备注',
key: 'description',
show: false,
@ -123,8 +115,7 @@ export const crudOptions = (vm) => {
form: {
disabled: true
}
},
{
}, {
title: '更新时间',
key: 'update_datetime',
width: 160,
@ -132,8 +123,7 @@ export const crudOptions = (vm) => {
form: {
disabled: true
}
},
{
}, {
title: '创建时间',
key: 'create_datetime',
width: 160,
@ -141,7 +131,6 @@ export const crudOptions = (vm) => {
form: {
disabled: true
}
}
]
}]
}
}

View File

@ -1,11 +1,3 @@
<!--
* @创建文件时间: 2021-08-14 17:37:36
* @Auther: 猿小天
* @最后修改人: 猿小天
* @最后修改时间: 2021-08-14 21:27:12
* 联系Qq:1638245306
* @文件介绍: 图片管理
-->
<template>
<d2-container :class="{ 'page-compact': crud.pageOptions.compact }">
<d2-crud-x

View File

@ -24,7 +24,7 @@ export const crudOptions = (vm) => {
text: '',
disabled () {
return !vm.hasPermissions('Retrieve')
}
},
},
edit: {
thin: true,
@ -371,7 +371,7 @@ export const crudOptions = (vm) => {
key: 'avatar',
type: 'avatar-cropper',
width: 60,
align: 'left',
align: 'center',
form: {
component: {
props: {