Merge branch 'temp' of http://123.60.103.97:3000/xuziqiang/SaaS-lib into temp
This commit is contained in:
@@ -21,4 +21,11 @@ export enum lightingManage {
|
|||||||
|
|
||||||
// 右侧表格修改数据提交
|
// 右侧表格修改数据提交
|
||||||
submitTableData = prefix + '/illuminationCtrl/refreshPlanStatus',
|
submitTableData = prefix + '/illuminationCtrl/refreshPlanStatus',
|
||||||
|
|
||||||
|
// 主页 > 抽屉 > 日志 ===========================================
|
||||||
|
|
||||||
|
// 获取日志
|
||||||
|
getLog = prefix + '/illuminationInfo/pageAbleLog',
|
||||||
|
// 获取日志详情
|
||||||
|
getLogDetail = prefix + '/illuminationInfo/fullLog',
|
||||||
}
|
}
|
||||||
|
@@ -11,6 +11,8 @@ export enum ventilating {
|
|||||||
sendChangeList1 = prefix + '/ventilatingFanCtrl/changeToSceneMode',
|
sendChangeList1 = prefix + '/ventilatingFanCtrl/changeToSceneMode',
|
||||||
// 获得排风扇的设备状态
|
// 获得排风扇的设备状态
|
||||||
getDevice1 = prefix + '/ventilatingFanCtrl/getDeviceState',
|
getDevice1 = prefix + '/ventilatingFanCtrl/getDeviceState',
|
||||||
|
// 提交排风扇的修改内容
|
||||||
|
submitTableData1 = prefix + '/ventilatingFanCtrl/refreshPlanStatus',
|
||||||
|
|
||||||
// 风幕机相关 =============================================
|
// 风幕机相关 =============================================
|
||||||
// 获得风幕机的树形结构
|
// 获得风幕机的树形结构
|
||||||
@@ -21,6 +23,8 @@ export enum ventilating {
|
|||||||
sendChangeList2 = prefix + '/airCurtainMachineCtrl/changeToSceneMode',
|
sendChangeList2 = prefix + '/airCurtainMachineCtrl/changeToSceneMode',
|
||||||
// 获得风幕机的设备状态
|
// 获得风幕机的设备状态
|
||||||
getDevice2 = prefix + '/airCurtainMachineCtrl/getDeviceState',
|
getDevice2 = prefix + '/airCurtainMachineCtrl/getDeviceState',
|
||||||
|
// 提交风幕机的修改内容
|
||||||
|
submitTableData2 = prefix + '/airCurtainMachineCtrl/refreshPlanStatus',
|
||||||
|
|
||||||
// 电动窗相关 =============================================
|
// 电动窗相关 =============================================
|
||||||
// 获得电动窗的树形结构
|
// 获得电动窗的树形结构
|
||||||
@@ -31,4 +35,6 @@ export enum ventilating {
|
|||||||
sendChangeList3 = prefix + '/eleOperatedWindowCtrl/changeToSceneMode',
|
sendChangeList3 = prefix + '/eleOperatedWindowCtrl/changeToSceneMode',
|
||||||
// 获得电动窗的设备状态
|
// 获得电动窗的设备状态
|
||||||
getDevice3 = prefix + '/eleOperatedWindowCtrl/getDeviceState',
|
getDevice3 = prefix + '/eleOperatedWindowCtrl/getDeviceState',
|
||||||
|
// 提交电动窗的修改内容
|
||||||
|
submitTableData3 = prefix + '/eleOperatedWindowCtrl/refreshPlanStatus',
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="div-add">
|
<div class="div-add">
|
||||||
<button class="add" @click="addModal">添加</button>
|
<button class="add" @click="addModal">添加</button>
|
||||||
<a-popconfirm title="是否提交以上修改?" ok-text="确定" cancel-text="取消" @confirm="sendTable">
|
<a-popconfirm
|
||||||
|
title="是否提交以上修改?"
|
||||||
|
placement="bottomLeft"
|
||||||
|
ok-text="确定"
|
||||||
|
cancel-text="取消"
|
||||||
|
@confirm="sendTable">
|
||||||
<button class="add" style="margin-left: 20px">执行</button>
|
<button class="add" style="margin-left: 20px">执行</button>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,7 +88,7 @@
|
|||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
// 请求
|
// 请求
|
||||||
import { http } from '/nerv-lib/util/http';
|
import { http } from '/nerv-lib/util/http';
|
||||||
import { lightingManage } from '/@/api/IlluminationInfo';
|
import { ventilating } from '/@/api/ventilatingSystem';
|
||||||
import { planManage } from '/@/api/planManage';
|
import { planManage } from '/@/api/planManage';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
// 全局变量
|
// 全局变量
|
||||||
@@ -109,9 +114,18 @@
|
|||||||
getTable();
|
getTable();
|
||||||
// 穿梭框原始数据
|
// 穿梭框原始数据
|
||||||
getLeftPlan();
|
getLeftPlan();
|
||||||
|
let type = props.type;
|
||||||
|
if (type == 3) {
|
||||||
|
url = ventilating.submitTableData1;
|
||||||
|
} else if (type == 4) {
|
||||||
|
url = ventilating.submitTableData2;
|
||||||
|
} else if (type == 5) {
|
||||||
|
url = ventilating.submitTableData3;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// 全局变量
|
// 全局变量
|
||||||
const state = items();
|
const state = items();
|
||||||
|
let url = '';
|
||||||
|
|
||||||
// tab页部分 ========================================================
|
// tab页部分 ========================================================
|
||||||
|
|
||||||
@@ -169,7 +183,7 @@
|
|||||||
};
|
};
|
||||||
// 将对表格的修改统一发送
|
// 将对表格的修改统一发送
|
||||||
const sendTable = () => {
|
const sendTable = () => {
|
||||||
http.post(lightingManage.submitTableData, dataSource.value).then(() => {
|
http.post(url, dataSource.value).then(() => {
|
||||||
message.success('操作成功');
|
message.success('操作成功');
|
||||||
getTable();
|
getTable();
|
||||||
getLeftPlan();
|
getLeftPlan();
|
||||||
|
Reference in New Issue
Block a user