This commit is contained in:
joylink_cuiweidong 2020-08-12 17:34:55 +08:00
commit c3c65fba5c
60 changed files with 1961 additions and 960 deletions

View File

@ -0,0 +1,127 @@
<template>
<el-dialog
v-dialogDrag
class="foshan-01__systerm train-define"
:title="title"
:visible.sync="show"
width="260px"
:before-close="doClose"
:z-index="2000"
:modal="false"
:close-on-click-modal="false"
>
<el-row justify="center" style="text-align: center; font-size: 16px;">
{{ title }}
</el-row>
<el-row justify="center" class="button-group">
<el-col :span="10">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
</el-col>
<el-col :span="8" :offset="5">
<el-button :id="domIdCancel" @click="cancel"> </el-button>
</el-col>
</el-row>
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
</el-dialog>
</template>
<script>
import { OperationEvent } from '@/scripts/ConstDic';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
export default {
name: 'AllLineCancelLimit',
components: {
NoticeInfo
},
data() {
return {
selected: null,
dialogShow: false,
loading: false
};
},
computed: {
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdCancel() {
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
},
domIdConfirm() {
return this.dialogShow ? (this.selected.deviceType === 'SWITCH' ? OperationEvent.Switch.cancelSpeed.menu.domId : OperationEvent.Section.cancelSpeed.menu.domId) : '';
},
title() {
return '全线取消限速';
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
},
methods: {
doShow(operate, selected) {
this.selected = selected;
//
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.loading = false;
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
this.$store.dispatch('map/setTrainWindowShow', false);
this.mouseCancelState(this.selected);
},
commit() {
const operate = {
cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED,
operation: this.selected.deviceType === 'SWITCH' ? OperationEvent.Switch.cancelSpeed.menu.operation : OperationEvent.Section.cancelSpeed.menu.operation
};
const that = this;
this.loading = true;
commitOperate(operate, {}, 3).then(({valid})=>{
that.loading = false;
if (valid) {
that.doClose();
that.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
}
}).catch((error) => {
that.loading = false;
that.doClose();
that.$refs.noticeInfo.doShow(error.message);
});
},
cancel() {
const operate = {
send: true,
operation: OperationEvent.Command.cancel.menu.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(() => { this.doClose(); });
}
}
};
</script>
<style scoped>
/deep/ .el-row {
margin: 10px
}
.foshan-01__systerm .el-dialog .base-label {
background: rgba(0, 0, 0, x);
position: relative;
left: -5px;
top: -18px;
padding: 0 5px;
background-color: #F0F0F0;
}
</style>

View File

@ -0,0 +1,562 @@
<template>
<div>
<el-dialog v-dialogDrag class="foshan-01__systerm section-cmd-speed" :title="title" :visible.sync="show" width="840px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
<div style="padding: 10px 20px; border: 1px solid lightgray;">
<span class="base-label">{{ $t('menu.commandInformation') }}</span>
<el-form label-position="center" size="mini">
<el-row>
<el-col :span="6">
<el-form-item :label="this.$t('menu.type')" label-width="40px">
<el-select v-model="operation" size="small" disabled>
<el-option v-for="option in typeList" :key="option.code" :label="option.name" :value="option.code" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="this.$t('menu.stationName')" label-width="80px">
<el-input v-model="stationName" size="small" disabled />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="nameLabel" label-width="80px">
<el-input v-model="name" size="small" disabled />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="this.$t('menu.speedLimitValue')" label-width="80px">
<el-select
:id="domIdChoose"
v-model="speed"
size="small"
:disabled="spdDisabled"
@change="speedSelectChange"
>
<el-option
v-for="item in speedList"
:key="item.value"
:label="item.name"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<el-table :data="tableData" border style="width: 100%" size="mini" highlight-current-row height="200">
<el-table-column prop="order" :width="110" :label="this.$t('menu.serialNumber2')" />
<el-table-column prop="date" :width="160" :label="this.$t('menu.time')" />
<el-table-column prop="context" :width="180" :label="this.$t('menu.implementationProcess')" />
<el-table-column prop="result" :label="this.$t('menu.executionResult')" />
</el-table>
<span class="notice">{{ message }}</span>
<el-row class="button-group">
<el-col :span="2" :offset="3">
<el-button :id="domIdCommand" type="primary" :disabled="cmdDisabled[0]" @click="command">
{{ $t('menu.release') }}
<span v-show="timeCountCommand>0">({{ timeCountCommand }})</span></el-button>
</el-col>
<el-col :span="2" :offset="1">
<el-button :id="domIdConfirm1" type="primary" style="width:120px;" :disabled="cmdDisabled[1]" @click="confirm1">{{ $t('menu.firstConfirm') }}</el-button>
</el-col>
<el-col :span="2" :offset="2">
<el-button :id="domIdConfirm2" type="primary" style="width:120px;" :disabled="cmdDisabled[2]" @click="confirm2">
{{ $t('menu.secondConfirm') }}
<span v-show="timeCountConfirm>0">({{ timeCountConfirm }})</span></el-button>
</el-col>
<el-col :span="2" :offset="2">
<el-button :id="domIdStop" type="primary" :disabled="stpDisabled" @click="stop">{{ $t('menu.suspend') }}</el-button>
</el-col>
<el-col :span="2" :offset="1">
<el-button :id="domIdClose" @click="close">{{ $t('global.close') }}</el-button>
</el-col>
</el-row>
</el-dialog>
<confirm-control-speed ref="confirmControlSpeed" @setOperate="getOperate" />
</div>
</template>
<script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import ConfirmControlSpeed from './childDialog/confirmControlSpeed';
import { now } from '@/utils/date';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
export default {
name: 'SectionCmdSpeed',
components: {
ConfirmControlSpeed
},
data() {
return {
dialogShow: false,
backOperate: '',
selected: '',
order: 0,
row: null,
timer: null,
operation: '',
cmdDisabled: [true, true, true],
spdDisabled: false,
stpDisabled: true,
tableData: [],
message: '',
timeCountCommand: -1,
timeCountConfirm: -1,
maxSpeed: 80,
speedSpace: 5,
stationName: '',
name: '',
speed: ''
};
},
computed: {
nameLabel() {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation ||
this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
return this.$t('menu.sectionName');
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation ||
this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
return this.$t('menu.switchName');
}
return null;
},
speedList() {
const list = [{ name: '不限速', value: '0' }];
for (var i = 1; i * this.speedSpace <= this.maxSpeed; i++) {
const speed = String(i * this.speedSpace);
list.push({ name: speed, value: speed });
}
return list;
},
typeList() {
return [
{ code: OperationEvent.Section.setSpeed.menu.operation, name: this.$t('menu.menuSection.sectionSetSpeedLimit') },
{ code: OperationEvent.Section.cancelSpeed.menu.operation, name: this.$t('menu.menuSection.sectionCancelSpeedLimit') },
{ code: OperationEvent.Switch.setSpeed.menu.operation, name: this.$t('menu.turnoutSettingSpeedLimit') },
{ code: OperationEvent.Switch.cancelSpeed.menu.operation, name: this.$t('menu.turnoutCancelsSpeedLimit') }
];
},
title() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
return this.$t('menu.menuSection.sectionSetSpeedLimit');
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
return this.$t('menu.menuSection.sectionCancelSpeedLimit');
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
return this.$t('menu.turnoutSettingSpeedLimit');
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
return this.$t('menu.turnoutCancelsSpeedLimit');
}
}
return null;
},
show() {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdChoose() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
return OperationEvent.Section.setSpeed.choose.domId;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
return OperationEvent.Switch.setSpeed.choose.domId;
}
}
return null;
},
domIdCommand() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
return OperationEvent.Section.setSpeed.order.domId;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
return OperationEvent.Section.cancelSpeed.order.domId;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
return OperationEvent.Switch.setSpeed.order.domId;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
return OperationEvent.Switch.cancelSpeed.order.domId;
}
}
return null;
},
domIdConfirm1() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
return OperationEvent.Section.setSpeed.confirm1.domId;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
return OperationEvent.Section.cancelSpeed.confirm1.domId;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
return OperationEvent.Switch.setSpeed.confirm1.domId;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
return OperationEvent.Switch.cancelSpeed.confirm1.domId;
}
}
return null;
},
domIdConfirm2() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
return OperationEvent.Section.setSpeed.confirm2.domId;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
return OperationEvent.Section.cancelSpeed.confirm2.domId;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
return OperationEvent.Switch.setSpeed.confirm2.domId;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔设置限速*/
return OperationEvent.Switch.cancelSpeed.confirm2.domId;
}
}
return null;
},
domIdStop() {
if (this.dialogShow) {
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
return OperationEvent.Section.setSpeed.stop.domId;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
return OperationEvent.Section.cancelSpeed.stop.domId;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
return OperationEvent.Switch.setSpeed.stop.domId;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
return OperationEvent.Switch.cancelSpeed.stop.domId;
}
}
return null;
},
domIdClose() {
if (this.dialogShow) {
return OperationEvent.Command.close.menu.domId;
}
return null;
},
isCancelSpeed() {
return this.operation == OperationEvent.Section.cancelSpeed.menu.operation ||
this.operation == OperationEvent.Switch.cancelSpeed.menu.operation;
}
},
watch: {
cmdDisabled: {
handler(val, oldVal) {
this.spdDisabled = false;
val.forEach((elem, index) => {
//
if (elem == false && index >= 1 || this.isCancelSpeed) {
this.spdDisabled = true;
}
// 1
if (elem == false && index >= 1) {
this.stpDisabled = false;
}
});
},
deep: true
},
'speed': function (val) {
if (val) this.cmdDisabled[0] = false;
}
},
mounted() {
this.$nextTick(() => {
this.$store.dispatch('training/tipReload');
});
this.timer = setInterval(() => {
if (!this.$store.state.menuOperation.break) {
if (this.timeCountCommand > 0) {
this.timeCountCommand--;
} else if (this.timeCountCommand == 0) {
this.setButtonEnable({ step: 0 });
this.timeCountCommand = -1;
}
if (this.timeCountConfirm > 0) {
this.timeCountConfirm--;
} else if (this.timeCountConfirm == 0) {
this.setButtonEnable({ step: 0 });
this.timeCountConfirm = -1;
}
}
}, 1000);
},
beforeDestroy() {
clearInterval(this.timer);
this.timer = null;
},
methods: {
doShow(operate, selected) {
if (!this.dialogShow) {
this.name = '';
this.stationName = '';
if (selected) {
if (operate.operation == OperationEvent.Section.setSpeed.menu.operation ||
operate.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase()) {
if (selected.type === '02') {
const section = this.$store.getters['map/getDeviceByCode'](selected.parentCode);
if (section) {
this.name += section.name;
}
}
this.name += selected.name;
}
} else if (operate.operation == OperationEvent.Switch.setSpeed.menu.operation ||
operate.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
if (selected._type.toUpperCase() === 'Switch'.toUpperCase()) {
this.name = selected.name;
}
}
const station = this.$store.getters['map/getDeviceByCode'](selected.stationCode);
if (station) {
this.stationName = station.name;
}
this.speed = '';
this.tableData = [];
this.selected = selected;
this.timeCountCommand = -1;
this.timeCountConfirm = -1;
this.cmdDisabled = [true, true, true];
this.stpDisabled = true;
this.order = 0;
this.operation = operate.operation;
this.setMessage(this.$t('tip.selectSpeedLimitValueTip'));
if (this.isCancelSpeed) {
this.speed = '0';
this.spdDisabled = true;
this.cmdDisabled = [false, true, true];
}
}
}
this.dialogShow = true;
this.$nextTick(function () {
this.$store.dispatch('training/emitTipFresh');
});
},
doClose() {
this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh');
},
speedSelectChange(val) {
const operate = {
val: val
};
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
operate.operation = OperationEvent.Section.setSpeed.choose.operation;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.choose.operation;
}
this.setMessage(this.$t('tip.releaseTip'));
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.setButtonEnable({ step: 0 });
}
});
},
command() {
const operate = {};
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
operate.operation = OperationEvent.Section.setSpeed.order.operation;
operate.message = this.$t('menu.in') + `${this.name}` + this.$t('menu.sectionSetLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix');
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
operate.operation = OperationEvent.Section.cancelSpeed.order.operation;
operate.message = this.$t('menu.in') + `${this.name}` + this.$t('menu.sectionCancelLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix');
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.order.operation;
operate.message = this.$t('menu.in') + `${this.name}` + this.$t('menu.switchSetLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix');
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
operate.operation = OperationEvent.Switch.cancelSpeed.order.operation;
operate.message = this.$t('menu.in') + `${this.name}` + this.$t('menu.switchCancelLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix');
}
this.setMessage(this.$t('tip.firstConfirmTip'));
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' });
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.executionSucceed') });
this.$refs.confirmControlSpeed.doShow(operate, this.selected);
} else {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.executionFailed') });
}
}).catch(() => {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.executionException') });
});
},
confirm1() {
const operate = {};
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
operate.operation = OperationEvent.Section.setSpeed.confirm1.operation;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
operate.operation = OperationEvent.Section.cancelSpeed.confirm1.operation;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.confirm1.operation;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
operate.operation = OperationEvent.Switch.cancelSpeed.confirm1.operation;
}
this.setMessage(this.$t('tip.secondConfirmTip'));
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: '' });
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.timeCountCommand = -1;
this.timeCountConfirm = 10;
this.setButtonEnable({ step: 2 });
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: this.$t('tip.executionSucceed') });
} else {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: this.$t('tip.executionFailed') });
}
}).catch(() => {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: this.$t('tip.executionException') });
});
},
confirm2() {
const operate = {
over: true,
operation: '',
cmdType: '',
val: `${this.speed}`,
param: {
speedLimitValue: this.speed
}
};
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
operate.operation = OperationEvent.Section.setSpeed.confirm2.operation;
operate.cmdType = CMD.Section.CMD_SECTION_SET_LIMIT_SPEED;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
operate.operation = OperationEvent.Section.cancelSpeed.confirm2.operation;
operate.cmdType = CMD.Section.CMD_SECTION_SET_LIMIT_SPEED;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.confirm2.operation;
operate.cmdType = CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
operate.operation = OperationEvent.Switch.cancelSpeed.confirm2.operation;
operate.cmdType = CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED;
}
this.setMessage('');
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: '' });
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
this.timeCountCommand = -1;
this.timeCountConfirm = -1;
this.setButtonEnable({ step: -1 });
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: this.$t('tip.executionSucceed') });
} else {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: this.$t('tip.executionFailed') });
}
}).catch(() => {
this.timeCountCommand = -1;
this.timeCountConfirm = -1;
this.setButtonEnable({ step: -1 });
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: this.$t('tip.executionException') });
});
},
stop() {
const operate = {};
if (this.operation == OperationEvent.Section.setSpeed.menu.operation) {
/** 区段设置限速*/
operate.operation = OperationEvent.Section.setSpeed.stop.operation;
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/
operate.operation = OperationEvent.Section.cancelSpeed.stop.operation;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.stop.operation;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 道岔取消限速*/
operate.operation = OperationEvent.Switch.cancelSpeed.stop.operation;
}
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSuspend'), result: '' });
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.setButtonEnable({ step: 0 });
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSuspend'), result: this.$t('tip.executionSucceed') });
} else {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSuspend'), result: this.$t('tip.executionFailed') });
}
}).catch(() => {
this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSuspend'), result: this.$t('tip.executionException') });
});
},
close() {
const operate = {
operation: OperationEvent.Command.close.menu.operation
};
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickToClose'), result: '' });
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.doClose();
}
}).catch(() => {
this.doClose();
});
},
getOperate(operate) {
if (operate.step) {
this.setButtonEnable({ step: operate.step });
}
},
setButtonEnable(param) {
this.cmdDisabled = [true, true, true];
if (param && param.step >= 0) {
this.cmdDisabled[param.step] = false;
}
},
setMessage(message) {
this.message = message;
},
writeRecord(param) {
this.tableData.push(param);
},
editRecord(param) {
this.tableData.forEach(elem => {
if (elem.order == param.order) {
for (var prop in param) {
elem[prop] = param[prop];
}
}
});
}
}
};
</script>

