[update] 个人中心所有模块联调
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { getAction } from './manage'
|
import { postAction } from './manage'
|
||||||
|
|
||||||
// 我的收藏-取消收藏
|
// 我的收藏-取消收藏
|
||||||
const cancelCollect = (params) => getAction('', params)
|
const cancelCollect = (params) => postAction('/personal/lawsStandardCollection/delete', params)
|
||||||
|
|
||||||
// 浏览记录-清除浏览记录
|
// 浏览记录-清除浏览记录
|
||||||
const clearBrowsingHistory = (params) => getAction('', params)
|
const clearBrowsingHistory = (params) => postAction('/personal/lawsBrowsingHistory/delete', params)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
cancelCollect,
|
cancelCollect,
|
||||||
|
|||||||
@@ -66,14 +66,14 @@ export default {
|
|||||||
title: this.$t('personalCenter.browsingHistory.standardNo'),
|
title: this.$t('personalCenter.browsingHistory.standardNo'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'owningPlate',
|
dataIndex: 'standardNum',
|
||||||
scopedSlots: { customRender: 'toDetail' }
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('personalCenter.browsingHistory.standardName'),
|
title: this.$t('personalCenter.browsingHistory.standardName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'title',
|
dataIndex: 'standardName',
|
||||||
scopedSlots: { customRender: 'toDetail' }
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -84,8 +84,8 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: '',
|
list: '/personal/lawsBrowsingHistory/page',
|
||||||
deleteBatch: ''
|
deleteBatch: '/personal/lawsBrowsingHistory/deleteBatch'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -94,49 +94,42 @@ export default {
|
|||||||
handleGoDetail (record) {
|
handleGoDetail (record) {
|
||||||
let path = ''
|
let path = ''
|
||||||
// 需要先判断是哪种标准
|
// 需要先判断是哪种标准
|
||||||
if (record.type === 3) {
|
if (record.standardType === '1') {
|
||||||
|
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||||
|
} else if (record.standardType === '2') {
|
||||||
|
path = '/standardRegulationLibrary/OverseasStandardDetail'
|
||||||
|
} else if (record.standardType === '3') {
|
||||||
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
||||||
}
|
}
|
||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
path: path,
|
path: path,
|
||||||
query: {
|
query: {
|
||||||
id: record.id
|
id: record.standardId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 清除浏览记录
|
// 清除浏览记录
|
||||||
clearBrowsingHistory () {
|
clearBrowsingHistory () {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
|
||||||
} else {
|
|
||||||
let ids = ''
|
|
||||||
for (let a = 0; a < this.selectedRowKeys.length; a++) {
|
|
||||||
ids += this.selectedRowKeys[a] + ','
|
|
||||||
}
|
|
||||||
const that = this
|
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: this.$t('personCenter.browsingHistory.clearBrowsingHistory'),
|
title: this.$t('personalCenter.browsingHistory.clearBrowsingHistory'),
|
||||||
content: this.$t('personCenter.browsingHistory.confirmClearBrowsingHistory'),
|
content: this.$t('personalCenter.browsingHistory.confirmClearBrowsingHistory'),
|
||||||
onOk: function () {
|
onOk: () => {
|
||||||
that.loading = true
|
this.loading = true
|
||||||
clearBrowsingHistory({ ids: ids }).then((res) => {
|
clearBrowsingHistory().then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 重新计算分页问题
|
this.$message.success(res.message)
|
||||||
that.reCalculatePage(that.selectedRowKeys.length)
|
this.loadData()
|
||||||
that.$message.success(res.message)
|
this.onClearSelected()
|
||||||
that.loadData()
|
|
||||||
that.onClearSelected()
|
|
||||||
} else {
|
} else {
|
||||||
that.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
that.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -5,30 +5,18 @@
|
|||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
|
||||||
<!--标准类别-->
|
|
||||||
<a-form-item :label="$t('personalCenter.collection.standardCategory')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
||||||
<j-dict-select-tag
|
|
||||||
v-model="queryParam.state"
|
|
||||||
:placeholder="$t('pleaseSelect') + $t('personalCenter.collection.standardCategory')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false"
|
|
||||||
:dictCode="'state'"
|
|
||||||
/>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<!--标准号-->
|
<!--标准号-->
|
||||||
<a-form-item :label="$t('personalCenter.collection.standardNo')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('personalCenter.collection.standardNo')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('personalCenter.collection.standardNo')"
|
<j-input :placeholder="$t('pleaseEnter') + $t('personalCenter.collection.standardNo')"
|
||||||
v-model="queryParam.standardNo"></a-input>
|
v-model="queryParam.standardNumber"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<!--标准名称-->
|
<!--标准名称-->
|
||||||
<a-form-item :label="$t('personalCenter.collection.standardName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('personalCenter.collection.standardName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('personalCenter.collection.standardName')"
|
<j-input :placeholder="$t('pleaseEnter') + $t('personalCenter.collection.standardName')"
|
||||||
v-model="queryParam.standardName"></a-input>
|
v-model="queryParam.standardName"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
@@ -92,7 +80,7 @@ export default {
|
|||||||
title: this.$t('personalCenter.collection.standardNo'),
|
title: this.$t('personalCenter.collection.standardNo'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'standardNo',
|
dataIndex: 'standardNumber',
|
||||||
scopedSlots: { customRender: 'toDetail' }
|
scopedSlots: { customRender: 'toDetail' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -113,14 +101,14 @@ export default {
|
|||||||
title: this.$t('personalCenter.collection.newCarTypeDate'),
|
title: this.$t('personalCenter.collection.newCarTypeDate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'newCarTypeDate',
|
dataIndex: 'newModelImplementationDate',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('personalCenter.collection.productCarDate'),
|
title: this.$t('personalCenter.collection.productCarDate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'productCarDate',
|
dataIndex: 'onTheProductionDate',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -147,7 +135,11 @@ export default {
|
|||||||
handleGoDetail (record) {
|
handleGoDetail (record) {
|
||||||
let path = ''
|
let path = ''
|
||||||
// 需要先判断是哪种标准
|
// 需要先判断是哪种标准
|
||||||
if (record.type === 3) {
|
if (record.source === '1') {
|
||||||
|
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||||
|
} else if (record.source === '2') {
|
||||||
|
path = '/standardRegulationLibrary/OverseasStandardDetail'
|
||||||
|
} else if (record.source === '3') {
|
||||||
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
|
||||||
}
|
}
|
||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
|
|||||||
@@ -6,15 +6,15 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<a-form-item :label="$t('personalCenter.receivedShare.pushSearch')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('personalCenter.receivedShare.pushSearch')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input :placeholder="$t('personalCenter.receivedShare.enterPushInfo')" v-model="queryParam.transmitSearch"></a-input>
|
<a-input :placeholder="$t('personalCenter.receivedShare.enterPushInfo')" v-model="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<a-form-item :label="$t('personalCenter.receivedShare.owningPlate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('personalCenter.receivedShare.owningPlate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-dict-select-tag
|
<j-dict-select-tag
|
||||||
:placeholder="$t('pleaseEnter')+$t('personalCenter.receivedShare.owningPlate')"
|
:placeholder="$t('pleaseEnter')+$t('personalCenter.receivedShare.owningPlate')"
|
||||||
dict-code="inspect_status"
|
dict-code="sector"
|
||||||
v-model="queryParam.owningPlate">
|
v-model="queryParam.source">
|
||||||
</j-dict-select-tag>
|
</j-dict-select-tag>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -53,8 +53,8 @@
|
|||||||
<!-- 接收时间,单独写出来是解决会有滚动条的问题 -->
|
<!-- 接收时间,单独写出来是解决会有滚动条的问题 -->
|
||||||
<template slot="receiptTime" slot-scope="{text, record}">
|
<template slot="receiptTime" slot-scope="{text, record}">
|
||||||
<a-tooltip overlay-class-name="tooltip-style">
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
<template slot="title">{{ record.receiptTime || record.receiptTime === 0 ? record.receiptTime : global.emptyLine }}</template>
|
<template slot="title">{{ record.sharingTime || record.sharingTime === 0 ? record.sharingTime : global.emptyLine }}</template>
|
||||||
<div class="table-text">{{ record.receiptTime || record.receiptTime === 0 ? record.receiptTime : global.emptyLine }}</div>
|
<div class="table-text">{{ record.sharingTime || record.sharingTime === 0 ? record.sharingTime : global.emptyLine }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
title: this.$t('personalCenter.receivedShare.owningPlate'),
|
title: this.$t('personalCenter.receivedShare.owningPlate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'owningPlate',
|
dataIndex: 'source_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -99,7 +99,7 @@ export default {
|
|||||||
title: this.$t('personalCenter.receivedShare.forwarder'),
|
title: this.$t('personalCenter.receivedShare.forwarder'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'forwarder',
|
dataIndex: 'sharerName',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -110,8 +110,8 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: '',
|
list: '/personal/lawsStandardSharing/received/page',
|
||||||
deleteBatch: ''
|
deleteBatch: '/personal/lawsStandardSharing/deleteBatch'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,15 +6,15 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<a-form-item :label="$t('personalCenter.sentShare.transmitSearch')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('personalCenter.sentShare.transmitSearch')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input :placeholder="$t('personalCenter.sentShare.enterTransmitSearch')" v-model="queryParam.transmitSearch"></a-input>
|
<a-input :placeholder="$t('personalCenter.sentShare.enterTransmitSearch')" v-model="queryParam.title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<a-form-item :label="$t('personalCenter.sentShare.owningPlate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('personalCenter.sentShare.owningPlate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-dict-select-tag
|
<j-dict-select-tag
|
||||||
:placeholder="$t('pleaseEnter')+$t('personalCenter.sentShare.owningPlate')"
|
:placeholder="$t('pleaseEnter')+$t('personalCenter.sentShare.owningPlate')"
|
||||||
dict-code="inspect_status"
|
dict-code="sector"
|
||||||
v-model="queryParam.owningPlate">
|
v-model="queryParam.source">
|
||||||
</j-dict-select-tag>
|
</j-dict-select-tag>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -53,8 +53,8 @@
|
|||||||
<!-- 转发时间,单独写出来是解决会有滚动条的问题 -->
|
<!-- 转发时间,单独写出来是解决会有滚动条的问题 -->
|
||||||
<template slot="transmitTime" slot-scope="{text, record}">
|
<template slot="transmitTime" slot-scope="{text, record}">
|
||||||
<a-tooltip overlay-class-name="tooltip-style">
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
<template slot="title">{{ record.transmitTime || record.transmitTime === 0 ? record.transmitTime : global.emptyLine }}</template>
|
<template slot="title">{{ record.sharingTime || record.sharingTime === 0 ? record.sharingTime : global.emptyLine }}</template>
|
||||||
<div class="table-text">{{ record.transmitTime || record.transmitTime === 0 ? record.transmitTime : global.emptyLine }}</div>
|
<div class="table-text">{{ record.sharingTime || record.sharingTime === 0 ? record.sharingTime : global.emptyLine }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
title: this.$t('personalCenter.sentShare.owningPlate'),
|
title: this.$t('personalCenter.sentShare.owningPlate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'owningPlate',
|
dataIndex: 'source_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -99,7 +99,7 @@ export default {
|
|||||||
title: this.$t('personalCenter.sentShare.recipient'),
|
title: this.$t('personalCenter.sentShare.recipient'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'title',
|
dataIndex: 'recipientName',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -110,8 +110,8 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: '',
|
list: '/personal/lawsStandardSharing/issued/page',
|
||||||
deleteBatch: ''
|
deleteBatch: '/personal/lawsStandardSharing/deleteBatch'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user