|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<a-modal
|
|
|
:title="modalTitle"
|
|
|
- :width="1000"
|
|
|
+ :width="1300"
|
|
|
:visible="visible"
|
|
|
:confirmLoading="confirmLoading"
|
|
|
class="ant-modal2"
|
|
@@ -17,14 +17,14 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6 || 24" :sm="24">
|
|
|
- <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>
|
|
@@ -44,11 +44,11 @@
|
|
|
:rowSelection="options.rowSelection"
|
|
|
showPagination="auto"
|
|
|
>
|
|
|
- <span slot="action" slot-scope="record1">
|
|
|
- <template>
|
|
|
- <a @click="handleView(record1)">查看</a>
|
|
|
- </template>
|
|
|
- </span>
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleView(record)">查看</a>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
</s-table>
|
|
|
<detail ref="detailModal" />
|
|
|
</a-card>
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
...this.queryParam,
|
|
|
...this.extraQueryParam,
|
|
|
dataScope: {
|
|
|
- sortBy: 'description',
|
|
|
+ sortBy: 'desc',
|
|
|
sortName: 'update_time'
|
|
|
}
|
|
|
}
|
|
@@ -190,7 +190,8 @@ export default {
|
|
|
|
|
|
options: {
|
|
|
alert: {
|
|
|
- show: true, clear: () => {
|
|
|
+ show: true,
|
|
|
+ clear: () => {
|
|
|
this.selectedRowKeys = []
|
|
|
}
|
|
|
},
|
|
@@ -212,7 +213,8 @@ export default {
|
|
|
if (!this.optionAlertShow) {
|
|
|
this.options = {
|
|
|
alert: {
|
|
|
- show: true, clear: () => {
|
|
|
+ show: true,
|
|
|
+ clear: () => {
|
|
|
this.selectedRowKeys = []
|
|
|
}
|
|
|
},
|
|
@@ -291,7 +293,7 @@ export default {
|
|
|
this.$message.warn('请至少选择一项信息')
|
|
|
} else {
|
|
|
this.confirmLoading = true
|
|
|
- this.$emit('selected', this.record, this.selectedRowKeys, this.selectedRows)
|
|
|
+ this.$emit('selected', this.selectedRowKeys, this.selectedRows)
|
|
|
this.confirmLoading = false
|
|
|
this.visible = false
|
|
|
}
|
|
@@ -312,7 +314,6 @@ export default {
|
|
|
this.$refs.table.updateSelect(mySelectedRowKeys, mySelectedRows)
|
|
|
this.$refs.table.rowSelection.onChange(mySelectedRowKeys, mySelectedRows)
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|