[update 过程稿件判断] 外部详情、企标详情、搜索中心用到过程稿件名判断,中英文抽离出来,标签管理改了之后要同步修改
This commit is contained in:
@@ -259,3 +259,11 @@ export const OcrConvertStateEnums = {
|
||||
CONVERTING: { text: '转换中', value: '1' },
|
||||
CONVERTED: { text: '转换完成', value: '2' }
|
||||
}
|
||||
|
||||
/**
|
||||
* 展示区域管理
|
||||
* TODO 标签管理要改了,这里也要同步一下
|
||||
*/
|
||||
export const DisplayAreaManagement = {
|
||||
PROCESS_DOCUMENTATION: { text: '过程稿件', textEn: 'Process Documentation' }
|
||||
}
|
||||
|
||||
@@ -204,7 +204,13 @@
|
||||
|
||||
<script>
|
||||
import { filterObj } from '@/utils/util'
|
||||
import { StandardSource, FieldType, EnterpriseStandardStatus, StandardStatus } from '@/enums/commonEnums'
|
||||
import {
|
||||
StandardSource,
|
||||
FieldType,
|
||||
EnterpriseStandardStatus,
|
||||
StandardStatus,
|
||||
DisplayAreaManagement
|
||||
} from '@/enums/commonEnums'
|
||||
import { getAction } from '@/api/manage'
|
||||
import { getFormDictTreeList, queryDepartTreeList, getFileInfo } from '@/api/api'
|
||||
import {
|
||||
@@ -603,8 +609,8 @@ export default {
|
||||
const form = data
|
||||
const partList = Object.keys(data)
|
||||
let part
|
||||
const partZh = '过程稿件'
|
||||
const partEn = 'Process Manuscript'
|
||||
const partZh = DisplayAreaManagement.PROCESS_DOCUMENTATION.text
|
||||
const partEn = DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn
|
||||
if (partList.includes(partEn))part = partEn
|
||||
if (partList.includes(partZh))part = partZh
|
||||
console.log('part', part)
|
||||
@@ -666,7 +672,7 @@ export default {
|
||||
file = await this.selectNewestFile(newestFileList)
|
||||
if (file === null) { // 没有找到文件就退出
|
||||
console.log('没有找到符合要求的文件!')
|
||||
this.$message.error(this.$t('dashboard.eneralSearch.previewFileNotFound'))
|
||||
this.$message.error(this.$t('dashboard.generalSearch.previewFileNotFound'))
|
||||
return
|
||||
}
|
||||
console.log('seletedFile', file)
|
||||
|
||||
@@ -143,7 +143,7 @@ import {
|
||||
} from '@/api/dashboard'
|
||||
import { isHasPermission } from '@/utils/hasPermission'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { StandardStatus, EnterpriseStandardStatus } from '@/enums/commonEnums'
|
||||
import { StandardStatus, EnterpriseStandardStatus, DisplayAreaManagement } from '@/enums/commonEnums'
|
||||
import {
|
||||
getDomesticStandardFormModal,
|
||||
getDomesticStandardDetail,
|
||||
@@ -618,8 +618,8 @@ export default {
|
||||
const form = data
|
||||
const partList = Object.keys(data)
|
||||
let part
|
||||
const partZh = '过程稿件'
|
||||
const partEn = 'Process Manuscript'
|
||||
const partZh = DisplayAreaManagement.PROCESS_DOCUMENTATION.text
|
||||
const partEn = DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn
|
||||
if (partList.includes(partEn))part = partEn
|
||||
if (partList.includes(partZh))part = partZh
|
||||
console.log('part', part)
|
||||
@@ -681,7 +681,7 @@ export default {
|
||||
file = await this.selectNewestFile(newestFileList)
|
||||
if (file === null) { // 没有找到文件就退出
|
||||
console.log('没有找到符合要求的文件!')
|
||||
this.$message.error(this.$t('dashboard.eneralSearch.previewFileNotFound'))
|
||||
this.$message.error(this.$t('dashboard.generalSearch.previewFileNotFound'))
|
||||
return
|
||||
}
|
||||
console.log('seletedFile', file)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="detail-page-part-title">
|
||||
<span>{{ part }}</span>
|
||||
</div>
|
||||
<div class="detail-page-part-form" v-if="part !== '过程稿件' && part !== 'Process Manuscript'">
|
||||
<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">
|
||||
<label>{{ formItem.dbFieldTxt }}</label>
|
||||
<!--标准需要跳转,是标准字段且有内容的情况下在这处理-->
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 过程稿件特殊处理-->
|
||||
<div class="detail-page-process-manuscript" v-if="part === '过程稿件' || part === 'Process Manuscript'">
|
||||
<div class="detail-page-process-manuscript" v-if="part === DisplayAreaManagement.PROCESS_DOCUMENTATION.text || part === DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn">
|
||||
<div class="detail-page-process-manuscript-item" v-for="(formItem, formIndex) in form[part]" :key="formItem.id">
|
||||
<div class="detail-page-process-manuscript-title">
|
||||
<span>{{ formItem.dbFieldTxt }}</span>
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
<script>
|
||||
import '@assets/less/common.less'
|
||||
import { FieldType, StandardSource } from '@/enums/commonEnums'
|
||||
import { DisplayAreaManagement, FieldType, StandardSource } from '@/enums/commonEnums'
|
||||
import { downloadFile, getFileAccessHttpUrl } from '@/api/manage'
|
||||
import { getEnterpriseStandardInfoById, getEnterpriseStandardAddForm } from '@/api/enterpriseStandardLibraryApi'
|
||||
import Vue from 'vue'
|
||||
@@ -149,6 +149,8 @@ export default {
|
||||
components: { TextContentModal, StandardResolutionSheetModal },
|
||||
data () {
|
||||
return {
|
||||
// 展示区域
|
||||
DisplayAreaManagement,
|
||||
FieldType,
|
||||
partList: [], // 页面模块列表
|
||||
form: {}, // 页面字段
|
||||
|
||||
+5
-4
@@ -7,12 +7,12 @@
|
||||
<div class="detail-page-part-title">
|
||||
<span>{{ part }}</span>
|
||||
<!-- 过程稿件显示展开收起 -->
|
||||
<div v-if="part === '过程稿件'" class="retractable-btn" @click="handleChangeRetractable(index)">
|
||||
<div v-if="part === DisplayAreaManagement.PROCESS_DOCUMENTATION.text || part === DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn" class="retractable-btn" @click="handleChangeRetractable(index)">
|
||||
<i class="iconfont " :class="retractableFlag[index] ? 'icon-nav-top' : 'icon-nav-bottom'" />
|
||||
{{ retractableFlag[index] ? '收起' : '展开' }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail-page-part-form" v-if="part !== '过程稿件' && part !== 'Process Manuscript'">
|
||||
<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">
|
||||
<label>{{ formItem.dbFieldTxt }}</label>
|
||||
<!--标准需要跳转,是标准字段且有内容的情况下在这处理-->
|
||||
@@ -67,7 +67,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 过程稿件特殊处理-->
|
||||
<div class="detail-page-process-manuscript" v-if="part === '过程稿件' || part === 'Process Manuscript'" v-show="retractableFlag[index]">
|
||||
<div class="detail-page-process-manuscript" v-if="part === DisplayAreaManagement.PROCESS_DOCUMENTATION.text || part === DisplayAreaManagement.PROCESS_DOCUMENTATION.textEn" v-show="retractableFlag[index]">
|
||||
<div class="detail-page-process-manuscript-item" v-for="formItem in form[part]" :key="formItem.id">
|
||||
<div class="detail-page-process-manuscript-title">
|
||||
<span>{{ formItem.dbFieldTxt }}</span>
|
||||
@@ -125,7 +125,7 @@
|
||||
import { getForeignStandardDetail, getForeignStandardFormModal } from '@/api/standardRegulationLibraryApi'
|
||||
import StandardResolutionSheetModal from './modules/StandardResolutionSheetModal'
|
||||
import TextContentModal from '../../../enterpriseStandardLibrary/standard/detail/module/TextContentModal'
|
||||
import { FieldType, StandardSource, StandardStatus } from '../../../../enums/commonEnums'
|
||||
import { DisplayAreaManagement, FieldType, StandardSource, StandardStatus } from '../../../../enums/commonEnums'
|
||||
import { getFileInfo } from '../../../../api/api'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN } from '../../../../store/mutation-types'
|
||||
@@ -157,6 +157,7 @@ export default {
|
||||
components: { StandardResolutionSheetModal, TextContentModal },
|
||||
data () {
|
||||
return {
|
||||
DisplayAreaManagement,
|
||||
loading: false,
|
||||
partList: [], // 页面模块列表
|
||||
form: {}, // 页面字段
|
||||
|
||||
Reference in New Issue
Block a user