diff --git a/.env b/.env index 9a1e7a01..5f08198f 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ NODE_ENV=production VUE_APP_PLATFORM_NAME=JeroBoot 企业级快速开发平台 -VUE_APP_SSO=false \ No newline at end of file +VUE_APP_SSO=false +VUE_TAG_FLAG=0 \ No newline at end of file diff --git a/.env.development b/.env.development index 083c815f..aa76a6ef 100644 --- a/.env.development +++ b/.env.development @@ -1 +1,2 @@ -NODE_ENV=development \ No newline at end of file +NODE_ENV=development +VUE_APP_TAG_FLAG=0 \ No newline at end of file diff --git a/.env.production b/.env.production index 995fca4a..7a5c58b2 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ -NODE_ENV=production \ No newline at end of file +NODE_ENV=production +VUE_APP_TAG_FLAG=1 \ No newline at end of file diff --git a/.env.test b/.env.test index 8faabbd6..b7941266 100644 --- a/.env.test +++ b/.env.test @@ -1,4 +1,5 @@ NODE_ENV=production VUE_APP_API_BASE_URL=http://boot.jero.com:8080/laws-sinotruk VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas -VUE_APP_ONLINE_BASE_URL=http://fileview.jero.com/onlinePreview \ No newline at end of file +VUE_APP_ONLINE_BASE_URL=http://fileview.jero.com/onlinePreview +VUE_APP_TAG_FLAG=1 \ No newline at end of file diff --git a/src/api/documentToolApi.js b/src/api/documentToolApi.js new file mode 100644 index 00000000..569028d9 --- /dev/null +++ b/src/api/documentToolApi.js @@ -0,0 +1,21 @@ +// 本地工具-即文档功能对应的接口 + +import { getAction } from './manage' + +// 文档拆分-获取查询条件-todo 全部需要修改接口 +const getDocumentSplitSearchForm = (params) => getAction('/split/sarFileSplitInfo/queryCondition', params) +// 文档拆分-获取表单模型 +const getDocumentSplitFormModal = (params) => getAction('/laws/standard/domestic/getFormModel', params) +// 文档拆分-获取信息 +const getDocumentSplitDocumentInfo = (params) => getAction('/laws/standard/domestic/getByIdAndModule', params) +// 文档拆分-获取表头信息 +const getDocumentSplitTableHeader = (params) => getAction('/split/sarFileSplitInfo/getHeader', params) + +export { + // 文档拆分 + getDocumentSplitSearchForm, + getDocumentSplitFormModal, + getDocumentSplitDocumentInfo, + getDocumentSplitTableHeader + +} diff --git a/src/components/dict/JDictSelectTag.vue b/src/components/dict/JDictSelectTag.vue index 58309ebb..6707fdb3 100644 --- a/src/components/dict/JDictSelectTag.vue +++ b/src/components/dict/JDictSelectTag.vue @@ -7,7 +7,16 @@ {{ item.text }} - + 请选择 @@ -63,6 +72,10 @@ export default { } }, methods: { + filterOption (input, option) { + const text = option.componentOptions.children[0].text || option.componentOptions.children[0].data.attrs.title + return text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, initDictData () { // 优先从缓存中读取字典配置 if (getDictItemsFromCache(this.dictCode)) { diff --git a/src/views/documentTool/DocumentSplit.vue b/src/views/documentTool/DocumentSplit.vue index c2b69b9d..976e7a23 100644 --- a/src/views/documentTool/DocumentSplit.vue +++ b/src/views/documentTool/DocumentSplit.vue @@ -4,18 +4,18 @@
- -
+ +
{{ $t('docTool.split.splitText') }}
- -
+ +
{{ $t('docTool.split.importResults') }}
- -
+ +
{{ $t('batchDelete') }}
@@ -37,10 +37,8 @@ {{ operation.text }} - - - {{ $t('more') }} - + + @@ -75,6 +73,7 @@ import SplitText from './modules/SplitText' import ImportResult from './modules/ImportResult' import { httpAction, getAction } from '@/api/manage' import { ConfigurableTableMixin } from '@/mixins/ConfigurableTableMixin' +import { getDocumentSplitSearchForm, getDocumentSplitTableHeader } from '../../api/documentToolApi' export default { name: 'DocumentSplit', @@ -84,26 +83,31 @@ export default { return { selectedRowKeys: [], operationList: [ - // 回传至文档库 - { - text: this.$t('docTool.split.backDocument'), - clickEvent: 'backDocument' - }, // 查看 { text: this.$t('view'), - clickEvent: 'detailClick' + clickEvent: 'detailClick', + has: '' + }, + // 回传至文档库 + { + text: this.$t('docTool.split.backDocument'), + clickEvent: 'backDocument', + has: '' }, // 删除 { text: this.$t('delete'), - clickEvent: 'deleteDetail' + clickEvent: 'deleteDetail', + has: '' } ], + getTableHeaderFunc: getDocumentSplitTableHeader, + getQueryConditionFunc: getDocumentSplitSearchForm, url: { // tableHeader: '/split/sarFileSplitInfo/getHeader', // 表格头部字段 - searchList: '/split/sarFileSplitInfo/queryCondition', // 搜索字段 - // list: '/split/sarFileSplitInfo/page', // 表格数据 + // searchList: '/split/sarFileSplitInfo/queryCondition', // 搜索字段 + list: '/split/sarFileSplitInfo/page', // 表格数据 deleteBatch: '', // 批量删除 deleteUrl: '', backDocument: '' // 回传至文档库 diff --git a/src/views/system/tags/modules/ClauseSplittingDrawer.vue b/src/views/system/tags/modules/ClauseSplittingDrawer.vue index ca332642..93ef76a8 100644 --- a/src/views/system/tags/modules/ClauseSplittingDrawer.vue +++ b/src/views/system/tags/modules/ClauseSplittingDrawer.vue @@ -24,7 +24,7 @@ - + {{ translate(item.langKey) }} @@ -69,7 +69,12 @@