forked from xxhjsb/hbt-prevention-ui
68 lines
3.8 KiB
HTML
68 lines
3.8 KiB
HTML
<div class="common-box dis-flex ">
|
|
<div class="common-tree-box">
|
|
<UnitTreeComponent @callback="handleNodeClick"></UnitTreeComponent>
|
|
</div>
|
|
<div class="common-content-box dis-flex flex-col flex-1">
|
|
<div class="search-box">
|
|
<FormComponent :options="formOptions" :data.sync="params" @actionCallback="callback" :actions="formActions"
|
|
:full-btn="false" @change="callback" btn-position="end"></FormComponent>
|
|
</div>
|
|
<div class="table-box flex-1">
|
|
<TableComponent :tableData="tableData" :tableColumn="tableColumn" @tabCallback="callback($event)"
|
|
@actionCallback="callback($event)" @pageNumberChange="callback($event,'pageNum')"
|
|
@pageSizeChange="callback($event,'pageSize')" :footerActions="footerActions" :actions="tableActions">
|
|
|
|
<el-table ref="multipleTable" :data="tableData.datas" height="100%" border row-key="checked"
|
|
@selection-change="handleSelectionChange" style="width: 100%">
|
|
<el-table-column type="selection" fixed label="全选" width="60">
|
|
</el-table-column>
|
|
<el-table-column label="序号" width="60">
|
|
<template slot-scope="scope">
|
|
{{scope.$index+1}}
|
|
</template>
|
|
</el-table-column>
|
|
<template v-for="item in tableColumn">
|
|
<el-table-column v-if="item.render" :label="item.name" :width="item.width" :key="item.key"
|
|
:filters="item.filters" :filter-method="item.filterMethod"
|
|
:show-overflow-tooltip="item.showTip">
|
|
<div slot-scope="scope" v-html="item.render(scope.row)" @click="showPros($event,scope.row)">
|
|
</div>
|
|
</el-table-column>
|
|
<el-table-column v-else :prop="item.key" :label="item.name" :width="item.width" :key="item.key"
|
|
:filters="item.filters" :filter-method="item.filterMethod"
|
|
:show-overflow-tooltip="item.showTip">
|
|
</el-table-column>
|
|
</template>
|
|
<el-table-column label="操作" fixed="right" width="100">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="deleteData([scope.row.id])">删除</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
|
|
</TableComponent>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 管控措施详情 -->
|
|
<el-dialog :close-on-click-modal="false" title="管控措施" :show-close="false" :visible.sync="showProtable"
|
|
width="952px">
|
|
<TableComponent :tableData="currentProTableData" :tableColumn="proTableColumn" :showFooter="false"
|
|
style="margin-bottom: 20px;">
|
|
<el-table ref="multipleTable" :data="currentProTableData.datas" tooltip-effect="dark" height="250" border
|
|
style="width: 100%">
|
|
<template v-for="item in proTableColumn">
|
|
<el-table-column v-if="item.render" :label="item.name" :width="item.width" :key="item.key">
|
|
<div slot-scope="scope" v-html="item.render(scope.row)" @click="showPros($event,scope.row)">
|
|
</div>
|
|
</el-table-column>
|
|
<el-table-column v-else :prop="item.key" :label="item.name" :width="item.width" :key="item.key">
|
|
</el-table-column>
|
|
</template>
|
|
</el-table>
|
|
</TableComponent>
|
|
<ButtonListComponent :actions="subActions" @callback="subCallback" btn-position="center" :full-btn="true">
|
|
</ButtonListComponent>
|
|
</el-dialog>
|
|
|
|
</div> |