mirror of
https://gitee.com/beecue/fastbee.git
synced 2026-03-22 22:44:51 +08:00
feat(国际化): 新增国际化
This commit is contained in:
@@ -3,37 +3,37 @@
|
||||
<el-form ref="form" :model="form" label-width="100px">
|
||||
<el-row :gutter="100">
|
||||
<el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
|
||||
<el-form-item label="默认配置" prop="isdefault">
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-0')" prop="isdefault">
|
||||
<el-switch v-model="form.isdefault" :active-value="1" :inactive-value="0"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="服务器地址" prop="ip">
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-1')" prop="ip">
|
||||
<el-input v-model="form.ip" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="服务器域" prop="domain">
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-2')" prop="domain">
|
||||
<el-input v-model="form.domain" />
|
||||
</el-form-item>
|
||||
<el-form-item label="认证密码" prop="password">
|
||||
<el-input v-model="form.password" placeholder="请输入认证密码" />
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-3')" prop="password">
|
||||
<el-input v-model="form.password" :placeholder="$t('sip.sipConfig.998537-4')" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8">
|
||||
<el-form-item label="接入方式">
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-5')">
|
||||
<el-input v-model="accessWay" disabled>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="服务器端口" prop="port">
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-6')" prop="port">
|
||||
<el-input v-model="form.port" type="number" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="服务器ID" prop="serverSipid">
|
||||
<el-form-item :label="$t('sip.sipConfig.998537-7')" prop="serverSipid">
|
||||
<el-input v-model="form.serverSipid" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :xs="23" :sm="23" :md="23" :lg="23" :xl="15">
|
||||
<el-form-item style="text-align:center;margin-top:20px;">
|
||||
<el-button v-show="form.id && productInfo.status != 2" v-hasPermi="['iot:video:edit']" type="primary"
|
||||
@click="submitForm">修 改</el-button>
|
||||
@click="submitForm">{{ $t('edit') }}</el-button>
|
||||
<el-button v-show="!form.id && productInfo.status != 2" v-hasPermi="['iot:video:add']" type="primary"
|
||||
@click="submitForm">新 增</el-button>
|
||||
@click="submitForm">{{ $t('add') }}</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -65,7 +65,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
// 接入方式
|
||||
accessWay: '国标GB28181',
|
||||
accessWay: this.$t('sip.sipConfig.998537-11'),
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@@ -87,20 +87,20 @@ export default {
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
rules: {
|
||||
domain: [{
|
||||
required: true,
|
||||
message: '服务器域不能为空',
|
||||
message: this.$t('sip.sipConfig.998537-8'),
|
||||
trigger: 'blur',
|
||||
}],
|
||||
serverSipid: [{
|
||||
required: true,
|
||||
message: '服务器sipid不能为空',
|
||||
message: this.$t('sip.sipConfig.998537-9'),
|
||||
trigger: 'blur',
|
||||
}],
|
||||
password: [{
|
||||
required: true,
|
||||
message: 'sip认证密码不能为空',
|
||||
message: this.$t('sip.sipConfig.998537-10'),
|
||||
trigger: 'blur',
|
||||
}],
|
||||
},
|
||||
@@ -144,11 +144,11 @@ export default {
|
||||
}
|
||||
if (this.form.id != null) {
|
||||
updateSipconfig(this.form).then(response => {
|
||||
this.$modal.msgSuccess('修改成功');
|
||||
this.$modal.msgSuccess(this.$t('updateSuccess'));
|
||||
});
|
||||
} else {
|
||||
addSipconfig(this.form).then(response => {
|
||||
this.$modal.msgSuccess('新增成功');
|
||||
this.$modal.msgSuccess(this.$t('addSuccess'));
|
||||
this.getSipconfig(false);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user