Browse Source

fix:修改bug

confidence
杜贤金 3 years ago
parent
commit
2e24d47f05
  1. 20
      src/views/communicationmanage/basiccard/basiccard.vue
  2. 2
      src/views/communicationmanage/device/device.vue
  3. 2
      src/views/communicationmanage/flowpool/flowpool.vue
  4. 8
      src/views/communicationmanage/outbound/outbound.vue
  5. 4
      src/views/original/targetpackagemanage/index.vue
  6. 4
      src/views/package/basicpackage/index.vue

20
src/views/communicationmanage/basiccard/basiccard.vue

@ -51,7 +51,13 @@
</template> </template>
</avue-crud> </avue-crud>
<!-- 导出 :upload-after="uploadAfter"--> <!-- 导出 :upload-after="uploadAfter"-->
<el-dialog title="导入" append-to-body :visible.sync="excelBox" width="40%" :before-close="handleCloses"> <el-dialog
title="导入"
append-to-body
:visible.sync="excelBox"
width="40%"
:before-close="handleCloses"
>
<avue-form <avue-form
:option="excelOption" :option="excelOption"
v-model="excelForm" v-model="excelForm"
@ -158,6 +164,7 @@ import {
} from "@/api/communication/basiccard"; } from "@/api/communication/basiccard";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { getToken } from "@/util/auth"; import { getToken } from "@/util/auth";
import { log } from "mathjs";
export default { export default {
data() { data() {
var starts = (rule, value, callback) => { var starts = (rule, value, callback) => {
@ -193,6 +200,7 @@ export default {
label: "通道名称", label: "通道名称",
prop: "tenantId", prop: "tenantId",
type: "select", type: "select",
dataType: "Number",
span: 20, span: 20,
dicUrl: "/api/iot-sim/channel/fillData", dicUrl: "/api/iot-sim/channel/fillData",
props: { props: {
@ -291,7 +299,7 @@ export default {
border: true, border: true,
index: true, index: true,
indexWidth: 70, indexWidth: 70,
dialogDrag:true,// dialogDrag: true, //
addBtn: true, addBtn: true,
viewBtn: true, viewBtn: true,
delBtn: true, delBtn: true,
@ -305,7 +313,7 @@ export default {
label: "通道名称", label: "通道名称",
prop: "channelId", prop: "channelId",
type: "select", type: "select",
dataType: "number", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
search: true, search: true,
@ -314,7 +322,6 @@ export default {
label: "name", label: "name",
value: "id", value: "id",
}, },
rules: [ rules: [
{ {
required: true, required: true,
@ -327,7 +334,7 @@ export default {
label: "元流量池名称", label: "元流量池名称",
prop: "flowPoolId", prop: "flowPoolId",
type: "select", type: "select",
dataType: "number", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
searchLabelWidth: 110, searchLabelWidth: 110,
@ -533,6 +540,7 @@ export default {
} }
}, },
"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) {
@ -694,7 +702,7 @@ export default {
this.refreshChange(); this.refreshChange();
done(); done();
}, },
// //
handleCloses() { handleCloses() {
this.excelBox = false; this.excelBox = false;
this.$refs.excelForm.resetFields(); this.$refs.excelForm.resetFields();

2
src/views/communicationmanage/device/device.vue

@ -106,7 +106,7 @@ export default {
label: "tenantName", label: "tenantName",
value: "tenantId", value: "tenantId",
}, },
dataType: "string", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
width: 140, width: 140,

2
src/views/communicationmanage/flowpool/flowpool.vue

@ -80,7 +80,7 @@ export default {
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
search: true, search: true,
dataType: "number", dataType: "String",
dicUrl: "/api/iot-sim/channel/fillData", dicUrl: "/api/iot-sim/channel/fillData",
props: { props: {
label: "name", label: "name",

8
src/views/communicationmanage/outbound/outbound.vue

@ -77,7 +77,7 @@ export default {
label: "tenantName", label: "tenantName",
value: "tenantId", value: "tenantId",
}, },
dataType: "string", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
width: 140, width: 140,
@ -95,7 +95,7 @@ export default {
label: "account", label: "account",
value: "id", value: "id",
}, },
dataType: "string", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
width: 70, width: 70,
@ -113,7 +113,7 @@ export default {
label: "name", label: "name",
value: "id", value: "id",
}, },
dataType: "number", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
width: 100, width: 100,
@ -126,7 +126,7 @@ export default {
label: "流量池名称", label: "流量池名称",
prop: "flowPoolId", prop: "flowPoolId",
type: "select", type: "select",
dataType: "number", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
searchLabelWidth: 110, searchLabelWidth: 110,

4
src/views/original/targetpackagemanage/index.vue

@ -81,7 +81,7 @@ export default {
label: "tenantName", label: "tenantName",
value: "tenantId", value: "tenantId",
}, },
dataType: "string", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
width: 140, width: 140,
@ -103,7 +103,7 @@ export default {
label: "name", label: "name",
value: "id", value: "id",
}, },
dataType: "number", dataType: "String",
rules: [ rules: [
{ {
required: true, required: true,

4
src/views/package/basicpackage/index.vue

@ -81,7 +81,7 @@ export default {
label: "tenantName", label: "tenantName",
value: "tenantId", value: "tenantId",
}, },
dataType: "string", dataType: "String",
span: 12, span: 12,
labelWidth: 130, labelWidth: 130,
width: 140, width: 140,
@ -103,7 +103,7 @@ export default {
label: "name", label: "name",
value: "id", value: "id",
}, },
dataType: "number", dataType: "String",
rules: [ rules: [
{ {
required: true, required: true,

Loading…
Cancel
Save