remove email type for theme option form

pull/3445/head
ruibaby 2019-04-08 17:54:11 +08:00
parent d5422d7f84
commit 5009a270e6
1 changed files with 9 additions and 48 deletions

View File

@ -1,10 +1,6 @@
<template> <template>
<div class="page-header-index-wide"> <div class="page-header-index-wide">
<a-row <a-row :gutter="12" type="flex" align="middle">
:gutter="12"
type="flex"
align="middle"
>
<a-col <a-col
class="theme-item" class="theme-item"
:xl="6" :xl="6"
@ -25,20 +21,9 @@
<div class="theme-control"> <div class="theme-control">
<span class="theme-title">{{ theme.properties.name }}</span> <span class="theme-title">{{ theme.properties.name }}</span>
<a-button-group class="theme-button"> <a-button-group class="theme-button">
<a-button <a-button type="primary" v-if="activatedTheme == theme.key" disabled>已启用</a-button>
type="primary" <a-button type="primary" @click="activeTheme(theme.key)" v-else></a-button>
v-if="activatedTheme == theme.key" <a-button @click="optionModal(theme.key)" v-if="activatedTheme == theme.key"></a-button>
disabled
>已启用</a-button>
<a-button
type="primary"
@click="activeTheme(theme.key)"
v-else
>启用</a-button>
<a-button
@click="optionModal(theme.key)"
v-if="activatedTheme == theme.key"
>设置</a-button>
<a-popconfirm <a-popconfirm
:title="'确定删除【' + theme.properties.name + '】主题?'" :title="'确定删除【' + theme.properties.name + '】主题?'"
@confirm="deleteTheme(theme.key)" @confirm="deleteTheme(theme.key)"
@ -53,19 +38,9 @@
</a-card> </a-card>
</a-col> </a-col>
</a-row> </a-row>
<a-modal <a-modal :title="optionTheme + ' 主题设置'" width="90%" v-model="visible" centered>
:title="optionTheme + ' 主题设置'"
width="90%"
v-model="visible"
>
<a-row> <a-row>
<a-col <a-col :xl="24" :lg="24" :md="24" :sm="24" :xs="24">
:xl="24"
:lg="24"
:md="24"
:sm="24"
:xs="24"
>
<div class="card-container"> <div class="card-container">
<a-tabs type="card"> <a-tabs type="card">
<a-tab-pane <a-tab-pane
@ -80,15 +55,7 @@
:key="index1" :key="index1"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input <a-input v-model="themeOptions[item.name]" v-if="item.type=='text'"/>
v-model="themeOptions[item.name]"
v-if="item.type=='text'"
/>
<a-input
v-model="themeOptions[item.name]"
v-if="item.type='email'"
type="email"
/>
<a-input <a-input
type="textarea" type="textarea"
:autosize="{ minRows: 5 }" :autosize="{ minRows: 5 }"
@ -107,10 +74,7 @@
:value="option.value" :value="option.value"
>{{ option.label }}</a-radio> >{{ option.label }}</a-radio>
</a-radio-group> </a-radio-group>
<a-select <a-select v-model="themeOptions[item.name]" v-else-if="item.type=='select'">
v-model="themeOptions[item.name]"
v-else-if="item.type=='select'"
>
<a-select-option <a-select-option
v-for="(option,index3) in item.options" v-for="(option,index3) in item.options"
:key="index3" :key="index3"
@ -119,10 +83,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<a-button <a-button type="primary" @click="saveOptions"></a-button>
type="primary"
@click="saveOptions"
>保存</a-button>
</a-form-item> </a-form-item>
</a-form> </a-form>
</a-tab-pane> </a-tab-pane>