代码提交_12_31
This commit is contained in:
commit
80041e5c34
|
@ -577,9 +577,11 @@ export default {
|
||||||
user_id: this.user_id,
|
user_id: this.user_id,
|
||||||
type: "3",
|
type: "3",
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
if(this.$i18n.locale==='zh'){
|
||||||
console.log(JSON.parse(res.data.data.data));
|
this.trees = JSON.parse(res.data.data.r2);
|
||||||
|
}else{
|
||||||
this.trees = JSON.parse(res.data.data.data);
|
this.trees = JSON.parse(res.data.data.data);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -552,10 +552,11 @@ export default {
|
||||||
user_id: this.user_id,
|
user_id: this.user_id,
|
||||||
type: "4",
|
type: "4",
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
if(this.$i18n.locale==='zh'){
|
||||||
console.log(JSON.parse(res.data.data.data));
|
this.trees = JSON.parse(res.data.data.r2);
|
||||||
|
}else{
|
||||||
this.trees = JSON.parse(res.data.data.data);
|
this.trees = JSON.parse(res.data.data.data);
|
||||||
console.log(this.trees, "this.trees");
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -1551,9 +1551,11 @@ export default {
|
||||||
user_id: this.user_id,
|
user_id: this.user_id,
|
||||||
type: "3",
|
type: "3",
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
if(this.$i18n.locale==='zh'){
|
||||||
console.log(JSON.parse(res.data.data.data));
|
this.trees = JSON.parse(res.data.data.r2);
|
||||||
|
}else{
|
||||||
this.trees = JSON.parse(res.data.data.data);
|
this.trees = JSON.parse(res.data.data.data);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -291,7 +291,6 @@ import _ from 'lodash'
|
||||||
import {SaveUserAnswer, GetUserAnswer, GetTree, SendTree, getQueryAnswer} from "@/api/user";
|
import {SaveUserAnswer, GetUserAnswer, GetTree, SendTree, getQueryAnswer} from "@/api/user";
|
||||||
export default {
|
export default {
|
||||||
name: "ChiCollectionwifi",
|
name: "ChiCollectionwifi",
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
user_id: "",
|
user_id: "",
|
||||||
|
@ -826,22 +825,13 @@ export default {
|
||||||
outerVisible: false,
|
outerVisible: false,
|
||||||
rulesGate: {
|
rulesGate: {
|
||||||
wgpz_wgmc: [
|
wgpz_wgmc: [
|
||||||
{ required: true, message: "请选择网关名称", trigger: "blur" },
|
{ required: true, message: this.$t('dbcollectiongate.rules.wgpz_wgmc'), trigger: "blur" },
|
||||||
],
|
],
|
||||||
wgpz_wgid: [
|
wgpz_wgid: [
|
||||||
{ required: true, message: "请选择网关id", trigger: "blur" },
|
{ required: true, message: this.$t('dbcollectiongate.rules.wgpz_wgid'), trigger: "blur" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
opts1: [
|
opts1: this.$t('dbcollectiongate.options2'),
|
||||||
{
|
|
||||||
value: "有线区网关2",
|
|
||||||
label: "有线区网关2",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "无线区网关2",
|
|
||||||
label: "无线区网关2",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
opts2: [
|
opts2: [
|
||||||
{
|
{
|
||||||
value: "LAN-BOX2",
|
value: "LAN-BOX2",
|
||||||
|
@ -1474,9 +1464,11 @@ export default {
|
||||||
user_id: this.user_id,
|
user_id: this.user_id,
|
||||||
type: "4",
|
type: "4",
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
if(this.$i18n.locale==='zh'){
|
||||||
console.log(JSON.parse(res.data.data.data));
|
this.trees = JSON.parse(res.data.data.r2);
|
||||||
|
}else{
|
||||||
this.trees = JSON.parse(res.data.data.data);
|
this.trees = JSON.parse(res.data.data.data);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.getUserAnswer();
|
this.getUserAnswer();
|
||||||
|
|
|
@ -1222,7 +1222,7 @@ export default {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.title_l {
|
.title_l {
|
||||||
width: 103px;
|
// width: 103px;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
color: rgba(16, 16, 16, 1);
|
color: rgba(16, 16, 16, 1);
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|
|
@ -982,9 +982,11 @@ export default {
|
||||||
user_id: this.user_id,
|
user_id: this.user_id,
|
||||||
type: "4",
|
type: "4",
|
||||||
});
|
});
|
||||||
console.log(res);
|
if(this.$i18n.locale==='zh'){
|
||||||
console.log(JSON.parse(res.data.data.data));
|
this.trees = JSON.parse(res.data.data.r2);
|
||||||
|
}else{
|
||||||
this.trees = JSON.parse(res.data.data.data);
|
this.trees = JSON.parse(res.data.data.data);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//网关配置的信息
|
//网关配置的信息
|
||||||
async submitGate() {
|
async submitGate() {
|
||||||
|
|
|
@ -135,32 +135,7 @@ export default {
|
||||||
mqtt_cjd_sbmc: "",
|
mqtt_cjd_sbmc: "",
|
||||||
mqtt_cjd_tagid: "",
|
mqtt_cjd_tagid: "",
|
||||||
},
|
},
|
||||||
options1: [
|
options1: this.$t('wirelessgatewayip.options1'),
|
||||||
{
|
|
||||||
value: "开放式",
|
|
||||||
label: "开放式",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "共享式",
|
|
||||||
label: "共享式",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "WPA-PSK",
|
|
||||||
label: "WPA-PSK",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "WPA",
|
|
||||||
label: "WPA",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "WPA2-PSK",
|
|
||||||
label: "WPA2-PSK",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "WPA2",
|
|
||||||
label: "WPA2",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
options2: [
|
options2: [
|
||||||
{
|
{
|
||||||
value: "NONE",
|
value: "NONE",
|
||||||
|
|
|
@ -424,16 +424,7 @@ export default {
|
||||||
label: "qos2",
|
label: "qos2",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
options2: [
|
options2: this.$t('mqttClient.options2'),
|
||||||
{
|
|
||||||
value: "周期上传",
|
|
||||||
label: "周期上传",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "整点上传",
|
|
||||||
label: "整点上传",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
points: [
|
points: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|
|
@ -420,16 +420,7 @@ export default {
|
||||||
label: "qos2",
|
label: "qos2",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
options2: [
|
options2: this.$t('mqttClient.options2'),
|
||||||
{
|
|
||||||
value: "周期上传",
|
|
||||||
label: "周期上传",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "整点上传",
|
|
||||||
label: "整点上传",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
options3: [],
|
options3: [],
|
||||||
options4: [],
|
options4: [],
|
||||||
points: [
|
points: [
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
v-model="ruleForm.ippz_dns_hqfs"
|
v-model="ruleForm.ippz_dns_hqfs"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
>
|
>
|
||||||
<el-option label="自动获取" value="自动获取"></el-option>
|
<el-option :label="$t('ckipconfig.auto')" :value="$t('ckipconfig.auto')"></el-option>
|
||||||
<el-option label="手动设定" value="手动设定"></el-option>
|
<el-option :label="$t('ckipconfig.manual')" :value="$t('ckipconfig.manual')"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
|
@ -49,12 +49,13 @@
|
||||||
<el-form-item :label="$t('ckportconfig.checkBit')" prop="dkpz_jyw">
|
<el-form-item :label="$t('ckportconfig.checkBit')" prop="dkpz_jyw">
|
||||||
<el-col :span="15">
|
<el-col :span="15">
|
||||||
<el-select v-model="ruleForm.dkpz_jyw">
|
<el-select v-model="ruleForm.dkpz_jyw">
|
||||||
<el-option
|
<el-option :value="item.value" v-for="(item,index) in checkBitList" :key="index"></el-option>
|
||||||
|
<!-- <el-option
|
||||||
label="无校验(None)"
|
label="无校验(None)"
|
||||||
value="无校验(None)"
|
value="无校验(None)"
|
||||||
></el-option>
|
></el-option>
|
||||||
<el-option label="奇校验" value="奇校验"></el-option>
|
<el-option label="奇校验" value="奇校验"></el-option>
|
||||||
<el-option label="偶校验" value="偶校验"></el-option>
|
<el-option label="偶校验" value="偶校验"></el-option> -->
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -94,7 +95,7 @@
|
||||||
<el-col :span="15">
|
<el-col :span="15">
|
||||||
<el-select v-model="ruleForm.dkpz_tbbtl">
|
<el-select v-model="ruleForm.dkpz_tbbtl">
|
||||||
<el-option label="None" value="None"></el-option>
|
<el-option label="None" value="None"></el-option>
|
||||||
<el-option label="启用" value="启用"></el-option>
|
<el-option :label="$t('ckportconfig.enable')" :value="$t('ckportconfig.enable')"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -117,29 +118,9 @@ import {SaveUserAnswer, GetUserAnswer, getQueryAnswer} from "@/api/user";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
checkBitList:this.$t('ckportconfig.checkBitList'),
|
||||||
user_id: "",
|
user_id: "",
|
||||||
datas: [
|
datas: this.$t('ckportconfig.datas'),
|
||||||
{
|
|
||||||
name: "端口",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: "端口1",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "端口2",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "端口3",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "端口4",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "网页转串口",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: "children",
|
||||||
label: "name",
|
label: "name",
|
||||||
|
|
|
@ -35,11 +35,11 @@
|
||||||
<el-form-item :label="$t('toWifi.checkBit')" prop="ckcssz_jyw">
|
<el-form-item :label="$t('toWifi.checkBit')" prop="ckcssz_jyw">
|
||||||
<el-select v-model="ruleForm.ckcssz_jyw" :placeholder="$t('select')">
|
<el-select v-model="ruleForm.ckcssz_jyw" :placeholder="$t('select')">
|
||||||
<el-option
|
<el-option
|
||||||
label="无校验(none)"
|
:label="item.label"
|
||||||
value="无校验(none)"
|
:value="item.value"
|
||||||
|
:key="index"
|
||||||
|
v-for="(item,index) in checkBitList"
|
||||||
></el-option>
|
></el-option>
|
||||||
<el-option label="偶校验" value="偶校验"></el-option>
|
|
||||||
<el-option label="奇校验" value="奇校验"></el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('toWifi.controlMode')" prop="ckcssz_lk">
|
<el-form-item :label="$t('toWifi.controlMode')" prop="ckcssz_lk">
|
||||||
|
@ -144,6 +144,7 @@ import {SaveUserAnswer, GetUserAnswer, getQueryAnswer} from "@/api/user";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
checkBitList:this.$t('ckportconfig.checkBitList'),
|
||||||
dialogVisible: true,
|
dialogVisible: true,
|
||||||
labelPosition: "left",
|
labelPosition: "left",
|
||||||
user_id: "",
|
user_id: "",
|
||||||
|
|
|
@ -289,7 +289,17 @@ export default {
|
||||||
mqtt_sjgl: "请输入数据过滤",//请输入数据过滤
|
mqtt_sjgl: "请输入数据过滤",//请输入数据过滤
|
||||||
ip1: '请输入IP地址',//请输入IP地址
|
ip1: '请输入IP地址',//请输入IP地址
|
||||||
ip2: '请输入有效的IP地址',//请输入有效的IP地址
|
ip2: '请输入有效的IP地址',//请输入有效的IP地址
|
||||||
}
|
},
|
||||||
|
options2: [
|
||||||
|
{
|
||||||
|
value: "周期上传",
|
||||||
|
label: "周期上传",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "整点上传",
|
||||||
|
label: "整点上传",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
// 斥候设备配置
|
// 斥候设备配置
|
||||||
reconnoitreConfiguration: {
|
reconnoitreConfiguration: {
|
||||||
|
@ -368,6 +378,8 @@ export default {
|
||||||
gateway: '网关地址:',//网关地址
|
gateway: '网关地址:',//网关地址
|
||||||
primaryDNS: '主DNS服务器:',//主DNS服务器
|
primaryDNS: '主DNS服务器:',//主DNS服务器
|
||||||
backupDNS: '备用DNS服务器:',//备用DNS服务器
|
backupDNS: '备用DNS服务器:',//备用DNS服务器
|
||||||
|
auto:'自动获取',//自动获取
|
||||||
|
manual:'手动设定',//手动设定
|
||||||
rules: {
|
rules: {
|
||||||
ipMethod: '请选择IP获取方式',//请选择IP获取方式
|
ipMethod: '请选择IP获取方式',//请选择IP获取方式
|
||||||
getDNS: '请选择DNS获取方式',//请选择DNS获取方式
|
getDNS: '请选择DNS获取方式',//请选择DNS获取方式
|
||||||
|
@ -395,6 +407,7 @@ export default {
|
||||||
packagingTime: '打包时长(ms):',//打包时长
|
packagingTime: '打包时长(ms):',//打包时长
|
||||||
synBaudRate: '同步波特率(RF2217):',//同步波特率
|
synBaudRate: '同步波特率(RF2217):',//同步波特率
|
||||||
checked: '使能串口心跳包',//使能串口心跳包
|
checked: '使能串口心跳包',//使能串口心跳包
|
||||||
|
enable:'启用',
|
||||||
rules: {
|
rules: {
|
||||||
dkpz_btl: "请选择波特率",
|
dkpz_btl: "请选择波特率",
|
||||||
dkpz_sjw: "请选择数据位",
|
dkpz_sjw: "请选择数据位",
|
||||||
|
@ -404,7 +417,43 @@ export default {
|
||||||
dkpz_dbcd: "请输入打包长度",
|
dkpz_dbcd: "请输入打包长度",
|
||||||
dkpz_dbsj: "请输入打包时间",
|
dkpz_dbsj: "请输入打包时间",
|
||||||
dkpz_tbbtl: "请选择同步波特率",//请选择同步波特率
|
dkpz_tbbtl: "请选择同步波特率",//请选择同步波特率
|
||||||
|
},
|
||||||
|
datas:[
|
||||||
|
{
|
||||||
|
name: "端口",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: "端口1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "端口2",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "端口3",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "端口4",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "网页转串口",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
checkBitList:[
|
||||||
|
{
|
||||||
|
label:'无校验(None)',
|
||||||
|
value:'无校验(None)'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label:'奇校验',
|
||||||
|
value:'奇校验'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label:'偶校验',
|
||||||
|
value:'偶校验'
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
//485towifi-串口及网络协议设置
|
//485towifi-串口及网络协议设置
|
||||||
toWifi: {
|
toWifi: {
|
||||||
|
@ -423,6 +472,20 @@ export default {
|
||||||
customPacket: '自定义心跳包',//自定义心跳包
|
customPacket: '自定义心跳包',//自定义心跳包
|
||||||
socketFunction: '套接字分发功能',//套接字分发功能
|
socketFunction: '套接字分发功能',//套接字分发功能
|
||||||
Note: '注意:开启后,模块主动向服务器发送注册包,此功能用于辨识设备。模块建立时发送注册包,每次发送数据时发送注册包',
|
Note: '注意:开启后,模块主动向服务器发送注册包,此功能用于辨识设备。模块建立时发送注册包,每次发送数据时发送注册包',
|
||||||
|
checkBitList:[
|
||||||
|
{
|
||||||
|
label:'无校验(None)',
|
||||||
|
value:'无校验(None)'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label:'奇校验',
|
||||||
|
value:'奇校验'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label:'偶校验',
|
||||||
|
value:'偶校验'
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
// 串口服务器-485towifi-网口配置
|
// 串口服务器-485towifi-网口配置
|
||||||
cknet: {
|
cknet: {
|
||||||
|
|
|
@ -88,7 +88,33 @@ export default{
|
||||||
ippz_mac: "Please enter the MAC address",//请输入mac地址
|
ippz_mac: "Please enter the MAC address",//请输入mac地址
|
||||||
ippz_wifi_ssid: "Please enter the SSID", //请输入SSID
|
ippz_wifi_ssid: "Please enter the SSID", //请输入SSID
|
||||||
ippz_wifi_mm: "Please enter the password",//请输入密码
|
ippz_wifi_mm: "Please enter the password",//请输入密码
|
||||||
}
|
},
|
||||||
|
options1: [
|
||||||
|
{
|
||||||
|
value: "Open",
|
||||||
|
label: "Open",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "Shared",
|
||||||
|
label: "Shared",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "WPA-PSK",
|
||||||
|
label: "WPA-PSK",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "WPA",
|
||||||
|
label: "WPA",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "WPA2-PSK",
|
||||||
|
label: "WPA2-PSK",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "WPA2",
|
||||||
|
label: "WPA2",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
// DB/斥候-网关配置
|
// DB/斥候-网关配置
|
||||||
dbcollectiongate: {
|
dbcollectiongate: {
|
||||||
|
@ -302,7 +328,17 @@ export default{
|
||||||
mqtt_sjgl: "Please enter the data filtering",//请输入数据过滤
|
mqtt_sjgl: "Please enter the data filtering",//请输入数据过滤
|
||||||
ip1: 'Please enter a IP address',//请输入IP地址
|
ip1: 'Please enter a IP address',//请输入IP地址
|
||||||
ip2: 'Please enter a valid IP address',//请输入有效的IP地址
|
ip2: 'Please enter a valid IP address',//请输入有效的IP地址
|
||||||
}
|
},
|
||||||
|
options2: [
|
||||||
|
{
|
||||||
|
value: "Periodic upload",
|
||||||
|
label: "Periodic upload",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "Upload on the hoaur",
|
||||||
|
label: "Upload on the hoaur",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
// 斥候设备配置
|
// 斥候设备配置
|
||||||
reconnoitreConfiguration: {
|
reconnoitreConfiguration: {
|
||||||
|
@ -339,7 +375,17 @@ export default{
|
||||||
sbpz_cjcgsj: "Please enter the collection overtime(ms)",//请输入采集超过时间
|
sbpz_cjcgsj: "Please enter the collection overtime(ms)",//请输入采集超过时间
|
||||||
sbpz_zqsbonchange: "周期上报Onchange数据",//周期上报Onchange数据
|
sbpz_zqsbonchange: "周期上报Onchange数据",//周期上报Onchange数据
|
||||||
sbpz_txsjjg: "Please enter the communication time interval(ms)",//请输入通讯时间间隔
|
sbpz_txsjjg: "Please enter the communication time interval(ms)",//请输入通讯时间间隔
|
||||||
}
|
},
|
||||||
|
options1: [
|
||||||
|
{
|
||||||
|
value: "Wired area precision carving equipment 2",
|
||||||
|
label: "Wired area precision carving equipment 2",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "Wireless area precision carving equipment 2",
|
||||||
|
label: "Wireless area precision carving equipment 2",
|
||||||
|
},
|
||||||
|
]
|
||||||
},
|
},
|
||||||
// 斥候网关mqtt
|
// 斥候网关mqtt
|
||||||
chmqtt: {
|
chmqtt: {
|
||||||
|
@ -373,6 +419,8 @@ export default{
|
||||||
gateway: 'Default gateway:',//网关地址
|
gateway: 'Default gateway:',//网关地址
|
||||||
primaryDNS: 'Primary DNS server:',//主DNS服务器
|
primaryDNS: 'Primary DNS server:',//主DNS服务器
|
||||||
backupDNS: 'Backup DNS server',//备用DNS服务器
|
backupDNS: 'Backup DNS server',//备用DNS服务器
|
||||||
|
auto: 'Automatic acquisition(default)',//自动获取
|
||||||
|
manual: 'Manual setting',//手动设定
|
||||||
rules: {
|
rules: {
|
||||||
ipMethod: 'Please select IP acquisition method',//请选择IP获取方式
|
ipMethod: 'Please select IP acquisition method',//请选择IP获取方式
|
||||||
getDNS: 'Please select DNS acquisition method',//请选择DNS获取方式
|
getDNS: 'Please select DNS acquisition method',//请选择DNS获取方式
|
||||||
|
@ -400,6 +448,7 @@ export default{
|
||||||
packagingTime: 'Packaging time(ms)',//打包时长
|
packagingTime: 'Packaging time(ms)',//打包时长
|
||||||
synBaudRate: 'Synchronous Baud Rate(RF2217)',//同步波特率
|
synBaudRate: 'Synchronous Baud Rate(RF2217)',//同步波特率
|
||||||
checked: 'Enable serial heartbeat packet',//使能串口心跳包
|
checked: 'Enable serial heartbeat packet',//使能串口心跳包
|
||||||
|
enable:'Enable',//启用
|
||||||
rules: {
|
rules: {
|
||||||
dkpz_btl: "Please select Baud rate(bps)",
|
dkpz_btl: "Please select Baud rate(bps)",
|
||||||
dkpz_sjw: "Please select Data bits(bit)",
|
dkpz_sjw: "Please select Data bits(bit)",
|
||||||
|
@ -409,7 +458,44 @@ export default{
|
||||||
dkpz_dbcd: "Please select Packaging length(bytes)",
|
dkpz_dbcd: "Please select Packaging length(bytes)",
|
||||||
dkpz_dbsj: "Please select packagingTime",
|
dkpz_dbsj: "Please select packagingTime",
|
||||||
dkpz_tbbtl: "Please select Synchronous Baud Rate(RF2217)",//请选择同步波特率
|
dkpz_tbbtl: "Please select Synchronous Baud Rate(RF2217)",//请选择同步波特率
|
||||||
|
},
|
||||||
|
checkBitList: [
|
||||||
|
{
|
||||||
|
label: 'None',
|
||||||
|
value: 'None'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Odd check',
|
||||||
|
value: 'Odd check'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Parity check',
|
||||||
|
value: 'Parity check'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
datas: [
|
||||||
|
{
|
||||||
|
name: "Port",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: "Port 1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Port 2",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Port 3",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Port 4",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Web page to serial port",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
//485towifi-串口及网络协议设置
|
//485towifi-串口及网络协议设置
|
||||||
toWifi: {
|
toWifi: {
|
||||||
|
@ -427,7 +513,21 @@ export default{
|
||||||
packageType: 'Registration package type',//注册包类型
|
packageType: 'Registration package type',//注册包类型
|
||||||
customPacket: 'Custom heartbeat packet',//自定义心跳包
|
customPacket: 'Custom heartbeat packet',//自定义心跳包
|
||||||
socketFunction: 'Socket distribution function',//套接字分发功能
|
socketFunction: 'Socket distribution function',//套接字分发功能
|
||||||
Note:'Note:After activation, the module actively sends a registration package to the server, which is used to identify the device.First: Send registration package when module is established,every: Send registration package every time data is sent'
|
Note: 'Note:After activation, the module actively sends a registration package to the server, which is used to identify the device.First: Send registration package when module is established,every: Send registration package every time data is sent',
|
||||||
|
checkBitList: [
|
||||||
|
{
|
||||||
|
label: 'None',
|
||||||
|
value: 'None'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Odd check',
|
||||||
|
value: 'Odd check'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Parity check',
|
||||||
|
value: 'Parity check'
|
||||||
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
// 串口服务器-485towifi-网口配置
|
// 串口服务器-485towifi-网口配置
|
||||||
cknet: {
|
cknet: {
|
||||||
|
|
|
@ -196,7 +196,12 @@ export default {
|
||||||
formData.append("data", JSON.stringify(data));
|
formData.append("data", JSON.stringify(data));
|
||||||
submitPracticeTopic(formData).then((res) => {
|
submitPracticeTopic(formData).then((res) => {
|
||||||
localStorage.removeItem("countdownEndTime");
|
localStorage.removeItem("countdownEndTime");
|
||||||
this.$router.push("/practiceSuccess?score=" + res.data.data.score+'&result_id='+res.data.data.result_id);
|
this.$router.push(
|
||||||
|
"/practiceSuccess?score=" +
|
||||||
|
res.data.data.score +
|
||||||
|
"&result_id=" +
|
||||||
|
res.data.data.result_id
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//答题卡数据获取
|
//答题卡数据获取
|
||||||
|
@ -259,6 +264,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 题目点击
|
// 题目点击
|
||||||
testClick(item) {
|
testClick(item) {
|
||||||
|
console.log(item, "xxxxxxx");
|
||||||
// 保存缓存
|
// 保存缓存
|
||||||
this.saveCacheData();
|
this.saveCacheData();
|
||||||
this.testContent.options = [];
|
this.testContent.options = [];
|
||||||
|
|
Loading…
Reference in New Issue