添加功能
This commit is contained in:
@@ -14,7 +14,7 @@ export const queryStation = () => {
|
|||||||
let res = {
|
let res = {
|
||||||
message: 'ok',
|
message: 'ok',
|
||||||
data: [
|
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: '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: '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'},
|
{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 |
@@ -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-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>
|
||||||
<el-row type="flex" justify="space-between">
|
<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>
|
</el-row>
|
||||||
<div slot="reference" class="zbox point_item_i" @click="openPopover(i)"><p>{{ e.station_name }}</p></div>
|
<div slot="reference" class="zbox point_item_i" @click="openPopover(i)"><p>{{ e.station_name }}</p></div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SaveChain from './save-chain.vue'
|
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'
|
import { queryStation, queryTaskChain, queryTaskChainDtl, sendTask, saveTask, cancelTask, deleteTaskChain, updateStation } from '@/config/getData.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'ModuleDevice',
|
name: 'ModuleDevice',
|
||||||
@@ -452,11 +452,16 @@ export default {
|
|||||||
padding 0
|
padding 0
|
||||||
font-size 24px
|
font-size 24px
|
||||||
height 65px
|
height 65px
|
||||||
|
border-radius 3px
|
||||||
&:first-child
|
&:first-child
|
||||||
border-left 1px solid #233553
|
border-left 1px solid #233553
|
||||||
&:active, &:hover
|
&:active, &:hover
|
||||||
border-color #146fd0
|
border-color #146fd0
|
||||||
border-left 1px solid #146fd0
|
border-left 1px solid #146fd0
|
||||||
|
&:disabled
|
||||||
|
background #c8c9cc
|
||||||
|
color #fff
|
||||||
|
border 1px solid #c8c9cc
|
||||||
.task_button_checked
|
.task_button_checked
|
||||||
border-color #146fd0
|
border-color #146fd0
|
||||||
border-left 1px solid #146fd0
|
border-left 1px solid #146fd0
|
||||||
|
|||||||
Reference in New Issue
Block a user