View File

@ -94,22 +94,22 @@
</center> </center>
</span> </span>
</button> </button>
<button <!--<button-->
:id="Switch.turnoutForce.button.domId" <!--:id="Switch.turnoutForce.button.domId"-->
:style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}" <!--:style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}"-->
@click="buttonDown(Switch.turnoutForce.button.operation)" <!--@click="buttonDown(Switch.turnoutForce.button.operation)"-->
> <!--&gt;-->
<span style="color: red"> <!--<span style="color: red">-->
<center> <!--<center>-->
<b></b> <!--<b></b>-->
<b></b> <!--<b></b>-->
</center> <!--</center>-->
<center> <!--<center>-->
<b></b> <!--<b></b>-->
<b></b> <!--<b></b>-->
</center> <!--</center>-->
</span> <!--</span>-->
</button> <!--</button>-->
<button <button
id="mbm_13" id="mbm_13"
:style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}" :style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}"

View File

@ -7,6 +7,7 @@
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" /> <notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
<train-add-plan ref="trainAddPlan" pop-class="foshan-01__systerm" /> <train-add-plan ref="trainAddPlan" pop-class="foshan-01__systerm" />
<set-fault ref="setFault" pop-class="foshan-01__systerm" /> <set-fault ref="setFault" pop-class="foshan-01__systerm" />
<all-line-cancel-limit ref="allLineCancelLimit" />
</div> </div>
</template> </template>
@ -23,6 +24,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import AllLineCancelLimit from './dialog/allLineCancelLimit';
export default { export default {
name: 'SectionMenu', name: 'SectionMenu',
@ -33,7 +35,8 @@ export default {
SpeedLimitControl, SpeedLimitControl,
NoticeInfo, NoticeInfo,
TrainAddPlan, TrainAddPlan,
SetFault SetFault,
AllLineCancelLimit
}, },
props: { props: {
selected: { selected: {
@ -62,6 +65,11 @@ export default {
label: '设置临时限速', label: '设置临时限速',
handler: this.setSpeed, handler: this.setSpeed,
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
},
{
label: '全线取消限速',
handler: this.cancelSpeed,
cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED
} }
// { // {
// label: '', // label: '',
@ -84,6 +92,11 @@ export default {
label: '设置临时限速', label: '设置临时限速',
handler: this.setSpeed, handler: this.setSpeed,
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
},
{
label: '全线取消限速',
handler: this.cancelSpeed,
cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED
} }
] ]
}, },
@ -211,6 +224,13 @@ export default {
this.$refs.speedLimitControl.doShow(operate, this.selected); this.$refs.speedLimitControl.doShow(operate, this.selected);
} }
}); });
},
cancelSpeed() {
commitOperate(menuOperate.LimitControl.cancelSpeed, { switchCode: this.selected.code}, 0).then(({valid, operate}) => {
if (valid) {
this.$refs.allLineCancelLimit.doShow(operate, this.selected);
}
});
} }
} }
}; };

