diff --git a/src/api/report/index.js b/src/api/report/index.js index 6f8229e..3fbd100 100644 --- a/src/api/report/index.js +++ b/src/api/report/index.js @@ -15,10 +15,40 @@ export function list(data) { } export function updateStatus(data) { - const {productId, type, status, text } = data - //status 0未处理 1驳回 2通过 return request({ - url: `/report/updateStatus?productId=${productId}&type=${type}&status=${status}&text=${text}`, - method: 'get' + url: '/report/updateStatus', + method: 'get', + params: data + }) + } + + // 获取模型版本信息 + export function getModelVersion(id) { + return request({ + url: `ModelVersion/finbyid?id=${id}`, + method: 'get', + }) + } + // 获取模型版本信息 + export function getModelInfo(id) { + return request({ + url: `model/selectModelById?id=${id}`, + method: 'get', + }) + } + + + // 获取模型版本信息 + export function getModeWorkFlowVersion(id) { + return request({ + url: `WorkFlowVersion/selectVersionByWorkId?workId=${id}`, + method: 'get', + }) + } + // 获取模型版本信息 + export function getModeWorkFlowInfo(id) { + return request({ + url: `WorkFlow/selectWorkFlowById?id=${id}&type=1`, + method: 'get', }) } \ No newline at end of file diff --git a/src/api/report/planet.js b/src/api/report/planet.js new file mode 100644 index 0000000..aaac6b1 --- /dev/null +++ b/src/api/report/planet.js @@ -0,0 +1,56 @@ +import request from '@/utils/request' + +export function list(data) { + return request({ + url: '/publishReport/list', + method: 'post', + data: data + }) + } + + + export function deleteReport(id) { + return request({ + url: '/publishReport/delete?id=' + id, + method: 'get' + }) + } + + export function updateStatus(data) { + return request({ + url: '/publishReport/updateStatus', + method: 'post', + data + }) + } + + // 获取模型版本信息 + export function getModelVersion(id) { + return request({ + url: `ModelVersion/finbyid?id=${id}`, + method: 'get', + }) + } + // 获取模型版本信息 + export function getModelInfo(id) { + return request({ + url: `model/selectModelById?id=${id}`, + method: 'get', + }) + } + + + // 获取模型版本信息 + export function getModeWorkFlowVersion(id) { + return request({ + url: `WorkFlowVersion/selectVersionByWorkId?workId=${id}`, + method: 'get', + }) + } + // 获取模型版本信息 + export function getModeWorkFlowInfo(id) { + return request({ + url: `WorkFlow/selectWorkFlowById?id=${id}&type=1`, + method: 'get', + }) + } \ No newline at end of file diff --git a/src/api/version/index.js b/src/api/version/index.js new file mode 100644 index 0000000..13ff4e2 --- /dev/null +++ b/src/api/version/index.js @@ -0,0 +1,32 @@ +import request from '@/utils/request' + + +export function getVersionList(data) { + return request({ + url: '/version/list', + method: 'post', + data: data + }) +} + +export function addVersion(data) { + return request({ + url: '/version/addVersion', + method: 'post', + data: data + }) + } + // export function deleteVersion(jobId) { + // return request({ + // url: '/version/deleteVersion?id=' + jobId, + // method: 'get' + // }) + // } + + export function updateVersion(data) { + return request({ + url: '/version/update', + method: 'post', + data: data + }) + } diff --git a/src/views/report/list/index.vue b/src/views/report/list/index.vue index 97db4dc..7908a2c 100644 --- a/src/views/report/list/index.vue +++ b/src/views/report/list/index.vue @@ -133,7 +133,7 @@ + diff --git a/src/views/versionManage/versionList/index.vue b/src/views/versionManage/versionList/index.vue new file mode 100644 index 0000000..3fb570f --- /dev/null +++ b/src/views/versionManage/versionList/index.vue @@ -0,0 +1,446 @@ + + + + diff --git a/vue.config.js b/vue.config.js index 44f6f01..b1be646 100644 --- a/vue.config.js +++ b/vue.config.js @@ -37,8 +37,8 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://1.13.246.108:8080`, - target: 'http://113.45.190.154:8080', // 线上 - // target: 'http://192.168.2.29:8080', // 代 + // target: 'http://113.45.190.154:8080', // 线上 + target: 'http://192.168.2.21:8080', // 代 // target: 'http://192.168.2.4:8080', // 嗨 // target:'https://1e312ae8.r27.cpolar.top', // 嗨 // target: 'https://2d1a399f.r27.cpolar.top', // 嗨