Compare commits

...

2 Commits

Author SHA1 Message Date
lll f5ee084ffc Merge branch 'master' of http://git.umayle.com:2023/chengdandan/InternetCompetition 2023-11-09 20:14:56 +08:00
lll fce3f6e5a9 1 2023-11-09 20:14:50 +08:00
1 changed files with 30 additions and 7 deletions

View File

@ -11,11 +11,25 @@
<el-divider></el-divider> <el-divider></el-divider>
<div class="content"> <div class="content">
<div class="lan"> <div class="lan">
<el-form v-loading="loading" :model="formData" :label-position="labelPosition" :rules="rules" ref="ruleForm"> <el-form
v-loading="loading"
:model="formData"
:label-position="labelPosition"
:rules="rules"
ref="ruleForm"
>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="网络类型:" :label-width="formLabelWidth" prop="type"> <el-form-item
<el-select v-model="formData.ippz_wllx" placeholder="静态IP" style="width: 200px"> label="网络类型:"
:label-width="formLabelWidth"
prop="type"
>
<el-select
v-model="formData.ippz_wllx"
placeholder="静态IP"
style="width: 200px"
>
<el-option label="静态IP" value="静态IP"></el-option> <el-option label="静态IP" value="静态IP"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -23,7 +37,11 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="IP地址:" :label-width="formLabelWidth" prop="ip"> <el-form-item
label="IP地址:"
:label-width="formLabelWidth"
prop="ip"
>
<el-row> <el-row>
<el-col :span="5"> <el-col :span="5">
<el-input v-model="ippz_ip1"></el-input> <el-input v-model="ippz_ip1"></el-input>
@ -69,7 +87,11 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="网关:" :label-width="formLabelWidth" prop="ip"> <el-form-item
label="网关:"
:label-width="formLabelWidth"
prop="ip"
>
<el-row> <el-row>
<el-col :span="5"> <el-col :span="5">
<el-input v-model="ippz_mrwg1"></el-input> <el-input v-model="ippz_mrwg1"></el-input>
@ -185,7 +207,7 @@ export default {
let that = this; let that = this;
window.getParameter = that.getParameter; window.getParameter = that.getParameter;
}, },
mounted() { }, mounted() {},
methods: { methods: {
getParameter(data) { getParameter(data) {
@ -262,8 +284,9 @@ export default {
}); });
this.loading = false; this.loading = false;
console.log(data); console.log(data);
if (data.data && data.state) { if (data.data !== null && data.state) {
var obj = JSON.parse(data.data.mark_value); var obj = JSON.parse(data.data.mark_value);
console.log(obj);
this.formData.ippz_wllx = obj.ippz_wllx; this.formData.ippz_wllx = obj.ippz_wllx;
if (obj.ippz_ip) { if (obj.ippz_ip) {
this.ippz_ip1 = obj.ippz_ip.split(".")[0]; this.ippz_ip1 = obj.ippz_ip.split(".")[0];