|
@@ -24,6 +24,9 @@
|
|
|
<a-col :md="8 || 24" :sm="24">
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
+<!-- <a-button type="primary" @click="testQuery">测试查询</a-button>
|
|
|
+ <a-button type="primary" @click="testOne">测试单条写入</a-button>
|
|
|
+ <a-button type="primary" @click="testBatch">测试批量希尔</a-button>-->
|
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
|
|
|
</span>
|
|
|
</a-col>
|
|
@@ -71,7 +74,7 @@
|
|
|
<a-popconfirm v-if="record.status == 1" title="是否要废弃该条数据?" @confirm="batchDelete(record.id)">
|
|
|
<a>废弃</a>
|
|
|
</a-popconfirm>
|
|
|
- <a-popconfirm v-if="record.status == null || record.status == 0" title="是否要启用该条数据?" @confirm="batchQi(record.id)">
|
|
|
+ <a-popconfirm v-if="record.status == null || record.status == 0" title="是否要启用该条数据?" @confirm="batchQi(record.id)">
|
|
|
<a>启用</a>
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
@@ -139,10 +142,10 @@ export default {
|
|
|
title: '排序',
|
|
|
dataIndex: 'sort'
|
|
|
},
|
|
|
- /* {
|
|
|
+ /* {
|
|
|
title: '发布时间',
|
|
|
dataIndex: 'createdTime'
|
|
|
- },*/
|
|
|
+ }, */
|
|
|
{
|
|
|
title: '操作',
|
|
|
key: 'action',
|
|
@@ -266,6 +269,15 @@ export default {
|
|
|
}
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
+ testQuery () {
|
|
|
+ this.$message.info('测试查询')
|
|
|
+ },
|
|
|
+ testOne () {
|
|
|
+ this.$message.info('测试单条写入')
|
|
|
+ },
|
|
|
+ testBatch () {
|
|
|
+ this.$message.info('测试批量写入')
|
|
|
+ },
|
|
|
getDict () {
|
|
|
this.typeMap = DictCache.getLabelByValueMapByType('ARTICLE_TYPE')
|
|
|
this.tableOption()
|