浏览代码

修改动态账号

plg 8 月之前
父节点
当前提交
e25e53b6a9
共有 6 个文件被更改,包括 13 次插入26 次删除
  1. 0 1
      src/views/CognizeFaceDot.vue
  2. 0 1
      src/views/CognizeGoNoGo.vue
  3. 3 5
      src/views/HomeView.vue
  4. 4 6
      src/views/Plan.vue
  5. 2 7
      src/views/Scale.vue
  6. 4 6
      src/views/ScaleMid.vue

+ 0 - 1
src/views/CognizeFaceDot.vue

@@ -553,7 +553,6 @@ const submitData = async () => {
             testResult: JSON.stringify(result),
             type: '1',
             userName: userInfo.userInfo.userName,
-            // userNo: isHaveManage ? userInfo.userInfo.userNo : '20240726001',
             userNo: userInfo.userInfo.userNo,
         }
 

+ 0 - 1
src/views/CognizeGoNoGo.vue

@@ -300,7 +300,6 @@ const getScore = async (i: number) => {
             }),
             type: '1',
             userName: userInfo.userInfo.userName,
-            // userNo: isHaveManage ? userInfo.userInfo.userNo : '20240726001',
             userNo: userInfo.userInfo.userNo,
         }
         let res: any = await saveGoNoGoApi(params)

+ 3 - 5
src/views/HomeView.vue

@@ -117,11 +117,9 @@ const planNumGet = async () => {
     let userNo = ''
     //登录的话
     //判断当前是否有后台管理
-    if (isHaveManage) {
-      userNo = userInfo.userInfo.userNo
-    } else {
-      userNo = '20240726001'
-    }
+
+    userNo = userInfo.userInfo.userNo
+
     //调用根据用户查询计划的API
     let res: any = await userPlanApi(userNo)
     console.log(res)

+ 4 - 6
src/views/Plan.vue

@@ -109,11 +109,9 @@ const planNumGet = async () => {
         let userNo = ''
         //登录的话
         //判断当前是否有后台管理
-        if (isHaveManage) {
-            userNo = userInfo.userInfo.userNo
-        } else {
-            userNo = '20240726001'
-        }
+
+        userNo = userInfo.userInfo.userNo
+
         //调用根据用户查询计划的API
         let res: any = await userPlanApi(userNo)
 
@@ -125,7 +123,7 @@ const planNumGet = async () => {
         for (let i = 0; i < planList.value.length; i++) {
             let params = {
                 planId: planList.value[i].id,
-                userNo: isHaveManage ? userInfo.userInfo.userNo : '20240726001'
+                userNo: userInfo.userInfo.userNo
             }
             let temp: any = await userPlanDetailApi(params)
             planList.value[i].list = temp.data

+ 2 - 7
src/views/Scale.vue

@@ -63,10 +63,8 @@ const topicIndex = ref<number>(1)
 
 //下一题的方法
 const nextTopic = () => {
-
     //判断当前索引下的数组中是否有isCheck为空
     //先判断这个是不是
-
     if (scaleList.value[topicIndex.value - 1].isCheck == '') {
         ElMessage({
             message: '请选择当前题目',
@@ -77,10 +75,6 @@ const nextTopic = () => {
     //判断当前是不是最后一题
     //如果是最后一题就不++了
     if (topicIndex.value == scaleList.value.length) {
-        // ElMessage({
-        //     message: '已经是最后一题了',
-        //     type: "warning",
-        // })
         return
     }
     topicIndex.value++
@@ -100,6 +94,8 @@ const subScaleData = async () => {
     }
     //开始调用提交数据的方法
 
+    // testRecord: JSON.stringify(productData()),
+
     //开始处理数据
     // productData()
     let params = {
@@ -113,7 +109,6 @@ const subScaleData = async () => {
         testRecord: JSON.stringify(productData()),
         type: '0',
         userName: userInfo.userInfo.userName,
-        // userNo: isHaveManage ? userInfo.userInfo.userNo : '20240726001',
         userNo: userInfo.userInfo.userNo,
     }
     const res = await saveScaleApi(params)

+ 4 - 6
src/views/ScaleMid.vue

@@ -118,11 +118,9 @@ const planNumGet = async () => {
         let userNo = ''
         //登录的话
         //判断当前是否有后台管理
-        if (isHaveManage) {
-            userNo = userInfo.userInfo.userNo
-        } else {
-            userNo = '20240726001'
-        }
+
+        userNo = userInfo.userInfo.userNo
+
         //调用根据用户查询计划的API
         let res: any = await userPlanApi(userNo)
 
@@ -134,7 +132,7 @@ const planNumGet = async () => {
         for (let i = 0; i < planList.value.length; i++) {
             let params = {
                 planId: planList.value[i].id,
-                userNo: isHaveManage ? userInfo.userInfo.userNo : '20240726001'
+                userNo: userInfo.userInfo.userNo
             }
             let temp: any = await userPlanDetailApi(params)
             planList.value[i].list = temp.data