lex 2 vuotta sitten
vanhempi
commit
fff8a96b40

+ 1 - 1
src/views/role-auth/teacherAuth/components/edu-information/index.tsx

@@ -62,7 +62,7 @@ export default defineComponent({
       >
         <ElFormItem
           labelWidth={this.labelWidth}
-          label="毕业院校"
+          label="毕业院校(选填)"
           prop="graduateSchool"
           // rules={[
           //   {

+ 7 - 1
src/views/student-info/components/item/index.tsx

@@ -11,12 +11,18 @@ export default defineComponent({
     item: {
       type: Object,
       default: () => ({})
+    },
+    onItemClick: {
+      type: Function,
+      default: (item: any) => {}
     }
   },
   render() {
     const item = this.item
     return (
-      <div class="rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all">
+      <div class="rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all" onClick={() => {
+        this.onItemClick(item)
+      }}>
         <ElImage src={iconStart} class="w-6 h-6 !absolute top-2 right-4 z-10" />
 
         <ElImage

+ 12 - 1
src/views/student-info/my-score/album-list.tsx

@@ -91,7 +91,18 @@ export default defineComponent({
             {this.list.map((item: any) => (
               <>
                 <div class="w-1/4 pb-5">
-                  <Item class="m-auto" item={item} />
+                  <Item
+                    class="m-auto"
+                    item={item}
+                    onItemClick={(item: any) => {
+                      this.$router.push({
+                        path: '/albumDetail',
+                        query: {
+                          id: item.id
+                        }
+                      })
+                    }}
+                  />
                 </div>
               </>
             ))}