Merge branch 'temp' of http://123.60.103.97:3000/xuziqiang/SaaS-lib into temp
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<template>
|
||||
<div class="div-add">
|
||||
<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>
|
||||
</a-popconfirm>
|
||||
</div>
|
||||
@@ -83,7 +88,7 @@
|
||||
import { ref, onMounted } from 'vue';
|
||||
// 请求
|
||||
import { http } from '/nerv-lib/util/http';
|
||||
import { lightingManage } from '/@/api/IlluminationInfo';
|
||||
import { ventilating } from '/@/api/ventilatingSystem';
|
||||
import { planManage } from '/@/api/planManage';
|
||||
import { message } from 'ant-design-vue';
|
||||
// 全局变量
|
||||
@@ -109,9 +114,18 @@
|
||||
getTable();
|
||||
// 穿梭框原始数据
|
||||
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();
|
||||
let url = '';
|
||||
|
||||
// tab页部分 ========================================================
|
||||
|
||||
@@ -169,7 +183,7 @@
|
||||
};
|
||||
// 将对表格的修改统一发送
|
||||
const sendTable = () => {
|
||||
http.post(lightingManage.submitTableData, dataSource.value).then(() => {
|
||||
http.post(url, dataSource.value).then(() => {
|
||||
message.success('操作成功');
|
||||
getTable();
|
||||
getLeftPlan();
|
||||
|
Reference in New Issue
Block a user