From ecf0382f10d90200da487de3606b138633d7de02 Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期一, 18 三月 2024 12:02:29 +0800 Subject: [PATCH] dialog --- web/packages/components/zt-dialog/src/zt-dialog.vue | 16 +++++++++++++++- web/src/views/modules/taskReliability/SelectModelRbd.vue | 11 +++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/web/packages/components/zt-dialog/src/zt-dialog.vue b/web/packages/components/zt-dialog/src/zt-dialog.vue index b8b85eb..513cb98 100644 --- a/web/packages/components/zt-dialog/src/zt-dialog.vue +++ b/web/packages/components/zt-dialog/src/zt-dialog.vue @@ -1,7 +1,7 @@ <template> <el-dialog v-dialogDrag - :class="{'dialog-column-1': column === '1', 'dialog-column-2': column === '2', 'dialog-column-3': column === '3', 'dialog-column-4': column === '4'}" + :class="{'dialog-column-min': column==='min','dialog-column-1': column === '1', 'dialog-column-2': column === '2', 'dialog-column-3': column === '3', 'dialog-column-4': column === '4'}" :visible.sync="visible" v-if="visible" :title="_title" @@ -162,6 +162,20 @@ } </script> <style lang="scss" scoped> +.dialog-column-min { + /deep/ .el-dialog { + position: fixed; + margin-top: 0 !important; + top: 50% !important; + left: 50% !important; + transform: translate(-50%, -50%); + width: 20%; + /*margin-top:7vh !important;*/ + .el-form > .el-form-item, .el-form .el-collapse-item__content > .el-form-item { + width: 100%; + } + } +} .dialog-column-1 { /deep/ .el-dialog { position: fixed; diff --git a/web/src/views/modules/taskReliability/SelectModelRbd.vue b/web/src/views/modules/taskReliability/SelectModelRbd.vue index ba1c9cb..3730eb5 100644 --- a/web/src/views/modules/taskReliability/SelectModelRbd.vue +++ b/web/src/views/modules/taskReliability/SelectModelRbd.vue @@ -1,21 +1,16 @@ <template> - <zt-dialog ref="dialog" column="2" title="閫夋嫨绯荤粺妯″瀷" append-to-body :editAble="false" :hasConfirm="false"> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-taskReliability-modelRbd}"> + <zt-dialog ref="dialog" column="1" title="閫夋嫨绯荤粺妯″瀷" append-to-body :editAble="false" :hasConfirm="false"> <zt-table-wraper ref="tableObj" query-url="/taskReliability/ModelRbd/page" :paging='false' v-slot="{ table }"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> - </el-form> - <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:30}" + <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"></el-form> + <el-table v-loading="table.dataLoading" :data="table.dataList" height="200" border @row-dblclick="selectModel" @selection-change="table.selectionChangeHandle"> <el-table-column prop="modelName" label="妯″瀷鍚嶇О"/> </el-table> <!-- 寮圭獥, 鏂板 / 淇敼 --> </zt-table-wraper> - </div> - </el-card> </zt-dialog> </template> -- Gitblit v1.9.1