kefu/static/templates/default/setting_company.html

117 lines
5.7 KiB
HTML

{{template "header" }}
<div id="app" style="width:100%">
<template>
<el-tabs type="border-card">
<el-tab-pane label="上班时间">
<el-form label-width="220px">
<el-form-item label="上班时间:">
<el-switch
@change="setEntConfigItem('是否开启上班时间','workTimeStatus',workTimeSetting.workTimeStatus)"
v-model="workTimeSetting.workTimeStatus"
active-value="yes"
inactive-value="no"
active-text="打开"
inactive-text="关闭"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</el-form-item>
<el-form-item label="上午时间段:">
<el-time-picker
v-model="workTimeSetting.morningWorkTime"
is-range
range-separator="至"
start-placeholder="开始时间"
format="HH:mm"
end-placeholder="结束时间"
value-format="yyyy-MM-dd HH:mm"
placeholder="选择时间范围">
</el-time-picker>
</el-form-item>
<el-form-item label="下午时间段:">
<el-time-picker
v-model="workTimeSetting.afternoonWorkTime"
is-range
range-separator="至"
start-placeholder="开始时间"
format="HH:mm"
end-placeholder="结束时间"
value-format="yyyy-MM-dd HH:mm"
placeholder="选择时间范围">
</el-time-picker>
</el-form-item>
<el-form-item label="其它时间段:">
<el-time-picker
v-model="workTimeSetting.otherWorkTime"
is-range
range-separator="至"
start-placeholder="开始时间"
format="HH:mm"
end-placeholder="结束时间"
value-format="yyyy-MM-dd HH:mm"
placeholder="选择时间范围">
</el-time-picker>
</el-form-item>
<el-form-item label="工作日选择:" >
<el-checkbox-group v-model="workTimeSetting.workDay">
<el-checkbox v-for="workday in workDaies" :label="workday" :key="workday"><{workday}></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="下班后提示内容:">
<el-input v-model="workTimeSetting.afterWorkMessage"></el-input>
</el-form-item>
<el-form-item >
<el-button type="primary" @click="postWorkTime">保存</el-button>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane label="翻译设置">
<el-form label-width="220px">
<el-form-item label="选择翻译源" >
<el-select v-model="fanyiSource" @change="setEntConfigItem('选择翻译源','FanyiSource',fanyiSource)" >
<el-option label="GPT翻译" value="gpt"></el-option>
<el-option label="百度翻译" value="baidu"></el-option>
</el-select>
</el-form-item>
<div v-show="fanyiSource=='baidu'">
<el-form-item label="百度翻译AppID" >
<el-input @change="setEntConfigItem('百度翻译AppID','BaiduFanyiAppId',baiduFanyiAppId)" v-model="baiduFanyiAppId"></el-input>
</el-form-item>
<el-form-item label="百度翻译密钥" >
<el-input @change="setEntConfigItem('百度翻译密钥','BaiduFanyiAppSec',baiduFanyiAppSec)" v-model="baiduFanyiAppSec"></el-input>
</el-form-item>
<el-form-item label="是否自动翻译" >
<el-switch
@change="setEntConfigItem('是否自动翻译','BaiduFanyiAuto',baiduFanyiAuto)"
v-model="baiduFanyiAuto"
active-value="on"
inactive-value="off"
active-text="开启"
inactive-text="关闭"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</el-form-item>
</div>
<el-alert
v-show="fanyiSource=='gpt'"
title="请确保大模型设置里已经正确配置"
type="warning">
</el-alert>
</el-form>
</el-tab-pane>
</el-tabs>
</template>
</div>
</body>
{{template "setting_bottom" .}}