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

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