Selaa lähdekoodia

fix 修复 代码生成 编辑按钮刷新列表问题

疯狂的狮子Li 1 vuosi sitten
vanhempi
commit
8df34e50fa

+ 0 - 2
ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm

@@ -450,7 +450,6 @@ const toggleExpandAll = (data: ${BusinessName}VO[], status: boolean) => {
 
 /** 修改按钮操作 */
 const handleUpdate = (row: ${BusinessName}VO) => {
-  loading.value = true;
   dialog.visible = true;
   dialog.title = "修改${functionName}";
   nextTick(async () => {
@@ -460,7 +459,6 @@ const handleUpdate = (row: ${BusinessName}VO) => {
       form.value.${treeParentCode} = row.${treeCode};
     }
     const res = await get${BusinessName}(row.${treeCode});
-    loading.value = false;
     Object.assign(form.value, res.data);
 #foreach ($column in $columns)
 #if($column.htmlType == "checkbox")

+ 0 - 2
ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm

@@ -413,14 +413,12 @@ const handleAdd = () => {
 
 /** 修改按钮操作 */
 const handleUpdate = (row?: ${BusinessName}VO) => {
-  loading.value = true
   dialog.visible = true;
   dialog.title = "修改${functionName}";
   nextTick(async () => {
     reset();
     const _${pkColumn.javaField} = row?.${pkColumn.javaField} || ids.value[0]
     const res = await get${BusinessName}(_${pkColumn.javaField});
-    loading.value = false;
     Object.assign(form.value, res.data);
 #foreach ($column in $columns)
 #if($column.htmlType == "checkbox")