fix: 解决jenkins 报错

develop
时启龙 2024-08-29 09:07:51 +08:00
parent dd71c7b4bb
commit f95faec74b
2 changed files with 11 additions and 11 deletions

View File

@ -47,7 +47,7 @@ interface IProps {
record: any
instanceStatus: string
}
export default defineComponent({
export default {
components: { AttributeItem },
props: {
record: {
@ -57,7 +57,7 @@ export default defineComponent({
type: String
}
},
setup(props: IProps, context) {
setup(props: IProps, context: any) {
type IState = {
applyData: any
nodeList: any[]
@ -142,5 +142,5 @@ export default defineComponent({
submit
}
}
})
}
</script>

View File

@ -168,7 +168,7 @@
</template>
<script>
import Sortable from 'sortablejs'
// import Sortable from 'sortablejs'
import { setTimeout } from 'timers'
import { getHmcVolumes } from 'views/resource/PowerVc/services/powervc'
import { volumeImage, getImage, removeImage, detailImage, createImage, conditionVm } from 'views/resource/PowerVc/services/index'
@ -299,12 +299,12 @@ export default {
rowDrop() {
const tbody = document.querySelector('.volume .el-table__body-wrapper tbody')
const _this = this
Sortable.create(tbody, {
onEnd({ newIndex, oldIndex }) {
const currRow = _this.volumeList.splice(oldIndex, 1)[0]
_this.volumeList.splice(newIndex, 0, currRow)
}
})
// Sortable.create(tbody, {
// onEnd({ newIndex, oldIndex }) {
// const currRow = _this.volumeList.splice(oldIndex, 1)[0]
// _this.volumeList.splice(newIndex, 0, currRow)
// }
// })
},
refreshId2() {
this.addVolumeIdList = []
@ -470,7 +470,7 @@ export default {
})
},
addVolume() {
this.rowDrop()
// this.rowDrop()
this.selectVolumeList = []
this.volumeList.forEach(data => {
this.selectVolumeList.push(data)