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

View File

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