fix
Showing
1 changed file
with
7 additions
and
1 deletions
| ... | @@ -338,12 +338,13 @@ function inputTypeChange (val, item) { | ... | @@ -338,12 +338,13 @@ function inputTypeChange (val, item) { |
| 338 | const loading = ref(false) | 338 | const loading = ref(false) |
| 339 | function getDetail () { | 339 | function getDetail () { |
| 340 | loading.value = true | 340 | loading.value = true |
| 341 | |||
| 341 | return getMetaStandardDetail(props.guid).then((res:any) => { | 342 | return getMetaStandardDetail(props.guid).then((res:any) => { |
| 342 | if (res.code === proxy.$passCode) { | 343 | if (res.code === proxy.$passCode) { |
| 343 | const data = res.data | 344 | const data = res.data |
| 344 | data.fieldRQVOS = data.fieldRSVOS | 345 | data.fieldRQVOS = data.fieldRSVOS |
| 345 | form.value = { ...data } | 346 | form.value = { ...data } |
| 346 | let { level, isHaveData } = treeCurrentNode.value | 347 | let { level, isHaveData, children } = treeCurrentNode.value |
| 347 | if (level == 1) { | 348 | if (level == 1) { |
| 348 | // 所选为一级节点,当前二级节点 | 349 | // 所选为一级节点,当前二级节点 |
| 349 | fieldsTableShow.value = false | 350 | fieldsTableShow.value = false |
| ... | @@ -354,6 +355,10 @@ function getDetail () { | ... | @@ -354,6 +355,10 @@ function getDetail () { |
| 354 | if (level >= 3) { | 355 | if (level >= 3) { |
| 355 | fieldsDisabled.value = true | 356 | fieldsDisabled.value = true |
| 356 | } | 357 | } |
| 358 | if ((children && children.length) || data.fieldRSVOS) { | ||
| 359 | treeSelectDisabled.value = true | ||
| 360 | } | ||
| 361 | |||
| 357 | } | 362 | } |
| 358 | }).finally(() => loading.value = false) | 363 | }).finally(() => loading.value = false) |
| 359 | } | 364 | } |
| ... | @@ -399,6 +404,7 @@ watch( | ... | @@ -399,6 +404,7 @@ watch( |
| 399 | // console.log(props.currentNode) | 404 | // console.log(props.currentNode) |
| 400 | // 上级标准:不能选自己,有数据的标准不能选 | 405 | // 上级标准:不能选自己,有数据的标准不能选 |
| 401 | // treeSelectData.value = JSON.parse(JSON.stringify(props.standardOptions)) | 406 | // treeSelectData.value = JSON.parse(JSON.stringify(props.standardOptions)) |
| 407 | treeSelectDisabled.value = false | ||
| 402 | if (props.type === 'edit') { | 408 | if (props.type === 'edit') { |
| 403 | // fieldsControlDisabled.value = false | 409 | // fieldsControlDisabled.value = false |
| 404 | 410 | ... | ... |
-
Please register or sign in to post a comment