Commit 7f153bf8 authored by 何虹's avatar 何虹 💬

测试

parent 8527d4c5
<template> <template>
<el-dialog <el-dialog
v-if='innervisible'
top="10px" top="10px"
id="jsonEditorBox" id="jsonEditorBox"
@opened="dialogOpen" @opened="dialogOpen"
......
...@@ -29,52 +29,48 @@ ...@@ -29,52 +29,48 @@
</div> </div>
</div> </div>
<hs-iframe-dialog ref='appIframePageBox'></hs-iframe-dialog> <hs-iframe-dialog ref='appIframePageBox'></hs-iframe-dialog>
<el-dialog <hs-dialog
:close-on-click-modal='false' ref='hsDialog'
:before-close='beforeClose' :visible='dialogTableVisible'
append-to-body :config='dialogConfig'
center @close='beforeClose'
title="查询"
:visible.sync="dialogTableVisible"
width="65%"
> >
<div v-if='dialogTableVisible'> <div slot="body">
<el-tag <div v-if='dialogTableVisible'>
@click="itemClick(item)" <el-tag
:key="index" @click="itemClick(item)"
:closable='configData.closable' :key="index"
v-for="(item,index) in dynamicTags" :closable='configData.closable'
:disable-transitions="false" v-for="(item,index) in dynamicTags"
@close="handleClose(item)" :disable-transitions="false"
@close="handleClose(item)"
>
{{item[configData.displayField]}}
</el-tag>
</div>
<hs-dync-form
@searchSubmit='queryTable'
type='queryArea'
:formParms='searchForm'
:elInfo='hsDyncFormEl'
:config='hsDyncFormConfig'
v-on="$listeners"
v-bind="$attrs"
> >
{{item[configData.displayField]}} </hs-dync-form>
</el-tag> <hs-table
height="300px"
:paging='hsTablePaging'
:config='hsTableFormConfig'
:data='hsTableData'
:elInfo='hsTableEl'
@paginationFun="paginationFun"
v-on="$listeners"
v-bind="$attrs"
>
</hs-table>
</div> </div>
<hs-dync-form <div slot="footer" class="dialogTableVisible-box-footer">
@searchSubmit='queryTable'
type='queryArea'
:formParms='searchForm'
:elInfo='hsDyncFormEl'
:config='hsDyncFormConfig'
v-on="$listeners"
v-bind="$attrs"
>
</hs-dync-form>
<hs-table
height="300px"
:paging='hsTablePaging'
:config='hsTableFormConfig'
:data='hsTableData'
:elInfo='hsTableEl'
@paginationFun="paginationFun"
v-on="$listeners"
v-bind="$attrs"
>
</hs-table>
<div
slot="footer"
class="dialog-footer"
>
<el-button <el-button
size="mini" size="mini"
v-show="configData.showDialogAdd" v-show="configData.showDialogAdd"
...@@ -91,7 +87,7 @@ ...@@ -91,7 +87,7 @@
@click="submit" @click="submit"
>确 定</el-button> >确 定</el-button>
</div> </div>
</el-dialog> </hs-dialog>
</div> </div>
</template> </template>
...@@ -120,7 +116,11 @@ export default { ...@@ -120,7 +116,11 @@ export default {
tableData: [], tableData: [],
searchForm: {}, searchForm: {},
firstQuery: true, firstQuery: true,
hsTablePaging:null hsTablePaging: null,
dialogConfig: {
title: '查询',
width: '60%'
}
} }
}, },
computed: { computed: {
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
} }
}, },
submit() { submit() {
let resultList = this.tableData.filter(x => x.isSelected) const resultList = this.tableData.filter(x => x.isSelected)
const list = [] const list = []
const { submitClick, valueField, displayField } = this.configData const { submitClick, valueField, displayField } = this.configData
resultList.forEach(item => { resultList.forEach(item => {
...@@ -410,4 +410,8 @@ export default { ...@@ -410,4 +410,8 @@ export default {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
.dialogTableVisible-box-footer{
display: flex;
justify-content: flex-end;
}
</style> </style>
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