zs 1 gadu atpakaļ
vecāks
revīzija
1a06a6eb7b

+ 1 - 1
src/lang/package/zh-cn/common.js

@@ -4,9 +4,9 @@ export default {
   add: '添加',
   update: '修改',
   delete: '删除',
+  follow: '收藏',
   exam: '审核',
   dict: '字典数据',
-  sign: '报名',
   delete_confirm: '您确定删除该数据?',
   search: '查询',
   reset: '重置',

+ 6 - 0
src/views/user/student/index.vue

@@ -14,6 +14,7 @@
       :opera="opera"
       @view="toView"
       @exam="toExam"
+      @follow="toFollow"
       @delete="toDelete"
     >
     </custom-table>
@@ -82,6 +83,7 @@ const fields = [
 ]
 const opera = [
   { label: t('common.view'), method: 'view' },
+  { label: t('common.follow'), method: 'follow' },
   { label: t('common.exam'), method: 'exam', type: 'warning', display: (i) => i.status === '0' },
   {
     label: t('common.delete'),
@@ -160,6 +162,10 @@ const toExamSave = async () => {
     toClose()
   }
 }
+// 关注
+const toFollow = async (data) => {
+  console.log(data)
+}
 const toClose = () => {
   form.value = {}
   dialog.value = { show: false }