ibp调整
This commit is contained in:
parent
b8d2f43ebd
commit
ae853226d7
@ -5,99 +5,112 @@ const deviceRender = {};
|
|||||||
/** IbpText渲染配置*/
|
/** IbpText渲染配置*/
|
||||||
deviceRender[deviceType.IbpText] = {
|
deviceRender[deviceType.IbpText] = {
|
||||||
_type: deviceType.IbpText,
|
_type: deviceType.IbpText,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** SquareButton渲染配置*/
|
/** SquareButton渲染配置*/
|
||||||
deviceRender[deviceType.SquareButton] = {
|
deviceRender[deviceType.SquareButton] = {
|
||||||
_type: deviceType.SquareButton,
|
_type: deviceType.SquareButton,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** WarnButton渲染配置*/
|
/** WarnButton渲染配置*/
|
||||||
deviceRender[deviceType.WarnButton] = {
|
deviceRender[deviceType.WarnButton] = {
|
||||||
_type: deviceType.WarnButton,
|
_type: deviceType.WarnButton,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Arrow渲染配置*/
|
/** Arrow渲染配置*/
|
||||||
deviceRender[deviceType.Arrow] = {
|
deviceRender[deviceType.Arrow] = {
|
||||||
_type: deviceType.Arrow,
|
_type: deviceType.Arrow,
|
||||||
zlevel: 2
|
zlevel: 1,
|
||||||
|
z: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
/** RotatingButton渲染配置*/
|
/** RotatingButton渲染配置*/
|
||||||
deviceRender[deviceType.RotatingButton] = {
|
deviceRender[deviceType.RotatingButton] = {
|
||||||
_type: deviceType.RotatingButton,
|
_type: deviceType.RotatingButton,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 3
|
||||||
};
|
};
|
||||||
|
|
||||||
/** TipBox渲染配置*/
|
/** TipBox渲染配置*/
|
||||||
deviceRender[deviceType.TipBox] = {
|
deviceRender[deviceType.TipBox] = {
|
||||||
_type: deviceType.TipBox,
|
_type: deviceType.TipBox,
|
||||||
zlevel: 2,
|
zlevel: 1,
|
||||||
z: 2
|
z: 3
|
||||||
};
|
};
|
||||||
|
|
||||||
/** BackGround渲染配置*/
|
/** BackGround渲染配置*/
|
||||||
deviceRender[deviceType.Background] = {
|
deviceRender[deviceType.Background] = {
|
||||||
_type: deviceType.Background,
|
_type: deviceType.Background,
|
||||||
zlevel: 0
|
zlevel: 1,
|
||||||
|
z: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
/** CircularLamp渲染配置 */
|
/** CircularLamp渲染配置 */
|
||||||
deviceRender[deviceType.CircularLamp] = {
|
deviceRender[deviceType.CircularLamp] = {
|
||||||
_type: deviceType.CircularLamp,
|
_type: deviceType.CircularLamp,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** AppendageBox渲染配置 */
|
/** AppendageBox渲染配置 */
|
||||||
deviceRender[deviceType.AppendageBox] = {
|
deviceRender[deviceType.AppendageBox] = {
|
||||||
_type: deviceType.AppendageBox,
|
_type: deviceType.AppendageBox,
|
||||||
zlevel: 1
|
zlevel: 1,
|
||||||
|
z: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
/** IbpLine渲染配置 */
|
/** IbpLine渲染配置 */
|
||||||
deviceRender[deviceType.IbpLine] = {
|
deviceRender[deviceType.IbpLine] = {
|
||||||
_type: deviceType.IbpLine,
|
_type: deviceType.IbpLine,
|
||||||
zlevel: 1
|
zlevel: 3
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Elevator 渲染配置 */
|
/** Elevator 渲染配置 */
|
||||||
deviceRender[deviceType.Elevator] = {
|
deviceRender[deviceType.Elevator] = {
|
||||||
_type: deviceType.Elevator,
|
_type: deviceType.Elevator,
|
||||||
zlevel: 2,
|
zlevel: 1,
|
||||||
z: 1
|
z: 2
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Key 渲染配置 */
|
/** Key 渲染配置 */
|
||||||
deviceRender[deviceType.Key] = {
|
deviceRender[deviceType.Key] = {
|
||||||
_type: deviceType.Key,
|
_type: deviceType.Key,
|
||||||
zlevel: 4
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** TeleTerminal 渲染配置 */
|
/** TeleTerminal 渲染配置 */
|
||||||
deviceRender[deviceType.TeleTerminal] = {
|
deviceRender[deviceType.TeleTerminal] = {
|
||||||
_type: deviceType.TeleTerminal,
|
_type: deviceType.TeleTerminal,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Clock 渲染配置*/
|
/** Clock 渲染配置*/
|
||||||
deviceRender[deviceType.Clock] = {
|
deviceRender[deviceType.Clock] = {
|
||||||
_type: deviceType.Clock,
|
_type: deviceType.Clock,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** RotateTip 渲染配置 */
|
/** RotateTip 渲染配置 */
|
||||||
deviceRender[deviceType.RotateTip] = {
|
deviceRender[deviceType.RotateTip] = {
|
||||||
_type: deviceType.RotateTip,
|
_type: deviceType.RotateTip,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Alarm */
|
/** Alarm */
|
||||||
deviceRender[deviceType.Alarm] = {
|
deviceRender[deviceType.Alarm] = {
|
||||||
_type: deviceType.Alarm,
|
_type: deviceType.Alarm,
|
||||||
zlevel: 3
|
zlevel: 1,
|
||||||
|
z: 4
|
||||||
};
|
};
|
||||||
|
|
||||||
export default deviceRender;
|
export default deviceRender;
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
_type: 'Background',
|
_type: 'Background',
|
||||||
|
code: this.generateCode(),
|
||||||
width: this.form .bgWidth,
|
width: this.form .bgWidth,
|
||||||
height: this.form.bgHeight
|
height: this.form.bgHeight
|
||||||
};
|
};
|
||||||
@ -58,6 +59,10 @@
|
|||||||
},
|
},
|
||||||
initPage(){
|
initPage(){
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
generateCode() {
|
||||||
|
const mydate = new Date();
|
||||||
|
this.form.code = "bg"+mydate.getDay()+ mydate.getHours()+ mydate.getMinutes()+mydate.getSeconds()+mydate.getMilliseconds()+ Math.round(Math.random() * 10000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user