diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue
index a66c663f..a66e0c59 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue
@@ -189,24 +189,35 @@ export default {
this.isShowTimeEdit = true;
},
onDeleteTaskGroup(taskG){
- request({
- url: `/business/dcBatchFunctionsJob/time/${this.propData.id}/${taskG.time}`,
- method: "DELETE"
- }).then(res => {
+ this.$confirm("确定要删除该任务组么?", "操作确认", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(() => {
+
request({
- url: `/business/dcBatchFunctionsJobGroup/${this.propData.id}`,
- method: "GET"
+ url: `/business/dcBatchFunctionsJob/time/${this.propData.id}/${taskG.time}`,
+ method: "DELETE"
}).then(res => {
- this.editData = {
- id: res.data.id,
- groupName: res.data.groupName,
- status: res.data.status,
- remark: res.data.remark,
- detailedConfiguration: res.data.detailedConfiguration
- }
- this.getTaskList(); //新增task后自动刷新任务列表
+ request({
+ url: `/business/dcBatchFunctionsJobGroup/${this.propData.id}`,
+ method: "GET"
+ }).then(res => {
+ this.editData = {
+ id: res.data.id,
+ groupName: res.data.groupName,
+ status: res.data.status,
+ remark: res.data.remark,
+ detailedConfiguration: res.data.detailedConfiguration
+ }
+ this.getTaskList(); //新增task后自动刷新任务列表
+ });
+ });
+
+ })
+ .catch(() => {
+ this.$message.warn("取消删除。");
});
- });
},
onSubmitTime(time){
this.isShowTimeEdit = false;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue
index 70c28b1c..6a77bb63 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue
@@ -26,11 +26,18 @@
时长:{{ editData.params.SETTM }}
-
+
+
+
{{ gzmsDic[editData.params.SETMD] }}
+
时长:{{ editData.params.SETTM }}
+
-
+
+
{{ gzmsDic[editData.params.SETMD] }}
+
时长:{{ editData.params.SETTM }}
+
@@ -101,6 +108,16 @@ export default {
SETMD: temp.functions[0].params.SET,
SETTM: temp.functions[1].params.SET,
}
+ } else if (temp.deviceType == '12') {
+ params = {
+ SETMD: temp.functions[0].params.SET,
+ SETTM: temp.functions[1].params.SET,
+ }
+ } else if (temp.deviceType == '13') {
+ params = {
+ SETMD: temp.functions[0].params.SET,
+ SETTM: temp.functions[1].params.SET,
+ }
}
this.editData = {
id: this.propData.jobId,
@@ -130,18 +147,26 @@ export default {
// this.$emit("onModify", {devices});
},
onDelete(){
- request({
- url: `/business/dcBatchFunctionsJob/` + this.propData.jobId,
- method: "DELETE",
- // params: {
- // jobGroup: this.propData.id
- // },
- })
- .then((result) => {
- if (result.code != 200) return;
- this.$message.success("删除成功");
- this.$emit("onSubmit");
+ this.$confirm("确定要删除该任务么?", "操作确认", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(() => {
+
+ request({
+ url: `/business/dcBatchFunctionsJob/` + this.propData.jobId,
+ method: "DELETE",
+ // params: {
+ // jobGroup: this.propData.id
+ // },
})
+ .then((result) => {
+ if (result.code != 200) return;
+ this.$message.success("删除成功");
+ this.$emit("onSubmit");
+ })
+
+ });
},
initBasicData(){
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue
index 49ef4043..cdebf164 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue
@@ -83,14 +83,14 @@
-
-
-
+
+
+
-
+
@@ -98,13 +98,20 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
保存
@@ -206,7 +213,7 @@ export default {
// { "STAY": 90, "ACTION": "1", "SPEED": "0", "COLOR": "ffff00", "FONT": "3", "FONT_SIZE": "24", "CONTENT": "长清收费站\\\\n出入口封闭", "width": "160", "height": "80", "formatStyle": "2" }
if (this.propData.deviceType == "2"){
this.editData.type2 = BoardUtils.contentToDeviceItem(this.propData.params);
- } else if (this.propData.deviceType == "5" || this.propData.deviceType == "10"){
+ } else if (["5","10","12","13"].includes(this.propData.deviceType)){
this.editData["type" + this.propData.deviceType] = { ...this.propData.params};
}
}else{
@@ -309,11 +316,13 @@ export default {
}
} else if (this.searchData.deviceType == "12") {
return {
-
+ SETMD: this.editData.type12.SETMD,
+ SETTM: this.editData.type12.SETTM
}
} else if (this.searchData.deviceType == "13") {
return {
-
+ SETMD: this.editData.type13.SETMD,
+ SETTM: this.editData.type13.SETTM
}
}
},
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/index.vue
index 84d32879..7fca7d61 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/index.vue
@@ -96,6 +96,7 @@ export default {
},
data() {
return {
+ searchData:{},
activeOption: {
active: {
text: "开"
@@ -194,7 +195,7 @@ export default {
this.getData();
},
onReset(){
- this.searchData.word = undefined;
+ this.searchData && (this.searchData.word = undefined);
// console.log(this.$refs["form"] , "__-=========");
this.$refs["form"].handleResetForm();
this.getData();
diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js b/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js
index 3f201032..15d440a4 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js
@@ -57,6 +57,28 @@ export function submitTaskRequest(id, jobGroup, time, devices, params, others) {
"params": { SET: params.SETTM }
}
]
+ } else if (deviceType == '12') { //行车诱导
+ functions = [
+ {
+ "functionId": "SETMD",
+ "params": { SET: params.SETMD }
+ },
+ {
+ "functionId": "SETTM",
+ "params": { SET: params.SETTM }
+ }
+ ]
+ } else if (deviceType == '13') { //智能设备箱
+ functions = [
+ {
+ "functionId": "SETMD",
+ "params": { SET: params.SETMD }
+ },
+ {
+ "functionId": "SETTM",
+ "params": { SET: params.SETTM }
+ }
+ ]
}
let temp = [{