diff --git a/src/views/scale/SysScaleQuestion/index.vue b/src/views/scale/SysScaleQuestion/index.vue
index d60662a..7c448da 100644
--- a/src/views/scale/SysScaleQuestion/index.vue
+++ b/src/views/scale/SysScaleQuestion/index.vue
@@ -73,7 +73,8 @@
v-model:limit="queryParams.pageSize" @pagination="getList" />
-
+
@@ -115,12 +116,17 @@
-
+
-
+
-
+
+
+
+
+
+
@@ -235,7 +241,6 @@ const data = reactive>({
const { queryParams, form, rules } = toRefs(data);
-
/** 查询量问题内容列表 */
const getList = async () => {
loading.value = true;
@@ -295,7 +300,7 @@ const handleUpdate = async (row?: SysScaleQuestionVO) => {
}
function addQuestion() {
- form.value.scaleAnswerList.push({ answerId: nanoid(), answerOption: '', score: 0, type: 0 })
+ form.value.scaleAnswerList.push({ answerId: nanoid(), answerOption: '', score: 0, type: 0, scoreType: '' })
}
function handleOptionDelete(row: any) {
diff --git a/src/views/system/teacher/index.vue b/src/views/system/teacher/index.vue
index 51a8cfe..a16c65b 100644
--- a/src/views/system/teacher/index.vue
+++ b/src/views/system/teacher/index.vue
@@ -460,7 +460,7 @@ const handleStatusChange = async (row: UserVO) => {
/** 跳转角色分配 */
const handleAuthRole = (row: UserVO) => {
const userId = row.userId;
- router.push("/system/user-auth/role/" + userId);
+ router.push(`/system/user-auth/role/teacher/${userId}`);
}
/** 重置密码按钮操作 */
diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue
index e869ba3..87b6686 100644
--- a/src/views/system/user/authRole.vue
+++ b/src/views/system/user/authRole.vue
@@ -20,14 +20,8 @@
角色信息
-
+
{{ (pageNum - 1) * pageSize + scope.$index + 1 }}
@@ -60,6 +54,7 @@ import { getAuthRole, updateAuthRole } from "@/api/system/user";
import { UserForm } from "@/api/system/user/types";
const route = useRoute();
+console.log('route', route)
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const loading = ref(true);
@@ -91,8 +86,15 @@ const getRowKey = (row: RoleVO): string => {
};
/** 关闭按钮 */
const close = () => {
- const obj = { path: "/system/user" };
- proxy?.$tab.closeOpenPage(obj);
+ if (route.params.type == 'student') {
+ const obj = { path: "/system/user" };
+ proxy?.$tab.closeOpenPage(obj);
+ }
+
+ if (route.params.type == 'teacher') {
+ const obj = { path: "/system/teacher" };
+ proxy?.$tab.closeOpenPage(obj);
+ }
};
/** 提交按钮 */
const submitForm = async () => {
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index b0c54fc..f10dfd5 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -454,7 +454,7 @@ const handleStatusChange = async (row: UserVO) => {
/** 跳转角色分配 */
const handleAuthRole = (row: UserVO) => {
const userId = row.userId;
- router.push("/system/user-auth/role/" + userId);
+ router.push(`/system/user-auth/role/student/${userId}`);
}
/** 重置密码按钮操作 */