[update] 市场法规清单,清单列表增加排序字段,增加上移下移按钮;外标详情页内容简介整行显示
This commit is contained in:
@@ -156,6 +156,8 @@ const marketRegulationDetailCopy = (params) => postAction('/laws/marketStandardD
|
|||||||
const marketRegulationDetailAdd = (params) => postAction('/laws/marketStandardDetail/add', params)
|
const marketRegulationDetailAdd = (params) => postAction('/laws/marketStandardDetail/add', params)
|
||||||
// 市场法规清单-清单列表-编辑
|
// 市场法规清单-清单列表-编辑
|
||||||
const marketRegulationDetailEdit = (params) => postAction('/laws/marketStandardDetail/edit', params)
|
const marketRegulationDetailEdit = (params) => postAction('/laws/marketStandardDetail/edit', params)
|
||||||
|
// 市场法规清单-清单列表-上移、下移
|
||||||
|
const marketRegulationDetailMove = (params) => postAction('/laws/marketStandardDetail/move', params)
|
||||||
// 市场法规清单-发布-看该清单是否可以发布
|
// 市场法规清单-发布-看该清单是否可以发布
|
||||||
const marketRegulationDetailPublish = (params) => postAction('/laws/marketStandard/publish', params)
|
const marketRegulationDetailPublish = (params) => postAction('/laws/marketStandard/publish', params)
|
||||||
|
|
||||||
@@ -248,5 +250,6 @@ export {
|
|||||||
marketRegulationDetailCopy,
|
marketRegulationDetailCopy,
|
||||||
marketRegulationDetailAdd,
|
marketRegulationDetailAdd,
|
||||||
marketRegulationDetailEdit,
|
marketRegulationDetailEdit,
|
||||||
|
marketRegulationDetailMove,
|
||||||
marketRegulationDetailPublish
|
marketRegulationDetailPublish
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,6 +256,8 @@ module.exports = {
|
|||||||
updatePerson: 'Regenerator',
|
updatePerson: 'Regenerator',
|
||||||
updateTime: 'Update Time',
|
updateTime: 'Update Time',
|
||||||
handlingSuggestions: 'Handling Suggestions',
|
handlingSuggestions: 'Handling Suggestions',
|
||||||
|
upMove: 'Move Up',
|
||||||
|
downMove: 'Move Down',
|
||||||
// 标准字段
|
// 标准字段
|
||||||
standardField: {
|
standardField: {
|
||||||
standardEnglishName: 'Regulation English Name',
|
standardEnglishName: 'Regulation English Name',
|
||||||
|
|||||||
@@ -256,6 +256,8 @@ module.exports = {
|
|||||||
updatePerson: '更新人',
|
updatePerson: '更新人',
|
||||||
updateTime: '更新时间',
|
updateTime: '更新时间',
|
||||||
handlingSuggestions: '处理意见',
|
handlingSuggestions: '处理意见',
|
||||||
|
upMove: '上移',
|
||||||
|
downMove: '下移',
|
||||||
// 标准字段
|
// 标准字段
|
||||||
standardField: {
|
standardField: {
|
||||||
standardEnglishName: '标准英文名称',
|
standardEnglishName: '标准英文名称',
|
||||||
|
|||||||
@@ -37,7 +37,10 @@
|
|||||||
<template v-if="operSpecialJudgeField">
|
<template v-if="operSpecialJudgeField">
|
||||||
<template v-if="operSpecialJudge(record).length > operateMaxNum + 1">
|
<template v-if="operSpecialJudge(record).length > operateMaxNum + 1">
|
||||||
<!-- 需要更多按钮 -->
|
<!-- 需要更多按钮 -->
|
||||||
<a :class="operSpecialJudge(record)[0].text === $t('delete') ? 'operate-del-btn' : ''" @click="operationClick(operSpecialJudge(record)[0],record)">{{ operSpecialJudge(record)[0].text }}</a>
|
<template v-for="(operation, index) in operSpecialJudge(record).slice(0, operateMaxNum)">
|
||||||
|
<a :key="index" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''" @click="operationClick(operation,record)">{{ operation.text }}</a>
|
||||||
|
<a-divider v-if="index + 1 < operSpecialJudge(record).slice(0, operateMaxNum).length" type="vertical" />
|
||||||
|
</template>
|
||||||
<template v-if="operSpecialJudge(record).length > operateMaxNum">
|
<template v-if="operSpecialJudge(record).length > operateMaxNum">
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-dropdown placement="bottomCenter">
|
<a-dropdown placement="bottomCenter">
|
||||||
@@ -66,7 +69,10 @@
|
|||||||
<!-- 没有特殊判断,直接渲染operationList -->
|
<!-- 没有特殊判断,直接渲染operationList -->
|
||||||
<!-- 需要更多按钮的情况 -->
|
<!-- 需要更多按钮的情况 -->
|
||||||
<template v-if="getLineOperationList(record).length > operateMaxNum + 1">
|
<template v-if="getLineOperationList(record).length > operateMaxNum + 1">
|
||||||
<a :class="getLineOperationList(record)[0].text === $t('delete') ? 'operate-del-btn' : ''" @click="operationClick(getLineOperationList(record)[0],record)">{{ getLineOperationList(record)[0].text }}</a>
|
<template v-for="(operation, index) in operSpecialJudge(record).slice(0, operateMaxNum)">
|
||||||
|
<a :key="index" :class="operation.text === $t('delete') ? 'operate-del-btn' : ''" @click="operationClick(operation,record)">{{ operation.text }}</a>
|
||||||
|
<a-divider v-if="index + 1 < operSpecialJudge(record).slice(0, operateMaxNum).length" type="vertical" />
|
||||||
|
</template>
|
||||||
<template v-if="getLineOperationList(record).length > operateMaxNum">
|
<template v-if="getLineOperationList(record).length > operateMaxNum">
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-dropdown placement="bottomCenter">
|
<a-dropdown placement="bottomCenter">
|
||||||
|
|||||||
+8
-2
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-page-part-form" v-if="part !== DisplayAreaManagement.PROCESS_DOCUMENTATION.text && part !== DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn">
|
<div class="detail-page-part-form" v-if="part !== DisplayAreaManagement.PROCESS_DOCUMENTATION.text && part !== DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn">
|
||||||
<div class="detail-page-part-form-item" v-for="formItem in form[part]" :key="formItem.id">
|
<div class="detail-page-part-form-item" :class="needFullLineDisplayField.includes(formItem.dbFieldName) ? 'all-line-show' : ''" v-for="formItem in form[part]" :key="formItem.id">
|
||||||
<label>{{ formItem.dbFieldTxt }}</label>
|
<label>{{ formItem.dbFieldTxt }}</label>
|
||||||
<!--标准需要跳转,是标准字段且有内容的情况下在这处理-->
|
<!--标准需要跳转,是标准字段且有内容的情况下在这处理-->
|
||||||
<template v-if="standardFields.includes(formItem.dbFieldName) && !!detailData[formItem.dbFieldName]">
|
<template v-if="standardFields.includes(formItem.dbFieldName) && !!detailData[formItem.dbFieldName]">
|
||||||
@@ -232,7 +232,9 @@ export default {
|
|||||||
// 需要双语切换翻译的属性类型
|
// 需要双语切换翻译的属性类型
|
||||||
needEnNameFieldType: [FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value, FieldType.TREE_SINGLE.value],
|
needEnNameFieldType: [FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value, FieldType.TREE_SINGLE.value],
|
||||||
// 是双语切换翻译的属性,但是不翻译的字段
|
// 是双语切换翻译的属性,但是不翻译的字段
|
||||||
needEnNameTypeNotUseField: ['standard_system']
|
needEnNameTypeNotUseField: ['standard_system'],
|
||||||
|
// 需要整行显示的字段
|
||||||
|
needFullLineDisplayField: ['brief_introduction_of_the_content']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -546,6 +548,10 @@ export default {
|
|||||||
color: #D52C26;
|
color: #D52C26;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.all-line-show {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
//.icon-star1 {
|
//.icon-star1 {
|
||||||
// color: rgba(243, 129, 65);
|
// color: rgba(243, 129, 65);
|
||||||
//}
|
//}
|
||||||
|
|||||||
+57
-8
@@ -166,6 +166,9 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
|
:operateMaxNum="2"
|
||||||
|
:operationList="operationList"
|
||||||
|
@operationClick="operationClick"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 标准编号、标准名称 -->
|
<!-- 标准编号、标准名称 -->
|
||||||
@@ -176,12 +179,6 @@
|
|||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:action="{text, record}">
|
|
||||||
<a @click="handleEdit(record)" v-has="'marketStandard:detail:operate'">{{ $t('edit') }}</a>
|
|
||||||
<a-divider type="vertical" v-has="'marketStandard:detail:operate'" />
|
|
||||||
<a @click="handleDelete(record.id)" class="operate-del-btn" v-has="'marketStandard:detail:operate'">{{ $t('delete') }}</a>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
@@ -213,13 +210,14 @@ import {
|
|||||||
getForeignStandardDocumentInfo,
|
getForeignStandardDocumentInfo,
|
||||||
getMarketRegulationListById,
|
getMarketRegulationListById,
|
||||||
marketRegulationDetailCopy,
|
marketRegulationDetailCopy,
|
||||||
|
marketRegulationDetailMove,
|
||||||
marketRegulationDetailTransfer,
|
marketRegulationDetailTransfer,
|
||||||
marketRegulationGetListNumber,
|
marketRegulationGetListNumber,
|
||||||
marketRegulationListAdd,
|
marketRegulationListAdd,
|
||||||
marketRegulationListEdit
|
marketRegulationListEdit
|
||||||
} from '../../../api/standardRegulationLibraryApi'
|
} from '../../../api/standardRegulationLibraryApi'
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import { StandardSource, SecurityClass } from '../../../enums/commonEnums'
|
import { StandardSource, SecurityClass, ListState } from '../../../enums/commonEnums'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import HistoryVersionModal from './modules/HistoryVersionModal'
|
import HistoryVersionModal from './modules/HistoryVersionModal'
|
||||||
import { getFormDictTreeList } from '../../../api/api'
|
import { getFormDictTreeList } from '../../../api/api'
|
||||||
@@ -282,6 +280,11 @@ export default {
|
|||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 20 }
|
sm: { span: 20 }
|
||||||
},
|
},
|
||||||
|
/* 排序参数 */
|
||||||
|
isorter: {
|
||||||
|
column: 'orderNo,createTime',
|
||||||
|
order: 'asc,desc'
|
||||||
|
},
|
||||||
validatorRules: {
|
validatorRules: {
|
||||||
// 适用市场
|
// 适用市场
|
||||||
country: {
|
country: {
|
||||||
@@ -472,10 +475,36 @@ export default {
|
|||||||
scopedSlots: { customRender: 'action' },
|
scopedSlots: { customRender: 'action' },
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 170
|
width: 220
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
|
operationList: [
|
||||||
|
// 上移
|
||||||
|
{
|
||||||
|
text: this.$t('upMove'),
|
||||||
|
clickEvent: 'handleUp',
|
||||||
|
has: 'marketStandard:detail:operate'
|
||||||
|
},
|
||||||
|
// 下移
|
||||||
|
{
|
||||||
|
text: this.$t('downMove'),
|
||||||
|
clickEvent: 'handleDown',
|
||||||
|
has: 'marketStandard:detail:operate'
|
||||||
|
},
|
||||||
|
// 编辑
|
||||||
|
{
|
||||||
|
text: this.$t('edit'),
|
||||||
|
clickEvent: 'handleEdit',
|
||||||
|
has: 'marketStandard:detail:operate'
|
||||||
|
},
|
||||||
|
// 删除
|
||||||
|
{
|
||||||
|
text: this.$t('delete'),
|
||||||
|
clickEvent: 'handleDelete',
|
||||||
|
has: 'marketStandard:detail:operate'
|
||||||
|
}
|
||||||
|
],
|
||||||
showList: false, // 是否展示清单
|
showList: false, // 是否展示清单
|
||||||
url: {
|
url: {
|
||||||
list: '/laws/marketStandardDetail/page',
|
list: '/laws/marketStandardDetail/page',
|
||||||
@@ -711,6 +740,26 @@ export default {
|
|||||||
id: record.standardId
|
id: record.standardId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 上移
|
||||||
|
handleUp (record) {
|
||||||
|
this.loading = true
|
||||||
|
const param = {}
|
||||||
|
param.id = this.model.id
|
||||||
|
param.manifestId = record.id
|
||||||
|
param.moveFlag = 'up'
|
||||||
|
marketRegulationDetailMove(param).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.loadData()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 下移
|
||||||
|
handleDown () {
|
||||||
|
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit (record) {
|
handleEdit (record) {
|
||||||
|
|||||||
+16
-1
@@ -143,6 +143,13 @@
|
|||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
v-decorator.trim="[ 'remark', validatorRules.remark ]" />
|
v-decorator.trim="[ 'remark', validatorRules.remark ]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
<!-- 排序 -->
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('sort')">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter') + $t('sort')"
|
||||||
|
:maxLength="50"
|
||||||
|
@change="e => e.target.value = e.target.value.replace(/[^0-9.]/g, '')"
|
||||||
|
v-decorator.trim="[ 'orderNo', validatorRules.orderNo ]" />
|
||||||
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</div>
|
||||||
@@ -276,6 +283,14 @@ export default {
|
|||||||
message: this.$t('pleaseSelect') + this.$t('standardRegulationLibrary.marketListField.dynamicType')
|
message: this.$t('pleaseSelect') + this.$t('standardRegulationLibrary.marketListField.dynamicType')
|
||||||
}],
|
}],
|
||||||
validateTrigger: 'change'
|
validateTrigger: 'change'
|
||||||
|
},
|
||||||
|
// 排序
|
||||||
|
orderNo: {
|
||||||
|
rules: [{
|
||||||
|
required: false,
|
||||||
|
message: this.$t('pleaseEnter') + this.$t('sort')
|
||||||
|
}],
|
||||||
|
validateTrigger: 'blur'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
manifestId: '' // 基础信息清单id
|
manifestId: '' // 基础信息清单id
|
||||||
@@ -305,7 +320,7 @@ export default {
|
|||||||
this.form.setFieldsValue(pick(this.model, 'standardNumber', 'standardName', 'standardEnglishName',
|
this.form.setFieldsValue(pick(this.model, 'standardNumber', 'standardName', 'standardEnglishName',
|
||||||
'type', 'newProductImplDate', 'newAuthImplDate', 'registrationDate', 'country',
|
'type', 'newProductImplDate', 'newAuthImplDate', 'registrationDate', 'country',
|
||||||
'authenticationObject', 'certifyTheDeliverables', 'mainDept', 'mainDeptProfMode', 'associateDept',
|
'authenticationObject', 'certifyTheDeliverables', 'mainDept', 'mainDeptProfMode', 'associateDept',
|
||||||
'associateDeptProfMode', 'applicableVehicle', 'dynamicType', 'batchLimit', 'autopilotLevel', 'requireType', 'remark'))
|
'associateDeptProfMode', 'applicableVehicle', 'dynamicType', 'batchLimit', 'autopilotLevel', 'requireType', 'remark', 'orderNo'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getCountryOption () {
|
getCountryOption () {
|
||||||
|
|||||||
Reference in New Issue
Block a user