From 0cdf36dd5598bf7643e9cff68da4901e6a63d2d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=9C=E8=B4=A4=E9=87=91?= <1960116313@qq.com>
Date: Mon, 22 Aug 2022 16:37:33 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83?=
=?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/communication/basiccard.js | 15 +-
src/api/communication/outbound.js | 8 +
src/api/ordermanage/mallorders.js | 26 +-
src/config/website.js | 2 +-
src/option/system/dict.js | 132 ++-
src/router/axios.js | 24 +-
.../basiccard/basiccard.vue | 50 +-
.../communicationmanage/device/device.vue | 20 +-
.../communicationmanage/outbound/outbound.vue | 132 ++-
src/views/mallmanagement/bank/index.vue | 2 +-
src/views/mallmanagement/classify/index.vue | 1 -
.../mallmanagement/shopmanagement/index.vue | 72 +-
src/views/ordermanage/mallorders/index.vue | 461 +++++++++--
src/views/ordermanage/payondelivery/index.vue | 2 +-
.../targetpackagegroupmanage/index.vue | 2 +-
src/views/package/basicpackage/index.vue | 33 +-
src/views/package/packagegroup/index.vue | 49 +-
.../targetpackagegroupmanage/index.vue | 48 +-
.../package/targetpackagemanage/index.vue | 22 +
src/views/system/menu.vue | 756 +++++++++---------
src/views/wel/component/Administrator.vue | 4 +
21 files changed, 1245 insertions(+), 616 deletions(-)
diff --git a/src/api/communication/basiccard.js b/src/api/communication/basiccard.js
index 84c6dc7..48c9cbd 100644
--- a/src/api/communication/basiccard.js
+++ b/src/api/communication/basiccard.js
@@ -101,21 +101,30 @@ export const flowpoolfillData = () => {
}
//基础套餐
-export const dataplan = () => {
+export const dataplan = (dataPlanGroupId) => {
return request({
- url: '/api/iot-sim/dataplan/fillData?isSource=' + 2,
+ url: '/api/iot-sim/dataplan/fillData?isSource=' + 2 + "&dataPlanGroupId=" + dataPlanGroupId,
+ method: 'get',
+
+ })
+}
+//基础套餐组
+export const dataplangroup = () => {
+ return request({
+ url: '/api/iot-sim/dataplangroup/fillData?isSource=' + 2,
method: 'get',
})
}
-export const deliver = (tenantId,dataPlanId,id) => {
+export const deliver = (tenantId, dataPlanId, dataPlanGroupId, id) => {
return request({
url: '/api/iot-sim/simcard/deliver',
method: 'post',
params: {
tenantId,
dataPlanId,
+ dataPlanGroupId,
id
}
})
diff --git a/src/api/communication/outbound.js b/src/api/communication/outbound.js
index 4c1f26e..77fd6f1 100644
--- a/src/api/communication/outbound.js
+++ b/src/api/communication/outbound.js
@@ -100,3 +100,11 @@ export const updateThreshold = (row) => {
}
})
}
+//基础套餐
+export const dataplan = (dataPlanGroupId) => {
+ return request({
+ url: '/api/iot-sim/dataplan/fillData?isSource=' + 2 + "&dataPlanGroupId=" + dataPlanGroupId,
+ method: 'get',
+
+ })
+}
diff --git a/src/api/ordermanage/mallorders.js b/src/api/ordermanage/mallorders.js
index f838a31..78b4ccf 100644
--- a/src/api/ordermanage/mallorders.js
+++ b/src/api/ordermanage/mallorders.js
@@ -36,7 +36,9 @@ export const add = (row) => {
return request({
url: '/api/iot-sim/orders/save',
method: 'post',
- data: row
+ data: {
+ ...row
+ }
})
}
//修改
@@ -79,7 +81,7 @@ export const deviceDeliver = (query) => {
})
}
//接口类型
-export const interfaceType = (current, size) => {
+export const interfaceType = () => {
return request({
url: '/api/iot-system/dict/dictionary?code=interface_type',
method: 'get',
@@ -104,3 +106,23 @@ export const getParcel = (id) => {
}
})
}
+//商品下拉
+export const productfillData = (id) => {
+ return request({
+ url: '/api/iot-sim/product/fillData',
+ method: 'get',
+ params: {
+ id
+ }
+ })
+}
+//规格下拉
+export const productspecsfillData = (productId) => {
+ return request({
+ url: '/api/iot-sim/productspecs/fillData',
+ method: 'get',
+ params: {
+ productId
+ }
+ })
+}
diff --git a/src/config/website.js b/src/config/website.js
index e479f04..b2e29b3 100644
--- a/src/config/website.js
+++ b/src/config/website.js
@@ -4,7 +4,7 @@
export default {
title: "saber",
logo: "S",
- key: 'saber',//配置主键,目前用于存储
+ key: 'saber', //配置主键,目前用于存储
indexTitle: '物联网平台',
clientId: 'falcon', // 客户端id
clientSecret: 'falcon_secret', // 客户端密钥
diff --git a/src/option/system/dict.js b/src/option/system/dict.js
index f90d3c3..ee2159c 100644
--- a/src/option/system/dict.js
+++ b/src/option/system/dict.js
@@ -11,33 +11,28 @@ export const optionParent = {
menuWidth: 250,
dialogWidth: 880,
dialogClickModal: false,
- column: [
- {
+ column: [{
label: "字典编号",
prop: "code",
search: true,
slot: true,
span: 24,
- rules: [
- {
- required: true,
- message: "请输入字典编号",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典编号",
+ trigger: "blur"
+ }]
},
{
label: "字典名称",
prop: "dictValue",
search: true,
align: "center",
- rules: [
- {
- required: true,
- message: "请输入字典名称",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典名称",
+ trigger: "blur"
+ }]
},
{
label: "字典排序",
@@ -45,13 +40,11 @@ export const optionParent = {
type: "number",
align: "right",
width: 100,
- rules: [
- {
- required: true,
- message: "请输入字典排序",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典排序",
+ trigger: "blur"
+ }]
},
{
label: "封存",
@@ -59,8 +52,7 @@ export const optionParent = {
type: "switch",
align: "center",
width: 100,
- dicData: [
- {
+ dicData: [{
label: "否",
value: 0
},
@@ -71,13 +63,11 @@ export const optionParent = {
],
value: 0,
slot: true,
- rules: [
- {
- required: true,
- message: "请选择封存",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请选择封存",
+ trigger: "blur"
+ }]
},
{
label: "字典备注",
@@ -101,34 +91,29 @@ export const optionChild = {
menuWidth: 300,
dialogWidth: 880,
dialogClickModal: false,
- column: [
- {
+ column: [{
label: "字典编号",
prop: "code",
addDisabled: true,
editDisabled: true,
search: true,
span: 24,
- rules: [
- {
- required: true,
- message: "请输入字典编号",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典编号",
+ trigger: "blur"
+ }]
},
{
label: "字典名称",
prop: "dictValue",
search: true,
align: "center",
- rules: [
- {
- required: true,
- message: "请输入字典名称",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典名称",
+ trigger: "blur"
+ }]
},
{
label: "上级字典",
@@ -141,25 +126,21 @@ export const optionChild = {
},
addDisabled: true,
editDisabled: true,
- rules: [
- {
- required: false,
- message: "请选择上级字典",
- trigger: "click"
- }
- ]
+ rules: [{
+ required: false,
+ message: "请选择上级字典",
+ trigger: "click"
+ }]
},
{
label: "字典键值",
prop: "dictKey",
width: 80,
- rules: [
- {
- required: true,
- message: "请输入字典键值",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典键值",
+ trigger: "blur"
+ }]
},
{
label: "字典排序",
@@ -167,13 +148,11 @@ export const optionChild = {
type: "number",
align: "right",
hide: true,
- rules: [
- {
- required: true,
- message: "请输入字典排序",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请输入字典排序",
+ trigger: "blur"
+ }]
},
{
label: "封存",
@@ -181,8 +160,7 @@ export const optionChild = {
type: "switch",
align: "center",
width: 80,
- dicData: [
- {
+ dicData: [{
label: "否",
value: 0
},
@@ -193,13 +171,11 @@ export const optionChild = {
],
value: 0,
slot: true,
- rules: [
- {
- required: true,
- message: "请选择封存",
- trigger: "blur"
- }
- ]
+ rules: [{
+ required: true,
+ message: "请选择封存",
+ trigger: "blur"
+ }]
},
{
label: "字典备注",
diff --git a/src/router/axios.js b/src/router/axios.js
index b0a90e2..0e1deae 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -8,14 +8,24 @@
import axios from 'axios';
import store from '@/store/';
import router from '@/router/router';
-import {serialize} from '@/util/util';
-import {getToken} from '@/util/auth';
-import {Message} from 'element-ui';
+import {
+ serialize
+} from '@/util/util';
+import {
+ getToken
+} from '@/util/auth';
+import {
+ Message
+} from 'element-ui';
import website from '@/config/website';
-import {Base64} from 'js-base64';
+import {
+ Base64
+} from 'js-base64';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
-import {baseUrl} from '@/config/env';
+import {
+ baseUrl
+} from '@/config/env';
//默认超时时间
axios.defaults.timeout = 300000;
@@ -67,7 +77,9 @@ axios.interceptors.response.use(res => {
//如果在白名单里则自行catch逻辑处理
if (statusWhiteList.includes(status)) return Promise.reject(res);
//如果是401则跳转到登录页面
- if (status === 401) store.dispatch('FedLogOut').then(() => router.push({path: '/login'}));
+ if (status === 401) store.dispatch('FedLogOut').then(() => router.push({
+ path: '/login'
+ }));
// 如果请求为非200否者默认统一处理
if (status !== 200) {
Message({
diff --git a/src/views/communicationmanage/basiccard/basiccard.vue b/src/views/communicationmanage/basiccard/basiccard.vue
index ad08c84..e18c4d5 100644
--- a/src/views/communicationmanage/basiccard/basiccard.vue
+++ b/src/views/communicationmanage/basiccard/basiccard.vue
@@ -131,6 +131,26 @@
>
+
+
+
+
+
+
{
+ if (res.data.code == 200) {
+ this.basicpackgegroup = res.data.data;
+ }
+ });
+ },
+ //套餐组-》套餐
+ handledataPlanGroup(e) {
+ this.distribution.dataPlanId = "";
+ this.basicpackges(e);
+ },
//基础套餐下拉框
- basicpackges() {
- dataplan().then((res) => {
+ basicpackges(id) {
+ dataplan(id).then((res) => {
if (res.data.code == 200) {
this.basicpackge = res.data.data;
}
});
},
+
//租户下拉框
tenantlists() {
tenant().then((res) => {
@@ -951,6 +994,7 @@ export default {
deliver(
this.distribution.tenantId,
this.distribution.dataPlanId,
+ this.distribution.dataPlanGroupId,
this.deliverId
).then((res) => {
if (res.data.data == 1) {
diff --git a/src/views/communicationmanage/device/device.vue b/src/views/communicationmanage/device/device.vue
index 19efa28..899b48d 100644
--- a/src/views/communicationmanage/device/device.vue
+++ b/src/views/communicationmanage/device/device.vue
@@ -149,7 +149,25 @@ export default {
width: 140,
search: true,
rules: [
- { required: true, message: "请选择租户名称", trigger: "change" },
+ { required: false, message: "请选择租户名称", trigger: "change" },
+ ],
+ },
+ {
+ label: "用户名称",
+ prop: "userId",
+ type: "select",
+ dicUrl: "/api/iot-system/user/fillData",
+ props: {
+ label: "account",
+ value: "id",
+ },
+ dataType: "String",
+ span: 12,
+ labelWidth: 130,
+ width: 140,
+ search: true,
+ rules: [
+ { required: false, message: "请选择租户名称", trigger: "change" },
],
},
{
diff --git a/src/views/communicationmanage/outbound/outbound.vue b/src/views/communicationmanage/outbound/outbound.vue
index daa2cd9..64f5531 100644
--- a/src/views/communicationmanage/outbound/outbound.vue
+++ b/src/views/communicationmanage/outbound/outbound.vue
@@ -20,6 +20,22 @@
@refresh-change="refreshChange"
@on-load="onLoad"
>
+
+
+
+
+
+
{
+ if (res.data.code == 200) {
+ this.dataPlanGroup = res.data.data;
+ }
+ });
+ } else {
+ this.dataPlanGroup = [];
+ }
+ },
},
created() {
this.tenantlists(); //租户下拉
@@ -737,14 +797,6 @@ export default {
this.exportTypelistlists(); //导出类型
},
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),
- };
- },
ids() {
let ids = [];
this.selectionList.forEach((ele) => {
diff --git a/src/views/mallmanagement/bank/index.vue b/src/views/mallmanagement/bank/index.vue
index c33aa36..3d18bb5 100644
--- a/src/views/mallmanagement/bank/index.vue
+++ b/src/views/mallmanagement/bank/index.vue
@@ -44,7 +44,7 @@ export default {
index: true,
viewBtn: true,
columnBtn: true,
- addBtn: true,
+ addBtn: false,
editBtn: false,
delBtn: false,
dialogClickModal: false,
diff --git a/src/views/mallmanagement/classify/index.vue b/src/views/mallmanagement/classify/index.vue
index 9acd8bf..db9aba6 100644
--- a/src/views/mallmanagement/classify/index.vue
+++ b/src/views/mallmanagement/classify/index.vue
@@ -22,7 +22,6 @@
-
-
+
diff --git a/src/views/wel/component/Administrator.vue b/src/views/wel/component/Administrator.vue
index e6af7c3..b7fca9b 100644
--- a/src/views/wel/component/Administrator.vue
+++ b/src/views/wel/component/Administrator.vue
@@ -306,6 +306,10 @@ export default {
name: "济南天桥移动",
value: res.data.data.jiNanTianQiaoYiDong,
},
+ {
+ name: "东营移动",
+ value: res.data.data.dongYingYiDong,
+ },
];
this.cardTotal();
}