diff --git a/src/views/zy/zyGonggao/ZyGonggaoList.vue b/src/views/zy/zyGonggao/ZyGonggaoList.vue index d8a75d5..9373bdc 100644 --- a/src/views/zy/zyGonggao/ZyGonggaoList.vue +++ b/src/views/zy/zyGonggao/ZyGonggaoList.vue @@ -78,13 +78,16 @@ import { useMessage } from "/@/hooks/web/useMessage"; import { JInput } from '/@/components/Form'; import { useRouter } from 'vue-router'; + import {useUserStore} from "/@/store/modules/user"; const APagination = Pagination; const { createConfirm } = useMessage(); const { currentRoute } = useRouter(); const { query } = unref(currentRoute); const { rwbh,xqxn } = query;//获取传递参数 - const queryParam = ref({rwbh, xqxn}); + const userStore = useUserStore(); + const userName = userStore.getUserInfo.username; + const queryParam = ref({rwbh, xqxn,"createBy":userName}); const registerModal = ref(); const registerYlModal = ref(); const registerHistoryModal = ref(); @@ -208,7 +211,7 @@ * 重置 */ function searchReset() { - queryParam.value = {}; + queryParam.value = {"createBy":userName}; queryParam.value.rwbh = rwbh; queryParam.value.xqxn = xqxn; total.value = 1;