|
@@ -76,7 +76,24 @@
|
|
|
>重置
|
|
>重置
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-refresh"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="unbindMission()"
|
|
|
|
|
+ >解绑任务
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-refresh"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="bindMission()"
|
|
|
|
|
+ >绑定任务
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -118,7 +135,6 @@
|
|
|
<el-table-column label="所属主机" align="center" prop="hostName" width="280"/>
|
|
<el-table-column label="所属主机" align="center" prop="hostName" width="280"/>
|
|
|
<el-table-column label="任务" align="center" prop="missionName" width="380"/>
|
|
<el-table-column label="任务" align="center" prop="missionName" width="380"/>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <DetailDialog ref="detailDialog" @success="refresh(true)"></DetailDialog>
|
|
|
|
|
<pagination
|
|
<pagination
|
|
|
v-show="total > 0"
|
|
v-show="total > 0"
|
|
|
:total="total"
|
|
:total="total"
|
|
@@ -129,18 +145,19 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+ <dialog-deal-alarm ref="dealAlarmDialog" @success="getList()"></dialog-deal-alarm>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { list,missionTypeList} from "@/api/iot/diagnoseMission";
|
|
|
|
|
-import DetailDialog from "./dialog.detail.vue";
|
|
|
|
|
|
|
+import { list,missionTypeList,unbindMission} from "@/api/iot/diagnoseMission";
|
|
|
|
|
+import DetailDialog from "./dialog.detail.vue";
|
|
|
|
|
+import DialogDealAlarm from "./dialog.dealAlarm.vue";
|
|
|
import OrgTree from "@/components/orgTree/orgQuerySelector.vue";
|
|
import OrgTree from "@/components/orgTree/orgQuerySelector.vue";
|
|
|
-import DataRangePicker from "@/components/dateTime/daterange.picker.vue";
|
|
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
export default {
|
|
export default {
|
|
|
- components: { OrgTree, DataRangePicker,DetailDialog },
|
|
|
|
|
|
|
+ components: { OrgTree,DialogDealAlarm },
|
|
|
name: "Task",
|
|
name: "Task",
|
|
|
dicts: ["sys_org_type",'sensor_alarm_status','sensor_device_type'],
|
|
dicts: ["sys_org_type",'sensor_alarm_status','sensor_device_type'],
|
|
|
data() {
|
|
data() {
|
|
@@ -273,6 +290,7 @@ export default {
|
|
|
this.queryParams.pageNum = 1;
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
resetQuery() {
|
|
|
this.resetForm("queryForm");
|
|
this.resetForm("queryForm");
|
|
@@ -283,7 +301,18 @@ export default {
|
|
|
this.$refs["orgTree"].setCheckSub(this.queryParams.checkSub);
|
|
this.$refs["orgTree"].setCheckSub(this.queryParams.checkSub);
|
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ /** 绑定任务 */
|
|
|
|
|
+ bindMission() {
|
|
|
|
|
+ this.$refs["dealAlarmDialog"].show(this.queryParams, this.deviceTypes);
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 解绑任务 */
|
|
|
|
|
+ unbindMission() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ unbindMission(this.queryParams).then((response) => {
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
|
lookView(row) {
|
|
lookView(row) {
|
|
|
this.$refs["detailDialog"].show(row);
|
|
this.$refs["detailDialog"].show(row);
|