View File

@ -7,6 +7,8 @@
<switch-hook-lock ref="switchHookLock" pop-class="foshan-01__systerm" /> <switch-hook-lock ref="switchHookLock" pop-class="foshan-01__systerm" />
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" /> <notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
<set-fault ref="setFault" pop-class="foshan-01__systerm" /> <set-fault ref="setFault" pop-class="foshan-01__systerm" />
<speed-cmd-control ref="speedCmdControl" />
<all-line-cancel-limit ref="allLineCancelLimit" />
</div> </div>
</template> </template>
@ -19,6 +21,8 @@ import SpeedLimitControl from './dialog/speedLimitControl';
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock'; import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import SpeedCmdControl from './dialog/speedCmdControl';
import AllLineCancelLimit from './dialog/allLineCancelLimit';
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
import CMD from '@/scripts/cmdPlugin/CommandEnum'; import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
@ -34,7 +38,9 @@ export default {
SpeedLimitControl, SpeedLimitControl,
NoticeInfo, NoticeInfo,
SetFault, SetFault,
SwitchHookLock SwitchHookLock,
SpeedCmdControl,
AllLineCancelLimit
}, },
props: { props: {
selected: { selected: {
@ -49,6 +55,36 @@ export default {
menu: [], menu: [],
menuNormal: { menuNormal: {
Local: [ Local: [
{
label: '道岔强扳定位',
handler: this.locate,
cmdType:CMD.Switch.CMD_SWITCH_NORMAL_POSITION
},
{
label: '道岔强扳反位',
handler: this.reverse,
cmdType:CMD.Switch.CMD_SWITCH_REVERSE_POSITION
},
{
label: '区段激活',
handler: this.active,
cmdType: CMD.Switch.CMD_SWITCH_ACTIVE
},
{
label: '区段切除',
handler: this.split,
cmdType: CMD.Switch.CMD_SWITCH_CUT_OFF
},
{
label: '设置临时限速',
handler: this.setSpeed,
cmdType: CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED
},
{
label: '全线取消限速',
handler: this.cancelSpeed,
cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED
}
], ],
Center: [ Center: [
{ {
@ -337,6 +373,38 @@ export default {
callback: action => { callback: action => {
} }
}); });
},
//
split() {
commitOperate(menuOperate.Switch.split, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.switchControl.doShow(operate, this.selected);
}
});
},
//
active() {
commitOperate(menuOperate.Switch.active, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.switchControl.doShow(operate, this.selected);
}
});
},
//
setSpeed() {
commitOperate(menuOperate.Switch.setSpeed, { switchCode: this.selected.code}, 0).then(({valid, operate}) => {
if (valid) {
this.$refs.speedCmdControl.doShow(operate, this.selected);
}
});
},
//
cancelSpeed() {
commitOperate(menuOperate.LimitControl.cancelSpeed, { switchCode: this.selected.code}, 0).then(({valid, operate}) => {
if (valid) {
this.$refs.allLineCancelLimit.doShow(operate, this.selected);
}
});
} }
} }
}; };

View File

