zhuzhuanzhuan
2024-01-31 f6f8bd8f8885500233f0c0e64a21348b1017a610
设备管理页面查询区域按照车间名称查询方式由输入改为树选择
已修改1个文件
15 ■■■■ 文件已修改
src/views/mdc/base/EquipmentList.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/EquipmentList.vue
@@ -22,8 +22,8 @@
          <a-col :md="6" :sm="8">
            <a-form-item label="车间名称">
              <!--<a-input placeholder="请输入账号查询" v-model="queryParam.username"></a-input>-->
              <a-input placeholder="请输入车间名称" v-model="queryParam.productionName"></a-input>
              <!--<a-input placeholder="请输入车间名称" v-model="queryParam.productionName"></a-input>-->
              <a-tree-select v-model="queryParam.productionName" :treeData="workshopTreeData" placeholder="请选择车间"  tree-default-expand-all></a-tree-select>
            </a-form-item>
          </a-col>
@@ -148,6 +148,7 @@
  import UserRecycleBinModal from './modules/EquipmentList/UserRecycleBinModal'
  import JSuperQuery from '@/components/jeecg/JSuperQuery'
  import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton'
  import { queryProductionTreeList } from '@/api/api'
  import {mapActions} from 'vuex'
  export default {
@@ -260,7 +261,8 @@
          exportXlsUrl: "/mdc/mdcEquipment/exportXls",
          // importExcelUrl: "sys/user/importExcel",
        },
        isDepartType:''
        isDepartType:'',
        workshopTreeData:[]
      }
    },
    computed: {
@@ -270,6 +272,7 @@
    },
    created() {
      this.queryTreeData()
      this.getWorkshopListByApi()
    },
    methods: {
      ...mapActions(['QueryDepartTree']),
@@ -555,6 +558,12 @@
          this.loadData()
        }
      },
      getWorkshopListByApi(){
        queryProductionTreeList().then(res=>{
          if(res.success) this.workshopTreeData=res.result
        })
      }
    }
  }