update 设备类型tree数据“

This commit is contained in:
lb
2023-02-14 09:56:52 +08:00
parent 91aba7682d
commit 6b0d5f0bc1
2 changed files with 8 additions and 54 deletions

View File

@@ -83,10 +83,7 @@ export default function () {
// fetchData() 获取普通列表数据
// fetchTreeData() 获取需要展示层级结构的数据
fetchTreeData: () => {
// TODO前提是工厂里总的设备类型数不会超过 999
return this.$http.get('/pms/equipmentType/page', {
params: { limit: 999, page: 1, key: "" }
})
return this.$http.get('/pms/equipmentType/getTree')
},
label: "父类",
rules: { required: false, message: "not empty", trigger: "change" },