设备结构树:
1、实现点击设备关联NC程序展示文档详细信息、文件内容预览以及文档内容对比功能
2、实现设备层级导入已接收NC程序功能
全局:
1、解决类似文档出库弹窗在路由跳转后点击后会同时出现多个问题
已重命名1个文件
已修改12个文件
已复制1个文件
已删除3个文件
| | |
| | | receiveCurrentTreeNodeInfo(treeNodeInfo) { |
| | | // 仿 ç»ä»¶æ¥åæ èç¹ä¿¡æ¯åä»ç¶ç»ä»¶æµå
¥åç»ä»¶ |
| | | this.currentTreeNodeInfo = treeNodeInfo |
| | | if (treeNodeInfo.equipmentId) { |
| | | if (treeNodeInfo.type === 2) { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.mainTopRef) this.$refs.mainTopRef.loadHasSentDocumentListData() |
| | | if (this.$refs.mainTopRef) this.$refs.mainTopRef.releaseLoadDocumentListApi() |
| | | }) |
| | | } |
| | | console.log('currentTreeNodeInfo------------------', this.currentTreeNodeInfo) |
| | |
| | | <template> |
| | | <a-tabs style="height: 100%" v-model="activeTabKey" @change="handleTabChange"> |
| | | <a-tab-pane :key="1" tab="设å¤å±æ§" v-if="currentTreeNodeInfo.equipmentId"> |
| | | <a-tab-pane :key="1" tab="设å¤å±æ§" v-if="currentTreeNodeInfo.type===2&&!currentDocumentInfo.docId"> |
| | | <DeviceInfo :currentLevelDetails="currentTreeNodeInfo.entity" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <template v-else> |
| | | <template v-if="currentDocumentInfo.docId"> |
| | | <a-tab-pane :key="1" tab="ææ¡£å±æ§"> |
| | | <DocumentInfo :currentLevelDetails="currentDocumentInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | |
| | | hasLoadedDataTabKeyArray: [] |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('sendCurrentClickedDocumentInfo', this.receiveCurrentDocumentInfo) |
| | | this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData) |
| | |
| | | <template> |
| | | <a-tabs v-model="activeTabKey" @contextmenu.native="e=>e.preventDefault()" |
| | | <a-tabs v-model="activeTabKey" @change="handleTabChange" @contextmenu.native="e=>e.preventDefault()" |
| | | v-if="Object.keys(currentTreeNodeInfo).length!==0"> |
| | | <a-tab-pane :key="1" tab="åé"> |
| | | <!--<NcDocumentTableList ref="ncDocumentTableListRef" />--> |
| | | <HasSentDocumentTableList ref="hasSentDocumentTableListRef" :currentTreeNodeInfo="currentTreeNodeInfo" |
| | | @handleTableContextMenuOpen="handleTableContextMenuOpen" :size="tableContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="2" tab="æ¥æ¶"> |
| | | <!--<OtherDocumentTableList ref="otherDocumentTableListRef" :currentTreeNodeInfo="currentTreeNodeInfo"--> |
| | | <!--@handleTableContextMenuOpen="handleTableContextMenuOpen" :size="tableContainerSize"/>--> |
| | | <HasReceivedDocumentTableList ref="hasReceivedDocumentTableListRef" :currentTreeNodeInfo="currentTreeNodeInfo" |
| | | @handleTableContextMenuOpen="handleTableContextMenuOpen" |
| | | :size="tableContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <TableContextMenu :tableRowInfo="currentRightClickedTableRowInfo" ref="tableContextMenuRef"/> |
| | |
| | | <script> |
| | | import dncApi from '@/api/dnc' |
| | | import TableContextMenu from '../../../common/TableContextMenu' |
| | | import HasSentDocumentTableList from './HasSentDocumentTableList' |
| | | import HasSentDocumentTableList from './Document/HasSentDocumentTableList' |
| | | import HasReceivedDocumentTableList from './Document/HasReceivedDocumentTableList' |
| | | |
| | | export default { |
| | | name: 'DeviceStructureMainTop', |
| | | components: { HasSentDocumentTableList, TableContextMenu }, |
| | | components: { HasReceivedDocumentTableList, HasSentDocumentTableList, TableContextMenu }, |
| | | props: { |
| | | currentTreeNodeInfo: { |
| | | type: Object |
| | |
| | | return { |
| | | activeTabKey: 1, |
| | | tableContainerSize: 'small', |
| | | currentRightClickedTableRowInfo: {} |
| | | currentRightClickedTableRowInfo: {}, |
| | | hasLoadedDataTabKeyArray: [] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | */ |
| | | loadHasSentDocumentListData(treeNodeInfo) { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.hasSentDocumentTableListRef) { |
| | | this.$refs.hasSentDocumentTableListRef.loadData(1) |
| | | this.hasLoadedDataTabKeyArray.push(this.activeTabKey) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * tabæ ç¾åæ¢æ¶è§¦å |
| | | * @param activeTabKey å½åå·²æ¿æ´»tabçkey |
| | | */ |
| | | handleTabChange(activeTabKey) { |
| | | this.$bus.$emit('handleSwitchDeviceDocClassCode', activeTabKey) |
| | | if (activeTabKey && !this.hasLoadedDataTabKeyArray.includes(activeTabKey)) { |
| | | if (activeTabKey === 1) { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.hasSentDocumentTableListRef) this.$refs.hasSentDocumentTableListRef.loadData(1) |
| | | }) |
| | | } else { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.hasReceivedDocumentTableListRef) this.$refs.hasReceivedDocumentTableListRef.loadData(1) |
| | | }) |
| | | } |
| | | this.hasLoadedDataTabKeyArray.push(activeTabKey) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | if (this.currentTreeNodeInfo.key !== attributionId) return |
| | | if (docClassCode === 'SEND') { |
| | | if (this.$refs.hasSentDocumentTableListRef) this.$refs.hasSentDocumentTableListRef.loadData(1) |
| | | } else { |
| | | if (this.$refs.hasReceivedDocumentTableListRef) this.$refs.hasReceivedDocumentTableListRef.loadData(1) |
| | | } |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | /** |
| | | * ç¹å»å叿¶è§¦åå½åææ¡£åå¸ |
| | | * @param menuLabel |
| | |
| | | }) |
| | | }, |
| | | |
| | | // éç½®tabKeyå¹¶ä¸éæ¾å è½½ææ¡£åè¡¨çæ¥å£ |
| | | releaseLoadDocumentListApi() { |
| | | this.hasLoadedDataTabKeyArray = [] |
| | | this.handleTabChange(this.activeTabKey) |
| | | }, |
| | | |
| | | // æ§å¶å³é®èåå
³é |
| | | handleMenuClose() { |
| | | this.$refs.tableContextMenuRef.menuVisible = false |
| | |
| | | <a-tree blockNode show-icon :expandedKeys.sync="expandedKeys" |
| | | :selectedKeys="selectedKeys" :treeData="treeDataSource" :autoExpandParent="autoExpandParent" |
| | | @select="handleTreeSelect" @expand="handleTreeExpand" @rightClick="handleTreeRightClick"> |
| | | <template slot="title" slot-scope="{ title, parentId, entity, key:treeKey,equipmentId}"> |
| | | <template slot="title" slot-scope="{ title, parentId, entity, key:treeKey,equipmentId,type}"> |
| | | <DeviceStructureTreeContextMenu ref="contextMenuRef" |
| | | :treeParams="{title,treeKey,searchValue,equipmentId,entity}"/> |
| | | :treeParams="{title,treeKey,searchValue,equipmentId,entity,type,param:currentDeviceDocClassCode}"/> |
| | | </template> |
| | | |
| | | <a-icon slot="switcherIcon" type="down"/> |
| | |
| | | allTreeKeys: [], |
| | | currentSelected: {}, |
| | | rightClickSelected: {}, |
| | | currentDeviceDocClassCode: 'SEND', |
| | | url: { |
| | | delete: '/nc/product/delete' |
| | | } |
| | |
| | | created() { |
| | | this.getTreeDataByApi() |
| | | this.$bus.$on('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | this.$bus.$on('handleSwitchDeviceDocClassCode', this.setCurrentDeviceDocClassCode) |
| | | }, |
| | | methods: { |
| | | ...mapActions(['QueryProduction']), |
| | |
| | | }) |
| | | }, |
| | | |
| | | setCurrentDeviceDocClassCode(documentActiveTabKey) { |
| | | if (documentActiveTabKey === 1) this.currentDeviceDocClassCode = 'SEND' |
| | | else this.currentDeviceDocClassCode = 'REC' |
| | | }, |
| | | |
| | | /** |
| | | * æ èç¹é䏿¶è§¦å |
| | | * @param selectedKeys éä¸èç¹key |
| | |
| | | */ |
| | | handleTreeRightClick({ event, node }) { |
| | | const record = node.dataRef |
| | | // è¥å³é®æ¶å½åå³ä¾§å±ç¤ºå±çº§ä¸ºè®¾å¤å±çº§ä¸å½åå³é®æ å±çº§å为设å¤å±çº§æ¶åå¨è§¦åå³é®èååè½æ¶åæ¶è§¦åå·¦é®éä¸åè½ |
| | | if (this.currentSelected.type === 2 && record.type === 2) this.handleTreeSelect([record.key], { node }) |
| | | this.rightClickSelected = Object.assign({}, record) |
| | | }, |
| | | |
| | | // æ èç¹å³é®åå»èåä¸å 餿鮿¶è§¦å |
| | | handleDelete() { |
| | | this.$confirm({ |
| | | const that = this |
| | | that.$confirm({ |
| | | title: 'æç¤º', |
| | | content: '确认å 餿¤æ¡è®°å½åï¼', |
| | | okText: '确认', |
| | | okType: 'danger', |
| | | cancelText: 'åæ¶', |
| | | onOk: () => { |
| | | console.log('this.rightClickSelected.id', this.rightClickSelected.id) |
| | | if (!this.url.delete) { |
| | | this.$message.error('请设置url.delete屿§!') |
| | | return |
| | | } |
| | | const that = this |
| | | deleteAction(that.url.delete, { id: this.rightClickSelected.id }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.$destroyAll() |
| | | }) |
| | | }, |
| | | onCancel: () => { |
| | | that.$destroyAll() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | methods: { |
| | | onContextMenuClick(treeKey, menuKey) { |
| | | const level = this.getCurrentMenuLevel |
| | | const treeNodeInfo = Object.assign({}, this.treeParams) |
| | | if (treeNodeInfo.equipmentId) treeNodeInfo.type = 4 |
| | | const { param } = this.treeParams |
| | | const treeNodeInfo = Object.assign({}, this.treeParams, { param }) |
| | | console.log('treeNodeInfo++++++++++++++++++++++++++++', treeNodeInfo) |
| | | if (treeNodeInfo.type === 2) treeNodeInfo.type = 4 |
| | | // 设å¤ç»ææ èç¹ä¸ç设å¤å±çº§ä¸º2ï¼ä½å¨äº§åç»ææ ä¸å°è®¾å¤å±çº§çtype设置为4ï¼ä¸ºä¿è¯ä¸¤ä¸ªç»ææ å
±ç¨çæ¹æ³è½æ£å¸¸è¿è¡ï¼å æ¤å¨æ¤å¤åæ ·è®¾ç½®ä¸º4 |
| | | const menuKeyArray = menuKey.split('_') |
| | | const isCommonMethod = this.defaultContextMenuList[level].find(item => item.code === menuKey).isCommonMethod |
| | | // product_add => handleAdd 触å对åºç»ä»¶äºä»¶ |
copy from src/views/dnc/base/modules/DeviceStructure/HasReceivedDocumentTableList.vue
copy to src/views/dnc/base/modules/DeviceStructure/Document/HasReceivedDocumentTableList.vue
Îļþ´Ó src/views/dnc/base/modules/DeviceStructure/HasReceivedDocumentTableList.vue ¸´ÖÆ |
| | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from '../../../common/DocumentModal.vue' |
| | | import DocumentModal from '../../../../common/DocumentModal.vue' |
| | | |
| | | export default { |
| | | name: 'HasSentDocumentTableList', |
| | | name: 'HasReceivedDocumentTableList', |
| | | components: { DocumentModal }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentClickedDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | |
| | | console.log('currentTreeNodeInfo', this.currentTreeNodeInfo) |
| | | params.attributionId = this.currentTreeNodeInfo.key |
| | | params.attributionType = 4 |
| | | params.docClassCode = 'SEND' |
| | | params.docClassCode = 'REC' |
| | | if (!params) return false |
| | | this.dataSource = [] |
| | | this.loading = true |
| | |
| | | on: { |
| | | contextmenu: event => { |
| | | event.preventDefault() |
| | | this.currentRightClickedDocumentInfo = Object.assign({ param: 'SEND' }, record) |
| | | this.currentRightClickedDocumentInfo = Object.assign({ param: 'REC' }, record) |
| | | this.$emit('handleTableContextMenuOpen', this.currentRightClickedDocumentInfo) |
| | | }, |
| | | click: () => { |
| | |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) { |
| | | if (this[methodName] && tableRowInfo.param === 'SEND') this[methodName](tableRowInfo, modalTitle) |
| | | if (this[methodName] && tableRowInfo.param === 'REC') this[methodName](tableRowInfo, modalTitle) |
| | | } |
| | | } |
| | | } |
ÎļþÃû´Ó src/views/dnc/base/modules/DeviceStructure/HasReceivedDocumentTableList.vue ÐÞ¸Ä |
| | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from '../../../common/DocumentModal.vue' |
| | | import DocumentModal from '../../../../common/DocumentModal.vue' |
| | | |
| | | export default { |
| | | name: 'HasSentDocumentTableList', |
| | |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentClickedDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentClickedDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | |
| | | { title: 'ä¸ä¼ æ¶é´', dataIndex: 'createTime', align: 'center' } |
| | | ], |
| | | dataSource: [], |
| | | currentDocumentInfo: {}, |
| | | currentClickedDocumentInfo: {}, |
| | | url: { |
| | | list: '/nc/doc/find/page' |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentClickedDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' }) |
| | | }, |
| | | click: () => { |
| | | if (this.currentDocumentInfo.docId === record.docId) return |
| | | this.currentDocumentInfo = Object.assign({}, record) |
| | | if (this.currentClickedDocumentInfo.docId === record.docId) return |
| | | this.currentClickedDocumentInfo = Object.assign({}, record) |
| | | this.$bus.$emit('sendCurrentClickedDocumentInfo', record) |
| | | } |
| | | } |
| | |
| | | |
| | | // æ èç¹å³é®åå»èåä¸å 餿鮿¶è§¦å |
| | | handleDelete() { |
| | | this.$confirm({ |
| | | const that = this |
| | | that.$confirm({ |
| | | title: 'æç¤º', |
| | | content: '确认å 餿¤æ¡è®°å½åï¼', |
| | | okText: '确认', |
| | | okType: 'danger', |
| | | cancelText: 'åæ¶', |
| | | onOk: () => { |
| | | console.log('this.rightClickSelected.id', this.rightClickSelected.id) |
| | | if (!this.url.delete) { |
| | | this.$message.error('请设置url.delete屿§!') |
| | | return |
| | | } |
| | | const that = this |
| | | deleteAction(that.url.delete, { id: this.rightClickSelected.id }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.$destroyAll() |
| | | }) |
| | | }, |
| | | onCancel: () => { |
| | | that.$destroyAll() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | case 6: |
| | | return 'processStep' |
| | | } |
| | | }, |
| | | getCurrentDocClassCode() { |
| | | switch (this.treeParams.type) { |
| | | case 1: |
| | | return 'OTHER' |
| | | case 2: |
| | | return 'OTHER' |
| | | case 3: |
| | | return 'OTHER' |
| | | case 5: |
| | | return 'NC' |
| | | case 6: |
| | | return 'NC' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | onContextMenuClick(treeKey, menuKey) { |
| | | const level = this.getCurrentMenuLevel |
| | | const param = this.getCurrentDocClassCode |
| | | console.log('level---------------------', level) |
| | | console.log('param---------------------', param) |
| | | const treeNodeInfo = Object.assign({}, this.treeParams, { param }) |
| | | console.log('treeNodeInfo******************', treeNodeInfo) |
| | | const menuKeyArray = menuKey.split('_') |
| | | const isCommonMethod = this.defaultContextMenuList[level].find(item => item.code === menuKey).isCommonMethod |
| | | // product_add => handleAdd 触å对åºç»ä»¶äºä»¶ |
| | |
| | | } else { |
| | | methodName = 'handle' + menuKeyArray.map(item => item[0].toUpperCase() + item.slice(1)).join('') |
| | | } |
| | | console.log('methodName------------------------------------', methodName) |
| | | console.log('treeParams------------------------------------', this.treeParams) |
| | | const modalTitle = this.defaultContextMenuList[level].find(item => item.code === menuKey).label |
| | | this.$bus.$emit('treeMenuItemMethodTrigger', { methodName, modalTitle, treeNodeInfo: this.treeParams }) |
| | | this.$bus.$emit('treeMenuItemMethodTrigger', { methodName, modalTitle, treeNodeInfo }) |
| | | } |
| | | } |
| | | } |
| | |
| | | validatorRules: { |
| | | docName: [ |
| | | { required: true, message: '请è¾å
¥ææ¡£ååç§°!' } |
| | | ], |
| | | ] |
| | | }, |
| | | url: { |
| | | edit: '/mdc/mdcPartProcessInfo/edit' |
| | | edit: '/nc/doc/edit' |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let httpUrl = '' |
| | | let method = 'post' |
| | | if (!this.model.id) { |
| | | httpUrl += this.url.add |
| | | } else { |
| | | httpUrl += this.url.edit |
| | | } |
| | | httpAction(httpUrl, this.model, method).then((res) => { |
| | | let httpUrl = this.url.edit |
| | | let method = 'put' |
| | | httpAction(httpUrl + `/${that.model.docId}`, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | |
| | | fileList: [], |
| | | uploadParams: {}, |
| | | uploading: false, |
| | | isUploadMultiple: true |
| | | isUploadMultiple: true, |
| | | currentDeviceDocClassCode: 'SEND', |
| | | currentTitleAfterClass: '' |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | * ç¹å»å¯¼å
¥ææ¡£æNCç¨åºæ¶è§¦å |
| | | * @param treeNodeInfo ç¹å»æ èç¹å³é®èå导å
¥ç¨åºæ¶ä¼ å
¥æ èç¹ä¿¡æ¯ |
| | | * @param tableRowInfo å³é®è¡¨æ ¼è¡æ¶ä¼ å
¥è¡ä¿¡æ¯ |
| | | * @param modalTitle å¼¹çªæ é¢ |
| | | */ |
| | | handleImport(treeNodeInfo, tableRowInfo) { |
| | | handleImport(treeNodeInfo, tableRowInfo, modalTitle) { |
| | | this.isUploadMultiple = true |
| | | let attributionId // ææ¡£æå±å±çº§Id |
| | | let attributionType // ææ¡£æå±å±çº§ç±»å |
| | |
| | | if (treeNodeInfo) { |
| | | attributionId = treeNodeInfo.treeKey |
| | | attributionType = treeNodeInfo.type |
| | | if (attributionType === 5 || attributionType === 6) docClassCode = 'NC' |
| | | else if (attributionType === 4) docClassCode = 'SEND' |
| | | else docClassCode = 'OTHER' |
| | | docClassCode = treeNodeInfo.param |
| | | } else { |
| | | attributionId = tableRowInfo.attributionId |
| | | attributionType = tableRowInfo.attributionType |
| | | docClassCode = tableRowInfo.param |
| | | } |
| | | this.setModalTitle(modalTitle, docClassCode) |
| | | this.uploadParams = Object.assign({}, { attributionId, attributionType, docClassCode }) |
| | | console.log('uploadParams=====================', this.uploadParams) |
| | | this.visible = true |
| | | }, |
| | | |
| | |
| | | this.fileList = [] |
| | | }, |
| | | |
| | | /** |
| | | * è®¾ç½®å¼¹çªæ é¢ |
| | | * @param modalTitle å¼¹çªæ é¢ |
| | | * @param docClassCode ææ¡£ç±»å |
| | | */ |
| | | setModalTitle(modalTitle, docClassCode) { |
| | | switch (docClassCode) { |
| | | case 'SEND': |
| | | this.title = modalTitle + 'ï¼åéï¼' |
| | | break |
| | | case 'REC': |
| | | this.title = modalTitle + 'ï¼æ¥æ¶ï¼' |
| | | break |
| | | } |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, modalTitle, treeNodeInfo, tableRowInfo }) { |
| | | if (this[methodName]) { |
| | | this[methodName](treeNodeInfo, tableRowInfo) |
| | | this.title = modalTitle |
| | | this[methodName](treeNodeInfo, tableRowInfo, modalTitle) |
| | | } |
| | | } |
| | | } |
| | |
| | | icon: 'hourglass' |
| | | } |
| | | ], |
| | | //å
¶å®ææ¡£ |
| | | OTHER: [ |
| | | { label: 'ç¼è¾ææ¡£ä¿¡æ¯', code: 'document_edit', subMenu: [], icon: 'edit', isCommonMethod: false }, |
| | | { label: '导å
¥ææ¡£', code: 'document_import', subMenu: [], icon: 'import', isCommonMethod: true }, |
| | |
| | | icon: 'hourglass' |
| | | } |
| | | ], |
| | | //å·²åéææ¡£ |
| | | SEND: [ |
| | | { label: 'ç¼è¾ææ¡£ä¿¡æ¯', code: 'document_edit', subMenu: [], icon: 'edit', isCommonMethod: false }, |
| | | { label: '导å
¥NCç¨åº', code: 'document_import', subMenu: [], icon: 'import', isCommonMethod: true }, |
| | |
| | | icon: 'hourglass' |
| | | } |
| | | ], |
| | | //å·²æ¥æ¶ææ¡£ |
| | | REC: [ |
| | | { label: 'ç¼è¾ææ¡£ä¿¡æ¯', code: 'document_edit', subMenu: [], icon: 'edit', isCommonMethod: false }, |
| | | { label: '导å
¥NCç¨åº', code: 'document_import', subMenu: [], icon: 'import', isCommonMethod: true }, |
| | | { label: 'ä¸è½½', code: 'document_download', subMenu: [], icon: 'download', isCommonMethod: true }, |
| | | { label: 'å é¤', code: 'document_delete', subMenu: [], icon: 'delete', isCommonMethod: true }, |
| | | { label: 'æ¹éå é¤', code: 'document_batch_remove', subMenu: [], icon: 'delete', isCommonMethod: false }, |
| | | { |
| | | label: 'çå½å¨æ', |
| | | subMenu: [ |
| | | { label: 'åºåº', code: 'document_pull', icon: 'export', isCommonMethod: true }, |
| | | { label: 'åæ¶åºåº', code: 'document_cancel_pull', icon: 'stop', isCommonMethod: true }, |
| | | { label: 'å
¥åº', code: 'document_push', icon: 'import', isCommonMethod: true }, |
| | | { label: 'åå¸', code: 'document_publish', icon: 'flag', isCommonMethod: true }, |
| | | { label: 'éæ°åå¸', code: 'document_republish', icon: 'reload', isCommonMethod: true }, |
| | | { label: '彿¡£', code: 'document_pigeonhole', icon: 'database', isCommonMethod: true } |
| | | ], |
| | | icon: 'hourglass' |
| | | } |
| | | ], |
| | | //æä»¶ |
| | | file: [ |
| | | { label: 'æå®å½åçæ¬', code: 'file_assign', subMenu: [], icon: 'highlight', isCommonMethod: false },//æä»¶-æå®å½åçæ¬ |