添加功能

This commit is contained in:
2026-01-14 14:01:16 +08:00
parent 042fd6dc5b
commit 37fea3641d
3 changed files with 8 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ export const queryStation = () => {
let res = {
message: 'ok',
data: [
{station_id: 'B1', station_code: 'B1', station_name: 'Starting position on the first floor Starting position on the first floor', x: '10', Y: '10', angle: '90'},
{station_id: 'B1', station_code: 'A', station_name: 'A', x: '10', Y: '10', angle: '90'},
{station_id: 'B2', station_code: 'B2', station_name: '一楼起点位置一楼起点位置一楼起点位置', x: '10', Y: '10', angle: '90'},
{station_id: 'B3', station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'},
{station_id: 'B4', station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -17,7 +17,7 @@
<el-button type="success" icon="el-icon-check" size="mini" style="width: .5rem; height: .4rem" :disabled="disabled" @click="_updateStation(e, i)"></el-button>
</el-row>
<el-row type="flex" justify="space-between">
<el-button class="task_button" :class="{'task_checked': e.action_type === el.value}" v-for="el in radioOption" :key="el.value" @click="radioInput(e, i, el.value)">{{el[$langPre.computedProp('label')]}}</el-button>
<el-button class="task_button" :class="{'task_checked': e.action_type === el.value}" :disabled="e.station_code === 'A' && (ii === 0 || ii === 1)" v-for="(el, ii) in radioOption" :key="el.value" @click="radioInput(e, i, el.value)">{{el[$langPre.computedProp('label')]}}</el-button>
</el-row>
<div slot="reference" class="zbox point_item_i" @click="openPopover(i)"><p>{{ e.station_name }}</p></div>
</el-popover>
@@ -68,7 +68,7 @@
<script>
import SaveChain from './save-chain.vue'
// import { queryStation, queryTaskChain } from '../../config/mork.js'
// import { queryStation, queryTaskChain } from '@/config/mork.js'
import { queryStation, queryTaskChain, queryTaskChainDtl, sendTask, saveTask, cancelTask, deleteTaskChain, updateStation } from '@/config/getData.js'
export default {
name: 'ModuleDevice',
@@ -452,11 +452,16 @@ export default {
padding 0
font-size 24px
height 65px
border-radius 3px
&:first-child
border-left 1px solid #233553
&:active, &:hover
border-color #146fd0
border-left 1px solid #146fd0
&:disabled
background #c8c9cc
color #fff
border 1px solid #c8c9cc
.task_button_checked
border-color #146fd0
border-left 1px solid #146fd0