forked from JointCloud/JCC-RIP
fix
This commit is contained in:
parent
e856d7d3b3
commit
0cbfc2fc25
|
@ -165,33 +165,17 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
getDeployInstanceList() {
|
getDeployInstanceList() {
|
||||||
getAiTaskList({ pageNum: 1, pageSize: 10 }).then(e => {
|
getAiTaskList({ pageNum: 1, pageSize: 10 }).then(e => {
|
||||||
this.tableData = e.data.list
|
this.tableData = []
|
||||||
|
e.data.list.forEach(i => {
|
||||||
|
i.instances.forEach(p => {
|
||||||
|
this.tableData.push({ ...p, name: i.name, mainId: i.id })
|
||||||
|
})
|
||||||
|
})
|
||||||
|
console.log(this.tableData)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||||
if (columnIndex === 0 || columnIndex === 1 || columnIndex === 9) {
|
if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2 || columnIndex === 10) {
|
||||||
// const currentValue = row[column.modelType]
|
|
||||||
// const preRow=this.tableData[rowIndex-1]
|
|
||||||
// const preValue = preRow ?preRow[column.modelType]: null;
|
|
||||||
// if(currentValue === preValue){
|
|
||||||
// return { rowspan:0,colspan:0};
|
|
||||||
// } else {
|
|
||||||
// let rowspan =1;
|
|
||||||
// for (let i=rowIndex + 1;i< this.tableData.length; i++){
|
|
||||||
// const nextRow = this.tableData[i]
|
|
||||||
// const nextValue = nextRow[column.modelType];
|
|
||||||
// if(nextValue === currentValue){
|
|
||||||
// rowspan++
|
|
||||||
// } else {
|
|
||||||
// break
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// return{rowspan,colspan:1}
|
|
||||||
// }
|
|
||||||
// if (columnIndex !== 0 && columnIndex !== 1) {
|
|
||||||
// return { rowspan: 1, colspan: 1 };
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
rowIndex === 0 ||
|
rowIndex === 0 ||
|
||||||
row.deployTaskId !== this.tableData[rowIndex - 1].deployTaskId
|
row.deployTaskId !== this.tableData[rowIndex - 1].deployTaskId
|
||||||
|
@ -206,6 +190,10 @@ export default {
|
||||||
},
|
},
|
||||||
setColumn() {
|
setColumn() {
|
||||||
return [
|
return [
|
||||||
|
{
|
||||||
|
prop: 'name',
|
||||||
|
label: this.$t('page.instanceName')
|
||||||
|
},
|
||||||
{ prop: 'modelName', label: this.$t('page.modelName'), formatter: (row) => { return <a onClick={() => this.viewDetail(row)}>{row.modelName}</a> } },
|
{ prop: 'modelName', label: this.$t('page.modelName'), formatter: (row) => { return <a onClick={() => this.viewDetail(row)}>{row.modelName}</a> } },
|
||||||
{ prop: 'modelType', label: this.$t('page.modelType') },
|
{ prop: 'modelType', label: this.$t('page.modelType') },
|
||||||
{
|
{
|
||||||
|
@ -287,7 +275,7 @@ export default {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
instanceId: row.instanceId
|
instanceId: row.instanceId
|
||||||
}
|
}
|
||||||
const allId = { deployTaskId: row.deployTaskId }
|
const allId = { id: row.mainId }
|
||||||
|
|
||||||
if (type === 1 || type === 3) {
|
if (type === 1 || type === 3) {
|
||||||
this.$confirm('<p>确定要启动么?</p>', '温馨提示', {
|
this.$confirm('<p>确定要启动么?</p>', '温馨提示', {
|
||||||
|
|
|
@ -57,7 +57,7 @@ module.exports = {
|
||||||
'^/pcm': {
|
'^/pcm': {
|
||||||
ws: false,
|
ws: false,
|
||||||
// target: 'https://jcos.jointcloud.net:443/',
|
// target: 'https://jcos.jointcloud.net:443/',
|
||||||
target: 'https://pcm.jointcloud.net/',
|
target: 'https://comnet.jointcloud.net/',
|
||||||
// target: 'https://mock.apifox.com/m1/4000164-0-default/',
|
// target: 'https://mock.apifox.com/m1/4000164-0-default/',
|
||||||
// target: 'https://jointcloud.net/apis',
|
// target: 'https://jointcloud.net/apis',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
@ -65,7 +65,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
'^/auth': {
|
'^/auth': {
|
||||||
ws: false,
|
ws: false,
|
||||||
target: 'https://pcm.jointcloud.net/',
|
target: 'https://comnet.jointcloud.net/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false
|
secure: false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue