From bc06b70ee7666a0cd865c1fc639fb92eebe03ebc Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 15 Aug 2024 10:50:20 +0800 Subject: [PATCH 1/6] =?UTF-8?q?[update]=20=E6=A0=87=E7=AD=BE=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=AD=97=E5=85=B8=E9=85=8D=E7=BD=AE=E7=88=B6=E7=BA=A7?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E7=BC=96=E8=BE=91=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8af05ad5dd9e486ddf4213f77e5e45373f105b43) --- src/views/system/tags/modules/TagContentDictItemModal.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/system/tags/modules/TagContentDictItemModal.vue b/src/views/system/tags/modules/TagContentDictItemModal.vue index bb0ddde..fe4c7e1 100644 --- a/src/views/system/tags/modules/TagContentDictItemModal.vue +++ b/src/views/system/tags/modules/TagContentDictItemModal.vue @@ -42,7 +42,6 @@ allowClear showSearch tree-node-filter-prop="title" - :disabled="model.id" > From fdb300568cf8890670c5ec98c7d0c4ab35180c0b Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 15 Aug 2024 11:31:01 +0800 Subject: [PATCH 2/6] =?UTF-8?q?[update]=20=E6=A0=87=E7=AD=BE=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=AD=97=E5=85=B8=E9=85=8D=E7=BD=AE=E7=88=B6=E7=BA=A7?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E7=BC=96=E8=BE=91=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E9=80=89=E4=B8=AD=E8=87=AA=E5=B7=B1=E6=9C=AC?= =?UTF-8?q?=E8=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit cf96b686195e8fc3074481bd167a4e579bb2382b) --- .../tags/modules/TagContentDictItemModal.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/system/tags/modules/TagContentDictItemModal.vue b/src/views/system/tags/modules/TagContentDictItemModal.vue index fe4c7e1..18a4784 100644 --- a/src/views/system/tags/modules/TagContentDictItemModal.vue +++ b/src/views/system/tags/modules/TagContentDictItemModal.vue @@ -238,8 +238,23 @@ export default { if (res.success) { // todo 不知道为啥发生了改变 this.parentDataPid = res.result.records || [] + if (this.model.id) { + this.disabledSelf(this.parentDataPid, this.model.id) + } } }) + }, + // 设置父级名称不能选中自己本身 + disabledSelf (treeData, value) { + for (const item of treeData) { + if (item.id === value) { + item.disabled = true + break + } + if (item.children) { + this.disabledSelf(item.children, value) + } + } } } } From 98da0e2709f1fd087af560affa7f2fb43158e0fd Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 15 Aug 2024 14:24:41 +0800 Subject: [PATCH 3/6] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E4=BD=8D=E7=BD=AE=E5=AD=97=E5=85=B8code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit cf2dd8b0829cadfb4799a0a855cc9f4d2cb65f04) --- .../selection/MarketRegulationsListSelectionModal.vue | 2 +- .../marketRegulationsList/MarketRegulationsFormPage.vue | 4 ++-- .../marketRegulationsList/MarketRegulationsList.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/selection/MarketRegulationsListSelectionModal.vue b/src/components/selection/MarketRegulationsListSelectionModal.vue index 91306e2..d7d1de1 100644 --- a/src/components/selection/MarketRegulationsListSelectionModal.vue +++ b/src/components/selection/MarketRegulationsListSelectionModal.vue @@ -53,7 +53,7 @@ + dict-code="drive_position"> diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue index 7c84805..3f1f64c 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue @@ -50,10 +50,10 @@ :wrapperCol="wrapperCol" :label="$t('standardRegulationLibrary.marketRegulationsList.drivingPosition')"> - + diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue index fee0493..db0ddcb 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue @@ -48,7 +48,7 @@ + dict-code="drive_position"> From c4e92992f50123ce771262d657c89c42ba620732 Mon Sep 17 00:00:00 2001 From: danshihao Date: Fri, 16 Aug 2024 10:50:34 +0800 Subject: [PATCH 4/6] =?UTF-8?q?[update=20=E6=8B=86=E5=88=86=E7=BC=96?= =?UTF-8?q?=E8=BE=91]=20=E5=B7=A6=E4=BE=A7=E6=A0=91=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=8F=AF=E6=8B=96=E6=8B=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 077babed847aeb6897b9895f76e6fe1edab78c6b) --- src/api/documentToolApi.js | 3 ++ .../documentSplit/DocumentSplitDetail.vue | 44 ++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/src/api/documentToolApi.js b/src/api/documentToolApi.js index 0fc8448..53eddaf 100644 --- a/src/api/documentToolApi.js +++ b/src/api/documentToolApi.js @@ -52,6 +52,8 @@ const copyClause = (params) => getAction('/laws/DocumentTool/documentSplit/copyD const getInterpretationArticlesList = (params) => getAction('/laws/DocumentTool/documentSplit/queryInterpretationArticlesList', params) // 标准对应的解读信息 const getStandardInterpretation = (params) => postAction('/laws/DocumentTool/documentSplit/queryDocumentSplitDetailList', params) +// 文档拆分-编辑-拖拽节点 +const dragClauseTreeNode = (params) => getAction('/split/sarFileSplitMenu/updateMenuLevel', params) // 文档对比-发布/撤回 const withdrawPublication = (params) => postAction('/compare/sarFileCompareInfo/changeState', params) @@ -135,6 +137,7 @@ export { copyClause, getInterpretationArticlesList, getStandardInterpretation, + dragClauseTreeNode, // 文档比对 withdrawPublication, diff --git a/src/views/documentTool/documentSplit/DocumentSplitDetail.vue b/src/views/documentTool/documentSplit/DocumentSplitDetail.vue index 9d3913b..905b0a1 100644 --- a/src/views/documentTool/documentSplit/DocumentSplitDetail.vue +++ b/src/views/documentTool/documentSplit/DocumentSplitDetail.vue @@ -11,7 +11,10 @@ :tree-data="treeData" :selected-keys="selectedKeys" :expanded-keys.sync="expandedKeys" - :replaceFields="{key: 'id'}"> + :replaceFields="{key: 'id'}" + class="draggable-tree" + draggable + @drop="onDrop">