更新部分按钮颜色和提示问题

This commit is contained in:
virusdefender 2019-03-11 15:02:17 +08:00
parent 9c50d44f70
commit f09c068b2b
6 changed files with 7 additions and 11 deletions

View File

@ -32,7 +32,7 @@ export const m = {
General_Announcement: 'Announcement', General_Announcement: 'Announcement',
Announcement_Title: 'Title', Announcement_Title: 'Title',
Announcement_Content: 'Conten', Announcement_Content: 'Conten',
Announcement_Status: 'Status', Announcement_visible: 'Visible',
// Conf.vue // Conf.vue
SMTP_Config: 'SMTP Config', SMTP_Config: 'SMTP Config',
Server: 'Server', Server: 'Server',

View File

@ -32,7 +32,7 @@ export const m = {
General_Announcement: '公告', General_Announcement: '公告',
Announcement_Title: '标题', Announcement_Title: '标题',
Announcement_Content: '内容', Announcement_Content: '内容',
Announcement_Status: '状态', Announcement_visible: '是否可见',
// Conf.vue // Conf.vue
SMTP_Config: 'SMTP Config', SMTP_Config: 'SMTP Config',
Server: '服务器', Server: '服务器',

View File

@ -32,7 +32,7 @@ export const m = {
General_Announcement: '公告', General_Announcement: '公告',
Announcement_Title: '標題', Announcement_Title: '標題',
Announcement_Content: '內容', Announcement_Content: '內容',
Announcement_Status: '狀態', Announcement_visible: '是否可見',
// Conf.vue // Conf.vue
SMTP_Config: 'SMTP 設定', SMTP_Config: 'SMTP 設定',
Server: '伺服器', Server: '伺服器',

View File

@ -84,7 +84,7 @@
<Simditor v-model="announcement.content"></Simditor> <Simditor v-model="announcement.content"></Simditor>
</el-form-item> </el-form-item>
<div class="visible-box"> <div class="visible-box">
<span>{{$t('m.Announcement_Status')}}</span> <span>{{$t('m.Announcement_visible')}}</span>
<el-switch <el-switch
v-model="announcement.visible" v-model="announcement.visible"
active-text="" active-text=""

View File

@ -26,9 +26,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="TLS"> <el-form-item label="TLS">
<el-switch <el-switch
v-model="smtp.tls" v-model="smtp.tls">
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -231,9 +231,7 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item :label="$t('m.Is_Disabled')"> <el-form-item :label="$t('m.Is_Disabled')">
<el-switch <el-switch
v-model="user.is_disabled" v-model="user.is_disabled">
active-text=""
inactive-text="">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -326,7 +324,7 @@
}) })
}, },
deleteUsers (ids) { deleteUsers (ids) {
this.$confirm('Sure to delete the user?', 'confirm', { this.$confirm('Sure to delete the user? The associated resources created by this user will be deleted as well, like problem, contest, announcement, etc.', 'confirm', {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
api.deleteUsers(ids.join(',')).then(res => { api.deleteUsers(ids.join(',')).then(res => {