提交: 项目场景 消息方式 执行动作 添加判断,动作必须选择一个联系人
This commit is contained in:
parent
7a30a9c799
commit
0d605a1a62
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="e-scene-manage">
|
||||
<div v-show="!isLoggingViewShow" style="width: 100%;">
|
||||
<div v-show="!isLoggingViewShow" style="width: 100%">
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
|
@ -135,7 +135,11 @@
|
|||
>执行</el-button
|
||||
>
|
||||
|
||||
<el-button size="mini" type="text" @click="handleLoggingView(scope.row)" icon="el-icon-takeaway-box"
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleLoggingView(scope.row)"
|
||||
icon="el-icon-takeaway-box"
|
||||
>指令历史</el-button
|
||||
>
|
||||
</template>
|
||||
|
@ -295,12 +299,15 @@
|
|||
</dialog-template>
|
||||
</div>
|
||||
</div>
|
||||
<e-logging v-if="isLoggingViewShow"
|
||||
<e-logging
|
||||
v-if="isLoggingViewShow"
|
||||
:sourceId="loggingSourceId"
|
||||
:sceneInfo="loggingSourceObject"
|
||||
@handleLinkToHome="() => {
|
||||
isLoggingViewShow = false;
|
||||
}"
|
||||
@handleLinkToHome="
|
||||
() => {
|
||||
isLoggingViewShow = false;
|
||||
}
|
||||
"
|
||||
></e-logging>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -318,8 +325,7 @@ import DialogTemplate from "@/components/DialogTemplate";
|
|||
import ESceneTriggers from "./ESceneTriggers/index";
|
||||
import ETagCard from "@/components/Cards/ETagCard";
|
||||
import ESceneAction from "./ESceneAction/index";
|
||||
import ELogging from './ELogging'
|
||||
|
||||
import ELogging from "./ELogging";
|
||||
|
||||
export default {
|
||||
name: "ESceneManage",
|
||||
|
@ -349,7 +355,13 @@ export default {
|
|||
},
|
||||
},
|
||||
},
|
||||
components: { DialogTemplate, ESceneTriggers, ETagCard, ESceneAction, ELogging },
|
||||
components: {
|
||||
DialogTemplate,
|
||||
ESceneTriggers,
|
||||
ETagCard,
|
||||
ESceneAction,
|
||||
ELogging,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
queryParams: {},
|
||||
|
@ -484,13 +496,16 @@ export default {
|
|||
|
||||
isTrue = false;
|
||||
}
|
||||
if (
|
||||
e.actionType === "NOTIFIER" &&
|
||||
(!e.sceneActionNotifierContacts[0] ||
|
||||
!e.sceneActionNotifierContacts[0]["contactsRelList"])
|
||||
) {
|
||||
this.msgError("执行条件中有条件未选择联系人!");
|
||||
isTrue = false;
|
||||
if (e.actionType === "NOTIFIER") {
|
||||
let arr = e.sceneActionNotifierContacts.filter((v) => {
|
||||
if ((!v["contactsRelList"]) || v["contactsRelList"].length <= 0) {
|
||||
return v;
|
||||
}
|
||||
});
|
||||
if (arr && arr.length > 0) {
|
||||
this.msgError("执行条件中有条件未选择联系人!");
|
||||
isTrue = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
return isTrue;
|
||||
|
|
Loading…
Reference in New Issue