提交 58317295 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 eb22c685
module.exports = { module.exports = {
domain: 'dev.ezijing.com', domain: 'dev.ezijing.com',
url: 'https://web-certs2.ezijing.com/api', url: 'https://certs.ezijing.com/api',
isEnableToIphoneDebugger: false, isEnableToIphoneDebugger: false,
// apiBaseURL: '//demo-login.ezijing.com/', // apiBaseURL: '//demo-login.ezijing.com/',
webpack: { webpack: {
...@@ -33,6 +33,6 @@ module.exports = { ...@@ -33,6 +33,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
loginUrl: 'https://login2.ezijing.com/certs/login/index' loginUrl: 'https://login.ezijing.com/certs/login/index'
} }
} }
...@@ -12875,6 +12875,7 @@ ...@@ -12875,6 +12875,7 @@
"resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-1.2.13.tgz?cache=0&sync_timestamp=1612536546156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-1.2.13.tgz", "resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-1.2.13.tgz?cache=0&sync_timestamp=1612536546156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-1.2.13.tgz",
"integrity": "sha1-8yXLBFVZJCi88Rs4M3DvcOO/zDg=", "integrity": "sha1-8yXLBFVZJCi88Rs4M3DvcOO/zDg=",
"dev": true, "dev": true,
"hasInstallScript": true,
"optional": true, "optional": true,
"os": [ "os": [
"darwin" "darwin"
...@@ -13255,6 +13256,7 @@ ...@@ -13255,6 +13256,7 @@
"resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-1.2.13.tgz?cache=0&sync_timestamp=1612536546156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-1.2.13.tgz", "resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-1.2.13.tgz?cache=0&sync_timestamp=1612536546156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-1.2.13.tgz",
"integrity": "sha1-8yXLBFVZJCi88Rs4M3DvcOO/zDg=", "integrity": "sha1-8yXLBFVZJCi88Rs4M3DvcOO/zDg=",
"dev": true, "dev": true,
"hasInstallScript": true,
"optional": true, "optional": true,
"os": [ "os": [
"darwin" "darwin"
......
...@@ -27,7 +27,7 @@ export const shmsLang = { ...@@ -27,7 +27,7 @@ export const shmsLang = {
selectName2: 'Semester', selectName2: 'Semester',
selectName3: 'Course Name', selectName3: 'Course Name',
enrolled: 'Enrolled', enrolled: 'Enrolled',
graduate: 'Graduate', graduate: 'Graduated',
gap: 'Gap', gap: 'Gap',
withdraw: 'Withdraw', withdraw: 'Withdraw',
Lose: 'Lose contact' Lose: 'Lose contact'
......
...@@ -27,7 +27,7 @@ export const shmsLang = { ...@@ -27,7 +27,7 @@ export const shmsLang = {
selectName2: 'Semester', selectName2: 'Semester',
selectName3: 'Course Name', selectName3: 'Course Name',
enrolled: 'Enrolled', enrolled: 'Enrolled',
graduate: 'Graduate', graduate: 'Graduated',
gap: 'Gap', gap: 'Gap',
withdraw: 'Withdraw', withdraw: 'Withdraw',
Lose: 'Lose contact' Lose: 'Lose contact'
......
<template> <template>
<div class="form-content"> <div class="form-content">
<el-form ref="form" :inline="true" :model="form" label-width="120px"> <el-form ref="form" :inline="true" :model="form" label-width="120px" v-if="false">
<el-form-item :label="$t('shmsLang.status.selectName')"> <el-form-item :label="$t('shmsLang.status.selectName')">
<el-select <el-select
clearable clearable
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="form-btn"> <div class="form-btn">
<div @click="search">{{ $t('shmsLang.searchBtn') }}</div> <div @click="search" v-if="false">{{ $t('shmsLang.searchBtn') }}</div>
<div @click="$emit('downPdf')">{{ $t('shmsLang.downloadBtn') }}</div> <div @click="$emit('downPdf')">{{ $t('shmsLang.downloadBtn') }}</div>
</div> </div>
</div> </div>
...@@ -94,7 +94,9 @@ export default { ...@@ -94,7 +94,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.form-content { .form-content {
margin-bottom: 20px;
display: flex; display: flex;
justify-content: flex-end;
.form-btn { .form-btn {
display: flex; display: flex;
div { div {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="info-box" style="margin-right: 20px"> <div class="info-box" style="margin-right: 20px">
<!-- <div class="name">{{ $i18n.locale == 'zh' ? info.chinese_name : info.english_name }}</div> --> <!-- <div class="name">{{ $i18n.locale == 'zh' ? info.chinese_name : info.english_name }}</div> -->
<div class="name">{{ info.english_name }}</div> <div class="name">{{ info.english_name }}</div>
<div class="info">{{ setSex(info.gender) }} | {{ info.age }} | {{ info.city }},{{ info.country }}</div> <div class="info">{{ setSex(info.gender) }} | {{ info.age }} | {{ info.country }}</div>
<div class="info-temp m-t33"> <div class="info-temp m-t33">
<div class="name w120">{{ $t('shmsLang.status.mobile') }}</div> <div class="name w120">{{ $t('shmsLang.status.mobile') }}</div>
<div class="value">{{ info.mobile }}</div> <div class="value">{{ info.mobile }}</div>
...@@ -33,15 +33,15 @@ ...@@ -33,15 +33,15 @@
<div class="name w140">{{ $t('shmsLang.status.state') }}</div> <div class="name w140">{{ $t('shmsLang.status.state') }}</div>
<div class="value">{{ setStatus(info.graduation_status) }}</div> <div class="value">{{ setStatus(info.graduation_status) }}</div>
</div> </div>
<div class="info-temp m-t17"> <!-- <div class="info-temp m-t17" v-if="info.created_time">
<div class="name w140">{{ $t('shmsLang.status.added') }}</div> <div class="name w140">{{ $t('shmsLang.status.added') }}</div>
<div class="value" v-if="info.created_time">{{ setDate(info.created_time) }}</div> <div class="value">{{ setDate(info.created_time) }}</div>
</div> </div> -->
<div class="info-temp m-t17"> <div class="info-temp m-t17" v-if="info.graduation_time">
<div class="name w140"> <div class="name w140">
<div>{{ $t('shmsLang.status.graduated') }}</div> <div>{{ $t('shmsLang.status.graduated') }}</div>
</div> </div>
<div class="value" v-if="info.graduation_time"> <div class="value">
{{ setDate(info.graduation_time) }} {{ setDate(info.graduation_time) }}
</div> </div>
</div> </div>
...@@ -79,7 +79,11 @@ export default { ...@@ -79,7 +79,11 @@ export default {
}, },
methods: { methods: {
setSex(n) { setSex(n) {
const sex = { 0: this.$t('shmsLang.status.sexWoMan'), 1: this.$t('shmsLang.status.sexMan'), 2: this.$t('shmsLang.status.sexUnknown') } const sex = {
0: this.$t('shmsLang.status.sexWoMan'),
1: this.$t('shmsLang.status.sexMan'),
2: this.$t('shmsLang.status.sexUnknown')
}
return sex[n] return sex[n]
}, },
setStatus(n) { setStatus(n) {
...@@ -116,7 +120,18 @@ export default { ...@@ -116,7 +120,18 @@ export default {
const substringDate = date.substring(0, date.indexOf(' ')) const substringDate = date.substring(0, date.indexOf(' '))
const splitDate = substringDate.split('-') const splitDate = substringDate.split('-')
const enMonth = { const enMonth = {
1: 'Jan', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'May', 6: 'Jun', 7: 'Jul', 8: 'Aug', 9: 'Sept', 10: 'Oct', 11: 'Nov', 12: 'Dec' 1: 'Jan',
2: 'Feb',
3: 'Mar',
4: 'Apr',
5: 'May',
6: 'Jun',
7: 'Jul',
8: 'Aug',
9: 'Sept',
10: 'Oct',
11: 'Nov',
12: 'Dec'
} }
return `${enMonth[parseInt(splitDate[1])]} ${splitDate[2]}. ${splitDate[0]}` return `${enMonth[parseInt(splitDate[1])]} ${splitDate[2]}. ${splitDate[0]}`
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论