AIManage/src/views/manage/datas/edit.vue

577 lines
19 KiB
Vue
Raw Normal View History

2024-06-18 01:16:44 +08:00
<!-- 用户管理 -->
<template>
2024-06-21 00:50:41 +08:00
<div class="app-container model-detail">
2024-06-18 01:16:44 +08:00
<!-- 用户新增/编辑表单 -->
2024-07-22 01:17:38 +08:00
<el-card v-loading="loading">
2024-07-28 23:12:01 +08:00
<template #header><svg-icon icon-class="pause" style="width: 20px; height: 20px" />数据集基本信息
2024-06-21 00:19:54 +08:00
</template>
2024-07-22 01:17:38 +08:00
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-row>
2024-06-21 00:19:54 +08:00
<el-col :lg="12" :xs="24">
2024-07-22 01:17:38 +08:00
<el-form-item label="数据集名称" prop="dataset_name">
<el-input v-model="form.dataset_name" placeholder="请输入数据集名称" />
2024-06-18 01:16:44 +08:00
</el-form-item>
2024-06-21 00:19:54 +08:00
</el-col>
2024-06-18 01:16:44 +08:00
<el-col :lg="12" :xs="24">
2024-07-22 01:17:38 +08:00
<el-form-item label="数据集版本" prop="dataset_version">
2024-07-28 23:12:01 +08:00
<el-input v-model="form.dataset_version" type="number" placeholder="请输入数据集版本" />
2024-06-18 01:16:44 +08:00
</el-form-item>
</el-col>
2024-06-21 00:19:54 +08:00
</el-row>
2024-07-22 01:17:38 +08:00
<el-row>
2024-06-18 01:16:44 +08:00
<el-col :lg="12" :xs="24">
2024-07-31 14:15:35 +08:00
<el-form-item label="适合模型类型" prop="modl_sub_type">
<el-select v-model="form.modl_sub_type" disabled placeholder="请选择适合模型类型">
2024-07-28 23:12:01 +08:00
<el-option v-for="item in listOpt.modlSubTypeList" :key="item.modl_sub_type"
:label="item.modl_sub_type_name" :value="item.modl_sub_type" />
2024-07-22 01:17:38 +08:00
</el-select>
2024-06-18 01:16:44 +08:00
</el-form-item>
</el-col>
2024-06-21 00:19:54 +08:00
<el-col :lg="12" :xs="24">
2024-07-22 01:17:38 +08:00
<el-form-item label="数据集格式" prop="dats_dataset_format">
2024-07-28 23:12:01 +08:00
<el-select v-model="form.dats_dataset_format" disabled placeholder="请选择数据集格式">
<el-option v-for="item in listOpt.datasetFormatList" :key="item" :label="item" :value="item" />
2024-06-21 00:19:54 +08:00
</el-select>
2024-06-18 01:16:44 +08:00
</el-form-item>
2024-06-21 00:19:54 +08:00
</el-col>
2024-07-22 01:17:38 +08:00
</el-row>
<el-row>
2024-06-18 01:16:44 +08:00
<el-col :lg="12" :xs="24">
2024-07-22 01:17:38 +08:00
<el-form-item label="标注类型" prop="dats_label_type">
2024-07-28 23:12:01 +08:00
<el-select v-model="form.dats_label_type" disabled placeholder="请选择标注类型">
<el-option v-for="item in listOpt.labelTypeList" :key="item" :label="item" :value="item" />
2024-06-21 00:19:54 +08:00
</el-select>
2024-06-18 01:16:44 +08:00
</el-form-item>
</el-col>
2024-07-22 01:17:38 +08:00
<el-col :lg="12" :xs="24">
<el-form-item label="图像分辨率" prop="image_height">
<el-row style="width: 100%">
<el-col :lg="11">
2024-07-28 23:12:01 +08:00
<el-input v-model="form.image_width" disabled placeholder="请输入分辨率宽度">
2024-07-22 01:17:38 +08:00
<template #prepend> </template>
</el-input>
</el-col>
2024-07-28 23:12:01 +08:00
<el-col :lg="2" class="font-center"><el-icon>
<Rank />
</el-icon></el-col>
2024-07-22 01:17:38 +08:00
<el-col :lg="11">
2024-07-28 23:12:01 +08:00
<el-input v-model="form.image_height" disabled placeholder="请输入分辨率高度">
2024-07-22 01:17:38 +08:00
<template #prepend> </template>
</el-input>
</el-col>
</el-row>
</el-form-item>
</el-col>
2024-06-21 00:19:54 +08:00
</el-row>
2024-07-22 01:17:38 +08:00
<el-row>
2024-06-21 00:19:54 +08:00
<el-col :lg="12" :xs="24">
2024-07-22 01:17:38 +08:00
<el-form-item label="数据集描述" prop="dataset_desc">
2024-07-28 23:12:01 +08:00
<el-input v-model="form.dataset_desc" placeholder="请输入数据集描述" :rows="2" type="textarea" />
2024-06-18 01:16:44 +08:00
</el-form-item>
</el-col>
2024-06-21 00:19:54 +08:00
<el-col :lg="12" :xs="24"> </el-col>
</el-row>
2024-07-22 01:17:38 +08:00
<el-row>
<el-col :lg="12" :xs="24">
<el-form-item label="数据集参数文件" prop="dataset_parameters">
2024-07-28 23:12:01 +08:00
<el-upload ref="uploadRef" class="upload-demo upload-demo-1" :on-change="handleFileChange"
:on-remove="handleFileRemove" :on-exceed="handleFileExceed" :auto-upload="false" :limit="1"
accept="application/json">
<el-button type="primary"><el-icon class="el-icon--upload"> <i-ep-upload-filled />
</el-icon></el-button>
2024-07-22 01:17:38 +08:00
<template #tip>
<div class="el-upload__tip">
请上传大小不超过 <strong style="color: red">10M</strong>格式为
<strong style="color: red">json</strong> 的文件
</div>
</template>
</el-upload>
</el-form-item>
</el-col>
<el-col :lg="12" :xs="24">
<div style="padding-left: 35px" v-if="fileStatus">
2024-07-28 23:12:01 +08:00
<el-divider content-position="left"><strong style="color: #409eff">数据集参数文件预览</strong></el-divider>
<json-viewer :value="jsonData.data" copyable boxed sort theme="my-json-view jv-light" />
2024-07-22 01:17:38 +08:00
</div>
</el-col>
</el-row>
2024-06-21 00:19:54 +08:00
</el-form>
</el-card>
2024-07-22 01:17:38 +08:00
<el-card style="margin-top: 12px">
2024-07-28 23:12:01 +08:00
<template #header><svg-icon icon-class="pause" style="width: 20px; height: 20px" />图片信息<strong
style="color: #409eff">{{ imgCount }}</strong>
<el-button type="primary" style="position: absolute; right: 30px" @click="handleRemoveAll"
:disabled="imageList.length == 0"><i-ep-delete />清空全部</el-button>
2024-07-22 01:17:38 +08:00
</template>
2024-07-28 23:12:01 +08:00
<el-upload v-model:file-list="imageList" class="upload-demo upload-demo-2" :before-remove="beforeRemove" />
2024-07-22 16:46:27 +08:00
<el-empty v-if="imageList.length == 0" description="暂 无 数 据" />
2024-06-18 01:16:44 +08:00
</el-card>
2024-06-21 00:50:41 +08:00
<el-card class="card-footer">
2024-07-28 23:12:01 +08:00
<el-button type="primary" @click="handleImageDialog"><i-ep-upload-filled />上传图片</el-button>
2024-07-22 01:17:38 +08:00
<el-button type="primary" @click="handleSubmit"><i-ep-check /> </el-button>
<el-button @click="closeBack"><i-ep-close /> </el-button>
2024-06-18 01:16:44 +08:00
</el-card>
2024-09-19 10:59:19 +08:00
<el-dialog v-model="dialogVisible" title="上传标注图片" width="880" append-to-body style="max-height:600px;">
2024-07-22 16:46:27 +08:00
<el-card v-loading.fullscreen.lock="uploadLoading">
2024-07-28 23:12:01 +08:00
<el-upload v-model:file-list="uploadImgFileList" class="upload-demo upload-demo-3"
:before-remove="handleRemoveFiles" :auto-upload="autoUpload" :on-change="handleChangeFiles"
2024-09-19 10:59:19 +08:00
list-type="picture" multiple accept="application/json,text/plain,image/jpeg">
2024-07-24 16:40:04 +08:00
<!--accept="application/json,image/png,image/jpg,image/jpeg"-->
2024-07-28 23:12:01 +08:00
<el-button type="primary"><el-icon class="el-icon--upload"> <i-ep-upload-filled /> </el-icon></el-button>
2024-07-22 16:46:27 +08:00
<template #tip>
<div class="el-upload__tip">
请上传大小不超过 <strong style="color: red">10M</strong>格式为
2024-09-19 10:59:19 +08:00
<strong style="color: red">json/txt/jpg</strong> 的文件
2024-07-22 16:46:27 +08:00
</div>
</template>
2024-06-24 23:18:47 +08:00
</el-upload>
2024-07-22 16:46:27 +08:00
<el-empty v-if="uploadImgFileList.length == 0" description="暂 无 数 据" />
</el-card>
2024-06-24 23:18:47 +08:00
<!-- 弹窗底部操作按钮 -->
<template #footer>
<div class="dialog-footer">
2024-07-28 23:12:01 +08:00
<el-button type="primary" :disabled="uploadImgFileList.length == 0" @click="startUploadFiles"></el-button>
2024-07-22 16:46:27 +08:00
<el-button @click="dialogVisible = false"> </el-button>
2024-06-24 23:18:47 +08:00
</div>
</template>
</el-dialog>
2024-06-18 01:16:44 +08:00
</div>
</template>
2024-09-16 10:36:17 +08:00
<script setup>
2024-07-22 01:17:38 +08:00
import ConstApi from "@/api/const";
import DataSetApi from "@/api/dataSet";
const route = useRoute();
2024-06-18 01:16:44 +08:00
const router = useRouter();
2024-07-22 01:17:38 +08:00
const ID = ref(""); // 编号
const form = ref({}); // 基础表单
const formRef = ref(ElForm); // 表单
const loading = ref(false); // 加载状态
const dialogOpen = ref(false); // 加载状态
const fileStatus = ref(false); // 文件状态
const codeHtml = ref(""); // 文件信息
2024-07-28 23:12:01 +08:00
const jsonData = reactive({
data: {}
})
2024-07-22 01:17:38 +08:00
const imgCount = ref(0); // 图片信息
const imageList = ref([]); // 图片列表
const remImageList = ref([]); // 删除图片列表
// 上传组件
2024-09-16 10:36:17 +08:00
const uploadRef = ref();
2024-06-18 01:16:44 +08:00
2024-07-22 16:46:27 +08:00
const autoTime = ref(""); // 自动上传
const autoUpload = ref(false); // 自动上传
2024-07-22 01:17:38 +08:00
const dialogVisible = ref(false); // 加载状态
2024-07-22 16:46:27 +08:00
const uploadLoading = ref(false); // 加载状态
const uploadAllList = ref([]); // 待上传文件列表
const uploadJsonList = ref([]); // 待上传JSON列表
const uploadImgFileList = ref([]); // 待上传图片列表
2024-06-18 01:16:44 +08:00
2024-07-22 01:17:38 +08:00
// 基础数据列表
let listOpt = reactive({
labelTypeList: [],
modlSubTypeList: [],
datasetFormatList: [],
2024-06-24 23:18:47 +08:00
});
2024-06-18 01:16:44 +08:00
// 校验规则
const rules = reactive({
2024-07-22 01:17:38 +08:00
dataset_name: [{ required: true, message: "数据集名称不能为空", trigger: "blur" }],
dataset_version: [{ required: true, message: "数据集版本不能为空", trigger: "blur" }],
2024-07-31 14:15:35 +08:00
modl_sub_type: [{ required: true, message: "适合模型类型不能为空", trigger: "change" }],
2024-07-22 01:17:38 +08:00
dats_dataset_format: [
{ required: true, message: "数据集格式不能为空", trigger: "change" },
2024-06-18 01:16:44 +08:00
],
2024-07-22 01:17:38 +08:00
dats_label_type: [{ required: true, message: "标注类型不能为空", trigger: "change" }],
image_width: [{ required: true, message: "分辨率宽度不能为空", trigger: "blur" }],
image_height: [{ required: true, message: "分辨率高度不能为空", trigger: "blur" }],
dataset_desc: [{ required: false, message: "数据集描述不能为空", trigger: "blur" }],
dataset_parameters: [
{ required: true, message: "数据集参数文件不能为空", trigger: "blur" },
2024-06-18 01:16:44 +08:00
],
});
/** 表单提交 */
const handleSubmit = useThrottleFn(() => {
2024-09-16 10:36:17 +08:00
formRef.value.validate((valid) => {
2024-07-22 01:17:38 +08:00
if (valid) {
if (!form.value.image_width) {
ElMessage.error("请输入图片分辨率宽度!");
return false;
}
loading.value = true;
2024-07-22 16:46:27 +08:00
DataSetApi.updateDataSet(form.value.dataset_id, form.value)
2024-07-22 01:17:38 +08:00
.then((res) => {
if (res.data.code == 0) {
ElMessage.success("保存成功");
closeBack();
}
})
.finally(() => {
loading.value = false;
});
}
});
2024-06-18 01:16:44 +08:00
}, 3000);
2024-07-22 16:46:27 +08:00
/** 上传文件 */
function handleChangeFiles(uploadFile, uploadFiles) {
//uploadFile.status = 'success';
clearTimeout(autoTime.value);
2024-09-19 10:59:19 +08:00
if (uploadFile.raw.type == "application/json" || uploadFile.raw.type == "text/plain") {
2024-07-22 16:46:27 +08:00
uploadJsonList.value.push(uploadFile);
}
autoTime.value = setTimeout(doEquipmentFiles, 280);
}
/** 上传文件>回调 */
const doEquipmentFiles = () => {
uploadImgFileList.value = uploadImgFileList.value.filter(
2024-09-19 10:59:19 +08:00
(it) => it.raw.type != "application/json" && it.raw.type != "text/plain"
2024-07-22 16:46:27 +08:00
);
if (form.value.dats_label_type != "no_label") {
var element = document.getElementsByClassName("upload-demo-3")[0];
var children = element.querySelectorAll(".el-upload-list__item");
children.forEach((item) => {
var mylabel = item.querySelectorAll(".mylabel");
//console.log("mylabel.length==>" + mylabel.length);
if (mylabel.length > 0) {
mylabel.forEach((lab) => {
lab.remove();
});
}
let name = item.querySelector(".el-upload-list__item-file-name").textContent;
let disp = uploadJsonList.value.filter((it) => disName(name, it.name));
//console.log("disp==>" + disp.length);
if (disp.length > 0) {
item.insertAdjacentHTML(
"beforeend",
2024-07-23 17:34:24 +08:00
"<span class='el-tag el-tag--success el-tag--dark mylabel mylabel--success'><span class='el-tag__content'>已标注</span></span>"
2024-07-22 16:46:27 +08:00
);
} else {
item.insertAdjacentHTML(
"beforeend",
2024-07-23 17:34:24 +08:00
"<span class='el-tag el-tag--danger el-tag--dark mylabel mylabel--error'><span class='el-tag__content'>未标注</span></span>"
2024-07-22 16:46:27 +08:00
);
}
});
}
};
/** 标注文件名称比对 */
function disName(img, json) {
if (
img.substring(0, img.lastIndexOf(".")) == json.substring(0, json.lastIndexOf("."))
) {
return true;
} else {
return false;
}
}
/** 删除图片的json标注 */
function handleRemoveFiles(uploadFile, uploadFiles) {
uploadJsonList.value = uploadJsonList.value.filter(
(it) => !disName(uploadFile.name, it.name)
);
return true;
}
/** 开始上传文件 */
function startUploadFiles() {
var element = document.getElementsByClassName("upload-demo-3")[0];
var errors = element.querySelectorAll(".mylabel--error");
if (errors.length > 0) {
ElMessage.error(errors.length + " 个图片未上传标注文件!请上传或删除图片。");
return false;
}
uploadImgFileList.value.forEach((item) => {
let json = uploadJsonList.value.filter((it) => disName(item.name, it.name));
2024-07-23 23:40:14 +08:00
const formData = new FormData();
formData.append("image_file_name", item.name);
formData.append("image_file", item.raw);
formData.append("label_file", json.length > 0 ? json[0].raw : null);
2024-07-22 16:46:27 +08:00
uploadLoading.value = true;
2024-07-23 23:40:14 +08:00
DataSetApi.rawUpload(form.value.dataset_id, formData)
2024-07-22 16:46:27 +08:00
.then((res) => {
if (res.data.code == 0) {
uploadImgFileList.value = uploadImgFileList.value.filter(
(it) => item.name != it.name
);
uploadJsonList.value = uploadJsonList.value.filter(
(it) => !disName(item.name, it.name)
);
if (uploadImgFileList.value.length == 0) {
handleQuery();
dialogVisible.value = false;
}
}
})
.finally(() => {
uploadLoading.value = false;
});
});
}
2024-07-22 01:17:38 +08:00
/** 删除文件 */
function beforeRemove(file) {
remImageList.value.push(file.name);
let remList = [];
remList.push(file.name);
return ElMessageBox.confirm("确认删除数据集图片?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(
async () => {
let res = await DataSetApi.deleteFile(ID.value, { file_name_list: remList });
if (res.data.code == 0) {
imgCount.value = imageList.value.length - 1;
ElMessage.success("删除成功");
}
return true;
},
() => false
);
}
/** 删除文件-清空所有 */
function handleRemoveAll() {
ElMessageBox.confirm("确认删除全部数据集图片?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(function () {
2024-07-25 15:00:47 +08:00
let list = [];
imageList.value.forEach(item => {
list.push(item.name);
});
DataSetApi.deleteFile(ID.value, { file_name_list: list }).then((res) => {
2024-07-22 01:17:38 +08:00
if (res.data.code == 0) {
imageList.value = [];
imgCount.value = imageList.value.length;
ElMessage.success("删除成功");
}
});
});
}
/** 打开文件上传弹窗 */
2024-07-22 16:46:27 +08:00
function handleImageDialog() {
dialogVisible.value = true;
2024-07-22 01:17:38 +08:00
}
// 文件上传
function handleFileChange(file) {
//先创建一个读文件的对象 FileReader
let reader = new FileReader();
//判断浏览器是否支持 FileReader
if (typeof FileReader === "undefined") {
this.$message({
type: "info",
message: "您的浏览器不支持文件读取。",
});
return;
}
uploadFile(file).then((res) => {
if (isJSON(res)) {
form.value.dataset_parameters = JSON.parse(res);
formRef.value.validateField("dataset_parameters");
codeHtml.value = res;
2024-07-28 23:12:01 +08:00
jsonData.data = res;
2024-07-22 01:17:38 +08:00
fileStatus.value = true;
}
});
}
/** 解析json */
function isJSON(str) {
try {
// 尝试解析输入的字符串
JSON.parse(str);
ElMessage.success("JSON文件解析成功");
return true;
// 成功解析
} catch (error) {
// 解析失败
ElMessage.error("JSON文件解析失败");
uploadRef.value.clearFiles();
fileStatus.value = false;
form.value.dataset_parameters = "";
return false;
}
}
// 文件读取
function uploadFile(file) {
return new Promise(function (resolve, reject) {
let reader = new FileReader();
reader.readAsArrayBuffer(file.raw);
reader.onload = function (e) {
var ints = new Uint8Array(e.target.result); //要使用读取的内容所以将读取内容转化成Uint8Array
let snippets = new TextDecoder("UTF-8").decode(ints); //二进制缓存区内容转化成中文(即也就是读取到的内容)
resolve(snippets);
};
});
}
// 文件删除
function handleFileRemove() {
form.value.dataset_parameters = "";
codeHtml.value = "";
2024-07-28 23:12:01 +08:00
jsonData.data = {};
2024-07-22 01:17:38 +08:00
fileStatus.value = false;
}
// 超出限制,清空文件列表
function handleFileExceed() {
uploadRef.value.clearFiles();
ElMessage.warning("已清空文件列表,请重新上传!");
handleFileRemove();
2024-06-24 23:18:47 +08:00
}
2024-06-18 01:16:44 +08:00
/** 返回默认页面 */
function closeBack() {
2024-07-14 22:26:43 +08:00
router.push({ path: "/dataMgr/datas" });
2024-06-18 01:16:44 +08:00
}
2024-07-22 01:17:38 +08:00
// 初始化选项列表
const initData = () => {
let id = route.query.id;
ID.value = id;
DataSetApi.dataSetInfo(id).then((res) => {
if (res.data.code == 0) {
2024-07-23 17:34:24 +08:00
let resolution = res.data.data.image_resolution.split("x");
2024-07-24 16:40:04 +08:00
res.data.data.image_width = resolution[0];
res.data.data.image_height = resolution[1];
2024-07-22 01:17:38 +08:00
form.value = res.data.data;
codeHtml.value = JSON.stringify(res.data.data.dataset_parameters);
2024-07-28 23:12:01 +08:00
jsonData.data = res.data.data.dataset_parameters;
2024-07-22 01:17:38 +08:00
if (codeHtml.value == "{}") {
fileStatus.value = false;
} else {
fileStatus.value = true;
}
}
});
handleQuery();
ConstApi.modlSubType().then((res) => {
if (res.data.code == 0) {
listOpt.modlSubTypeList = res.data.data.modl_sub_type_list || [];
}
});
ConstApi.datasetFormatType().then((res) => {
if (res.data.code == 0) {
listOpt.datasetFormatList = res.data.data.dats_dataset_format_list || [];
}
});
ConstApi.datsLabelType().then((res) => {
if (res.data.code == 0) {
listOpt.labelTypeList = res.data.data.dats_label_type_list || [];
}
});
};
// 初始化选项列表
const handleQuery = () => {
DataSetApi.rawFiles(ID.value).then((res) => {
if (res.data.code == 0) {
2024-07-24 16:40:04 +08:00
if (res.data.data.file_name_list) {
let list = [];
res.data.data.file_name_list.forEach((item) => {
list.push({ name: item, url: item });
});
imageList.value = list;
imgCount.value = imageList.value.length;
}
2024-07-22 01:17:38 +08:00
}
});
};
2024-06-18 01:16:44 +08:00
onMounted(() => {
2024-07-22 01:17:38 +08:00
initData();
2024-06-18 01:16:44 +08:00
});
</script>
2024-07-22 01:17:38 +08:00
<style scoped lang="scss">
.model-detail {
:deep(.el-card__header) {
padding: 8px 4px;
display: flex;
align-items: center;
}
2024-06-21 00:50:41 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
.sp-file {
color: #29d;
2024-06-21 00:50:41 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
.tb-base-info {
line-height: 30px;
2024-06-21 00:50:41 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
:deep(.svg-icon) {
margin-right: 8px;
2024-06-21 00:50:41 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
.card-footer {
2024-06-18 01:16:44 +08:00
position: fixed;
2024-06-21 00:50:41 +08:00
width: calc(100% - 215px);
2024-06-18 01:16:44 +08:00
bottom: 0px;
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
:deep(.el-card__body) {
padding: 10px;
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
.el-pagination {
2024-06-21 00:50:41 +08:00
justify-content: end;
}
}
2024-06-18 01:16:44 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 01:17:38 +08:00
.font-center {
text-align: center;
color: #cccccc;
}
2024-06-24 23:18:47 +08:00
</style>
<style scope>
2024-07-22 16:46:27 +08:00
.el-dialog__body {
overflow: auto;
}
2024-07-28 23:12:01 +08:00
2024-07-22 16:46:27 +08:00
.el-card__body {
overflow: auto;
}
2024-07-28 23:12:01 +08:00
.upload-demo-2>.el-upload {
2024-07-22 01:17:38 +08:00
display: none !important;
}
2024-07-28 23:12:01 +08:00
.upload-demo-2>.el-upload-list {
2024-07-22 01:17:38 +08:00
margin: 0 !important;
}
2024-07-28 23:12:01 +08:00
.upload-demo-2>*>.el-upload-list__item {
2024-07-22 01:17:38 +08:00
float: left !important;
width: 25% !important;
}
2024-07-28 23:12:01 +08:00
.upload-demo-3>*>.el-upload-list__item {
2024-07-22 16:46:27 +08:00
float: left !important;
width: 49% !important;
}
2024-07-28 23:12:01 +08:00
.upload-demo-3>*>.el-upload-list__item:nth-child(even) {
2024-07-22 16:46:27 +08:00
margin-left: 10px;
2024-06-24 23:18:47 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 16:46:27 +08:00
.dialog-footer {
2024-06-24 23:18:47 +08:00
text-align: center;
2024-06-18 01:16:44 +08:00
}
2024-07-28 23:12:01 +08:00
2024-07-22 16:46:27 +08:00
.mylabel {
position: absolute;
right: 10px;
bottom: 10px;
}
2024-06-18 01:16:44 +08:00
</style>