| | |
| | | </div> |
| | | |
| | | <div class="footer"> |
| | | <el-button class="general" color="#2B2B4C" @click="emit('signal')">信号干扰</el-button> |
| | | <el-button color="#284FE3" type="primary" @click="emit('counter')">诱导驱离</el-button> |
| | | <el-button v-if="showSignalBtn(data)" class="general" color="#2B2B4C" @click="emit('signal')">信号干扰</el-button> |
| | | <el-button v-if="showCounterBtn(data)" color="#284FE3" type="primary" @click="emit('counter')">诱导驱离</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | return 'detecting' |
| | | } |
| | | |
| | | const normalizeCounterWay = (value) => { |
| | | if (value == null) return '' |
| | | return String(value).trim() |
| | | } |
| | | |
| | | const showSignalBtn = (item) => { |
| | | const counterWay = normalizeCounterWay(item?.counterWay) |
| | | return counterWay !== '1' |
| | | } |
| | | |
| | | const showCounterBtn = (item) => { |
| | | const counterWay = normalizeCounterWay(item?.counterWay) |
| | | return counterWay !== '2' |
| | | } |
| | | |
| | | const getDataSource = (item) => { |
| | | return item?.deviceName || item?.areaName || '-' |
| | | } |