Commit c50aacc8 authored by 白舜's avatar 白舜 🎱

fix: #9695

parent 84169a8b
...@@ -108,7 +108,8 @@ ...@@ -108,7 +108,8 @@
<el-input <el-input
v-model.trim="ruleForm.delete_reason" v-model.trim="ruleForm.delete_reason"
type="textarea" type="textarea"
placeholder="请输入申请理由" /> :rows="4"
placeholder="请输入至少5个字符,至多20个字符" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<template v-slot:footer> <template v-slot:footer>
...@@ -216,6 +217,11 @@ const state = reactive({ ...@@ -216,6 +217,11 @@ const state = reactive({
message: "请输入删除理由", message: "请输入删除理由",
trigger: "blur", trigger: "blur",
}, },
{
min: 5,
message: "最少5个字符",
trigger: "blur",
},
{ {
max: 50, max: 50,
message: "最多50个字符", message: "最多50个字符",
...@@ -292,7 +298,7 @@ const openDeleteDialog = () => { ...@@ -292,7 +298,7 @@ const openDeleteDialog = () => {
if (list.length === 0) return ElMessage.warning("请选择要删除的数据"); if (list.length === 0) return ElMessage.warning("请选择要删除的数据");
state.dialogDelete = true; state.dialogDelete = true;
const idList = list.map((item) => item.id); const idList = list.map((item) => item.id);
state.deleteDialogConfig = { title: "批量删除", idList, tips: "确定要删除所选数据吗?" }; state.deleteDialogConfig = { title: "操作提示", idList, tips: "确定要删除所选数据吗?" };
return; return;
} }
const idList = [state.actionRow.id]; const idList = [state.actionRow.id];
......
...@@ -108,7 +108,8 @@ ...@@ -108,7 +108,8 @@
<el-input <el-input
v-model.trim="ruleForm.delete_reason" v-model.trim="ruleForm.delete_reason"
type="textarea" type="textarea"
placeholder="请输入申请理由" /> :rows="4"
placeholder="请输入至少5个字符,至多20个字符" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<template v-slot:footer> <template v-slot:footer>
...@@ -212,6 +213,11 @@ const state = reactive({ ...@@ -212,6 +213,11 @@ const state = reactive({
message: "请输入删除理由", message: "请输入删除理由",
trigger: "blur", trigger: "blur",
}, },
{
min: 5,
message: "最少5个字符",
trigger: "blur",
},
{ {
max: 50, max: 50,
message: "最多50个字符", message: "最多50个字符",
...@@ -288,7 +294,7 @@ const openDeleteDialog = () => { ...@@ -288,7 +294,7 @@ const openDeleteDialog = () => {
if (list.length === 0) return ElMessage.warning("请选择要删除的数据"); if (list.length === 0) return ElMessage.warning("请选择要删除的数据");
state.dialogDelete = true; state.dialogDelete = true;
const idList = list.map((item) => item.id); const idList = list.map((item) => item.id);
state.deleteDialogConfig = { title: "批量删除", idList, tips: "确定要删除所选数据吗?" }; state.deleteDialogConfig = { title: "操作提示", idList, tips: "确定要删除所选数据吗?" };
return; return;
} }
const idList = [state.actionRow.id]; const idList = [state.actionRow.id];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment