mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
3cc9f7bc40
commit
8fe1e2fee4
@ -12,7 +12,7 @@
|
|||||||
<span>{{formData.info.sn}}</span>
|
<span>{{formData.info.sn}}</span>
|
||||||
<ETooltip max-width="auto" placement="right">
|
<ETooltip max-width="auto" placement="right">
|
||||||
<div slot="content">{{$L('当前环境')}}: {{formData.doo_sn}}</div>
|
<div slot="content">{{$L('当前环境')}}: {{formData.doo_sn}}</div>
|
||||||
<Icon class="information" type="ios-information-circle-outline" />
|
<Icon class="information" :class="{error: !existIntersection(formData.doo_sn, formData.info.sn)}" type="ios-information-circle-outline" />
|
||||||
</ETooltip>
|
</ETooltip>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<span>{{infoJoin(formData.info.mac)}}</span>
|
<span>{{infoJoin(formData.info.mac)}}</span>
|
||||||
<ETooltip max-width="auto" placement="right">
|
<ETooltip max-width="auto" placement="right">
|
||||||
<div slot="content">{{$L('当前环境')}}: {{infoJoin(formData.macs, '-')}}</div>
|
<div slot="content">{{$L('当前环境')}}: {{infoJoin(formData.macs, '-')}}</div>
|
||||||
<Icon class="information" type="ios-information-circle-outline" />
|
<Icon class="information" :class="{error: !existIntersection(formData.macs, formData.info.mac)}" type="ios-information-circle-outline" />
|
||||||
</ETooltip>
|
</ETooltip>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -109,6 +109,9 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
|
&.error {
|
||||||
|
color: #ed4014;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -182,6 +185,16 @@ export default {
|
|||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
return def === null ? this.$L("无限制") : def
|
return def === null ? this.$L("无限制") : def
|
||||||
|
},
|
||||||
|
|
||||||
|
existIntersection(val1, val2) {
|
||||||
|
if (!$A.isArray(val1)) {
|
||||||
|
val1 = [val1]
|
||||||
|
}
|
||||||
|
if (!$A.isArray(val2)) {
|
||||||
|
val2 = [val2]
|
||||||
|
}
|
||||||
|
return val1.some(v => val2.includes(v))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user