فهرست منبع

Merge branch 'ts' into dev

LiuHao 1 سال پیش
والد
کامیت
0ede92a2e5
4فایلهای تغییر یافته به همراه13 افزوده شده و 8 حذف شده
  1. 1 1
      package.json
  2. 3 3
      src/views/demo/tree/index.vue
  3. 6 4
      src/views/system/oss/index.vue
  4. 3 0
      src/views/system/user/index.vue

+ 1 - 1
package.json

@@ -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",

+ 3 - 3
src/views/demo/tree/index.vue

@@ -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;

+ 6 - 4
src/views/system/oss/index.vue

@@ -318,10 +318,12 @@ const handleDownload = (row: OssVO) => {
 /** 用户状态修改  */
 const handlePreviewListResource = async (preview: boolean) => {
     let text = preview ? "启用" : "停用";
-    await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
-    await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
-    getList()
-    proxy?.$modal.msgSuccess(text + "成功");
+    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) => {

+ 3 - 0
src/views/system/user/index.vue

@@ -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();
 }