提交 74971ff4 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!520 Optimize the code of the data traceability pop-up box, every time you...

!520 Optimize the code of the data traceability pop-up box, every time you open, the secondary table needs to be in the folded state to modify
Merge pull request !520 from 秦君艳/dialogshow
......@@ -256,32 +256,34 @@ limitations under the License.
</div>
</div>
</div>
<el-dialog :title="rowName"
:visible.sync="detailsDialogVisible"
width="50%"
:close-on-click-modal="false"
class="details-data-list">
<div class="details-data-title">{{ detailsDataTitle }}</div>
<el-table :data="detailsDataList"
row-key="id"
lazy
tooltip-effect="light"
:load="loadDataListChildren"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
<el-table-column width="50" />
<el-table-column prop="key"
width="180"
label="Key">
</el-table-column>
<el-table-column prop="value"
show-overflow-tooltip
label="Value">
<template slot-scope="scope">
{{ scope.row.value }}
</template>
</el-table-column>
</el-table>
</el-dialog>
<div v-if="detailsDialogVisible">
<el-dialog :title="rowName"
:visible.sync="detailsDialogVisible"
width="50%"
:close-on-click-modal="false"
class="details-data-list">
<div class="details-data-title">{{ detailsDataTitle }}</div>
<el-table :data="detailsDataList"
row-key="id"
lazy
tooltip-effect="light"
:load="loadDataListChildren"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
<el-table-column width="50" />
<el-table-column prop="key"
width="180"
label="Key">
</el-table-column>
<el-table-column prop="value"
show-overflow-tooltip
label="Value">
<template slot-scope="scope">
{{ scope.row.value }}
</template>
</el-table-column>
</el-table>
</el-dialog>
</div>
<!-- tag dialog -->
<div v-show="tagDialogShow"
id="tag-dialog"
......@@ -2228,7 +2230,10 @@ export default {
}
}
}
.el-dialog {
min-width: 500px;
padding-bottom: 30px;
}
.details-data-list {
.el-table td,
.el-table th.is-leaf {
......@@ -2299,6 +2304,7 @@ export default {
.el-dialog__body {
max-height: 500px;
padding-top: 10px;
padding-bottom: 0px;
overflow: auto;
.details-data-title {
margin-bottom: 20px;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册