|
@@ -46,7 +46,7 @@ import SvgIcon from '@/components/common/SvgIcon.vue'
|
|
|
import ColorPicker from '@/components/common/ColorPicker.vue'
|
|
|
import Message from '@/components/shared/message/Message.vue'
|
|
|
import UserInfo from '@/components/shared/UserInfo.vue'
|
|
|
-import { ElIcon } from 'element-plus'
|
|
|
+import { ElIcon, ElMessage } from 'element-plus'
|
|
|
import { Close } from '@element-plus/icons-vue'
|
|
|
import { logout } from '@/utils/shared'
|
|
|
import { sessionStorage } from '@/plugins/storage'
|
|
@@ -116,7 +116,7 @@ const buttons: HeaderButton[] = [
|
|
|
{ title: '查看样卷', type: 'example' },
|
|
|
{ title: '评分标准', type: 'standard' },
|
|
|
{ title: '删除当前专家卷', type: 'delete', smallTitle: '删除' },
|
|
|
- { title: '设置专家卷', type: 'bookmark', smallTitle: '设置' },
|
|
|
+ { title: '设置专家卷', type: 'bookmark', smallTitle: '设专家卷' },
|
|
|
]
|
|
|
|
|
|
const refs = reactive<Partial<Record<ButtonType, Element>>>({
|
|
@@ -229,6 +229,12 @@ const emitEvent = (type: EventType, val?: string | number | boolean | number[])
|
|
|
standardVisible.value = true
|
|
|
return
|
|
|
}
|
|
|
+ if (type === 'refresh') {
|
|
|
+ if (!mainStore.online) {
|
|
|
+ ElMessage.error('您的网络已断开,请检查网络')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
if (attrs['on' + type.replace(/^\S/, (s) => s.toUpperCase())]) {
|
|
|
emits(type, val as any)
|
|
|
}
|