添加牌位-添加未绑定牌位编号的信息
This commit is contained in:
parent
a5ad4056be
commit
153631ffe0
|
|
@ -1,4 +1,5 @@
|
||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
|
import { get } from "../../utils/request";
|
||||||
|
|
||||||
// 获取牌位详情
|
// 获取牌位详情
|
||||||
export function getMemorialDetail(id) {
|
export function getMemorialDetail(id) {
|
||||||
|
|
@ -78,3 +79,13 @@ export function getIdBySN(sn) {
|
||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getMemorialList(params = {}) {
|
||||||
|
const defaultParams = {
|
||||||
|
orderByColumn: "order_num",
|
||||||
|
isAsc: "ascending",
|
||||||
|
searchId: "42",
|
||||||
|
type: "3",
|
||||||
|
};
|
||||||
|
return get("/bst/memorial/list", { ...defaultParams, ...params });
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,3 +77,5 @@ try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,12 @@
|
||||||
>确认添加
|
>确认添加
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 列表渲染 -->
|
||||||
|
<view v-for="(item, index) in winB_List" :key="index">
|
||||||
|
<view>{{ item.mac }}</view>
|
||||||
|
<view>{{ item.sn }}</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 区域选择器 -->
|
<!-- 区域选择器 -->
|
||||||
|
|
@ -98,16 +104,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { createPagination } from "../../composables/winB_Pagination";
|
import { createPagination } from "../../composables/winB_Pagination";
|
||||||
|
import { getMemorialList } from "../../api/memorial/memorial";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [
|
mixins: [
|
||||||
createPagination({
|
createPagination({
|
||||||
fetchData: this.$request.get("/bst/memorial/list", {
|
fetchData: getMemorialList,
|
||||||
orderByColumn: "order_num",
|
|
||||||
isAsc: "ascending",
|
|
||||||
searchId: "42",
|
|
||||||
type: "3",
|
|
||||||
}),
|
|
||||||
mode: "loadMore", // 或 "pager"
|
mode: "loadMore", // 或 "pager"
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
autoLoad: false, // 手动触发时设为 false
|
autoLoad: false, // 手动触发时设为 false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user