This commit is contained in:
吴克举 2023-08-15 11:32:24 +08:00
parent acdcf6dee9
commit c818a6f6fa
8 changed files with 17 additions and 11 deletions

View File

@ -238,7 +238,7 @@ const passIf = ref(true);
const getDataStream = () => { const getDataStream = () => {
http http
.post("/api/metadata/data_stream/exec", { .post("/metadata/data_stream/exec", {
lineList: lineList.value, lineList: lineList.value,
nodeList: conArr.value, nodeList: conArr.value,
streamId: 1, streamId: 1,

View File

@ -283,7 +283,7 @@ const dataColumnList = ref([]);
const columnListData = ref([]); const columnListData = ref([]);
const getDataStream = () => { const getDataStream = () => {
http http
.post("/api/metadata/data_stream/exec", { .post("/metadata/data_stream/exec", {
lineList: lineList.value, lineList: lineList.value,
nodeList: conArr.value, nodeList: conArr.value,
streamId: 1, streamId: 1,

View File

@ -173,7 +173,7 @@ const setData = () => {
const getDataStream = () => { const getDataStream = () => {
http http
.post("/api/metadata/data_stream/exec", { .post("/metadata/data_stream/exec", {
lineList: lineList.value, lineList: lineList.value,
nodeList: conArr.value, nodeList: conArr.value,
streamId: 1, streamId: 1,

View File

@ -42,7 +42,7 @@ const columnListData = ref([]);
const getDataStream = () => { const getDataStream = () => {
http http
.post("/api/metadata/data_stream/exec", { .post("/metadata/data_stream/exec", {
lineList: lineList.value, lineList: lineList.value,
nodeList: conArr.value, nodeList: conArr.value,
streamId: 1, streamId: 1,

View File

@ -201,7 +201,7 @@ const dataColumnList = ref([]);
const columnListData = ref([]); const columnListData = ref([]);
const getDataStream = () => { const getDataStream = () => {
http http
.post("/api/metadata/data_stream/exec", { .post("/metadata/data_stream/exec", {
lineList: lineList.value, lineList: lineList.value,
nodeList: conArr.value, nodeList: conArr.value,
streamId: 1, streamId: 1,

View File

@ -681,7 +681,7 @@ const columnListData = ref([]);
const columnList = ref([]); const columnList = ref([]);
const getDataStream = () => { const getDataStream = () => {
http http
.post("/api/metadata/data_stream/exec", { .post("/metadata/data_stream/exec", {
lineList: data.lineList, lineList: data.lineList,
nodeList: conArr.value, nodeList: conArr.value,
streamId: 1, streamId: 1,
@ -760,7 +760,7 @@ const clickSave = () => {
console.log("submitData", submitData); console.log("submitData", submitData);
http.post("/api/metadata/data_stream/exec", submitData).then((res) => { http.post("/metadata/data_stream/exec", submitData).then((res) => {
if (res.code == 200) { if (res.code == 200) {
proxy.$message.success({ proxy.$message.success({
content: `保存成功`, content: `保存成功`,
@ -772,7 +772,7 @@ const clickSave = () => {
const getDataStreamData = () => { const getDataStreamData = () => {
http http
.get("/api/metadata/data_stream", { .get("/metadata/data_stream", {
id: 1, id: 1,
}) })
.then((res) => { .then((res) => {

View File

@ -57,7 +57,7 @@ const metadataName = ref(""); //选中的表单id
// //
const getProject = (resolve) => { const getProject = (resolve) => {
http.get("/api/metadata/project").then((resp) => { http.get("/metadata/project").then((resp) => {
let arr = []; let arr = [];
resp.data.records.map((item) => { resp.data.records.map((item) => {
arr.push({ arr.push({
@ -76,7 +76,7 @@ const getProject = (resolve) => {
const getMetadata = (id) => { const getMetadata = (id) => {
loading.value = true; loading.value = true;
http http
.get("/api/metadata/metadataColumn", { .get("/metadata/metadataColumn", {
metadataId: id, metadataId: id,
}) })
.then((resp) => { .then((resp) => {
@ -116,7 +116,7 @@ const loadMore = (nodeData, resolve) => {
} }
http http
.get("api/metadata/metadata", { .get("/metadata/metadata", {
projectId: nodeData.data.key, projectId: nodeData.data.key,
}) })
.then((resp) => { .then((resp) => {

View File

@ -34,6 +34,12 @@ export default defineConfig({
changeOrigin: true, changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '') // rewrite: (path) => path.replace(/^\/api/, '')
// ws: true,// 开启webSocket // ws: true,// 开启webSocket
},
'/metadata': {
target: 'http://122.112.237.44',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
// ws: true,// 开启webSocket
} }
} }
} }