diff --git a/package.json b/package.json
index 50050c3a..2b265fab 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,8 @@
"eslintConfig": {
"root": true,
"env": {
- "node": true
+ "node": true,
+ "vue/setup-compiler-macros": true
},
"extends": [
"plugin:vue/vue3-essential",
diff --git a/src/App.vue b/src/App.vue
index eaa77157..97503f1f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,258 +1,192 @@
-
-
-
-
+
+
+
+
-
\ No newline at end of file
diff --git a/src/api/indexTaskManage.js b/src/api/indexTaskManage.js
index e6690e52..9a9b70ca 100644
--- a/src/api/indexTaskManage.js
+++ b/src/api/indexTaskManage.js
@@ -43,3 +43,6 @@ export const AttendanceLeave = (obj) => http.post('/stu/task/attendance/leave',
// 直播考勤签到
export const AttendanceSign = (obj) => http.post('/stu/task/attendance/sign', obj)
+
+// 查询项目管理的信息
+export const QueryProjectManageDetail = (obj) => http.post('/project/management/queryProjectManageDetail', obj)
\ No newline at end of file
diff --git a/src/api/request.js b/src/api/request.js
index 707aba9f..54e2361d 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -121,11 +121,17 @@ export function usePage(_url, params, init = true) {
})
if (isRef(params)) {
- watch(params, () => {
+ watch(params.value, () => {
fetch()
})
}
+ if (isRef(_url)) {
+ watchEffect(fetch)
+ } else {
+ init && fetch()
+ }
+
function reset(){
state.data = []
state.loading = false
@@ -142,12 +148,6 @@ export function usePage(_url, params, init = true) {
})
}
- if (isRef(_url)) {
- watchEffect(fetch)
- } else {
- init && fetch()
- }
-
return {
...toRefs(state),
fetch,
diff --git a/src/components/common/DropDown.vue b/src/components/common/DropDown.vue
new file mode 100644
index 00000000..efa20e47
--- /dev/null
+++ b/src/components/common/DropDown.vue
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/src/components/drawers/NoticePub.vue b/src/components/drawers/NoticePub.vue
index be42d539..71f77489 100644
--- a/src/components/drawers/NoticePub.vue
+++ b/src/components/drawers/NoticePub.vue
@@ -3,7 +3,7 @@
-
+
-
+
@@ -49,7 +49,7 @@
placeholder="公告信息最多输入150个字"
style="margin-top: -10px; height: 160px;"
/>
-
+
取消
发布
@@ -69,6 +69,10 @@ import emitter from "../../utils/bus";
export default {
name: "NoticePub",
props: {
+ permissions:{
+ type:String,
+ default:''
+ },
projectId: {
type: Number,
default: null,
diff --git a/src/components/drawers/ProjectScore.vue b/src/components/drawers/ProjectScore.vue
index c8d63de7..c8a13b0d 100644
--- a/src/components/drawers/ProjectScore.vue
+++ b/src/components/drawers/ProjectScore.vue
@@ -144,7 +144,7 @@
规则
-
+
编辑
@@ -302,6 +302,10 @@ export default {
StuScoreDetail,
},
props: {
+ permissions:{
+ type:String,
+ default: ''
+ },
projectId: {
type: Number,
default: null,
diff --git a/src/components/drawers/router/RouterProjectManage.vue b/src/components/drawers/router/RouterProjectManage.vue
index 2a968b41..32d2508d 100644
--- a/src/components/drawers/router/RouterProjectManage.vue
+++ b/src/components/drawers/router/RouterProjectManage.vue
@@ -112,24 +112,25 @@
-->
-
+
+
-
+