提交 82823c86 authored 作者: lihuihui's avatar lihuihui

国际化更新

上级 49c59858
...@@ -108,8 +108,24 @@ ...@@ -108,8 +108,24 @@
"processed": "Processed", "processed": "Processed",
"probDesc": "Problem Description:", "probDesc": "Problem Description:",
"downloadAtta": "Download attachments:", "downloadAtta": "Download attachments:",
"publishTime:": "Publish time:", "publishTime": "Publish time:",
"questionReply:": "Question reply:" "questionReply": "Question reply:",
"no": "No time"
},
"feedbackCreate": {
"title": "Feedback",
"probDesc": "Problem Description:",
"enterDesc": "Please enter a question description",
"problemDetails": "Details of the problem:",
"uploadAtta": "Upload attachments",
"limit": "(resources such as word, PPT, PNG, JPG, zip, rar can be uploaded. For multiple files, please compress and package them into one file before uploading.)",
"submitTo": "Submit to",
"technology": "Technology",
"administration": "Administration",
"all": "All",
"btnUpload": "Click upload",
"downloadButtonText": "Download uploaded attachments",
"subBtn": "Submit"
} }
} }
} }
......
...@@ -108,8 +108,24 @@ ...@@ -108,8 +108,24 @@
"processed": "已处理", "processed": "已处理",
"probDesc": "问题描述:", "probDesc": "问题描述:",
"downloadAtta": "下载附件:", "downloadAtta": "下载附件:",
"publishTime:": "发布时间:", "publishTime": "发布时间:",
"questionReply:": "问题回复:" "questionReply": "问题回复:",
"no": "暂无"
},
"feedbackCreate": {
"title": "系统反馈",
"probDesc": "问题描述:",
"enterDesc": "请输入问题描述",
"problemDetails": "问题详情:",
"uploadAtta": "上传附件",
"limit": "(可以上传 word、ppt、png、jpg、zip、rar等资源,多文件请先压缩打包成一个文件后,再上传)",
"submitTo": "提交给",
"technology": "技术",
"administration": "教务",
"all": "全部",
"btnUpload": "点击上传",
"downloadButtonText": "下载已上传附件",
"subBtn": "提交"
} }
} }
} }
......
<template> <template>
<div> <div>
<div class="con-title">系统反馈</div> <div class="con-title">{{ $t('pages.feedback.feedbackCreate.title') }}</div>
<div class="con-box"> <div class="con-box">
<el-row type="flex" justify="center"> <el-row type="flex" justify="center">
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24"> <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
<el-form ref="setApplyForm" :model="setApply" :rules="applyRules"> <el-form ref="setApplyForm" :model="setApply" :rules="applyRules">
<el-form-item label="问题描述" prop="name"> <el-form-item :label="$t('pages.feedback.feedbackCreate.probDesc')" prop="name">
<el-input v-model="setApply.name" placeholder="请输入问题描述" type="text" /> <el-input v-model="setApply.name" :placeholder="$t('pages.feedback.feedbackCreate.enterDesc')" type="text" />
</el-form-item> </el-form-item>
<div style="width: 100%; height: 10px;"></div> <div style="width: 100%; height: 10px;"></div>
<div class="label" style="font-size: 14px; line-height: 2;">问题详情:</div> <div class="label" style="font-size: 14px; line-height: 2;">{{ $t('pages.feedback.feedbackCreate.problemDetails') }}</div>
<textarea id="editor"></textarea> <textarea id="editor"></textarea>
<div style="width: 100%; height: 10px;"></div> <div style="width: 100%; height: 10px;"></div>
<el-form-item label="上传附件" prop="file"> <el-form-item :label="$t('pages.feedback.feedbackCreate.uploadAtta')" prop="file">
<el-upload <el-upload
ref="upFile" ref="upFile"
class="upload-demo" class="upload-demo"
...@@ -23,18 +23,18 @@ ...@@ -23,18 +23,18 @@
:on-change="handleChange" :on-change="handleChange"
:http-request="uploadFile" :http-request="uploadFile"
:file-list="filesArr"> :file-list="filesArr">
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">{{ $t('pages.feedback.feedbackCreate.btnUpload') }}</el-button>
<div slot="tip" class="el-upload__tip">(可以上传 word、ppt、png、jpg、zip、rar等资源,多文件请先压缩打包成一个文件后,再上传)</div> <div slot="tip" class="el-upload__tip">{{ $t('pages.feedback.feedbackCreate.limit') }}</div>
<template v-if="successFileUrl"> <template v-if="successFileUrl">
{{successFileUrl.replace(/.*\/([^\/]*\.[^.]+)$/gi, '$1')}} {{successFileUrl.replace(/.*\/([^\/]*\.[^.]+)$/gi, '$1')}}
</template> </template>
</el-upload> </el-upload>
<template v-if="successFileUrl"> <template v-if="successFileUrl">
<a :href="successFileUrl">下载已上传附件</a> <a :href="successFileUrl">{{ $t('pages.feedback.feedbackCreate.downloadButtonText') }}</a>
</template> </template>
</el-form-item> </el-form-item>
<el-form-item label="提交给" prop="type_id"> <el-form-item :label="$t('pages.feedback.feedbackCreate.submitTo')" prop="type_id">
<el-select v-model="value" placeholder="请选择"> <el-select v-model="value">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onApplyFrom">提交</el-button> <el-button type="primary" @click="onApplyFrom">{{$t('pages.feedback.feedbackCreate.subBtn')}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-col> </el-col>
...@@ -83,9 +83,9 @@ export default { ...@@ -83,9 +83,9 @@ export default {
file: '' file: ''
}, },
options: [ options: [
{ value: '0', label: '全部' }, { value: '0', label: this.$t('pages.feedback.feedbackCreate.all') },
{ value: '1', label: '教务' }, { value: '1', label: this.$t('pages.feedback.feedbackCreate.administration') },
{ value: '2', label: '技术' } { value: '2', label: this.$t('pages.feedback.feedbackCreate.technology') }
], ],
value: '2' value: '2'
} }
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
<template slot="title"> <template slot="title">
{{item.feedback_title}}<div style="position: absolute; right: 70px;" v-html="item.status"></div> {{item.feedback_title}}<div style="position: absolute; right: 70px;" v-html="item.status"></div>
</template> </template>
<div style="font-size: 15px; font-weight: 700;">问题描述:(发布时间:{{item.created_time}})</div> <div style="font-size: 15px; font-weight: 700;">{{ $t('pages.feedback.feedbackList.probDesc') }}({{ $t('pages.feedback.feedbackList.publishTime') }} {{item.created_time}})</div>
<div style="text-indent: 20px;" v-html="item.feedback_contents"></div> <div style="text-indent: 20px;" v-html="item.feedback_contents"></div>
<div style="font-size: 15px; font-weight: 700;">下载附件:</div> <div style="font-size: 15px; font-weight: 700;">{{ $t('pages.feedback.feedbackList.downloadAtta') }}</div>
<div style="overflow: hidden; text-indent: 20px;"> <div style="overflow: hidden; text-indent: 20px;">
<template v-if="item.isEmpty"> <template v-if="item.isEmpty">
暂无附件内容 暂无附件内容
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
<template v-else> <template v-else>
<template v-for="(item1, index1) in item.feedback_attachments"> <template v-for="(item1, index1) in item.feedback_attachments">
<template v-if="item1.url"> <template v-if="item1.url">
<a style="float: left; margin-right: 10px;" :href="item1.url">下载附件{{index1+1}}</a> <a style="float: left; margin-right: 10px;" :href="item1.url">{{ $t('pages.feedback.feedbackList.downloadAtta') }}{{index1+1}}</a>
</template> </template>
</template> </template>
</template> </template>
</div> </div>
<div style="font-size: 15px; font-weight: 700;">问题回复:</div> <div style="font-size: 15px; font-weight: 700;">{{ $t('pages.feedback.feedbackList.questionReply') }}</div>
<template v-if="item.replies.length"> <template v-if="item.replies.length">
<template v-for="(item1, index1) in item.replies"> <template v-for="(item1, index1) in item.replies">
<div class="discuss-feedback-scroll"> <div class="discuss-feedback-scroll">
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</div> </div>
</template> </template>
<textarea v-model="item.replyContent"></textarea> <textarea v-model="item.replyContent"></textarea>
<el-button type="primary" size="mini" round @click="replyContent" :data-index='index'>回复</el-button> <el-button type="primary" size="mini" round @click="replyContent" :data-index='index'>{{ $t('pages.learn.discussDetail.reply') }}</el-button>
</template> </template>
<template v-else> <template v-else>
<div style="text-indent: 20px;">问题已发送给相应的技术或教务人员,正在处理中,请耐心等待。</div> <div style="text-indent: 20px;">问题已发送给相应的技术或教务人员,正在处理中,请耐心等待。</div>
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
} }
} }
/* 对状态 做一下单独处理 */ /* 对状态 做一下单独处理 */
temp.status = temp.status === '0' ? '<em style="color: #f34b4b">待处理</em>' : temp.status === '1' ? '<em style="color: #f3c74b">处理中</em>' : temp.status === '2' ? '<em style="color: #44a706">处理完成</em>' : '暂无' temp.status = temp.status === '0' ? `<em style="color: #f34b4b">${this.$t('pages.feedback.feedbackList.pending')}</em>` : temp.status === '1' ? `<em style="color: #f3c74b">${this.$t('pages.feedback.feedbackList.processing')}</em>` : temp.status === '2' ? `<em style="color: #44a706">${this.$t('pages.feedback.feedbackList.processed')}</em>` : this.$t('pages.feedback.feedbackList.no')
/* 对回复 做一下单独处理 */ /* 对回复 做一下单独处理 */
temp.replyContent = '' temp.replyContent = ''
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论