bill 2 rokov pred
rodič
commit
2d57b58cfb

+ 5 - 2
src/views/member/list.vue

@@ -34,7 +34,7 @@
 
 <script lang="ts" setup>
 import EditMember from './edit.vue'
-import { computed, reactive, watch } from 'vue'
+import { computed, onDeactivated, reactive, toRaw, watch } from "vue";
 import { BodyPanlHeader, BodyPanlBody } from '@/layout/panl'
 import { usePaging } from '@/hook'
 import { router } from '@/router'
@@ -64,8 +64,11 @@ const params = reactive({
   userName: '',
   projectId: computed(() => Number(router.currentRoute.value.params.id))
 })
-
+onDeactivated(() => {
+  params.userName = ''
+})
 const { list, pagination, updateList } = usePaging(fetchMembers, params)
+
 watch(
   () => params.userName,
   () => (pagination.current = 1),

+ 1 - 0
src/views/record/list.vue

@@ -3,6 +3,7 @@
     :data-source="list"
     :columns="recordColumns"
     :pagination="pagination"
+    :scroll="{ x: '100%', y: 430 }"
   >
     <template #bodyCell="{ column, record }">
       <template v-if="column.key === 'action'">

+ 4 - 1
src/views/role/list.vue

@@ -33,7 +33,7 @@
 
 <script lang="ts" setup>
 import EditRole from './edit.vue'
-import { computed, reactive, watch } from 'vue'
+import { computed, onDeactivated, reactive, watch } from "vue";
 import { BodyPanlHeader, BodyPanlBody } from '@/layout/panl'
 import { usePaging } from '@/hook'
 import { router } from '@/router'
@@ -58,6 +58,9 @@ const params = reactive({
   projectId: computed(() => Number(router.currentRoute.value.params.id))
 })
 
+onDeactivated(() => {
+  params.roleName = ''
+})
 const { list, pagination, updateList } = usePaging(fetchRoles, params)
 
 const setRole = (role?: Role) => {

+ 3 - 0
src/views/taggings/list.vue

@@ -135,6 +135,9 @@ const [materials, updateMaterials] = useRealtime(async () => {
     pageNum: pagination.current,
     pageSize: pagination.pageSize
   }
+  if (!params.projectId) {
+    return
+  }
   if (type.value !== 'all') {
     params.markingStatus = type.value
   }