|
|
@@ -35,9 +35,13 @@
|
|
|
maxlength="50"
|
|
|
clearable
|
|
|
/>
|
|
|
- <span class="c-grid-form__label">异步盒:</span>
|
|
|
+ <span class="c-grid-form__label">特性:</span>
|
|
|
<div class="l-flex--row c-grid-form__option">
|
|
|
- <el-switch
|
|
|
+ <el-checkbox v-model="flag.async">异步盒</el-checkbox>
|
|
|
+ <el-checkbox v-model="flag.detection">设备监测</el-checkbox>
|
|
|
+ <el-checkbox v-model="flag.contentProtection">内容保护</el-checkbox>
|
|
|
+ <el-checkbox v-model="flag.recoveryCard">回采卡</el-checkbox>
|
|
|
+ <!-- <el-switch
|
|
|
v-model="flag.async"
|
|
|
class="c-sibling-item"
|
|
|
active-color="#13ce66"
|
|
|
@@ -57,6 +61,13 @@
|
|
|
active-color="#13ce66"
|
|
|
inactive-color="#ff4949"
|
|
|
/>
|
|
|
+ <span class="c-sibling-item far">回采卡:</span>
|
|
|
+ <el-switch
|
|
|
+ v-model="flag.recoveryCard"
|
|
|
+ class="c-sibling-item"
|
|
|
+ active-color="#13ce66"
|
|
|
+ inactive-color="#ff4949"
|
|
|
+ /> -->
|
|
|
</div>
|
|
|
<span class="c-grid-form__label">备注:</span>
|
|
|
<el-input
|
|
|
@@ -120,6 +131,9 @@ export default {
|
|
|
if (flag & Transmitter.SUPPORT_CONTENT_PROTECTION) {
|
|
|
tags.push({ type: 'success', label: '内容保护' })
|
|
|
}
|
|
|
+ if (flag & Transmitter.RECOVERY_CARD) {
|
|
|
+ tags.push({ type: 'success', label: '回采卡' })
|
|
|
+ }
|
|
|
return tags
|
|
|
}, on: this.onClickTag },
|
|
|
{ prop: 'remark', label: '备注' },
|
|
|
@@ -147,7 +161,8 @@ export default {
|
|
|
this.flag = {
|
|
|
async: false,
|
|
|
detection: false,
|
|
|
- contentProtection: false
|
|
|
+ contentProtection: false,
|
|
|
+ recoveryCard: false
|
|
|
}
|
|
|
this.$refs.editDialog.show()
|
|
|
},
|
|
|
@@ -157,7 +172,8 @@ export default {
|
|
|
this.flag = {
|
|
|
async: !!(flag & Transmitter.IS_ASYNC),
|
|
|
detection: !!(flag & Transmitter.SUPPORT_DETECTION),
|
|
|
- contentProtection: !!(flag & Transmitter.SUPPORT_CONTENT_PROTECTION)
|
|
|
+ contentProtection: !!(flag & Transmitter.SUPPORT_CONTENT_PROTECTION),
|
|
|
+ recoveryCard: !!(flag & Transmitter.RECOVERY_CARD)
|
|
|
}
|
|
|
this.$refs.editDialog.show()
|
|
|
},
|
|
|
@@ -183,7 +199,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- const { async: isAsync, detection, contentProtection } = this.flag
|
|
|
+ const { async: isAsync, detection, contentProtection, recoveryCard } = this.flag
|
|
|
let flag = 0
|
|
|
if (isAsync) {
|
|
|
flag |= Transmitter.IS_ASYNC
|
|
|
@@ -194,6 +210,9 @@ export default {
|
|
|
if (contentProtection) {
|
|
|
flag |= Transmitter.SUPPORT_CONTENT_PROTECTION
|
|
|
}
|
|
|
+ if (recoveryCard) {
|
|
|
+ flag |= Transmitter.RECOVERY_CARD
|
|
|
+ }
|
|
|
const transmitter = {
|
|
|
...this.transmitter,
|
|
|
flag
|