[update] 企标临时权限记录联调
This commit is contained in:
@@ -33,7 +33,7 @@ const isCanLookDetail = (params) => getAction('/laws/standard/enterprise/detailP
|
|||||||
// 企标级别映射列表获取
|
// 企标级别映射列表获取
|
||||||
const getStandardGradeClassification = (params) => getAction('/sys/lawsGrade/list', params)
|
const getStandardGradeClassification = (params) => getAction('/sys/lawsGrade/list', params)
|
||||||
// 解除授权
|
// 解除授权
|
||||||
const cancelAuthor = (params) => getAction('', params)
|
const cancelAuthor = (params) => getAction('/laws/standard/enterprise/revokeAuth', params)
|
||||||
|
|
||||||
// 企标详情-获取更新记录
|
// 企标详情-获取更新记录
|
||||||
const detailGetUpdateRecord = (params) => getAction('/laws/standard/enterprise/getUpdateRecordList', params)
|
const detailGetUpdateRecord = (params) => getAction('/laws/standard/enterprise/getUpdateRecordList', params)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ module.exports = {
|
|||||||
shiftOutStandard: 'Shift Out Standard',
|
shiftOutStandard: 'Shift Out Standard',
|
||||||
initChange: 'Initiate Changes',
|
initChange: 'Initiate Changes',
|
||||||
temporaryPermissionSet: 'Temporary Permission Setting',
|
temporaryPermissionSet: 'Temporary Permission Setting',
|
||||||
|
temporaryPermissionRecord: '临时权限记录',
|
||||||
collection: 'Collect',
|
collection: 'Collect',
|
||||||
cancelCollection: 'Cancel Collection',
|
cancelCollection: 'Cancel Collection',
|
||||||
exportExcelFile: 'Enterprise Standard Table',
|
exportExcelFile: 'Enterprise Standard Table',
|
||||||
@@ -33,7 +34,8 @@ module.exports = {
|
|||||||
authorizationExpirationDate: '授权到期日期',
|
authorizationExpirationDate: '授权到期日期',
|
||||||
cancelAuthor: '解除授权',
|
cancelAuthor: '解除授权',
|
||||||
authorizationDate: '授权日期',
|
authorizationDate: '授权日期',
|
||||||
authorizationStandard: '授权企标'
|
authorizationStandard: '授权企标',
|
||||||
|
confirmCancelAuthor: '确认解除授权?'
|
||||||
},
|
},
|
||||||
// 评审会记录
|
// 评审会记录
|
||||||
reviewMeeting: {
|
reviewMeeting: {
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ module.exports = {
|
|||||||
authorizationExpirationDate: '授权到期日期',
|
authorizationExpirationDate: '授权到期日期',
|
||||||
cancelAuthor: '解除授权',
|
cancelAuthor: '解除授权',
|
||||||
authorizationDate: '授权日期',
|
authorizationDate: '授权日期',
|
||||||
authorizationStandard: '授权企标'
|
authorizationStandard: '授权企标',
|
||||||
|
confirmCancelAuthor: '确认解除授权?'
|
||||||
},
|
},
|
||||||
// 评审会记录
|
// 评审会记录
|
||||||
reviewMeeting: {
|
reviewMeeting: {
|
||||||
|
|||||||
+66
-28
@@ -2,7 +2,7 @@
|
|||||||
<j-modal
|
<j-modal
|
||||||
:title="title"
|
:title="title"
|
||||||
:maskClosable="true"
|
:maskClosable="true"
|
||||||
:width="1000"
|
:width="1200"
|
||||||
:closable="true"
|
:closable="true"
|
||||||
switchFullscreen
|
switchFullscreen
|
||||||
:footer="false"
|
:footer="false"
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
<a-col :sm="8">
|
<a-col :sm="8">
|
||||||
<!-- 企标编号 -->
|
<!-- 企标编号 -->
|
||||||
<a-form-item :label="$t('enterpriseStandardLibrary.reviewMeeting.enterpriseStandardNum')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('enterpriseStandardLibrary.reviewMeeting.enterpriseStandardNum')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('enterpriseStandardLibrary.reviewMeeting.enterpriseStandardNum')"
|
:placeholder="$t('pleaseEnter') + $t('enterpriseStandardLibrary.reviewMeeting.enterpriseStandardNum')"
|
||||||
v-model="queryParam.standardNumber">
|
v-model="queryParam.standardNumber">
|
||||||
</j-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 授权到期日期 -->
|
<!-- 授权到期日期 -->
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<a-form-item :label="$t('enterpriseStandardLibrary.standard.authorizationExpirationDate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('enterpriseStandardLibrary.standard.authorizationExpirationDate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-range-picker v-model="queryParam.authorizationExpirationDate"
|
<a-range-picker v-model="queryParam.authorizationExpirationDate"
|
||||||
format="YYYY-MM-DD" value-format="YYYY-MM-DD"
|
format="YYYY-MM-DD" value-format="YYYY-MM-DD"
|
||||||
@change="onChange('authorizationExpirationDate')"></a-range-picker>
|
@change="onChange"></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :sm="8">
|
<a-col :sm="8">
|
||||||
@@ -52,10 +52,10 @@
|
|||||||
<a-col :sm="8">
|
<a-col :sm="8">
|
||||||
<!-- 授权人员 -->
|
<!-- 授权人员 -->
|
||||||
<a-form-item :label="$t('enterpriseStandardLibrary.standard.authorizationUser')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item :label="$t('enterpriseStandardLibrary.standard.authorizationUser')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('enterpriseStandardLibrary.standard.authorizationUser')"
|
:placeholder="$t('pleaseEnter') + $t('enterpriseStandardLibrary.standard.authorizationUser')"
|
||||||
v-model="queryParam.authorizationUser">
|
v-model="queryParam.authUser">
|
||||||
</j-input>
|
</a-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">
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%', y: 'calc(100vh - 500px)'}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
<template v-slot:action="{text, record}">
|
<template v-slot:action="{text, record}">
|
||||||
@@ -91,6 +91,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|||||||
import { cancelAuthor } from '@/api/enterpriseStandardLibraryApi'
|
import { cancelAuthor } from '@/api/enterpriseStandardLibraryApi'
|
||||||
import { queryDepartTreeList } from '@/api/api'
|
import { queryDepartTreeList } from '@/api/api'
|
||||||
import JTable from '@/components/jero/JTable'
|
import JTable from '@/components/jero/JTable'
|
||||||
|
import { getAction } from '../../../../api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TemporaryPermissionRecord',
|
name: 'TemporaryPermissionRecord',
|
||||||
@@ -123,35 +124,35 @@ export default {
|
|||||||
title: this.$t('enterpriseStandardLibrary.standard.authorizationDate'),
|
title: this.$t('enterpriseStandardLibrary.standard.authorizationDate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'authorizationDate',
|
dataIndex: 'createTime',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 授权到期日期
|
{ // 授权到期日期
|
||||||
title: this.$t('enterpriseStandardLibrary.standard.maturityDate'),
|
title: this.$t('enterpriseStandardLibrary.standard.maturityDate'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'maturityDate',
|
dataIndex: 'authExpireDate',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 授权部门
|
{ // 授权部门
|
||||||
title: this.$t('enterpriseStandardLibrary.standard.authorizationDepart'),
|
title: this.$t('enterpriseStandardLibrary.standard.authorizationDepart'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'authorizationDepart',
|
dataIndex: 'authDept_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 授权人员
|
{ // 授权人员
|
||||||
title: this.$t('enterpriseStandardLibrary.standard.authorizationUser'),
|
title: this.$t('enterpriseStandardLibrary.standard.authorizationUser'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'authorizationUser',
|
dataIndex: 'authUser_dictText',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 授权企标
|
{ // 授权企标
|
||||||
title: this.$t('enterpriseStandardLibrary.standard.authorizationStandard'),
|
title: this.$t('enterpriseStandardLibrary.standard.authorizationStandard'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'authorizationStandard',
|
dataIndex: 'standardNumber',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -163,7 +164,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: ''
|
list: '/laws/standard/enterprise/tempAuthRecord'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -185,29 +186,65 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
loadData (arg) {
|
||||||
|
if (!this.url.list) {
|
||||||
|
this.$message.warning('请设置url.list属性!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// 加载数据 若传入参数1则加载第一页的内容
|
||||||
|
if (arg === 1) {
|
||||||
|
this.ipagination.current = 1
|
||||||
|
}
|
||||||
|
const params = this.getQueryParams()// 查询条件
|
||||||
|
if (params.authorizationDepart && params.authorizationDepart.length > 0) {
|
||||||
|
params.authDept = params.authorizationDepart.map(item => item.value).join(',')
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
// update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||||
|
this.dataSource = res.result.records || res.result
|
||||||
|
if (res.result.total) {
|
||||||
|
this.ipagination.total = res.result.total
|
||||||
|
} else {
|
||||||
|
this.ipagination.total = 0
|
||||||
|
}
|
||||||
|
// update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
filterTreeOption (input, option) {
|
filterTreeOption (input, option) {
|
||||||
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
||||||
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
},
|
},
|
||||||
onChange (item) {
|
onChange () {
|
||||||
if (this.queryParam[item] && this.queryParam[item].length > 0) {
|
if (this.queryParam.authorizationExpirationDate && this.queryParam.authorizationExpirationDate.length > 0) {
|
||||||
const startDate = item + '_start'
|
this.queryParam.startAuthExpireDate = this.queryParam.authorizationExpirationDate[0]
|
||||||
const endDate = item + '_end'
|
this.queryParam.endAuthExpireDate = this.queryParam.authorizationExpirationDate[1]
|
||||||
this.queryParam[startDate] = this.queryParam[item][0]
|
|
||||||
this.queryParam[endDate] = this.queryParam[item][1]
|
|
||||||
} else {
|
} else {
|
||||||
this.queryParam[item] = []
|
this.queryParam.authorizationExpirationDate = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 解除授权
|
// 解除授权
|
||||||
handleCancelAuthor (record) {
|
handleCancelAuthor (record) {
|
||||||
const params = {}
|
this.$confirm({
|
||||||
params.id = record.id
|
title: this.$t('enterpriseStandardLibrary.standard.cancelAuthor'),
|
||||||
cancelAuthor(params).then(res => {
|
content: this.$t('enterpriseStandardLibrary.standard.confirmCancelAuthor'),
|
||||||
if (res.success) {
|
onOk: () => {
|
||||||
this.$message.success(res.message)
|
const params = {}
|
||||||
} else {
|
params.id = record.id
|
||||||
this.$message.warning(res.message)
|
cancelAuthor(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.loadData()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -215,6 +252,7 @@ export default {
|
|||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
|
this.queryParam = {}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user