Lius
2025-03-24 9977d3d45dffa91f4b885c6fa141a1f800d92c52
MDC选择车间树更新
已修改4个文件
11 ■■■■ 文件已修改
src/api/api.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/jeecgbiz/modal/JSelectEquipmentProductionModal.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dnc/base/modules/DeviceStructure/Permission/AssignPermissionModal.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/EquipmentList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/api.js
@@ -58,6 +58,7 @@
//车间管理
const queryProductionTreeList = (params)=>getAction("/mdc/mdcProduction/queryTreeList",params);
const queryProductionTreeListByMdc = (params)=>getAction("/mdc/mdcProduction/queryTreeListByMdc",params);
const queryById = (params)=>getAction("/mdc/mdcProduction/queryIdTree",params);
const deleteByProduction   = (params)=>deleteAction("/mdc/mdcProduction/delete",params);
@@ -168,6 +169,7 @@
  getUserNoticeInfo,
  getDictItemsFromCache,
  queryProductionTreeList,
  queryProductionTreeListByMdc,
  deleteByProduction,
  queryById,
  addEquipment,
src/components/jeecgbiz/modal/JSelectEquipmentProductionModal.vue
@@ -54,7 +54,7 @@
</template>
<script>
  import { queryProductionTreeList } from '@/api/api'
  import { queryProductionTreeListByMdc } from '@/api/api'
  import { getAction } from '@/api/manage'
  export default {
    name: 'JSelectEquipmentProductionModal',
@@ -138,7 +138,7 @@
      },
      loadDepart(){
        // 这个方法是找到所有的部门信息
        queryProductionTreeList().then(res=>{
        queryProductionTreeListByMdc().then(res=>{
          if(res.success){
            let arr = [...res.result]
            this.reWriterWithSlot(arr)
src/views/dnc/base/modules/DeviceStructure/Permission/AssignPermissionModal.vue
@@ -23,7 +23,6 @@
<script>
  import dncApi from '@/api/dnc'
  import UserPermissionTransfer from './UserPermissionTransfer'
  import { queryProductionTreeList } from '@/api/api'
  export default {
    name: 'AssignPermissionModal',
src/views/mdc/base/EquipmentList.vue
@@ -121,7 +121,7 @@
<script>
  import UserModal from './modules/EquipmentList/UserModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import { queryProductionTreeList } from '@/api/api'
  import { queryProductionTreeListByMdc } from '@/api/api'
  import { mapActions } from 'vuex'
  export default {
@@ -413,7 +413,7 @@
       * 调用接口获取查询区域车间树列表
       */
      getWorkshopListByApi() {
        queryProductionTreeList().then(res => {
        queryProductionTreeListByMdc().then(res => {
          if (res.success) {
            this.workshopTreeData = res.result
            this.treeDefaultExpandedKeys = [...res.result].map(item => item.key)