|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="abody">
|
|
<div class="abody">
|
|
<div class="ablockly">
|
|
<div class="ablockly">
|
|
- <el-button type="primary" class="btnPosition" @click="start()">{{loading ? "运行" : "加载中..." }}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" class="btnPosition" @click="start()" v-if="type == '2'">{{loading ? "运行" : "加载中..." }}</el-button>
|
|
<div id="blocklyDiv"></div>
|
|
<div id="blocklyDiv"></div>
|
|
<xml id="toolbox" style="display: none">
|
|
<xml id="toolbox" style="display: none">
|
|
<category name="逻辑" colour="%{BKY_LOGIC_HUE}">
|
|
<category name="逻辑" colour="%{BKY_LOGIC_HUE}">
|
|
@@ -194,6 +194,11 @@ export default {
|
|
}else if (e.data.active != undefined) {
|
|
}else if (e.data.active != undefined) {
|
|
that.active = false;
|
|
that.active = false;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (e.data.noCamera) {
|
|
|
|
+ that.$message.error(e.data.noCamera);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
};
|
|
};
|