|
@@ -34,8 +34,8 @@
|
|
<el-form-item label="限制类型">
|
|
<el-form-item label="限制类型">
|
|
<el-select v-model="formSearch.limitType" class="input">
|
|
<el-select v-model="formSearch.limitType" class="input">
|
|
<el-option label="未选择" value=""></el-option>
|
|
<el-option label="未选择" value=""></el-option>
|
|
- <el-option label="允许访问" value="0"></el-option>
|
|
|
|
- <el-option label="禁止访问" value="1"></el-option>
|
|
|
|
|
|
+ <el-option label="允许访问" value="HAS_ACCESS"></el-option>
|
|
|
|
+ <el-option label="禁止访问" value="NO_ACCESS"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
@@ -410,11 +410,11 @@ export default {
|
|
return {
|
|
return {
|
|
limitTypeList: [
|
|
limitTypeList: [
|
|
{
|
|
{
|
|
- id: 0,
|
|
|
|
|
|
+ id: "HAS_ACCESS",
|
|
label: "允许访问",
|
|
label: "允许访问",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- id: 1,
|
|
|
|
|
|
+ id: "NO_ACCESS",
|
|
label: "禁止访问",
|
|
label: "禁止访问",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -620,9 +620,9 @@ export default {
|
|
},
|
|
},
|
|
getLimitType(type) {
|
|
getLimitType(type) {
|
|
if (type === "允许访问") {
|
|
if (type === "允许访问") {
|
|
- return 0;
|
|
|
|
|
|
+ return "HAS_ACCESS";
|
|
} else if (type === "禁止访问") {
|
|
} else if (type === "禁止访问") {
|
|
- return 1;
|
|
|
|
|
|
+ return "NO_ACCESS";
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
},
|
|
},
|
|
@@ -663,7 +663,7 @@ export default {
|
|
}
|
|
}
|
|
if (row) {
|
|
if (row) {
|
|
this.examIpLimitTypeForm.id = row.id;
|
|
this.examIpLimitTypeForm.id = row.id;
|
|
- this.examIpLimitTypeForm.limitType = row.limitType;
|
|
|
|
|
|
+ this.examIpLimitTypeForm.limitType = this.getLimitType(row.limitType);
|
|
} else {
|
|
} else {
|
|
this.examIpLimitTypeForm.id = null;
|
|
this.examIpLimitTypeForm.id = null;
|
|
this.examIpLimitTypeForm.limitType = null;
|
|
this.examIpLimitTypeForm.limitType = null;
|