注释底部关停原因

lijinlongNew
严飞永 3 days ago
parent b208d25bd5
commit 999bbe00e0

@ -3002,21 +3002,20 @@
<span class="top-title-box">新监管业务形态</span> <span class="top-title-box">新监管业务形态</span>
</el-row> </el-row>
<el-row style="margin: 20px 0"> <el-row style="margin: 20px 0">
<el-radio-group <el-checkbox-group
v-model="ruleForm.xjgywxt.remark" v-model="ruleForm.xjgywxt.remark"
size="medium" @change="handleCheckboxChange"
@input="changeRadio"
style="margin-left: 170px" style="margin-left: 170px"
> >
<el-radio label="1" border>云平台</el-radio> <el-checkbox label="1" border>云平台</el-checkbox>
<el-radio label="2" border>大数据</el-radio> <el-checkbox label="2" border>大数据</el-checkbox>
<el-radio label="3" border>物联网</el-radio> <el-checkbox label="3" border>物联网</el-checkbox>
<el-radio label="4" border>移动APP</el-radio> <el-checkbox label="4" border>移动APP</el-checkbox>
<el-radio label="5" border>工业控制</el-radio> <el-checkbox label="5" border>工业控制</el-checkbox>
<el-radio label="6" border>CDN</el-radio> <el-checkbox label="6" border>CDN</el-checkbox>
</el-radio-group> </el-checkbox-group>
</el-row> </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"> <el-row style="margin: 10px 0">
<span class="top-title-two-box">云平台</span> <span class="top-title-two-box">云平台</span>
@ -3127,7 +3126,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </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"> <el-row style="margin: 10px 0">
<span class="top-title-two-box">大数据</span> <span class="top-title-two-box">大数据</span>
@ -3222,7 +3221,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </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"> <el-row style="margin: 10px 0">
<span class="top-title-two-box">一般物联网设备</span> <span class="top-title-two-box">一般物联网设备</span>
@ -3425,7 +3424,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div v-if="ruleForm.xjgywxt.remark == 4"> <div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '4'">
<!-- 移动APP --> <!-- 移动APP -->
<el-row style="margin: 10px 0"> <el-row style="margin: 10px 0">
<span class="top-title-two-box">移动APP</span> <span class="top-title-two-box">移动APP</span>
@ -3516,7 +3515,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </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"> <el-row style="margin: 10px 0">
<span class="top-title-two-box">工业控制</span> <span class="top-title-two-box">工业控制</span>
@ -3709,7 +3708,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div v-if="ruleForm.xjgywxt.remark == 6"> <div v-if="Array.isArray(ruleForm.xjgywxt.remark) && ruleForm.xjgywxt.remark[0] === '6'">
<!-- CDN信息 --> <!-- CDN信息 -->
<el-row style="margin: 10px 0"> <el-row style="margin: 10px 0">
<span class="top-title-two-box">CDN信息</span> <span class="top-title-two-box">CDN信息</span>
@ -4577,14 +4576,14 @@
</myUpload> </myUpload>
</el-form-item> </el-form-item>
</el-row> </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> <span class="top-title-box">关停原因</span>
</el-row> </el-row>
<el-row style="margin: 20px 0"> <el-row style="margin: 20px 0">
<el-form-item> <el-form-item>
<div>{{ ruleForm.bfyy }}</div> <div>{{ ruleForm.bfyy }}</div>
</el-form-item> </el-form-item>
</el-row> </el-row> -->
</div> </div>
<el-row <el-row
style="margin: 10px 0; padding-bottom: 50px; text-align: center" style="margin: 10px 0; padding-bottom: 50px; text-align: center"
@ -4699,7 +4698,7 @@ export default {
], ],
// //
xjgywxt: { xjgywxt: {
remark: "", remark: [],
}, },
// -- // --
glymList: [ glymList: [
@ -4894,6 +4893,12 @@ export default {
} }
}, },
methods: { methods: {
handleCheckboxChange(val) {
//
if (val.length > 1) {
this.ruleForm.xjgywxt.remark = [val[val.length - 1]];
}
},
// //
generateFullUrl(url) { generateFullUrl(url) {
if (!url) return ""; if (!url) return "";
@ -4924,9 +4929,20 @@ export default {
getInfo(id) { getInfo(id) {
assetInfo(id).then((res) => { assetInfo(id).then((res) => {
this.ruleForm = res.data; this.ruleForm = res.data;
// remark
if (!this.ruleForm.xjgywxt) { if (!this.ruleForm.xjgywxt) {
this.ruleForm.xjgywxt = {}; this.ruleForm.xjgywxt = {};
this.$set(this.ruleForm.xjgywxt, "remark", ""); 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) { if (this.ruleForm.fwwz) {
let arr = this.ruleForm.fwwz.split("-"); let arr = this.ruleForm.fwwz.split("-");
@ -5235,6 +5251,15 @@ export default {
newAssets() { newAssets() {
this.$refs["ruleForm"].validate((valid) => { this.$refs["ruleForm"].validate((valid) => {
if (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.xttz = this.xttz.join(",");
this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(","); this.ruleForm.xtfhqkFcg = this.xtfhqkFcg.join(",");
this.ruleForm.xtfhqkFxl = this.xtfhqkFxl.join(","); this.ruleForm.xtfhqkFxl = this.xtfhqkFxl.join(",");

@ -5224,14 +5224,14 @@
</myUpload> </myUpload>
</el-form-item> </el-form-item>
</el-row> </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> <span class="top-title-box">关停原因</span>
</el-row> </el-row>
<el-row style="margin: 20px 0"> <el-row style="margin: 20px 0">
<el-form-item> <el-form-item>
<div>{{ ruleForm.bfyy }}</div> <div>{{ ruleForm.bfyy }}</div>
</el-form-item> </el-form-item>
</el-row> </el-row> -->
</div> </div>
<el-row <el-row
style="margin: 10px 0; padding-bottom: 50px; text-align: center" style="margin: 10px 0; padding-bottom: 50px; text-align: center"

@ -5066,14 +5066,14 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</span> </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> <span class="top-title-box">关停原因</span>
</el-row> </el-row>
<el-row style="margin: 20px 0"> <el-row style="margin: 20px 0">
<el-form-item> <el-form-item>
<div>{{ ruleForm.bfyy }}</div> <div>{{ ruleForm.bfyy }}</div>
</el-form-item> </el-form-item>
</el-row> </el-row> -->
</div> </div>
</el-form> </el-form>
<el-row <el-row

@ -5182,14 +5182,14 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</span> </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> <span class="top-title-box">关停原因</span>
</el-row> </el-row>
<el-row style="margin: 20px 0"> <el-row style="margin: 20px 0">
<el-form-item> <el-form-item>
<div>{{ ruleForm.bfyy }}</div> <div>{{ ruleForm.bfyy }}</div>
</el-form-item> </el-form-item>
</el-row> </el-row> -->
</div> </div>
</el-form> </el-form>
<el-row <el-row

Loading…
Cancel
Save