Browse Source

feat:新增目标流量池页面

fix:修改基础卡导入   修改卡出库导出
confidence
杜贤金 3 years ago
parent
commit
79163f668f
  1. 46
      src/views/communicationmanage/basiccard/basiccard.vue
  2. 73
      src/views/communicationmanage/flowpool/flowpool.vue
  3. 162
      src/views/communicationmanage/outbound/outbound.vue
  4. 415
      src/views/communicationmanage/targetflowpool/targetflowpool.vue

46
src/views/communicationmanage/basiccard/basiccard.vue

@ -205,8 +205,8 @@ export default {
data() { data() {
var starts = (rule, value, callback) => { var starts = (rule, value, callback) => {
if ( if (
this.distribution.numEnd == null || this.distribution.numEnd == "" ||
this.distribution.numStart == null this.distribution.numStart == ""
) { ) {
callback(new Error("开始号码结束号码均不能为空")); callback(new Error("开始号码结束号码均不能为空"));
} else if ( } else if (
@ -229,10 +229,12 @@ export default {
tenantId: "", tenantId: "",
isCovered: 0, isCovered: 0,
dataPlanId: "", dataPlanId: "",
flowPoolId: "",
}, },
excelOption: { excelOption: {
submitBtn: false, submitBtn: false,
emptyBtn: true, emptyBtn: true,
labelWidth: 130,
column: [ column: [
{ {
label: "通道名称", label: "通道名称",
@ -272,6 +274,26 @@ export default {
}, },
], ],
}, },
{
label: "元流量池名称",
prop: "flowPoolId",
type: "select",
span: 20,
display: true,
dicUrl: "/api/iot-sim/flowpool/fillData?isSource=" + 1,
props: {
label: "name",
value: "id",
},
dataType: "String",
rules: [
{
required: true,
message: "请选择元流量池名称",
trigger: "change",
},
],
},
{ {
label: "模板上传", label: "模板上传",
prop: "excelFile", prop: "excelFile",
@ -280,6 +302,7 @@ export default {
display: false, display: false,
loadText: "模板上传中,请稍等", loadText: "模板上传中,请稍等",
span: 24, span: 24,
showFileList: false,
propsHttp: { propsHttp: {
res: "data", res: "data",
}, },
@ -323,8 +346,8 @@ export default {
distribution: { distribution: {
tenantId: "", //id tenantId: "", //id
deliverType: null, // deliverType: null, //
numStart: null, // numStart: "", //
numEnd: null, // numEnd: "", //
dataPlanId: "", dataPlanId: "",
}, // }, //
redistribution: { redistribution: {
@ -624,7 +647,7 @@ export default {
const column = this.findObject(this.excelOption.column, "excelFile"); const column = this.findObject(this.excelOption.column, "excelFile");
if (this.excelForm.tenantId != "" && this.excelForm.dataPlanId != "") { if (this.excelForm.tenantId != "" && this.excelForm.dataPlanId != "") {
column.display = true; column.display = true;
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}`; column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}&flowPoolId=${this.excelForm.flowPoolId}`;
} else { } else {
column.display = false; column.display = false;
} }
@ -633,7 +656,7 @@ export default {
const column = this.findObject(this.excelOption.column, "excelFile"); const column = this.findObject(this.excelOption.column, "excelFile");
if (this.excelForm.tenantId != "" && this.excelForm.dataPlanId != "") { if (this.excelForm.tenantId != "" && this.excelForm.dataPlanId != "") {
column.display = true; column.display = true;
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}`; column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}&flowPoolId=${this.excelForm.flowPoolId}`;
} else { } else {
column.display = false; column.display = false;
} }
@ -641,11 +664,16 @@ export default {
"excelForm.isCovered"() { "excelForm.isCovered"() {
const column = this.findObject(this.excelOption.column, "excelFile"); const column = this.findObject(this.excelOption.column, "excelFile");
if (this.excelForm.isCovered !== "") { if (this.excelForm.isCovered !== "") {
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}`; column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}&flowPoolId=${this.excelForm.flowPoolId}`;
}
},
"excelForm.flowPoolId"() {
const column = this.findObject(this.excelOption.column, "excelFile");
if (this.excelForm.flowPoolId != "") {
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}&flowPoolId=${this.excelForm.flowPoolId}`;
} }
}, },
"form.$channelId"() { "form.$channelId"() {
console.log(this.form.channelId, "channelId");
const columns = this.findObject(this.option.column, "flowPoolId"); const columns = this.findObject(this.option.column, "flowPoolId");
if (this.form.$channelId != undefined) { if (this.form.$channelId != undefined) {
if (this.form.$channelId.indexOf("电信") != -1) { if (this.form.$channelId.indexOf("电信") != -1) {
@ -815,7 +843,7 @@ export default {
// //
handleCloses() { handleCloses() {
this.excelBox = false; this.excelBox = false;
this.$refs.excelForm.resetFields(); // this.$refs.excelForm.resetFields();
}, },
// //
handleTemplate() { handleTemplate() {

73
src/views/communicationmanage/flowpool/flowpool.vue

@ -58,6 +58,9 @@ export default {
currentPage: 1, currentPage: 1,
total: 0, total: 0,
}, },
isSources: {
isSource: 1,
},
option: { option: {
tip: false, tip: false,
searchShow: true, searchShow: true,
@ -72,13 +75,14 @@ export default {
selection: false, selection: false,
dialogClickModal: false, dialogClickModal: false,
dialogWidth: "60%", dialogWidth: "60%",
labelWidth: 150,
column: [ column: [
{ {
label: "通道名称", label: "通道名称",
prop: "channelId", prop: "channelId",
type: "select", type: "select",
span: 12, span: 12,
labelWidth: 130,
search: true, search: true,
dataType: "String", dataType: "String",
dicUrl: "/api/iot-sim/channel/fillData", dicUrl: "/api/iot-sim/channel/fillData",
@ -98,7 +102,7 @@ export default {
label: "流量池编号", label: "流量池编号",
prop: "code", prop: "code",
span: 12, span: 12,
labelWidth: 130,
searchLabelWidth: 90, searchLabelWidth: 90,
search: false, search: false,
rules: [ rules: [
@ -113,7 +117,7 @@ export default {
label: "流量池名称", label: "流量池名称",
prop: "name", prop: "name",
span: 12, span: 12,
labelWidth: 130,
searchLabelWidth: 90, searchLabelWidth: 90,
search: true, search: true,
rules: [ rules: [
@ -128,7 +132,7 @@ export default {
label: "流量池总量", label: "流量池总量",
prop: "total", prop: "total",
span: 12, span: 12,
labelWidth: 130,
searchLabelWidth: 90, searchLabelWidth: 90,
search: false, search: false,
hide: false, hide: false,
@ -150,7 +154,7 @@ export default {
label: "提醒阈值", label: "提醒阈值",
prop: "remindRatio", prop: "remindRatio",
span: 12, span: 12,
labelWidth: 130,
searchLabelWidth: 90, searchLabelWidth: 90,
search: false, search: false,
hide: false, hide: false,
@ -180,7 +184,7 @@ export default {
}, },
dataType: "number", dataType: "number",
span: 12, span: 12,
labelWidth: 130,
search: false, search: false,
hide: true, hide: true,
rules: [ rules: [
@ -202,7 +206,7 @@ export default {
}, },
dataType: "number", dataType: "number",
prop: "type", prop: "type",
labelWidth: 130,
searchLabelWidth: 140, searchLabelWidth: 140,
search: false, search: false,
rules: [ rules: [
@ -213,34 +217,12 @@ export default {
}, },
], ],
}, },
{
label: "源/目标流量池",
type: "select",
span: 12,
dicUrl: "/api/iot-system/dict/dictionary?code=is_source",
props: {
label: "dictValue",
value: "dictKey",
},
dataType: "number",
prop: "isSource",
labelWidth: 130,
searchLabelWidth: 110,
search: false,
rules: [
{
required: true,
message: "请选择源/目标流量池",
trigger: "change",
},
],
},
{ {
label: "单卡最大使用量(M)", label: "单卡最大使用量(M)",
prop: "maxUsage", prop: "maxUsage",
span: 12, span: 12,
labelWidth: 130,
search: false, search: false,
hide: true, hide: true,
type: "number", type: "number",
@ -261,7 +243,7 @@ export default {
label: "已激活数量", label: "已激活数量",
prop: "activationNum", prop: "activationNum",
span: 12, span: 12,
labelWidth: 130,
search: false, search: false,
hide: true, hide: true,
addDisplay: false, addDisplay: false,
@ -284,7 +266,6 @@ export default {
label: "管理员名称", label: "管理员名称",
prop: "account", prop: "account",
span: 12, span: 12,
labelWidth: 130,
search: false, search: false,
addDisplay: false, addDisplay: false,
editDisplay: false, editDisplay: false,
@ -334,14 +315,23 @@ export default {
}, },
// //
rowSave(row, done, loading) { rowSave(row, done, loading) {
add(row).then( add(Object.assign(row, this.isSources)).then(
() => { (res) => {
if (res.data.data == 1) {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
}); });
done(); done();
} else {
this.$message({
type: "error",
message: "操作失败!",
});
done(); //
loading(); //
}
}, },
(error) => { (error) => {
window.console.log(error); window.console.log(error);
@ -352,13 +342,22 @@ export default {
// //
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
update(row).then( update(row).then(
() => { (res) => {
if (res.data.data == 1) {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
}); });
done(); done();
} else {
this.$message({
type: "error",
message: "操作失败!",
});
done(); //
loading(); //
}
}, },
(error) => { (error) => {
window.console.log(error); window.console.log(error);
@ -398,7 +397,7 @@ export default {
getList( getList(
page.currentPage, page.currentPage,
page.pageSize, page.pageSize,
Object.assign(params, this.query) Object.assign(params, this.query, this.isSources)
).then((res) => { ).then((res) => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;

162
src/views/communicationmanage/outbound/outbound.vue

@ -25,7 +25,7 @@
size="small" size="small"
type="primary" type="primary"
icon="el-icon-download" icon="el-icon-download"
@click="handleExport" @click="handleAllocate"
>导出 >导出
</el-button> </el-button>
<el-button <el-button
@ -38,39 +38,25 @@
</el-button> </el-button>
</template> </template>
</avue-crud> </avue-crud>
<!-- 导出弹窗 -->
<el-dialog <el-dialog
title="导出" title="导出"
:visible.sync="dialogVisible"
append-to-body append-to-body
:visible.sync="importBox" width="35%"
width="30%" :before-close="handleClose"
:before-close="handleimportCloses"
> >
<el-form <el-form
ref="iform" ref="distribution"
:model="iform" :model="distribution"
:rules="importrules" :rules="distrules"
label-width="100px" label-width="80px"
> >
<el-form-item label="租户/客户" prop="type"> <el-form-item label="客户" prop="tenantId">
<el-select <el-select
v-model="iform.type" v-model="distribution.tenantId"
placeholder="请选择租户/客户" placeholder="请选择客户"
size="mini"
style="width: 90%"
@change="handleChange"
>
<el-option
v-for="(item, index) in typelist"
:label="item.label"
:value="item.id"
:key="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="租户" prop="tenantId" v-if="iform.type == 1">
<el-select
v-model="iform.tenantId"
placeholder="请选择租户"
size="mini" size="mini"
style="width: 90%" style="width: 90%"
> >
@ -82,25 +68,38 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户" prop="userId" v-if="iform.type == 2">
<el-select <el-form-item label="iccid" prop="numbers">
v-model="iform.userId" <el-col :span="10">
placeholder="请选择客户" <el-form-item prop="numStart">
<el-input
v-model="distribution.numStart"
placeholder="请输入开始号码"
size="mini" size="mini"
style="width: 90%" ></el-input>
> </el-form-item>
<el-option </el-col>
v-for="(item, index) in userlist" <el-col style="text-align: center" :span="2">-</el-col>
:label="item.account" <el-col :span="10">
:value="item.id" <el-form-item prop="numEnd">
:key="item.id" <el-input
></el-option> v-model="distribution.numEnd"
</el-select> placeholder="请输入结束号码"
size="mini"
></el-input>
</el-form-item>
</el-col>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="onSubmit" size="mini">导出</el-button> <el-button type="primary" @click="onSubmit" size="small">
<el-button @click="handleimportCloses" size="mini">取消</el-button> <i class="el-icon-circle-plus-outline" style="padding-right: 5px"></i>
</el-button
>
<el-button @click="handleClose" size="small">
<i class="el-icon-circle-close" style="padding-right: 5px"></i>
</el-button
>
</span> </span>
</el-dialog> </el-dialog>
</basic-container> </basic-container>
@ -120,6 +119,25 @@ import { mapGetters } from "vuex";
import { getToken } from "@/util/auth"; import { getToken } from "@/util/auth";
export default { export default {
data() { data() {
var starts = (rule, value, callback) => {
if (
this.distribution.numEnd == "" ||
this.distribution.numStart == ""
) {
callback(new Error("开始号码结束号码均不能为空"));
} else if (
this.distribution.numEnd < 0 ||
this.distribution.numStart < 0
) {
callback(new Error("开始号码结束号码均不能为负数"));
} else if (
Number(this.distribution.numStart) > Number(this.distribution.numEnd)
) {
callback(new Error("开始号码必须小于结束号码"));
} else {
callback();
}
};
return { return {
form: {}, form: {},
query: {}, query: {},
@ -128,29 +146,23 @@ export default {
tenantId: null, // tenantId: null, //
userId: null, // userId: null, //
}, },
dialogVisible: false, //
selectionList: [], selectionList: [],
tenantlist: [], // tenantlist: [], //
userlist: [], // userlist: [], //
typelist: [
{ //
label: "租户", distribution: {
id: 1, tenantId: "", //id
}, numStart: "", //
{ numEnd: "", //
label: "客户",
id: 2,
}, },
],
importBox: false, //
loading: true, loading: true,
importrules: { distrules: {
type: [
{ required: true, message: "请选择租户/客户", trigger: "change" },
],
tenantId: [ tenantId: [
{ required: true, message: "请选择户", trigger: "change" }, { required: true, message: "请选择客户", trigger: "change" },
], ],
userId: [{ required: true, message: "请选择客户", trigger: "change" }], numbers: [{ required: true, validator: starts, trigger: "blur" }],
}, },
page: { page: {
pageSize: 10, pageSize: 10,
@ -686,39 +698,33 @@ export default {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
// //
handleExport() { handleAllocate() {
this.importBox = true; this.dialogVisible = true;
},
//
handleClose() {
this.dialogVisible = false;
this.$refs.distribution.resetFields();
}, },
// //
onSubmit() { onSubmit() {
this.$refs.iform.validate((valid) => { this.$refs.distribution.validate((valid) => {
if (valid) { if (valid) {
console.log(
`${this.baseUrl}/${
this.apis
}iot-sim/simcarddeliver/export-simCardDeliver?${
this.website.tokenHeader
}=${getToken()}&tenantId=${this.iform.tenantId}&userId=${
this.iform.userId
}`
);
window.open( window.open(
`${this.baseUrl}/${ `${this.baseUrl}/${
this.apis this.apis
}iot-sim/simcarddeliver/export-simCardDeliver?${ }iot-sim/simcarddeliver/export-simCardDeliver?${
this.website.tokenHeader this.website.tokenHeader
}=${getToken()}&tenantId=${this.iform.tenantId}&userId=${ }=${getToken()}&tenantId=${this.distribution.tenantId}&numStart=${
this.iform.userId this.distribution.numStart
}` }&numEnd=${this.distribution.numEnd}`
); );
this.dialogVisible = false;
this.$refs.distribution.resetFields();
} }
}); });
}, },
//
handleimportCloses() {
this.importBox = false;
this.$refs.iform.resetFields();
},
// //
tenantlists() { tenantlists() {
tenant().then((res) => { tenant().then((res) => {

415
src/views/communicationmanage/targetflowpool/targetflowpool.vue

@ -0,0 +1,415 @@
<template>
<basic-container>
<avue-crud
:option="option"
:table-loading="loading"
:data="data"
:page.sync="page"
:permission="permissionList"
:before-open="beforeOpen"
v-model="form"
ref="crud"
@row-update="rowUpdate"
@row-save="rowSave"
@row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template slot-scope="{ disabled, size, value }" slot="activationNumForm">
<el-input
:disabled="disabled"
:size="size"
v-model="value == -1 ? '-' : value"
></el-input>
</template>
<template slot-scope="{ disabled, size, value }" slot="accountForm">
<el-input
:disabled="disabled"
:size="size"
v-model="value == '' ? '-' : value"
></el-input>
</template>
</avue-crud>
</basic-container>
</template>
<script>
import {
getDetail,
getList,
add,
remove,
update,
} from "@/api/communication/flowpool";
import { mapGetters } from "vuex";
export default {
data() {
return {
form: {
},
query: {},
loading: false,
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
isSources: {
isSource: 2,
},
option: {
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
addBtn: true,
dialogDrag: true, //
viewBtn: true,
delBtn: true,
columnBtn: false,
selection: false,
dialogClickModal: false,
dialogWidth: "60%",
labelWidth: 150,
column: [
{
label: "通道名称",
prop: "channelId",
type: "select",
span: 12,
search: true,
dataType: "String",
dicUrl: "/api/iot-sim/channel/fillData",
props: {
label: "name",
value: "id",
},
rules: [
{
required: true,
message: "请选择通道名称",
trigger: "change",
},
],
},
{
label: "目标流量池编号",
prop: "code",
span: 12,
searchLabelWidth: 90,
search: false,
rules: [
{
required: true,
message: "请输入设备序列号",
trigger: "blur",
},
],
},
{
label: "目标流量池名称",
prop: "name",
span: 12,
searchLabelWidth: 130,
search: true,
rules: [
{
required: true,
message: "请输入流量池名称",
trigger: "blur",
},
],
},
{
label: "目标流量池总量",
prop: "total",
span: 12,
searchLabelWidth: 90,
search: false,
hide: false,
type: "number",
rules: [
{
required: true,
message: "请输入流量池总量",
trigger: "blur",
},
{
pattern: /^\d+(\.\d+)?$/,
message: "请输入正确的流量池总量",
trigger: "blur",
},
],
},
{
label: "提醒阈值",
prop: "remindRatio",
span: 12,
searchLabelWidth: 90,
search: false,
hide: false,
type: "number",
rules: [
{
required: true,
message: "请输入提醒阈值",
trigger: "blur",
},
{
pattern: /^\d+(\.\d+)?$/,
message: "请输入正确的提醒阈值",
trigger: "blur",
},
],
},
{
label: "是否立即生效",
prop: "isNowActivate",
type: "select",
dicUrl: "/api/iot-system/dict/dictionary?code=now_activate",
props: {
label: "dictValue",
value: "dictKey",
},
dataType: "number",
span: 12,
search: false,
hide: true,
rules: [
{
required: true,
message: "请选择是否立即生效",
trigger: "change",
},
],
},
{
label: "流量池类型",
type: "select",
span: 12,
dicUrl: "/api/iot-system/dict/dictionary?code=flow_pool_type",
props: {
label: "dictValue",
value: "dictKey",
},
dataType: "number",
prop: "type",
searchLabelWidth: 140,
search: false,
rules: [
{
required: true,
message: "请选择流量池类型",
trigger: "change",
},
],
},
{
label: "单卡最大使用量(M)",
prop: "maxUsage",
span: 12,
search: false,
hide: true,
type: "number",
rules: [
{
required: true,
message: "请输入单卡最大使用量(M)",
trigger: "blur",
},
{
pattern: /^\d+(\.\d+)?$/,
message: "请输入正确的使用量",
trigger: "blur",
},
],
},
{
label: "已激活数量",
prop: "activationNum",
span: 12,
search: false,
hide: true,
addDisplay: false,
editDisplay: false,
formslot: true,
rules: [
{
required: true,
message: "请输入已激活数量",
trigger: "blur",
},
{
pattern: /^\d+?$/,
message: "请输入正确的已激活数量",
trigger: "blur",
},
],
},
{
label: "管理员名称",
prop: "account",
span: 12,
search: false,
addDisplay: false,
editDisplay: false,
hide: true,
formslot: true,
rules: [
{
required: true,
message: "请输入管理员账号",
trigger: "blur",
},
],
},
],
},
data: [],
};
},
computed: {
...mapGetters(["permission"]),
permissionList() {
return {
// viewBtn: this.vaildData(this.permission.sourceApi_view, false),
// editBtn: this.vaildData(this.permission.sourceApi_edit, false),
// delBtn: this.vaildData(this.permission.sourceApi_delete, false),
};
},
},
methods: {
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
getDetail(this.form.id).then((res) => {
this.form = res.data.data;
});
}
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
//
rowSave(row, done, loading) {
add(Object.assign(row, this.isSources)).then(
(res) => {
if (res.data.data == 1) {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!",
});
done();
} else {
this.$message({
type: "error",
message: "操作失败!",
});
done(); //
loading(); //
}
},
(error) => {
window.console.log(error);
loading();
}
);
},
//
rowUpdate(row, index, done, loading) {
update(row).then(
(res) => {
if (res.data.data == 1) {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!",
});
done();
} else {
this.$message({
type: "error",
message: "操作失败!",
});
done(); //
loading(); //
}
},
(error) => {
window.console.log(error);
loading();
}
);
},
//
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!",
});
});
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
this.loading = true;
getList(
page.currentPage,
page.pageSize,
Object.assign(params, this.query, this.isSources)
).then((res) => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
});
},
},
};
</script>
<style></style>
Loading…
Cancel
Save