Merge branch 'ts' into dev
This commit is contained in:
commit
0ede92a2e5
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ruoyi-vue-plus",
|
||||
"version": "5.0.0-SNAPSHOT",
|
||||
"version": "5.0.0",
|
||||
"description": "RuoYi-Vue-Plus多租户管理系统",
|
||||
"author": "LionLi",
|
||||
"license": "MIT",
|
||||
|
@ -249,13 +249,13 @@ const handleUpdate = (row: TreeVO) => {
|
||||
|
||||
/** 提交按钮 */
|
||||
const submitForm = () => {
|
||||
treeFormRef.value.validate((valid: boolean) => {
|
||||
treeFormRef.value.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
buttonLoading.value = true;
|
||||
if (form.value.id) {
|
||||
updateTree(form.value).finally(() => buttonLoading.value = false);
|
||||
await updateTree(form.value).finally(() => buttonLoading.value = false);
|
||||
} else {
|
||||
addTree(form.value).finally(() => buttonLoading.value = false);
|
||||
await addTree(form.value).finally(() => buttonLoading.value = false);
|
||||
}
|
||||
proxy?.$modal.msgSuccess("操作成功");
|
||||
dialog.visible = false;
|
||||
|
@ -318,10 +318,12 @@ const handleDownload = (row: OssVO) => {
|
||||
/** 用户状态修改 */
|
||||
const handlePreviewListResource = async (preview: boolean) => {
|
||||
let text = preview ? "启用" : "停用";
|
||||
try {
|
||||
await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
|
||||
await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
|
||||
getList()
|
||||
proxy?.$modal.msgSuccess(text + "成功");
|
||||
} catch { return }
|
||||
}
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: OssVO) => {
|
||||
|
@ -8,6 +8,7 @@
|
||||
<el-tree
|
||||
class="mt-2"
|
||||
ref="deptTreeRef"
|
||||
node-key="id"
|
||||
:data="deptOptions"
|
||||
:props="{ label: 'label', children: 'children' }"
|
||||
:expand-on-click-node="false"
|
||||
@ -450,6 +451,8 @@ const resetQuery = () => {
|
||||
dateRange.value = ['','']
|
||||
queryFormRef.value.resetFields();
|
||||
queryParams.value.pageNum = 1;
|
||||
queryParams.value.deptId = undefined;
|
||||
deptTreeRef.value.setCurrentKey(null);
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user