Commit 21ec70cd authored by jingnan's avatar jingnan 👀

合并产品代码至节点[6846] (d48b2e6c)

parent cca190d6
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -143,8 +143,8 @@ export default { ...@@ -143,8 +143,8 @@ export default {
placement: 'bottom', placement: 'bottom',
width: '400', width: '400',
title: '失败原因' title: '失败原因'
}, }
style: 'height:100px;overflow:scroll' // style: 'height:100px;overflow:scroll'
}, [ }, [
h( h(
'p', { 'p', {
......
...@@ -170,11 +170,9 @@ import partEdit from './partEdit.vue' ...@@ -170,11 +170,9 @@ import partEdit from './partEdit.vue'
import { dxSandboxPublish, dxSandboxCancel, checkSandboxObjectIsCheckouted, checkItemIsInAnySandbox, checkEquivalenceLink, checkPartIsPreviousView } from '@/api/parts' import { dxSandboxPublish, dxSandboxCancel, checkSandboxObjectIsCheckouted, checkItemIsInAnySandbox, checkEquivalenceLink, checkPartIsPreviousView } from '@/api/parts'
import { getSubTypeName } from '@/api/model' import { getSubTypeName } from '@/api/model'
export default { export default {
// import引入的组件需要注入到对象中才能使用 name: 'BomReconsitutionDetail',
// import引入的组件需要注入到对象中才能使用
components: { Search, SearchResult, sandboxTree, partEdit }, components: { Search, SearchResult, sandboxTree, partEdit },
props: {},
data() { data() {
// 这里存放数据 // 这里存放数据
return { return {
...@@ -569,6 +567,7 @@ export default { ...@@ -569,6 +567,7 @@ export default {
async getSandboxObj() { async getSandboxObj() {
await this.service.byId(this.sandboxId).then(item => { await this.service.byId(this.sandboxId).then(item => {
this.sandboxObj = item this.sandboxObj = item
this.noSandboxDataTip()
}) })
}, },
async checkSandboxObjectIsCheckouted() { async checkSandboxObjectIsCheckouted() {
...@@ -651,6 +650,9 @@ export default { ...@@ -651,6 +650,9 @@ export default {
this.$refs.result.refreshStructure() this.$refs.result.refreshStructure()
}, },
changeViews(flag, convertType = '', dialogVisible = true) { changeViews(flag, convertType = '', dialogVisible = true) {
if (this.noSandboxDataTip()) {
return
}
if (!this.node) { if (!this.node) {
this.$utils.showMessage('请选择原视图件!') this.$utils.showMessage('请选择原视图件!')
} else { } else {
...@@ -789,6 +791,14 @@ export default { ...@@ -789,6 +791,14 @@ export default {
this.hasTreeData = false this.hasTreeData = false
this.$set(this.form, 'isConvertRoot', 'true') this.$set(this.form, 'isConvertRoot', 'true')
} }
},
// 没有沙箱提示
noSandboxDataTip() {
if (!this.sandboxObj) {
this.$utils.showMessage('沙箱数据不存在', 'warning')
return true
}
return false
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment