fix: 1441 单位类型中第二页的数据,在往来单位新增页面下拉框不展示

This commit is contained in:
binbin_pan 2024-04-30 15:06:04 +08:00
parent 8514069663
commit c3f97d83d4
2 changed files with 10 additions and 2 deletions

View File

@ -154,6 +154,14 @@ export function unitTypeList(query) {
params: query params: query
}) })
} }
// 单位类型-列表-下拉
export function unitTypeListAll(query) {
return request({
url: '/base/dic/lists',
method: 'get',
params: query
})
}
// 标签编号-列表 // 标签编号-列表
export function getMaMachineLabelApi(query) { export function getMaMachineLabelApi(query) {
return request({ return request({

View File

@ -216,7 +216,7 @@
<script> <script>
import { addUnit, delUnit, unitInfoAll, updateUnit } from "@/api/base/base"; import { addUnit, delUnit, unitInfoAll, updateUnit } from "@/api/base/base";
import { unitTypeList } from "@/api/base/base"; import { unitTypeListAll } from "@/api/base/base";
import { deptTreeSelect } from "@/api/system/user"; import { deptTreeSelect } from "@/api/system/user";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@ -287,7 +287,7 @@ export default {
methods: { methods: {
// //
getType() { getType() {
unitTypeList({ id: "1" }).then(response => { unitTypeListAll({ id: "1" }).then(response => {
this.typeList = response.rows; this.typeList = response.rows;
}) })
}, },