|
|
|
@ -51,7 +51,13 @@
|
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
<!-- 导出 :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 |
|
|
|
|
:option="excelOption" |
|
|
|
|
v-model="excelForm" |
|
|
|
@ -158,6 +164,7 @@ import {
|
|
|
|
|
} from "@/api/communication/basiccard"; |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import { getToken } from "@/util/auth"; |
|
|
|
|
import { log } from "mathjs"; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
var starts = (rule, value, callback) => { |
|
|
|
@ -193,6 +200,7 @@ export default {
|
|
|
|
|
label: "通道名称", |
|
|
|
|
prop: "tenantId", |
|
|
|
|
type: "select", |
|
|
|
|
dataType: "Number", |
|
|
|
|
span: 20, |
|
|
|
|
dicUrl: "/api/iot-sim/channel/fillData", |
|
|
|
|
props: { |
|
|
|
@ -291,7 +299,7 @@ export default {
|
|
|
|
|
border: true, |
|
|
|
|
index: true, |
|
|
|
|
indexWidth: 70, |
|
|
|
|
dialogDrag:true,//表单窗口拖拽 |
|
|
|
|
dialogDrag: true, //表单窗口拖拽 |
|
|
|
|
addBtn: true, |
|
|
|
|
viewBtn: true, |
|
|
|
|
delBtn: true, |
|
|
|
@ -305,7 +313,7 @@ export default {
|
|
|
|
|
label: "通道名称", |
|
|
|
|
prop: "channelId", |
|
|
|
|
type: "select", |
|
|
|
|
dataType: "number", |
|
|
|
|
dataType: "String", |
|
|
|
|
span: 12, |
|
|
|
|
labelWidth: 130, |
|
|
|
|
search: true, |
|
|
|
@ -314,7 +322,6 @@ export default {
|
|
|
|
|
label: "name", |
|
|
|
|
value: "id", |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
@ -327,7 +334,7 @@ export default {
|
|
|
|
|
label: "元流量池名称", |
|
|
|
|
prop: "flowPoolId", |
|
|
|
|
type: "select", |
|
|
|
|
dataType: "number", |
|
|
|
|
dataType: "String", |
|
|
|
|
span: 12, |
|
|
|
|
labelWidth: 130, |
|
|
|
|
searchLabelWidth: 110, |
|
|
|
@ -533,6 +540,7 @@ export default {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"form.$channelId"() { |
|
|
|
|
console.log(this.form.channelId, "channelId"); |
|
|
|
|
const columns = this.findObject(this.option.column, "flowPoolId"); |
|
|
|
|
if (this.form.$channelId != undefined) { |
|
|
|
|
if (this.form.$channelId.indexOf("电信") != -1) { |
|
|
|
@ -694,7 +702,7 @@ export default {
|
|
|
|
|
this.refreshChange(); |
|
|
|
|
done(); |
|
|
|
|
}, |
|
|
|
|
//导入弹窗关闭 |
|
|
|
|
//导入弹窗关闭 |
|
|
|
|
handleCloses() { |
|
|
|
|
this.excelBox = false; |
|
|
|
|
this.$refs.excelForm.resetFields(); |
|
|
|
|