@ -24,7 +24,7 @@ class MenuContextHandler {
} else if (selected._type == 'TrainWindow') { } else if (selected._type == 'TrainWindow') {
control = store.getters['map/getDeviceTrainWindowCodeByStationCode'](selected.code); control = store.getters['map/getDeviceTrainWindowCodeByStationCode'](selected.code);
} else if (selected._type == 'LimitControl') { } else if (selected._type == 'LimitControl') {
return true; control = {controlMode: 'Center'};
} else { } else {
control = store.getters['map/getDeviceStationCodeByStationCode'](selected.stationCode); control = store.getters['map/getDeviceStationCodeByStationCode'](selected.stationCode);
} }
@ -88,10 +88,7 @@ class MenuContextHandler {
if (data) { if (data) {
// 判断指令是否显示 // 判断指令是否显示
if (data.operateObject == 'LimitControl') { if (data.simulationRole.toUpperCase() == type.toUpperCase() && data.controlMode.indexOf(status) > -1) {
elem.show = true;
elem.disabled = false;
} else if (data.simulationRole.toUpperCase() == type.toUpperCase() && data.controlMode.indexOf(status) > -1) {
elem.show = true; elem.show = true;
elem.disabled = this.checkDisabled(data, selected); elem.disabled = this.checkDisabled(data, selected);
} else { } else {

View File

@ -403,7 +403,7 @@ export default {
{ {
name: '门禁-站台层', name: '门禁-站台层',
mode: 'acs', mode: 'acs',
id: 'stand', id: 'acs',
type: 'system', type: 'system',
children: [ children: [
{ {
@ -417,7 +417,7 @@ export default {
{ {
name: '门禁-站厅层', name: '门禁-站厅层',
mode: 'acs', mode: 'acs',
id: 'stationHall', id: 'acs',
type: 'system', type: 'system',
children: [ children: [
{ {

View File

@ -13,7 +13,7 @@
<el-tab-pane label="图片" name="IscsImage"> <el-tab-pane label="图片" name="IscsImage">
<iscs-image <iscs-image
ref="iscsImage" ref="iscsImage"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -21,7 +21,7 @@
<el-tab-pane label="按钮" name="IscsButton"> <el-tab-pane label="按钮" name="IscsButton">
<iscs-button <iscs-button
ref="iscsButton" ref="iscsButton"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -29,7 +29,7 @@
<el-tab-pane label="文字" name="IscsText"> <el-tab-pane label="文字" name="IscsText">
<iscs-text <iscs-text
ref="iscsText" ref="iscsText"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -37,7 +37,7 @@
<el-tab-pane label="线段" name="IscsLine"> <el-tab-pane label="线段" name="IscsLine">
<iscs-line <iscs-line
ref="iscsLine" ref="iscsLine"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -45,7 +45,7 @@
<el-tab-pane label="矩形" name="IscsRect"> <el-tab-pane label="矩形" name="IscsRect">
<iscs-rect <iscs-rect
ref="iscsRect" ref="iscsRect"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -120,6 +120,63 @@ export default {
.map-control { .map-control {
float: right; float: right;
width: 100%; width: 100%;
height: 100%;
.border-card{
height: 100%;
}
}
.mapEdit{
height: calc(100% - 47px);
.tab_pane_box{
height: 100%;
}
}
/deep/ .el-card__body{
height:100%;
}
/deep/ {
.mapEdit .el-tabs__nav-wrap.is-scrollable {
padding: 0 20px;
}
.mapEdit .el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #f5f7fa;
background: #f5f7fa;
}
.mapEdit .el-tabs__active-bar{
background: transparent;
}
.mapEdit .el-tabs__content {
height: calc(100% - 56px);
}
.mapEdit .el-tab-pane {
height: 100%;
}
.card .el-tabs__nav .el-tabs__item.is-active {
border-bottom: 2px solid #E4E7ED;
background: #409eff;
color: #fff;
}
.card .el-tabs__nav .el-tabs__item{
padding: 0 20px!important;
}
.mapEdit .el-tabs__nav-prev {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
.mapEdit .el-tabs__nav-next {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
} }
.heightClass{height:100%;} .heightClass{height:100%;}
</style> </style>

View File

@ -1,11 +1,11 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图片选择:" prop="url"> <el-form-item label="图片选择:" prop="url">
<el-select v-model="addModel.url"> <el-select v-model="addModel.url" size="small">
<el-option <el-option
v-for="item in imageList" v-for="item in imageList"
:key="item.value" :key="item.value"
@ -14,25 +14,25 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形高度" prop="height"> <el-form-item label="图形高度:" prop="height">
<el-input-number v-model="addModel.height" /> <el-input-number v-model="addModel.height" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="addModel.rotate" /> <el-input-number v-model="addModel.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -13,7 +13,7 @@
<el-tab-pane label="门禁" name="EntranceGuard"> <el-tab-pane label="门禁" name="EntranceGuard">
<entrance-guard <entrance-guard
ref="entranceGuard" ref="entranceGuard"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -21,7 +21,7 @@
<el-tab-pane label="关门" name="EndDoor"> <el-tab-pane label="关门" name="EndDoor">
<end-door <end-door
ref="endDoor" ref="endDoor"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -29,7 +29,7 @@
<el-tab-pane label="闸机" name="FasBrakeMachine"> <el-tab-pane label="闸机" name="FasBrakeMachine">
<fas-brake-machine <fas-brake-machine
ref="fasBrakeMachine" ref="fasBrakeMachine"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -37,7 +37,7 @@
<el-tab-pane label="扶梯" name="Staircase"> <el-tab-pane label="扶梯" name="Staircase">
<staircase <staircase
ref="staircase" ref="staircase"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -45,7 +45,7 @@
<el-tab-pane label="楼梯" name="Escalator"> <el-tab-pane label="楼梯" name="Escalator">
<escalator <escalator
ref="escalator" ref="escalator"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -53,7 +53,7 @@
<el-tab-pane label="按钮" name="IscsButton"> <el-tab-pane label="按钮" name="IscsButton">
<iscs-button <iscs-button
ref="iscsButton" ref="iscsButton"
style="width: 90%;" style="width: 100%; height: 100%"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -61,7 +61,7 @@
<el-tab-pane label="文字" name="IscsText"> <el-tab-pane label="文字" name="IscsText">
<iscs-text <iscs-text
ref="iscsText" ref="iscsText"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -69,7 +69,7 @@
<el-tab-pane label="线段" name="IscsLine"> <el-tab-pane label="线段" name="IscsLine">
<iscs-line <iscs-line
ref="iscsLine" ref="iscsLine"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -77,7 +77,7 @@
<el-tab-pane label="矩形" name="IscsRect"> <el-tab-pane label="矩形" name="IscsRect">
<iscs-rect <iscs-rect
ref="iscsRect" ref="iscsRect"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -160,6 +160,63 @@ export default {
.map-control { .map-control {
float: right; float: right;
width: 100%; width: 100%;
height: 100%;
.border-card{
height: 100%;
}
}
.mapEdit{
height: calc(100% - 47px);
.tab_pane_box{
height: 100%;
}
}
/deep/ .el-card__body{
height:100%;
}
/deep/ {
.mapEdit .el-tabs__nav-wrap.is-scrollable {
padding: 0 20px;
}
.mapEdit .el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #f5f7fa;
background: #f5f7fa;
}
.mapEdit .el-tabs__active-bar{
background: transparent;
}
.mapEdit .el-tabs__content {
height: calc(100% - 56px);
}
.mapEdit .el-tab-pane {
height: 100%;
}
.card .el-tabs__nav .el-tabs__item.is-active {
border-bottom: 2px solid #E4E7ED;
background: #409eff;
color: #fff;
}
.card .el-tabs__nav .el-tabs__item{
padding: 0 20px!important;
}
.mapEdit .el-tabs__nav-prev {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
.mapEdit .el-tabs__nav-next {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
} }
.heightClass{height:100%;} .heightClass{height:100%;}
</style> </style>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="闸机朝右" prop="isRight"> <el-form-item label="闸机朝右:" prop="isRight">
<el-checkbox v-model="addModel.isRight" /> <el-checkbox v-model="addModel.isRight" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -13,7 +13,7 @@
<el-tab-pane label="闸机" name="BrakeMachine"> <el-tab-pane label="闸机" name="BrakeMachine">
<brake-machine <brake-machine
ref="brakeMachine" ref="brakeMachine"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -21,7 +21,7 @@
<el-tab-pane label="自动售货机" name="TicketMachine"> <el-tab-pane label="自动售货机" name="TicketMachine">
<ticket-machine <ticket-machine
ref="ticketMachine" ref="ticketMachine"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -29,7 +29,7 @@
<el-tab-pane label="半自动售货机" name="SemiAutomaticTicketMachine"> <el-tab-pane label="半自动售货机" name="SemiAutomaticTicketMachine">
<semi-automatic-ticket-machine <semi-automatic-ticket-machine
ref="semiAutomaticTicketMachine" ref="semiAutomaticTicketMachine"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -37,7 +37,7 @@
<el-tab-pane label="扶梯" name="Staircase"> <el-tab-pane label="扶梯" name="Staircase">
<staircase <staircase
ref="staircase" ref="staircase"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -45,7 +45,7 @@
<el-tab-pane label="按钮" name="IscsButton"> <el-tab-pane label="按钮" name="IscsButton">
<iscs-button <iscs-button
ref="iscsButton" ref="iscsButton"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -53,7 +53,7 @@
<el-tab-pane label="文字" name="IscsText"> <el-tab-pane label="文字" name="IscsText">
<iscs-text <iscs-text
ref="iscsText" ref="iscsText"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -61,7 +61,7 @@
<el-tab-pane label="线段" name="IscsLine"> <el-tab-pane label="线段" name="IscsLine">
<iscs-line <iscs-line
ref="iscsLine" ref="iscsLine"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -69,7 +69,7 @@
<el-tab-pane label="矩形" name="IscsRect"> <el-tab-pane label="矩形" name="IscsRect">
<iscs-rect <iscs-rect
ref="iscsRect" ref="iscsRect"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -151,6 +151,63 @@ export default {
.map-control { .map-control {
float: right; float: right;
width: 100%; width: 100%;
height: 100%;
.border-card{
height: 100%;
}
}
.mapEdit{
height: calc(100% - 47px);
.tab_pane_box{
height: 100%;
}
}
/deep/ .el-card__body{
height:100%;
}
/deep/ {
.mapEdit .el-tabs__nav-wrap.is-scrollable {
padding: 0 20px;
}
.mapEdit .el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #f5f7fa;
background: #f5f7fa;
}
.mapEdit .el-tabs__active-bar{
background: transparent;
}
.mapEdit .el-tabs__content {
height: calc(100% - 56px);
}
.mapEdit .el-tab-pane {
height: 100%;
}
.card .el-tabs__nav .el-tabs__item.is-active {
border-bottom: 2px solid #E4E7ED;
background: #409eff;
color: #fff;
}
.card .el-tabs__nav .el-tabs__item{
padding: 0 20px!important;
}
.mapEdit .el-tabs__nav-prev {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
.mapEdit .el-tabs__nav-next {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
} }
.heightClass{height:100%;} .heightClass{height:100%;}
</style> </style>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,28 +1,28 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="40" /> <el-input-number v-model="form.width" :min="40" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="空调机朝右" prop="isRight"> <el-form-item label="空调机朝右:" prop="isRight">
<el-checkbox v-model="form.isRight" /> <el-checkbox v-model="form.isRight" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="60" /> <el-input-number v-model="form.width" :min="60" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="颜色" prop="fill"> <el-form-item label="颜色:" prop="fill">
<el-color-picker v-model="form.fill" /> <el-color-picker v-model="form.fill" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度" prop="width">
<el-input-number v-model="form.width" :min="20" /> <el-input-number v-model="form.width" :min="20" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="颜色" prop="fill"> <el-form-item label="颜色:" prop="fill">
<el-color-picker v-model="form.fill" /> <el-color-picker v-model="form.fill" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="方向" prop="direction"> <el-form-item label="方向:" prop="direction">
<el-select v-model="form.direction" placeholder="请选择类型"> <el-select v-model="form.direction" placeholder="请选择类型" size="small">
<el-option label="横向" value="horizontal" /> <el-option label="横向" value="horizontal" />
<el-option label="竖向" value="vertical" /> <el-option label="竖向" value="vertical" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x" size="small">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y" size="small">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

View File

@ -1,31 +1,31 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="类型" prop="type"> <el-form-item label="类型:" prop="type" size="small">
<el-select v-model="form.type" placeholder="请选择类型"> <el-select v-model="form.type" placeholder="请选择类型">
<el-option label="冷冻泵" value="frozenPump" /> <el-option label="冷冻泵" value="frozenPump" />
<el-option label="冷却泵" value="coolPump" /> <el-option label="冷却泵" value="coolPump" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width" size="small">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate" size="small">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x" size="small">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y" size="small">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -14,7 +14,7 @@
<el-tab-pane label="冷冻泵/冷却泵" name="FrozenPump"> <el-tab-pane label="冷冻泵/冷却泵" name="FrozenPump">
<frozen-pump <frozen-pump
ref="frozenPump" ref="frozenPump"
style="width:90%" style="width:100%; height: 100%;"
@createFrozenPump="createDataModel" @createFrozenPump="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -22,7 +22,7 @@
<el-tab-pane label="冷水机组" name="Chiller"> <el-tab-pane label="冷水机组" name="Chiller">
<chiller <chiller
ref="chiller" ref="chiller"
style="width:90%" style="width:100%; height: 100%;"
@createChiller="createDataModel" @createChiller="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -30,7 +30,7 @@
<el-tab-pane label="冷却塔" name="CoolTower"> <el-tab-pane label="冷却塔" name="CoolTower">
<cool-tower <cool-tower
ref="coolTower" ref="coolTower"
style="width:90%" style="width:100%; height: 100%;"
@createCoolTower="createDataModel" @createCoolTower="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -38,7 +38,7 @@
<el-tab-pane label="排风机" name="Ventilator"> <el-tab-pane label="排风机" name="Ventilator">
<ventilator <ventilator
ref="ventilator" ref="ventilator"
style="width:90%" style="width:100%; height: 100%;"
@createVentilator="createDataModel" @createVentilator="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -46,7 +46,7 @@
<el-tab-pane label="空调机" name="AirConditioner"> <el-tab-pane label="空调机" name="AirConditioner">
<air-conditioner <air-conditioner
ref="airConditioner" ref="airConditioner"
style="width:90%" style="width:100%; height: 100%;"
@createAirConditioner="createDataModel" @createAirConditioner="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -54,7 +54,7 @@
<el-tab-pane label="轨道排风机" name="OrbitalVentilator"> <el-tab-pane label="轨道排风机" name="OrbitalVentilator">
<orbital-ventilator <orbital-ventilator
ref="orbitalVentilator" ref="orbitalVentilator"
style="width:90%" style="width:100%; height: 100%;"
@createOrbitalVentilator="createDataModel" @createOrbitalVentilator="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -62,7 +62,7 @@
<el-tab-pane label="射流风机" name="JetFan"> <el-tab-pane label="射流风机" name="JetFan">
<jet-fan <jet-fan
ref="jetFan" ref="jetFan"
style="width:90%" style="width:100%; height: 100%;"
@createJetFan="createDataModel" @createJetFan="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -70,7 +70,7 @@
<el-tab-pane label="隧道风机" name="TunnelFan"> <el-tab-pane label="隧道风机" name="TunnelFan">
<tunnel-fan <tunnel-fan
ref="tunnelFan" ref="tunnelFan"
style="width:90%" style="width:100%; height: 100%;"
@createTunnelFan="createDataModel" @createTunnelFan="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -78,7 +78,7 @@
<el-tab-pane label="防火阀" name="FireDamper"> <el-tab-pane label="防火阀" name="FireDamper">
<fire-damper <fire-damper
ref="fireDamper" ref="fireDamper"
style="width:90%" style="width:100%; height: 100%;"
@createFireDamper="createDataModel" @createFireDamper="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -86,7 +86,7 @@
<el-tab-pane label="排烟防火阀" name="SmookExhaustFd"> <el-tab-pane label="排烟防火阀" name="SmookExhaustFd">
<smook-exhaust-fd <smook-exhaust-fd
ref="smookExhaustFd" ref="smookExhaustFd"
style="width:90%" style="width:100%; height: 100%;"
@createSmookExhaustFd="createDataModel" @createSmookExhaustFd="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -94,7 +94,7 @@
<el-tab-pane label="防烟防火阀" name="SmookProofFd"> <el-tab-pane label="防烟防火阀" name="SmookProofFd">
<smook-proof-fd <smook-proof-fd
ref="smookProofFd" ref="smookProofFd"
style="width:90%" style="width:100%; height: 100%;"
@createSmookProofFd="createDataModel" @createSmookProofFd="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -102,7 +102,7 @@
<el-tab-pane label="风量调节阀" name="VolumeControlDamper"> <el-tab-pane label="风量调节阀" name="VolumeControlDamper">
<volume-control-damper <volume-control-damper
ref="volumeControlDamper" ref="volumeControlDamper"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -110,7 +110,7 @@
<el-tab-pane label="平衡电动阀" name="BalancedElectric"> <el-tab-pane label="平衡电动阀" name="BalancedElectric">
<balanced-electric <balanced-electric
ref="balancedElectric" ref="balancedElectric"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -118,7 +118,7 @@
<el-tab-pane label="电动蝶阀" name="ElectricButterflyValve"> <el-tab-pane label="电动蝶阀" name="ElectricButterflyValve">
<electric-butterfly-valve <electric-butterfly-valve
ref="electricButterflyValve" ref="electricButterflyValve"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -126,7 +126,7 @@
<el-tab-pane label="电动阀" name="Electrically"> <el-tab-pane label="电动阀" name="Electrically">
<electrically <electrically
ref="electrically" ref="electrically"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -134,7 +134,7 @@
<el-tab-pane label="水池" name="Cistern"> <el-tab-pane label="水池" name="Cistern">
<cistern <cistern
ref="cistern" ref="cistern"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -198,7 +198,7 @@
<el-tab-pane label="按钮" name="IscsButton"> <el-tab-pane label="按钮" name="IscsButton">
<iscs-button <iscs-button
ref="iscsButton" ref="iscsButton"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -206,7 +206,7 @@
<el-tab-pane label="文字" name="IscsText"> <el-tab-pane label="文字" name="IscsText">
<iscs-text <iscs-text
ref="iscsText" ref="iscsText"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -214,7 +214,7 @@
<el-tab-pane label="线段" name="IscsLine"> <el-tab-pane label="线段" name="IscsLine">
<iscs-line <iscs-line
ref="iscsLine" ref="iscsLine"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -222,7 +222,7 @@
<el-tab-pane label="矩形" name="IscsRect"> <el-tab-pane label="矩形" name="IscsRect">
<iscs-rect <iscs-rect
ref="iscsRect" ref="iscsRect"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="20" /> <el-input-number v-model="form.width" :min="20" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,43 +1,43 @@
<template> <template>
<div style="overflow-y: scroll;height: calc(100% - 46px);"> <div style="overflow-y: scroll;height: calc(100% - 46px);">
<el-form ref="form" :rules="rules" :model="form" label-width="120px"> <el-form ref="form" :rules="rules" :model="form" label-width="120px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号:" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="宽度:" prop="width"> <el-form-item label="宽度:" prop="width">
<el-input-number v-model="form.width" :min="1" /> <el-input-number v-model="form.width" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="高度:" prop="height"> <el-form-item label="高度:" prop="height">
<el-input-number v-model="form.height" :min="1" /> <el-input-number v-model="form.height" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="顶部文字内容:" prop="topContext"> <el-form-item label="顶部文字内容:" prop="topContext">
<el-input v-model="form.topContext" type="textarea" :rows="2" /> <el-input v-model="form.topContext" type="textarea" :rows="2" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="顶部字体大小:" prop="topFontSize"> <el-form-item label="顶部字体大小:" prop="topFontSize">
<el-input-number v-model="form.topFontSize" :min="1" /> <el-input-number v-model="form.topFontSize" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="顶部字体颜色:" prop="topTextFill"> <el-form-item label="顶部字体颜色:" prop="topTextFill">
<el-color-picker v-model="form.topTextFill" /> <el-color-picker v-model="form.topTextFill" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="底部文字内容:" prop="bottomContext"> <el-form-item label="底部文字内容:" prop="bottomContext">
<el-input v-model="form.bottomContext" type="textarea" :row="2" /> <el-input v-model="form.bottomContext" type="textarea" :row="2" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="底部字体大小:" prop="bottomFontSize"> <el-form-item label="底部字体大小:" prop="bottomFontSize">
<el-input-number v-model="form.bottomFontSize" :min="1" /> <el-input-number v-model="form.bottomFontSize" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="底部字体颜色:" prop="bottomTextFill"> <el-form-item label="底部字体颜色:" prop="bottomTextFill">
<el-color-picker v-model="form.bottomTextFill" /> <el-color-picker v-model="form.bottomTextFill" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标:" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标:" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="40" /> <el-input-number v-model="form.width" :min="40" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,28 +1,28 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="方向" prop="direction"> <el-form-item label="方向:" prop="direction" size="small">
<el-select v-model="form.direction" placeholder="请选择类型"> <el-select v-model="form.direction" placeholder="请选择类型">
<el-option label="横向" value="horizontal" /> <el-option label="横向" value="horizontal" />
<el-option label="竖向" value="vertical" /> <el-option label="竖向" value="vertical" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x" size="small">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y" size="small">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="10" /> <el-input-number v-model="form.width" :min="10" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="40" /> <el-input-number v-model="form.width" :min="40" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,20 +1,20 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="40" /> <el-input-number v-model="form.width" :min="40" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotate"> <el-form-item label="旋转角度:" prop="rotate">
<el-input-number v-model="form.rotate" /> <el-input-number v-model="form.rotate" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="form.width" :min="15" /> <el-input-number v-model="form.width" :min="15" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度" prop="rotateAngle"> <el-form-item label="旋转角度:" prop="rotateAngle">
<el-input-number v-model="form.rotateAngle" /> <el-input-number v-model="form.rotateAngle" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -13,7 +13,7 @@
<el-tab-pane label="固定摄像机" name="Vidicon"> <el-tab-pane label="固定摄像机" name="Vidicon">
<vidicon <vidicon
ref="vidiconCloud" ref="vidiconCloud"
style="width:90%" style="width:100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -21,7 +21,7 @@
<el-tab-pane label="云台摄像机" name="VidiconCloud"> <el-tab-pane label="云台摄像机" name="VidiconCloud">
<vidicon-cloud <vidicon-cloud
ref="vidicon" ref="vidicon"
style="width:90%" style="width:100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -29,7 +29,7 @@
<el-tab-pane label="闸机" name="BrakeMachine"> <el-tab-pane label="闸机" name="BrakeMachine">
<brake-machine <brake-machine
ref="brakeMachine" ref="brakeMachine"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -37,7 +37,7 @@
<el-tab-pane label="扶梯" name="Staircase"> <el-tab-pane label="扶梯" name="Staircase">
<staircase <staircase
ref="staircase" ref="staircase"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -45,7 +45,7 @@
<el-tab-pane label="单向楼梯" name="SingleStaircase"> <el-tab-pane label="单向楼梯" name="SingleStaircase">
<single-staircase <single-staircase
ref="singleStaircase" ref="singleStaircase"
style="width: 90%" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -53,7 +53,7 @@
<el-tab-pane label="文字" name="IscsText"> <el-tab-pane label="文字" name="IscsText">
<iscs-text <iscs-text
ref="iscsText" ref="iscsText"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -61,7 +61,7 @@
<el-tab-pane label="线段" name="IscsLine"> <el-tab-pane label="线段" name="IscsLine">
<iscs-line <iscs-line
ref="iscsLine" ref="iscsLine"
style="width: 90%;" style="width: 100%; height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -77,7 +77,7 @@
<el-tab-pane label="矩形" name="IscsRect"> <el-tab-pane label="矩形" name="IscsRect">
<iscs-rect <iscs-rect
ref="iscsRect" ref="iscsRect"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />

View File

@ -1,29 +1,29 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item label="宽度"> <el-form-item label="宽度:">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标"> <el-form-item label="X轴坐标:">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标"> <el-form-item label="Y轴坐标:">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit()">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit()">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import {getUID} from '@/iscs/utils/Uid'; import {getUID} from '@/iscs/utils/Uid';
export default { export default {
name: 'SingleStaircase', name: 'SingleStaircase',
data() { data() {
return { return {
@ -110,7 +110,7 @@
} }
} }
}; };
</script> </script>
<style scoped> <style scoped>

View File

@ -1,36 +1,36 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item label="宽度"> <el-form-item label="宽度:">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标"> <el-form-item label="X轴坐标:">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标"> <el-form-item label="Y轴坐标:">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="镜头向右"> <el-form-item label="镜头向右:">
<el-checkbox v-model="addModel.right" /> <el-checkbox v-model="addModel.right" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度"> <el-form-item label="旋转角度:">
<el-input-number v-model="addModel.rotationAngle"></el-input-number> <el-input-number v-model="addModel.rotationAngle" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit()">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit()">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
// //
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import {getUID} from '@/iscs/utils/Uid'; import {getUID} from '@/iscs/utils/Uid';
export default { export default {
name: 'ManualAlarmButton', name: 'ManualAlarmButton',
data() { data() {
return { return {
@ -126,7 +126,7 @@
} }
} }
}; };
</script> </script>
<style scoped> <style scoped>

View File

@ -1,19 +1,19 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item label="半径"> <el-form-item label="半径:">
<el-input-number v-model="addModel.r" /> <el-input-number v-model="addModel.r" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标"> <el-form-item label="X轴坐标:">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标"> <el-form-item label="Y轴坐标:">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit()">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit()">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,29 +1,29 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号:" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="form.code" :disabled="true" /> <el-input v-model="form.code" size="small" :disabled="true" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标:" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" size="small" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标:" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" size="small" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="按钮文字:" prop="context"> <el-form-item label="按钮文字:" prop="context">
<el-input v-model="form.context" /> <el-input v-model="form.context" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="文字大小:" prop="fontSize"> <el-form-item label="文字大小:" prop="fontSize">
<el-input-number v-model="form.fontSize" controls-position="right" :min="1" /> <el-input-number v-model="form.fontSize" size="small" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="左右内距:" prop="levelPadding"> <el-form-item label="左右内距:" prop="levelPadding">
<el-input-number v-model="form.levelPadding" controls-position="right" :min="1" /> <el-input-number v-model="form.levelPadding" size="small" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="上下内距:" prop="verticalPadding"> <el-form-item label="上下内距:" prop="verticalPadding">
<el-input-number v-model="form.verticalPadding" controls-position="right" :min="1" /> <el-input-number v-model="form.verticalPadding" size="small" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="按钮功能:" prop="function"> <el-form-item label="按钮功能:" prop="function">
<el-select v-model="form.function"> <el-select v-model="form.function" size="small">
<el-option <el-option
v-for="item in functionList" v-for="item in functionList"
:key="item.value" :key="item.value"
@ -33,9 +33,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">删除</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">删除</el-button>
<el-button v-show="showDeleteButton" @click="initPage">取消</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,44 +1,44 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="100px"> <el-form ref="form" :rules="rules" :model="form" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item label="线段宽度" prop="lineWidth"> <el-form-item label="线段宽度:" prop="lineWidth">
<el-input-number v-model="form.lineWidth" controls-position="right" :min="1" :max="50" /> <el-input-number v-model="form.lineWidth" controls-position="right" :min="1" :max="50" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="类型" prop="type"> <el-form-item label="类型:" prop="type">
<el-select v-model="form.classify" placeholder="请选择类型"> <el-select v-model="form.classify" placeholder="请选择类型" size="small">
<el-option label="实线" value="solid" /> <el-option label="实线:" value="solid" />
<el-option label="虚线" value="dashed" /> <el-option label="虚线:" value="dashed" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="线段颜色" prop="fillColor"> <el-form-item label="线段颜色:" prop="fillColor">
<el-color-picker v-model="form.fillColor" /> <el-color-picker v-model="form.fillColor" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="箭头显示" prop="arrowShow"> <el-form-item label="箭头显示:" prop="arrowShow">
<el-select v-model="form.arrowShow" placeholder="请选择"> <el-select v-model="form.arrowShow" placeholder="请选择" size="small">
<el-option label="无" value="none" /> <el-option label="无" value="none" />
<el-option label="始端" value="star" /> <el-option label="始端" value="star" />
<el-option label="终端" value="end" /> <el-option label="终端" value="end" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="form.arrowShow != 'none'" label="箭头大小" prop="arrowSize"> <el-form-item v-if="form.arrowShow != 'none'" label="箭头大小:" prop="arrowSize">
<el-input-number v-model="form.arrowSize" controls-position="right" :min="1" /> <el-input-number v-model="form.arrowSize" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="起始X轴坐标"> <el-form-item label="起始X轴坐标:">
<el-input-number v-model="form.x1" controls-position="right" :min="0" /> <el-input-number v-model="form.x1" controls-position="right" :min="0" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="起始Y轴坐标"> <el-form-item label="起始Y轴坐标:">
<el-input-number v-model="form.y1" controls-position="right" :min="0" /> <el-input-number v-model="form.y1" controls-position="right" :min="0" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="终止X轴坐标"> <el-form-item label="终止X轴坐标:">
<el-input-number v-model="form.x2" controls-position="right" :min="0" /> <el-input-number v-model="form.x2" controls-position="right" :min="0" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="终止Y轴坐标"> <el-form-item label="终止Y轴坐标:">
<el-input-number v-model="form.y2" controls-position="right" :min="0" /> <el-input-number v-model="form.y2" controls-position="right" :min="0" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">删除</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">删除</el-button>
<el-button v-show="showDeleteButton" @click="initPage">取消</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,37 +1,37 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="80px"> <el-form ref="form" :rules="rules" :model="form" label-width="80px" style="width: 100%;padding: 10px 50px;">
<el-form-item label="宽度" prop="width"> <el-form-item label="宽度:" prop="width">
<el-input-number v-model="form.width" controls-position="right" :min="1" /> <el-input-number v-model="form.width" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="高度" prop="height"> <el-form-item label="高度:" prop="height">
<el-input-number v-model="form.height" controls-position="right" :min="1" /> <el-input-number v-model="form.height" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="填充色" prop="fillColor"> <el-form-item label="填充色:" prop="fillColor">
<el-color-picker v-model="form.fillColor" show-alpha /> <el-color-picker v-model="form.fillColor" show-alpha size="small" />
</el-form-item> </el-form-item>
<el-form-item label="边框宽度" prop="borderWidth"> <el-form-item label="边框宽度:" prop="borderWidth">
<el-input-number v-model="form.borderWidth" controls-position="right" :min="0" /> <el-input-number v-model="form.borderWidth" controls-position="right" :min="0" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="类型" prop="type"> <el-form-item label="类型:" prop="type">
<el-select v-model="form.type" placeholder="请选择类型"> <el-select v-model="form.type" placeholder="请选择类型" size="small">
<el-option label="实线" value="solid" /> <el-option label="实线:" value="solid" />
<el-option label="虚线" value="dashed" /> <el-option label="虚线:" value="dashed" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="边框色" prop="strokeColor"> <el-form-item label="边框色:" prop="strokeColor">
<el-color-picker v-model="form.strokeColor" /> <el-color-picker v-model="form.strokeColor" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标"> <el-form-item label="X轴坐标:">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标"> <el-form-item label="Y轴坐标:">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">删除</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">删除</el-button>
<el-button v-show="showDeleteButton" @click="initPage">取消</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,6 +1,6 @@
<template> <template>
<div style="overflow-y: scroll;height: calc(100% - 46px);"> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="120px" size="small"> <el-form ref="form" :rule="rules" :model="addModel" label-width="120px" size="small" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="表格编号:" prop="code"> <el-form-item v-if="isUpdate" label="表格编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" />
</el-form-item> </el-form-item>
@ -71,9 +71,9 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,28 +1,28 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="80px"> <el-form ref="form" :rules="rules" :model="form" label-width="120px" style="width: 100%;padding: 10px 50px;">
<el-form-item label="文字内容" prop="context"> <el-form-item label="文字内容:" prop="context">
<el-input v-model="form.context" type="textarea" /> <el-input v-model="form.context" type="textarea" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="文字颜色" prop="textFill"> <el-form-item label="文字颜色:" prop="textFill">
<el-color-picker v-model="form.textFill" /> <el-color-picker v-model="form.textFill" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="文字大小" prop="fontSize"> <el-form-item label="文字大小:" prop="fontSize">
<el-input-number v-model="form.fontSize" controls-position="right" :min="1" :max="100" /> <el-input-number v-model="form.fontSize" controls-position="right" :min="1" :max="100" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="文字粗细" prop="fontWeight"> <el-form-item label="文字粗细:" prop="fontWeight">
<el-input-number v-model="form.fontWeight" controls-position="right" :min="1" /> <el-input-number v-model="form.fontWeight" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标"> <el-form-item label="X轴坐标:">
<el-input-number v-model="form.x" controls-position="right" :min="1" /> <el-input-number v-model="form.x" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标"> <el-form-item label="Y轴坐标:">
<el-input-number v-model="form.y" controls-position="right" :min="1" /> <el-input-number v-model="form.y" controls-position="right" :min="1" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">删除</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">删除</el-button>
<el-button v-show="showDeleteButton" @click="initPage">取消</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" style="width: 100%; padding: 10px 50px;" label-width="100px">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="闸机朝右" prop="isRight"> <el-form-item label="闸机朝右:" prop="isRight">
<el-checkbox v-model="addModel.isRight" /> <el-checkbox v-model="addModel.isRight" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="通道朝右" prop="isRight"> <el-form-item label="通道朝右:" prop="isRight">
<el-checkbox v-model="addModel.isRight" /> <el-checkbox v-model="addModel.isRight" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x" size="small">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y" size="small">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,28 +1,28 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="单向" prop="oneWay"> <el-form-item label="单向:" prop="oneWay">
<el-checkbox v-model="addModel.oneWay" /> <el-checkbox v-model="addModel.oneWay" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="旋转角度"> <el-form-item label="旋转角度:">
<el-input-number v-model="addModel.rotationAngle" /> <el-input-number v-model="addModel.rotationAngle" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="按钮编号" prop="code"> <el-form-item v-if="isUpdate" label="按钮编号:" prop="code">
<el-input v-model="addModel.code" :disabeled="true" /> <el-input v-model="addModel.code" :disabeled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div style="width: 100%;"> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rules="rules" :model="form" label-width="80px" style="width: 100%;padding: 10px 50px;"> <el-form ref="form" :rules="rules" :model="form" label-width="80px" style="width: 100%;padding: 10px 50px;">
<el-form-item label="半径" prop="r"> <el-form-item label="半径:" prop="r">
<el-input-number v-model="form.r" size="small" controls-position="right" :min="1" /> <el-input-number v-model="form.r" size="small" controls-position="right" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="填充色" prop="fillColor"> <el-form-item label="填充色:" prop="fillColor">
<el-color-picker v-model="form.fillColor" size="small" /> <el-color-picker v-model="form.fillColor" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标"> <el-form-item label="X轴坐标:">
<el-input-number v-model="form.x" controls-position="right" size="small" :min="1" /> <el-input-number v-model="form.x" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标"> <el-form-item label="Y轴坐标:">
<el-input-number v-model="form.y" controls-position="right" size="small" :min="1" /> <el-input-number v-model="form.y" controls-position="right" size="small" :min="1" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">删除</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">删除</el-button>
<el-button v-show="showDeleteButton" @click="initPage">取消</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -26,7 +26,7 @@
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import {getUID} from '@/iscs/utils/Uid'; import {getUID} from '@/iscs/utils/Uid';
export default { export default {
name: 'Text', name: 'ArcStatus',
components: { components: {
}, },
data() { data() {

View File

@ -1,25 +1,25 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" size="small" :disabled="true" />
</el-form-item> </el-form-item>
<el-form-item label="宽度" prop="width"> <el-form-item label="宽度:" prop="width">
<el-input-number v-model="addModel.width" controls-position="right" /> <el-input-number v-model="addModel.width" size="small" controls-position="right" />
</el-form-item> </el-form-item>
<el-form-item label="高度" prop="height"> <el-form-item label="高度:" prop="height">
<el-input-number v-model="addModel.height" controls-position="right" /> <el-input-number v-model="addModel.height" size="small" controls-position="right" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" controls-position="right" /> <el-input-number v-model="addModel.x" size="small" controls-position="right" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" controls-position="right" /> <el-input-number v-model="addModel.y" size="small" controls-position="right" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%;padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" size="small" :disabled="true" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -13,7 +13,7 @@
<el-tab-pane label="屏蔽门" name="PlatformScreenDoor"> <el-tab-pane label="屏蔽门" name="PlatformScreenDoor">
<platform-screen-door <platform-screen-door
ref="platformScreenDoor" ref="platformScreenDoor"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -21,7 +21,7 @@
<el-tab-pane label="端头门" name="EndDoor"> <el-tab-pane label="端头门" name="EndDoor">
<end-door <end-door
ref="endDoor" ref="endDoor"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -29,7 +29,7 @@
<el-tab-pane label="圆角边框" name="BorderRadius"> <el-tab-pane label="圆角边框" name="BorderRadius">
<border-radius <border-radius
ref="borderRadius" ref="borderRadius"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -37,7 +37,7 @@
<el-tab-pane label="状态标识" name="ArcStatus"> <el-tab-pane label="状态标识" name="ArcStatus">
<arc-status <arc-status
ref="ArcStatus" ref="ArcStatus"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -45,7 +45,7 @@
<el-tab-pane label="按钮" name="IscsButton"> <el-tab-pane label="按钮" name="IscsButton">
<iscs-button <iscs-button
ref="iscsButton" ref="iscsButton"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -53,7 +53,7 @@
<el-tab-pane label="文字" name="IscsText"> <el-tab-pane label="文字" name="IscsText">
<iscs-text <iscs-text
ref="iscsText" ref="iscsText"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -61,7 +61,7 @@
<el-tab-pane label="线段" name="IscsLine"> <el-tab-pane label="线段" name="IscsLine">
<iscs-line <iscs-line
ref="iscsLine" ref="iscsLine"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -69,7 +69,7 @@
<el-tab-pane label="矩形" name="IscsRect"> <el-tab-pane label="矩形" name="IscsRect">
<iscs-rect <iscs-rect
ref="iscsRect" ref="iscsRect"
style="width: 90%;" style="width: 100%;height: 100%;"
@createDataModel="createDataModel" @createDataModel="createDataModel"
@deleteDataModel="deleteDataModel" @deleteDataModel="deleteDataModel"
/> />
@ -151,6 +151,63 @@ export default {
.map-control { .map-control {
float: right; float: right;
width: 100%; width: 100%;
height: 100%;
.border-card{
height: 100%;
}
}
.mapEdit{
height: calc(100% - 47px);
.tab_pane_box{
height: 100%;
}
}
/deep/ .el-card__body{
height:100%;
}
/deep/ {
.mapEdit .el-tabs__nav-wrap.is-scrollable {
padding: 0 20px;
}
.mapEdit .el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #f5f7fa;
background: #f5f7fa;
}
.mapEdit .el-tabs__active-bar{
background: transparent;
}
.mapEdit .el-tabs__content {
height: calc(100% - 56px);
}
.mapEdit .el-tab-pane {
height: 100%;
}
.card .el-tabs__nav .el-tabs__item.is-active {
border-bottom: 2px solid #E4E7ED;
background: #409eff;
color: #fff;
}
.card .el-tabs__nav .el-tabs__item{
padding: 0 20px!important;
}
.mapEdit .el-tabs__nav-prev {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
.mapEdit .el-tabs__nav-next {
width: 20px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 1px 1px 4px #ccc;
}
} }
.heightClass{height:100%;} .heightClass{height:100%;}
</style> </style>

View File

@ -1,22 +1,22 @@
<template> <template>
<div> <div style="overflow-y: scroll;height: calc(100% - 46px); width: 100%;">
<el-form ref="form" :rule="rules" :model="addModel" label-width="100px"> <el-form ref="form" :rule="rules" :model="addModel" label-width="100px" style="width: 100%; padding: 10px 50px;">
<el-form-item v-if="isUpdate" label="编号" prop="code"> <el-form-item v-if="isUpdate" label="编号:" prop="code">
<el-input v-model="addModel.code" :disabled="true" /> <el-input v-model="addModel.code" :disabled="true" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="图形宽度" prop="width"> <el-form-item label="图形宽度:" prop="width">
<el-input-number v-model="addModel.width" /> <el-input-number v-model="addModel.width" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="X轴坐标" prop="x"> <el-form-item label="X轴坐标:" prop="x">
<el-input-number v-model="addModel.x" /> <el-input-number v-model="addModel.x" size="small" />
</el-form-item> </el-form-item>
<el-form-item label="Y轴坐标" prop="y"> <el-form-item label="Y轴坐标:" prop="y">
<el-input-number v-model="addModel.y" /> <el-input-number v-model="addModel.y" size="small" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit('form')">{{ buttonText }}</el-button> <el-button type="primary" size="small" @click="onSubmit('form')">{{ buttonText }}</el-button>
<el-button v-show="showDeleteButton" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button> <el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">{{ $t('global.delete') }}</el-button>
<el-button v-show="showDeleteButton" @click="initPage">{{ $t('global.cancel') }}</el-button> <el-button v-show="showDeleteButton" size="small" @click="initPage">{{ $t('global.cancel') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>

View File

@ -312,7 +312,6 @@ export default {
type: 'warning' type: 'warning'
}).then(async () => { }).then(async () => {
this.$set(row, 'loading' + idx, true); this.$set(row, 'loading' + idx, true);
console.log(row);
const res = await getPublishMapExport(row.id); const res = await getPublishMapExport(row.id);
const resultData = res.data; const resultData = res.data;
if (resultData === false) { if (resultData === false) {