|
@@ -12,14 +12,14 @@
|
|
|
</a-row>
|
|
|
<a-row :gutter="48">
|
|
|
<a-col :md="24 || 24" :sm="24" style="text-align: right">
|
|
|
- <span class="table-page-search-submitButtons">
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
- <a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
|
|
|
- <a @click="()=>{ this.advanced = !this.advanced}" style="margin-left: 8px">
|
|
|
- {{ advanced ? '收起' : '展开' }}
|
|
|
- <a-icon :type="advanced ? 'up' : 'down'" />
|
|
|
- </a>
|
|
|
- </span>
|
|
|
+ <span class="table-page-search-submitButtons">
|
|
|
+ <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
+ <a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
|
|
|
+ <a @click="()=>{ this.advanced = !this.advanced}" style="margin-left: 8px">
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'" />
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
@@ -29,8 +29,12 @@
|
|
|
<a-row>
|
|
|
<a-col :md="16">
|
|
|
<a-button v-if="$auth('remote-measures-add')" type="primary" icon="plus" @click="handleAdd()">新增</a-button>
|
|
|
- <a-button style="margin-left: 8px" v-if="$auth('remote-measures-export')" type="primary" icon="download"
|
|
|
- @click="doExport">导出
|
|
|
+ <a-button
|
|
|
+ style="margin-left: 8px"
|
|
|
+ v-if="$auth('remote-measures-export')"
|
|
|
+ type="primary"
|
|
|
+ icon="download"
|
|
|
+ @click="doExport">导出
|
|
|
</a-button>
|
|
|
<a-button style="margin-left:8px;" type="primary" @click="doImport">
|
|
|
<a-icon type="upload"/>
|
|
@@ -63,19 +67,20 @@
|
|
|
:rowSelection="options.rowSelection"
|
|
|
showPagination="auto"
|
|
|
>
|
|
|
- <span slot="action" slot-scope="record">
|
|
|
- <template>
|
|
|
- <a @click="handleView(record)">查看</a>
|
|
|
- <operation-button
|
|
|
- v-if="$auth('remote-measures-edit')" @click="handleEdit(record)"
|
|
|
- >修改</operation-button>
|
|
|
- <operation-button
|
|
|
- v-if="$auth('remote-measures-del')"
|
|
|
- :type="2"
|
|
|
- title="是否要删除该条数据?"
|
|
|
- @confirm="batchDelete(record.id)">删除</operation-button>
|
|
|
- </template>
|
|
|
- </span>
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleView(record)">查看</a>
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('remote-measures-edit')"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ >修改</operation-button>
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('remote-measures-del')"
|
|
|
+ :type="2"
|
|
|
+ title="是否要删除该条数据?"
|
|
|
+ @confirm="batchDelete(record.id)">删除</operation-button>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
</s-table>
|
|
|
</div>
|
|
|
<import-form-add ref="importModal" @ok="handleOk"/>
|
|
@@ -111,7 +116,9 @@ export default {
|
|
|
visible: true,
|
|
|
map: {},
|
|
|
// 查询参数
|
|
|
- queryParam: {},
|
|
|
+ queryParam: {
|
|
|
+ sbId: this.$route.query.sbId
|
|
|
+ },
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -135,7 +142,10 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: '类型',
|
|
|
- dataIndex: 'type'
|
|
|
+ dataIndex: 'type',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Object.getField(this.map, text)
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '描述',
|
|
@@ -193,7 +203,8 @@ export default {
|
|
|
|
|
|
options: {
|
|
|
alert: {
|
|
|
- show: true, clear: () => {
|
|
|
+ show: true,
|
|
|
+ clear: () => {
|
|
|
this.selectedRowKeys = []
|
|
|
}
|
|
|
},
|
|
@@ -215,7 +226,8 @@ export default {
|
|
|
if (!this.optionAlertShow) {
|
|
|
this.options = {
|
|
|
alert: {
|
|
|
- show: true, clear: () => {
|
|
|
+ show: true,
|
|
|
+ clear: () => {
|
|
|
this.selectedRowKeys = []
|
|
|
}
|
|
|
},
|
|
@@ -285,7 +297,9 @@ export default {
|
|
|
this.selectedRows = selectedRows
|
|
|
},
|
|
|
resetSearchForm () {
|
|
|
- this.queryParam = {}
|
|
|
+ this.queryParam = {
|
|
|
+ sbId: this.$route.query.sbId
|
|
|
+ }
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
doExport () {
|