mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
优化路径命名
This commit is contained in:
parent
868b8e7206
commit
1c2a7a219a
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Minder from '../../../components/minder'
|
import Minder from '../../../components/Minder'
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
Vue.use(Minder)
|
Vue.use(Minder)
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Minder from '../../../components/minder'
|
import Minder from '../../../components/Minder'
|
||||||
Vue.use(Minder)
|
Vue.use(Minder)
|
||||||
|
|
||||||
const MDPreview = () => import('../../../components/MDEditor/preview');
|
const MDPreview = () => import('../../../components/MDEditor/preview');
|
||||||
|
|||||||
@ -1,46 +1,52 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="setting-item submit">
|
<div class="setting-system-item">
|
||||||
<Form ref="formData" :model="formData" :rules="ruleData" label-width="auto" @submit.native.prevent>
|
<Form ref="formData" :model="formData" :rules="ruleData" label-width="auto" @submit.native.prevent>
|
||||||
<h3>{{ $L('邮箱服务器设置') }}</h3>
|
<div class="email-setting-box">
|
||||||
<FormItem :label="$L('SMTP服务器')" prop="smtp_server">
|
<h3>{{ $L('邮箱服务器设置') }}</h3>
|
||||||
<Input v-model="formData.smtp_server"/>
|
<FormItem :label="$L('SMTP服务器')" prop="smtp_server">
|
||||||
</FormItem>
|
<Input v-model="formData.smtp_server"/>
|
||||||
<FormItem :label="$L('端口')" prop="port">
|
</FormItem>
|
||||||
<Input :maxlength="20" v-model="formData.port"/>
|
<FormItem :label="$L('端口')" prop="port">
|
||||||
</FormItem>
|
<Input :maxlength="20" v-model="formData.port"/>
|
||||||
<FormItem :label="$L('账号')" prop="account">
|
</FormItem>
|
||||||
<Input :maxlength="20" v-model="formData.account"/>
|
<FormItem :label="$L('账号')" prop="account">
|
||||||
</FormItem>
|
<Input :maxlength="20" v-model="formData.account"/>
|
||||||
<FormItem :label="$L('密码')" prop="password">
|
</FormItem>
|
||||||
<Input :maxlength="20" v-model="formData.password"/>
|
<FormItem :label="$L('密码')" prop="password">
|
||||||
</FormItem>
|
<Input :maxlength="20" v-model="formData.password" type="password"/>
|
||||||
|
</FormItem>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h3>{{ $L('邮件通知设置') }}</h3>
|
<div class="email-setting-placeholder"></div>
|
||||||
<FormItem :label="$L('开启注册验证')" prop="reg_verify">
|
|
||||||
<RadioGroup v-model="formData.reg_verify">
|
<div class="email-setting-box">
|
||||||
<Radio label="open">{{ $L('开启') }}</Radio>
|
<h3>{{ $L('邮件通知设置') }}</h3>
|
||||||
<Radio label="close">{{ $L('关闭') }}</Radio>
|
<FormItem :label="$L('开启注册验证')" prop="reg_verify">
|
||||||
</RadioGroup>
|
<RadioGroup v-model="formData.reg_verify">
|
||||||
<div v-if="formData.reg_verify == 'open'" class="form-tip">{{$L('开启后账号需验证通过才可登录')}}</div>
|
<Radio label="open">{{ $L('开启') }}</Radio>
|
||||||
</FormItem>
|
<Radio label="close">{{ $L('关闭') }}</Radio>
|
||||||
<FormItem :label="$L('开启通知')" prop="notice">
|
</RadioGroup>
|
||||||
<RadioGroup v-model="formData.notice">
|
<div v-if="formData.reg_verify == 'open'" class="form-tip">{{$L('开启后账号需验证通过才可登录')}}</div>
|
||||||
<Radio label="open">{{ $L('开启') }}</Radio>
|
|
||||||
<Radio label="close">{{ $L('关闭') }}</Radio>
|
|
||||||
</RadioGroup>
|
|
||||||
</FormItem>
|
|
||||||
<template v-if="formData.notice == 'open'">
|
|
||||||
<FormItem :label="$L('任务提醒:')" prop="task_remind_hours">
|
|
||||||
<label>{{ $L('到期前') }}</label>
|
|
||||||
<InputNumber v-model="formData.task_remind_hours" :min="0.5" :step="0.5" @on-change="hoursChange"/>
|
|
||||||
<label>{{ $L('小时') }}</label>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem :label="$L('第二次任务提醒:')" prop="task_remind_hours2">
|
<FormItem :label="$L('开启通知')" prop="notice">
|
||||||
<label>{{ $L('到期后') }}</label>
|
<RadioGroup v-model="formData.notice">
|
||||||
<InputNumber v-model="formData.task_remind_hours2" :min="0.5" :step="0.5" @on-change="hours2Change"/>
|
<Radio label="open">{{ $L('开启') }}</Radio>
|
||||||
<label>{{ $L('小时') }}</label>
|
<Radio label="close">{{ $L('关闭') }}</Radio>
|
||||||
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</template>
|
<template v-if="formData.notice == 'open'">
|
||||||
|
<FormItem :label="$L('任务提醒:')" prop="task_remind_hours">
|
||||||
|
<label>{{ $L('到期前') }}</label>
|
||||||
|
<InputNumber v-model="formData.task_remind_hours" :min="0.5" :step="0.5" @on-change="hoursChange"/>
|
||||||
|
<label>{{ $L('小时') }}</label>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem :label="$L('第二次任务提醒:')" prop="task_remind_hours2">
|
||||||
|
<label>{{ $L('到期后') }}</label>
|
||||||
|
<InputNumber v-model="formData.task_remind_hours2" :min="0.5" :step="0.5" @on-change="hours2Change"/>
|
||||||
|
<label>{{ $L('小时') }}</label>
|
||||||
|
</FormItem>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
<div class="setting-footer">
|
<div class="setting-footer">
|
||||||
<Button :loading="loadIng > 0" type="primary" @click="submitForm">{{ $L('提交') }}</Button>
|
<Button :loading="loadIng > 0" type="primary" @click="submitForm">{{ $L('提交') }}</Button>
|
||||||
@ -64,12 +64,14 @@
|
|||||||
<Radio label="open">{{$L('开启')}}</Radio>
|
<Radio label="open">{{$L('开启')}}</Radio>
|
||||||
<Radio label="close">{{$L('关闭')}}</Radio>
|
<Radio label="close">{{$L('关闭')}}</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
<template v-if="formDatum.start_home == 'open'">
|
<Input
|
||||||
<div class="form-tip">{{ $L('首页底部:首页底部网站备案号等信息') }}</div>
|
v-if="formDatum.start_home == 'open'"
|
||||||
<Input v-model="formDatum.home_footer" style="width:100%;margin-top:6px">
|
v-model="formDatum.home_footer"
|
||||||
<span slot="prepend">{{ $L('首页底部') }}</span>
|
type="textarea"
|
||||||
</Input>
|
style="margin:8px 0 -8px"
|
||||||
</template>
|
:rows="2"
|
||||||
|
:autosize="{ minRows: 2, maxRows: 8 }"
|
||||||
|
:placeholder="$L('首页底部:首页底部网站备案号等信息')"/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
<div class="setting-footer">
|
<div class="setting-footer">
|
||||||
@ -18,10 +18,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SystemSetting from "./setting";
|
import SystemSetting from "./components/SystemSetting";
|
||||||
import SystemTaskPriority from "./taskPriority";
|
import SystemTaskPriority from "./components/SystemTaskPriority";
|
||||||
import SystemColumnTemplate from "./columnTemplate";
|
import SystemColumnTemplate from "./components/SystemColumnTemplate";
|
||||||
import SystemEmailSetting from "./EmailSetting";
|
import SystemEmailSetting from "./components/SystemEmailSetting";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {SystemColumnTemplate, SystemTaskPriority, SystemSetting, SystemEmailSetting},
|
components: {SystemColumnTemplate, SystemTaskPriority, SystemSetting, SystemEmailSetting},
|
||||||
@ -58,7 +58,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Minder from '../../components/minder'
|
import Minder from '../../components/Minder'
|
||||||
Vue.use(Minder)
|
Vue.use(Minder)
|
||||||
|
|
||||||
const MDPreview = () => import('../../components/MDEditor/preview');
|
const MDPreview = () => import('../../components/MDEditor/preview');
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Minder from '../../components/minder'
|
import Minder from '../../components/Minder'
|
||||||
Vue.use(Minder)
|
Vue.use(Minder)
|
||||||
|
|
||||||
const MDPreview = () => import('../../components/MDEditor/preview');
|
const MDPreview = () => import('../../components/MDEditor/preview');
|
||||||
|
|||||||
2
resources/assets/js/routes.js
vendored
2
resources/assets/js/routes.js
vendored
@ -49,7 +49,7 @@ export default [
|
|||||||
{
|
{
|
||||||
name: 'manage-setting-system',
|
name: 'manage-setting-system',
|
||||||
path: 'system',
|
path: 'system',
|
||||||
component: () => import('./pages/manage/setting/system/index.vue'),
|
component: () => import('./pages/manage/setting/system.vue'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
31
resources/assets/sass/pages/page-setting.scss
vendored
31
resources/assets/sass/pages/page-setting.scss
vendored
@ -179,10 +179,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
h3 {
|
|
||||||
font-size: 16px;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
.ivu-form {
|
.ivu-form {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 24px 40px;
|
padding: 24px 40px;
|
||||||
@ -213,6 +209,33 @@
|
|||||||
.setting-footer {
|
.setting-footer {
|
||||||
margin: 0 -32px;
|
margin: 0 -32px;
|
||||||
}
|
}
|
||||||
|
.email-setting-box {
|
||||||
|
position: relative;
|
||||||
|
padding: 36px 24px 4px;
|
||||||
|
margin: 24px 0 12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #eeeeee;
|
||||||
|
transition: box-shadow 0.3s;
|
||||||
|
&:hover {
|
||||||
|
box-shadow: 0 0 10px #e6ecfa;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 24px;
|
||||||
|
padding: 4px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: 1px solid #eeeeee;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 500;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.email-setting-placeholder {
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user