修改市场法规、认证清单的发布

This commit is contained in:
范强强
2023-04-24 15:02:34 +08:00
parent e38ab19d4b
commit bc46d0a37a
7 changed files with 243 additions and 65 deletions
+2
View File
@@ -1807,4 +1807,6 @@ module.exports = {
andTheOperatorCurrentData:' And the operator is the responsible person for the current data',
upgradeInstructions:'Upgrade Instructions',
upgradeOrNot:'Upgrade or not',
operationRecords:'Operation Records',
versionUpdatedRecord:'Version Updated Record',
}
+2
View File
@@ -1909,4 +1909,6 @@ module.exports = {
andTheOperatorCurrentData:',并且登录人为当前数据的责任人',
upgradeInstructions:'升版说明',
upgradeOrNot:'是否升版',
operationRecords:'操作记录',
versionUpdatedRecord:'版本更新记录',
}
+90 -58
View File
@@ -12,15 +12,21 @@
{{$t('cancel')}}
</a-button>
</template>
<a-table
class="table"
:components="drag(columns,'columns')"
:columns="columns"
:pagination="false"
:scroll="{x:'100%',y: 420}"
:data-source="dataSource"
:loading="loading"
>
<a-tabs v-model="active" @change="activeChange" v-if="isVersion">
<a-tab-pane :key="$t('operationRecords')" :tab="$t('operationRecords')">
</a-tab-pane>
<a-tab-pane :key="$t('versionUpdatedRecord')" :tab="$t('versionUpdatedRecord')"></a-tab-pane>
</a-tabs>
<div v-if="active == this.$t('operationRecords')">
<a-table
class="table"
:components="drag(columns,'columns')"
:columns="columns"
:pagination="false"
:scroll="{x:'100%',y: 420}"
:data-source="dataSource"
:loading="loading"
>
<span slot="content" slot-scope="text,record">
<a-tooltip placement="topLeft" overlayClassName="tooltipColor">
<template slot="title">
@@ -29,64 +35,88 @@
<span v-html="text"></span>
</a-tooltip>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize "
:total="total"
:current="pageNo"
@change="onChange"
@showSizeChange="SizeChange"
/>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize "
:total="total"
:current="pageNo"
@change="onChange"
@showSizeChange="SizeChange"
/>
</div>
</div>
<versionUpdatedRecordList :url="url"
ref="versionUpdatedRecordRef"
v-else-if="active == this.$t('versionUpdatedRecord')"/>
</a-modal>
</template>
<script>
import { getAction, postAction, } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
import versionUpdatedRecordList from './versionUpdatedRecordList'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default {
name: 'index',
props:['url'],
mixins:[ResizeHeader, ResizeColumnProvide],
data(){
return{
visible:false,
confirmLoading:false,
dataSource:[],
loading:false,
pageNo: 1,
pageSize: 10,
queryId:{},
total: 0,
columns: [
{
title: this.$t('OperationDetails'),
dataIndex: 'logContent',
align: 'left',
ellipsis: true,
scopedSlots: { customRender: 'content' },
width: 664
},
{
title: this.$t('OperationTime'),
dataIndex: 'createTime',
align: 'left',
ellipsis: true,
width: 180
},
]
}
props: ['url','isVersion'],
mixins: [ResizeHeader, ResizeColumnProvide],
components: {
versionUpdatedRecordList
},
data() {
return {
visible: false,
confirmLoading: false,
dataSource: [],
loading: false,
pageNo: 1,
pageSize: 10,
queryId: {},
total: 0,
versionData:{},
active: this.$t('operationRecords'),
columns: [
{
title: this.$t('OperationDetails'),
dataIndex: 'logContent',
align: 'left',
ellipsis: true,
scopedSlots: { customRender: 'content' },
width: 664
},
{
title: this.$t('OperationTime'),
dataIndex: 'createTime',
align: 'left',
ellipsis: true,
width: 180
}
]
}
},
mounted() {
},
methods:{
getList(data){
methods: {
activeChange(value) {
if (value == this.$t('operationRecords')) {
this.pageNo = 1
this.bussLogList()
} else if (value == this.$t('versionUpdatedRecord')) {
this.$nextTick(()=>{
this.$refs.versionUpdatedRecordRef.getList(this.versionData)
})
}
},
getList(data,versionData) {
this.visible = true
if (versionData){
this.versionData = versionData
}
this.active = this.$t('operationRecords')
this.pageNo = 1
this.queryId = data
this.bussLogList()
@@ -100,7 +130,7 @@
this.pageSize = pageSize
this.bussLogList()
},
bussLogList(){
bussLogList() {
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
@@ -116,7 +146,7 @@
this.loading = false
}
})
},
}
}
}
</script>
@@ -126,11 +156,13 @@
text-align: right;
margin-top: 20px;
}
/deep/.tooltipColor .ant-tooltip-inner {
/deep/ .tooltipColor .ant-tooltip-inner {
color: #333;
background-color: #fff !important;
}
/deep/.tooltipColor .ant-tooltip-arrow::before {
/deep/ .tooltipColor .ant-tooltip-arrow::before {
background-color: #fff;
}
</style>
@@ -0,0 +1,138 @@
<template>
<div>
<a-table
class="table"
:columns="columns"
:components="drag(columns,'columns')"
:pagination="false"
:scroll="{x:'100%',y: 420}"
:data-source="dataSource"
:loading="loading"
>
<span slot="content" slot-scope="text,record">
<a-tooltip placement="topLeft" overlayClassName="tooltipColor">
<template slot="title">
<span v-html="text"></span>
</template>
<span v-html="text"></span>
</a-tooltip>
</span>
</a-table>
<div class="page" v-if="dataSource.length > 0">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize "
:total="total"
:current="pageNo"
@change="onChange"
@showSizeChange="SizeChange"
/>
</div>
</div>
</template>
<script>
import { getAction, postAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default {
name: 'versionUpdatedRecordList',
mixins: [ResizeHeader, ResizeColumnProvide],
props: ['url'],
data() {
return {
visible: false,
confirmLoading: false,
dataSource: [],
loading: false,
pageNo: 1,
pageSize: 10,
versionData: {},
total: 0,
active: this.$t('operationRecords'),
columns: [
{
title: this.$t('VersionNumber'),
dataIndex: 'versionNum',
align: 'left',
ellipsis: true,
width: 100
},
{
title: this.$t('upgradeInstructions'),
dataIndex: 'upgradeExplanation',
align: 'left',
ellipsis: true,
width: 360
},
{
title: this.$t('Operator'),
dataIndex: 'createBy',
align: 'left',
ellipsis: true,
width: 100
},
{
title: this.$t('OperationTime'),
dataIndex: 'createTime',
align: 'left',
ellipsis: true,
width: 150
}
]
}
},
mounted() {
},
methods: {
getList(data) {
this.pageNo = 1
this.versionData = data
this.bussLogList()
},
onChange(page, pageSize) {
this.pageNo = page
this.bussLogList()
},
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.bussLogList()
},
bussLogList() {
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...this.versionData
}
this.loading = true
getAction(this.url.versionList, query).then((res) => {
if (res.success) {
this.dataSource = res.result.records
this.total = res.result.total
this.loading = false
} else {
this.loading = false
}
})
}
}
}
</script>
<style scoped>
.page {
text-align: right;
margin-top: 20px;
}
/deep/ .tooltipColor .ant-tooltip-inner {
color: #333;
background-color: #fff !important;
}
/deep/ .tooltipColor .ant-tooltip-arrow::before {
background-color: #fff;
}
</style>
@@ -323,7 +323,7 @@
</div>
<addModel :url="url" ref="addModelRef" @addModelList="addModelList" @visible='sVisible'/>
<editModel :url="url" ref="editModelRef" @editModelList="editModelList" @visible='sVisible'/>
<UpdateLog :url="url" ref="UpdateLogRef" @visible='sVisible'/>
<UpdateLog :url="url" :isVersion="true" ref="UpdateLogRef" @visible='sVisible'/>
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef" @visible='sVisible'/>
<transferListvirtal :url="url" @transferListFormHomo="transferListFormHomo" ref="transferListvirtalRef"/>
<batSetting :url="url" ref="batSettingRef" @batSettingList="batSettingList"/>
@@ -434,7 +434,8 @@
exportData: '/dummy/dummyInventoryInfoEO/exportData',
exportTemplate: '/dummy/dummyInventoryInfoEO/exportTemplate',
getSysCategoryTree: '/sys/category/getSysCategoryTree',
logList: '/dummy/dummyLogEO/page'
logList: '/dummy/dummyLogEO/page',
versionList:'/log/marketListVersionUpdateLogEO/page',
},
loading: false,
dataSource: [],
@@ -1062,7 +1063,8 @@
this.getList()
},
UpdateLogClick() {
this.$refs.UpdateLogRef.getList({ dummyInventoryBaseId: this.$route.query.id })
this.$refs.UpdateLogRef.getList({ dummyInventoryBaseId: this.$route.query.id, },
{listId:this.$route.query.id,listType:'Market Regulation List'})
},
searchQuery() {
this.getList()
@@ -22,7 +22,7 @@
<a-radio :value="1">
</a-radio>
<a-radio :value="2">
<a-radio :value="0">
</a-radio>
</a-radio-group>
@@ -244,7 +244,7 @@
</a-card>
</div>
</div>
<UpdateLog :url="url" ref="UpdateLogRef"/>
<UpdateLog :url="url" :isVersion="true" ref="UpdateLogRef"/>
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/>
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
<edit-model :url="url" ref="editModelRef" @editModelList="editModelList"></edit-model>
@@ -299,7 +299,8 @@
editModel: '/authDummy/authDummyInventoryInfoEO/edit',//编辑
setBatch: '/authDummy/authDummyInventoryInfoEO/setBatch',//批量设置
importZipUrl: '/authDummy/authDummyInventoryInfoEO/importData',//导入
number: '/project/projectLawsInventoryEO/list'
number: '/project/projectLawsInventoryEO/list',
versionList:'/log/marketListVersionUpdateLogEO/page',
},
queryParam: {},
orderByField: '',
@@ -416,7 +417,8 @@
this.toggleSearchStatus = !this.toggleSearchStatus
},
UpdateLogClick() {
this.$refs.UpdateLogRef.getList({ authDummyInventoryBaseId: this.$route.query.id })
this.$refs.UpdateLogRef.getList({ authDummyInventoryBaseId: this.$route.query.id },
{listId:this.$route.query.id,listType:'Market Certification List'})
},
//搜索
searchQuery() {