Skip to content

Commit

Permalink
Merge pull request #2558 from lhzzforever/dev/develop_ci
Browse files Browse the repository at this point in the history
fix: 测试手动输入选项无法展示
  • Loading branch information
ielgnaw authored Mar 8, 2024
2 parents dbc5e72 + 431f8e7 commit c650809
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/render-resource/compare-detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<render-order-number v-if="curCondition.length > 1" :number="`${conIndex + 1 }`" />
<div class="resource-instance-wrapper">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="computedIsGroup(condition)"
:need-order="curCondition.length > 1"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/render-resource/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<render-order-number v-if="conditionData.length > 1" :number="`${conIndex + 1 }`" />
<div class="resource-instance-wrapper">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="computedIsGroup(condition)"
:need-order="conditionData.length > 1"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/render-resource/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="resource-instance-wrapper">
<render-resource-instance
key="instance"
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="computedIsGroup(condition)"
:need-order="conditionData.length > 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<render-order-number v-if="conditionData.length > 1" :number="`${index + 1 }`" />
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/group/components/render-resource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<render-order-number v-if="conditionData.length > 1" :number="`${index + 1 }`" />
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<render-order-number v-if="conditionData.length > 1" :number="`${index + 1 }`" />
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<render-order-number v-if="conditionData.length > 1" :number="`${index + 1 }`" />
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/views/perm-apply/components/render-resource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<!-- 实例 -->
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down Expand Up @@ -366,6 +366,7 @@
// 备份已选数据,与最新数据做对比判断要不要展示离开确认框
this.hasSelectedCondition = _.cloneDeep(this.conditionData);
}
console.log(this.conditionData, '当前实例数据');
},
deep: true,
immediate: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<render-order-number v-if="conditionData.length > 1" :number="`${index + 1 }`" />
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<!-- 实例 -->
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="resource-instance-wrapper" :class="conditionData.length > 1 ? 'set-padding' : ''">
<!-- 实例 -->
<render-resource-instance
v-if="condition.hasOwnProperty('instance')"
v-if="condition.hasOwnProperty('instance') || ['instance:paste'].includes(condition.selectionMode)"
:expanded.sync="condition.instanceExpanded"
:is-group="handleComputedIsGroup(condition)"
:sub-title="condition.instanceTitle"
Expand Down

0 comments on commit c650809

Please sign in to comment.