提交 acdf2045 authored 作者: 詹银鑫's avatar 詹银鑫

feat: 更新对应样式

上级 cd68a3bf
...@@ -152,26 +152,25 @@ ...@@ -152,26 +152,25 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> </el-row>
<el-row>
<div class="flex flex-row-reverse w-full">
<el-form-item> <el-form-item>
<!-- 搜索按钮,点击触发搜索操作 --> <!-- 搜索按钮,点击触发搜索操作 -->
<el-button <el-button
type="primary" type="primary"
:icon="useRenderIcon('ri/search-line')" :icon="useRenderIcon(Check)"
:loading="loading" :loading="loading"
@click="onSearch" @click="onSearch"
> >
搜索 确定
</el-button> </el-button>
<!-- 重置按钮,点击触发重置表单并重新搜索 --> <!-- 重置按钮,点击触发重置表单并重新搜索 -->
<el-button <el-button :icon="useRenderIcon(Close)" @click="resetForm(formRef)">
:icon="useRenderIcon(Refresh)" 取消
@click="resetForm(formRef)"
>
重置
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-col> </div>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
......
...@@ -26,7 +26,7 @@ export function useFacForm() { ...@@ -26,7 +26,7 @@ export function useFacForm() {
] ]
}); });
const tagName = ref("厂商信息"); const tagName = ref("厂商信息");
const loading = ref(true); const loading = ref(false);
async function onSearch() { async function onSearch() {
loading.value = true; loading.value = true;
// const { data } = await getRoleList(toRaw(form)); // const { data } = await getRoleList(toRaw(form));
...@@ -54,11 +54,11 @@ export function useFacForm() { ...@@ -54,11 +54,11 @@ export function useFacForm() {
const beforeAvatarUpload: UploadProps["beforeUpload"] = rawFile => { const beforeAvatarUpload: UploadProps["beforeUpload"] = rawFile => {
console.log("rawFile", rawFile); console.log("rawFile", rawFile);
if (rawFile.type !== "image/jpeg") { if (rawFile.type !== "xlsx/xls") {
ElMessage.error("Avatar picture must be JPG format!"); ElMessage.error("文件上传类型只支持xlsx/xls!");
return false; return false;
} else if (rawFile.size / 1024 / 1024 > 2) { } else if (rawFile.size / 1024 / 1024 > 2) {
ElMessage.error("Avatar picture size can not exceed 2MB!"); ElMessage.error("文件不能超过2MB!");
return false; return false;
} }
return true; return true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论