83 lines
3.8 KiB
HTML
83 lines
3.8 KiB
HTML
{{template "header" }}
|
|
<div id="app" style="width:100%">
|
|
<template>
|
|
<el-tabs type="border-card">
|
|
<el-tab-pane :label="flyLang.allParamsDesc">
|
|
|
|
<el-table
|
|
:data="entConfigList"
|
|
border
|
|
style="width: 100%;margin-top: 10px;">
|
|
<el-table-column
|
|
prop="conf_name"
|
|
:label="flyLang.configParams">
|
|
<template slot-scope="scope">
|
|
<div v-html="scope.row.conf_name"></div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="conf_value"
|
|
:label="flyLang.configValue">
|
|
<template slot-scope="scope">
|
|
<el-upload
|
|
v-if="scope.row.conf_key=='WechatAuthFile'"
|
|
class="upload-demo"
|
|
:action="uploadWechatUrl"
|
|
:on-success="uploadWechatAuthfileCallback"
|
|
multiple>
|
|
<el-button size="small" type="primary"><{flyLang.upload}></el-button>
|
|
<div slot="tip" class="el-upload__tip"><{flyLang.uploadTxt}></div>
|
|
</el-upload>
|
|
|
|
<el-switch
|
|
style="margin-bottom: 10px"
|
|
v-if="scope.row.conf_key=='RobotSwitch'||
|
|
scope.row.conf_key=='ScanWechatQrcode'
|
|
"
|
|
v-model="scope.row.conf_value"
|
|
active-color="#13ce66"
|
|
inactive-color="#ff4949"
|
|
active-value="true"
|
|
@change="setEntConfigItem(scope.row.conf_name,scope.row.conf_key,scope.row.conf_value)"
|
|
>
|
|
</el-switch>
|
|
|
|
<el-switch
|
|
style="margin-bottom: 10px"
|
|
v-if="
|
|
scope.row.conf_key=='VisitorVoiceBtn'||
|
|
scope.row.conf_key=='VisitorFaceBtn'||
|
|
scope.row.conf_key=='VisitorMapBtn'||
|
|
scope.row.conf_key=='VisitorCommentBtn'
|
|
"
|
|
v-model="scope.row.conf_value"
|
|
active-color="#ff4949"
|
|
inactive-color="#13ce66"
|
|
active-value="true"
|
|
@change="setEntConfigItem(scope.row.conf_name,scope.row.conf_key,scope.row.conf_value)"
|
|
>
|
|
</el-switch>
|
|
|
|
|
|
|
|
<el-input v-model="scope.row.conf_value"></el-input>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
width="250px;"
|
|
prop="id"
|
|
:label="flyLang.doIt">
|
|
<template slot-scope="scope">
|
|
<el-button @click="setEntConfigItem(scope.row.conf_name,scope.row.conf_key,scope.row.conf_value)" type="text" size="small"><{flyLang.save}></el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
</body>
|
|
{{template "setting_bottom" .}}
|