asd26269546 2 роки тому
батько
коміт
e8af35855f

+ 5 - 2
src/views/finance/fundManage/depExpenses/index.vue

@@ -259,6 +259,7 @@ const config = computed(() => {
             click() {
               depModal.value = true;
               runningWaterId = row.id
+              dtlData.value = row
               departmentId.value = []
             },
           },
@@ -278,7 +279,7 @@ const config = computed(() => {
     },
   ];
 });
-
+const  dtlData = ref({})
 let formData = reactive({
   data: {
     type: "1",
@@ -320,7 +321,9 @@ const submitDeptForm = async (departmentId) => {
   }
   const params = {
     deptId: departmentId[departmentId.length - 1],
-    accountDeptRunningWaterId:  runningWaterId
+    accountDeptRunningWaterId:  dtlData.value.runningWaterId,
+    id: dtlData.value.id,
+    amount: dtlData.value.amount,
   };
   proxy
     .post("/accountDeptRunningWaterDetail/add", params)

+ 2 - 1
src/views/systemTenant/tenant/roleTenant/index.vue

@@ -242,6 +242,7 @@ const getSubset = (list, data) => {
 };
 const tree = ref(null);
 const openRoomModal = (row) => {
+  selection.value = { ...row };
   proxy.get("/tenantRole/roleMenuTreeSelect/" + row.roleId).then((res) => {
     if (res.code == 200) {
       treeData.value = res.menus;
@@ -263,7 +264,7 @@ const submitTree = () => {
     .post(
       "/tenantRole",
       {
-        ...selection.value.data[0],
+        ...selection.value,
         menuIds: data,
       },
       "PUT"