通知公告优化,教师只能查自己创建的通知
This commit is contained in:
parent
d3c9153e84
commit
7dfc843a2d
|
@ -78,13 +78,16 @@
|
||||||
import { useMessage } from "/@/hooks/web/useMessage";
|
import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
import { JInput } from '/@/components/Form';
|
import { JInput } from '/@/components/Form';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import {useUserStore} from "/@/store/modules/user";
|
||||||
|
|
||||||
const APagination = Pagination;
|
const APagination = Pagination;
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const { query } = unref(currentRoute);
|
const { query } = unref(currentRoute);
|
||||||
const { rwbh,xqxn } = query;//获取传递参数
|
const { rwbh,xqxn } = query;//获取传递参数
|
||||||
const queryParam = ref<any>({rwbh, xqxn});
|
const userStore = useUserStore();
|
||||||
|
const userName = userStore.getUserInfo.username;
|
||||||
|
const queryParam = ref<any>({rwbh, xqxn,"createBy":userName});
|
||||||
const registerModal = ref();
|
const registerModal = ref();
|
||||||
const registerYlModal = ref();
|
const registerYlModal = ref();
|
||||||
const registerHistoryModal = ref();
|
const registerHistoryModal = ref();
|
||||||
|
@ -208,7 +211,7 @@
|
||||||
* 重置
|
* 重置
|
||||||
*/
|
*/
|
||||||
function searchReset() {
|
function searchReset() {
|
||||||
queryParam.value = {};
|
queryParam.value = {"createBy":userName};
|
||||||
queryParam.value.rwbh = rwbh;
|
queryParam.value.rwbh = rwbh;
|
||||||
queryParam.value.xqxn = xqxn;
|
queryParam.value.xqxn = xqxn;
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
|
|
Loading…
Reference in New Issue