|
@@ -22,18 +22,7 @@
|
|
|
<!-- <el-button type="text" @click="return false">{{$t("htcommunity.view")}}</el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <!-- 詳細內容彈出視窗 -->
|
|
|
- <el-dialog :title="this.$t('htcommunity.details')" :visible.sync="showDetailsModal" width="50%">
|
|
|
- <p>{{this.$t("htcommunity.activityName")}}: {{ selectedActivity.name }}</p>
|
|
|
- <p>{{this.$t("htcommunity.schedule")}}: {{ selectedActivity.time }}</p>
|
|
|
- <p>{{this.$t("htcommunity.administrator")}}: {{ selectedActivity.admin }}</p>
|
|
|
- <p>原始資料: {{ selectedActivity.originalData }}</p>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="showDetailsModal = false">{{this.$t("htcommunity.cancel")}}</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
+ </el-table>
|
|
|
|
|
|
<!-- 新增活動彈出視窗 -->
|
|
|
<el-dialog :title="this.$t('htcommunity.addEvent')" :visible.sync="showAddModal" width="90%"
|
|
@@ -64,7 +53,9 @@
|
|
|
<el-form-item :label="this.$t('htcommunity.group')">
|
|
|
<!-- <el-tooltip content="指定評審,請檢查確認為正確醍摩豆ID" placement="bottom" effect="light"> -->
|
|
|
<el-tooltip placement="bottom" effect="light">
|
|
|
- <div slot="content" style="color: red;font-size: 1.2em;">指定評審,請輸入醍摩豆用戶編號,檢查確認為正確醍摩豆ID</div>
|
|
|
+ <div slot="content" style="color: red;font-size: 1.2em;">
|
|
|
+ {{$t("htcommunity.Warning01")}}
|
|
|
+ </div>
|
|
|
<i class="el-icon-warning-outline" style="font-size: 2em;"></i>
|
|
|
</el-tooltip>
|
|
|
<!-- <span>指定評審請輸入<span class="point">手機號碼</span>、<span class="point">醍摩豆用戶編號</span>或<span class="point">電子信箱</span>等資訊進行搜尋</span> -->
|
|
@@ -79,7 +70,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.groupJudge" style="width: 200px;margin-right: 10px"></el-input>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="checkTmdid(scope)"
|
|
|
- style="margin-top: 5px;">檢查</el-button>
|
|
|
+ style="margin-top: 5px;">{{$t("htcommunity.check")}}</el-button>
|
|
|
<span v-if="scope.row.valid">✔️</span>
|
|
|
|
|
|
</template>
|
|
@@ -112,7 +103,9 @@
|
|
|
<el-date-picker v-model="scope.row.schedule" type="datetimerange" start-placeholder="Start"
|
|
|
end-placeholder="End" style="width: 100%;" :disabled="scheduleDisabled(scope, '')">
|
|
|
</el-date-picker>
|
|
|
- <span style="color:red;font-size: small;" v-show="scope.row.progress==='going'">進行中時程不可編輯</span>
|
|
|
+ <span style="color:red;font-size: small;" v-show="scope.row.progress==='going'">
|
|
|
+ {{$t("htcommunity.Warning02")}}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" :label="this.$t('htcommunity.stage')" min-width="100px">
|
|
@@ -210,8 +203,7 @@ export default {
|
|
|
{ code: 'join', name: this.$t("htcommunity.signup") },
|
|
|
{ code: 'exam', name: this.$t("htcommunity.exam") },
|
|
|
{ code: 'other', name: this.$t("htcommunity.other") }
|
|
|
- ],
|
|
|
- showDetailsModal: false,
|
|
|
+ ],
|
|
|
showAddModal: false,
|
|
|
selectedActivity: {},
|
|
|
newActivity: {
|
|
@@ -225,18 +217,18 @@ export default {
|
|
|
],
|
|
|
requireOrderCompletion: false,
|
|
|
planContent: [
|
|
|
- {id:'', step: 1, schedule: [], name: '報名時間', location: '', description: '', blobs: '', type: true, examType: false, evaluation: false }
|
|
|
+ {id:'', step: 1, schedule: [], name: this.$t("htcommunity.jointTime"), location: '', description: '', blobs: '', type: true, examType: false, evaluation: false }
|
|
|
],
|
|
|
|
|
|
},
|
|
|
// 表單驗證
|
|
|
rules: {
|
|
|
name: [
|
|
|
- { required: true, message: '請輸入活動名稱' }
|
|
|
+ { required: true, message: this.$t("htcommunity.pleaseEnterEventName") }
|
|
|
],
|
|
|
time: [
|
|
|
{
|
|
|
- required: true, message: '請輸入時程'
|
|
|
+ required: true, message: this.$t("htcommunity.pleaseEnterSchedule")
|
|
|
}
|
|
|
],
|
|
|
},
|
|
@@ -341,7 +333,7 @@ export default {
|
|
|
else {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message: '帳號不存在',
|
|
|
+ message: this.$t('htcommunity.accountNotExist'),
|
|
|
type: 'error'
|
|
|
});
|
|
|
scope.row.valid = false;
|
|
@@ -355,7 +347,7 @@ export default {
|
|
|
} else {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message: '請輸入帳號',
|
|
|
+ message: this.$t('htcommunity.pleaseEnterAccount'),
|
|
|
type: 'error'
|
|
|
});
|
|
|
scope.row.valid = false;
|
|
@@ -694,7 +686,7 @@ export default {
|
|
|
],
|
|
|
requireOrderCompletion: false,
|
|
|
planContent: [
|
|
|
- {id:'', step: 1, schedule: [], name: '報名時間', location: '', description: '', blobs: '', type: true, examType: false, evaluation: false }
|
|
|
+ {id:'', step: 1, schedule: [], name: this.$t('htcommunity.jointTime'), location: '', description: '', blobs: '', type: true, examType: false, evaluation: false }
|
|
|
]
|
|
|
};
|
|
|
},
|
|
@@ -704,9 +696,9 @@ export default {
|
|
|
},
|
|
|
//移除分組
|
|
|
removeGroup(scope) {
|
|
|
- this.$confirm('確定要刪除組別?', '提示', {
|
|
|
- confirmButtonText: '確定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ this.$confirm(this.$t('htcommunity.Warning03'), this.$t('htcommunity.notice'), {
|
|
|
+ confirmButtonText: this.$t('htcommunity.confirm'),
|
|
|
+ cancelButtonText: this.$t('htcommunity.cancel'),
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
try {
|
|
@@ -741,9 +733,9 @@ export default {
|
|
|
},
|
|
|
//移除時程
|
|
|
removePlanContent(scope) {
|
|
|
- this.$confirm('確定要刪除時程?', '提示', {
|
|
|
- confirmButtonText: '確定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ this.$confirm(this.$t('htcommunity.Warning04'), this.$t('htcommunity.notice'), {
|
|
|
+ confirmButtonText: this.$t('htcommunity.confirm'),
|
|
|
+ cancelButtonText: this.$t('htcommunity.cancel'),
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
try {
|