Compare commits

...

2 Commits

@ -650,11 +650,19 @@
</el-col>
<el-col :span="12" v-if="ruleForm.xtbsfs == 4">
<el-form-item label="云服务商" required>
<el-input
<!-- <el-input
v-model="ruleForm.yfws"
style="width: 100%"
placeholder="请输入云服务商"
></el-input>
></el-input> -->
<el-select v-model="ruleForm.yfws" placeholder="请选择云服务商">
<el-option
v-for="dict in dict.type.yfws"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
@ -2994,21 +3002,20 @@
<span class="top-title-box">新监管业务形态</span>
</el-row>
<el-row style="margin: 20px 0">
<el-radio-group
<el-checkbox-group
v-model="ruleForm.xjgywxt.remark"
size="medium"
@input="changeRadio"
@change="handleCheckboxChange"
style="margin-left: 170px"
>
<el-radio label="1" border>云平台</el-radio>
<el-radio label="2" border>大数据</el-radio>
<el-radio label="3" border>物联网</el-radio>
<el-radio label="4" border>移动APP</el-radio>
<el-radio label="5" border>工业控制</el-radio>
<el-radio label="6" border>CDN</el-radio>
</el-radio-group>
<el-checkbox label="1" border>云平台</el-checkbox>
<el-checkbox label="2" border>大数据</el-checkbox>
<el-checkbox label="3" border>物联网</el-checkbox>
<el-checkbox label="4" border>移动APP</el-checkbox>
<el-checkbox label="5" border>工业控制</el-checkbox>
<el-checkbox label="6" border>CDN</el-checkbox>
</el-checkbox-group>
</el-row>
<div v-if="ruleForm.xjgywxt.remark == 1">
<div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '1'">
<!-- 云平台 -->
<el-row style="margin: 10px 0">
<span class="top-title-two-box">云平台</span>
@ -3119,7 +3126,7 @@
</el-col>
</el-row>
</div>
<div v-if="ruleForm.xjgywxt.remark == 2">
<div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '2'">
<!-- 大数据 -->
<el-row style="margin: 10px 0">
<span class="top-title-two-box">大数据</span>
@ -3214,7 +3221,7 @@
</el-col>
</el-row>
</div>
<div v-if="ruleForm.xjgywxt.remark == 3">
<div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '3'">
<!-- 一般物联网设备 -->
<el-row style="margin: 10px 0">
<span class="top-title-two-box">一般物联网设备</span>
@ -3417,7 +3424,7 @@
</el-col>
</el-row>
</div>
<div v-if="ruleForm.xjgywxt.remark == 4">
<div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '4'">
<!-- 移动APP -->
<el-row style="margin: 10px 0">
<span class="top-title-two-box">移动APP</span>
@ -3508,7 +3515,7 @@
</el-col>
</el-row>
</div>
<div v-if="ruleForm.xjgywxt.remark == 5">
<div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '5'">
<!-- 工业控制 -->
<el-row style="margin: 10px 0">
<span class="top-title-two-box">工业控制</span>
@ -3701,7 +3708,7 @@
</el-col>
</el-row>
</div>
<div v-if="ruleForm.xjgywxt.remark == 6">
<div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '6'">
<!-- CDN信息 -->
<el-row style="margin: 10px 0">
<span class="top-title-two-box">CDN信息</span>
@ -4569,14 +4576,14 @@
</myUpload>
</el-form-item>
</el-row>
<el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<!-- <el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<span class="top-title-box">关停原因</span>
</el-row>
<el-row style="margin: 20px 0">
<el-form-item>
<div>{{ ruleForm.bfyy }}</div>
</el-form-item>
</el-row>
</el-row> -->
</div>
<el-row
style="margin: 10px 0; padding-bottom: 50px; text-align: center"
@ -4646,6 +4653,7 @@ export default {
"xtfhqk_fls",
"database_type",
"sjzc_sjldw",
"yfws",
],
components: {
myUpload,
@ -4690,7 +4698,7 @@ export default {
],
//
xjgywxt: {
remark: "",
remark: [],
},
// --
glymList: [
@ -4885,6 +4893,12 @@ export default {
}
},
methods: {
handleCheckboxChange(val) {
//
if (val.length > 1) {
this.ruleForm.xjgywxt.remark = [val[val.length - 1]];
}
},
//
generateFullUrl(url) {
if (!url) return "";
@ -4915,10 +4929,21 @@ export default {
getInfo(id) {
assetInfo(id).then((res) => {
this.ruleForm = res.data;
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", "");
}
// remark
if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", []);
} else {
//
if (
typeof this.ruleForm.xjgywxt.remark === "string" &&
this.ruleForm.xjgywxt.remark !== ""
) {
this.ruleForm.xjgywxt.remark = [this.ruleForm.xjgywxt.remark];
} else if (!Array.isArray(this.ruleForm.xjgywxt.remark)) {
this.ruleForm.xjgywxt.remark = [];
}
}
if (this.ruleForm.fwwz) {
let arr = this.ruleForm.fwwz.split("-");
this.select = arr[0];
@ -5226,6 +5251,15 @@ export default {
newAssets() {
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
// remark
if (
this.ruleForm.xjgywxt &&
Array.isArray(this.ruleForm.xjgywxt.remark)
) {
// join(',')
this.ruleForm.xjgywxt.remark =
this.ruleForm.xjgywxt.remark[0] || "";
}
this.ruleForm.xttz = this.xttz.join(",");
this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(",");
this.ruleForm.xtfhqkFxl = this.xtfhqkFxl.join(",");

@ -921,15 +921,18 @@
prop="yfws"
:rules="{
required: true,
message: '请输入',
trigger: 'blur',
message: '请选择',
trigger: 'change',
}"
>
<el-input
v-model="ruleForm.yfws"
style="width: 100%"
placeholder="请输入云服务商"
></el-input>
<el-select v-model="ruleForm.yfws" placeholder="请选择云服务商">
<el-option
v-for="dict in dict.type.yfws"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
@ -5221,14 +5224,14 @@
</myUpload>
</el-form-item>
</el-row>
<el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<!-- <el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<span class="top-title-box">关停原因</span>
</el-row>
<el-row style="margin: 20px 0">
<el-form-item>
<div>{{ ruleForm.bfyy }}</div>
</el-form-item>
</el-row>
</el-row> -->
</div>
<el-row
style="margin: 10px 0; padding-bottom: 50px; text-align: center"
@ -5347,6 +5350,7 @@ export default {
"xtfhqk_fls",
"database_type",
"sjzc_sjldw",
"yfws"
],
components: {
myUpload,

@ -872,15 +872,18 @@
prop="yfws"
:rules="{
required: true,
message: '请输入',
trigger: 'blur',
message: '请选择',
trigger: 'change',
}"
>
<el-input
v-model="ruleForm.yfws"
style="width: 100%"
placeholder="请输入云服务商"
></el-input>
<el-select v-model="ruleForm.yfws" placeholder="请选择云服务商">
<el-option
v-for="dict in dict.type.yfws"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
@ -5063,14 +5066,14 @@
</el-form-item>
</el-row>
</span>
<el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<!-- <el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<span class="top-title-box">关停原因</span>
</el-row>
<el-row style="margin: 20px 0">
<el-form-item>
<div>{{ ruleForm.bfyy }}</div>
</el-form-item>
</el-row>
</el-row> -->
</div>
</el-form>
<el-row
@ -5177,6 +5180,7 @@ export default {
"xtfhqk_fls",
"database_type",
"sjzc_sjldw",
"yfws"
],
components: {
myUpload,

@ -896,15 +896,18 @@
prop="yfws"
:rules="{
required: true,
message: '请输入',
trigger: 'blur',
message: '请选择',
trigger: 'change',
}"
>
<el-input
v-model="ruleForm.yfws"
style="width: 100%"
placeholder="请输入云服务商"
></el-input>
<el-select v-model="ruleForm.yfws" placeholder="请选择云服务商">
<el-option
v-for="dict in dict.type.yfws"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
@ -5179,14 +5182,14 @@
</el-form-item>
</el-row>
</span>
<el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<!-- <el-row style="margin: 10px 0" v-if="ruleForm.bfyy">
<span class="top-title-box">关停原因</span>
</el-row>
<el-row style="margin: 20px 0">
<el-form-item>
<div>{{ ruleForm.bfyy }}</div>
</el-form-item>
</el-row>
</el-row> -->
</div>
</el-form>
<el-row
@ -5298,6 +5301,7 @@ export default {
"xtfhqk_fls",
"database_type",
"sjzc_sjldw",
"yfws"
],
components: {
myUpload,

Loading…
Cancel
Save