|
|
@ -51,7 +51,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<!-- 导出 :upload-after="uploadAfter"--> |
|
|
|
<!-- 导出 :upload-after="uploadAfter"--> |
|
|
|
<el-dialog title="导入" append-to-body :visible.sync="excelBox" width="40%"> |
|
|
|
<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" |
|
|
@ -212,7 +212,7 @@ export default { |
|
|
|
prop: "excelFile", |
|
|
|
prop: "excelFile", |
|
|
|
type: "upload", |
|
|
|
type: "upload", |
|
|
|
drag: true, |
|
|
|
drag: true, |
|
|
|
disabled: true, |
|
|
|
display: false, |
|
|
|
loadText: "模板上传中,请稍等", |
|
|
|
loadText: "模板上传中,请稍等", |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
propsHttp: { |
|
|
|
propsHttp: { |
|
|
@ -291,6 +291,7 @@ export default { |
|
|
|
border: true, |
|
|
|
border: true, |
|
|
|
index: true, |
|
|
|
index: true, |
|
|
|
indexWidth: 70, |
|
|
|
indexWidth: 70, |
|
|
|
|
|
|
|
dialogDrag:true,//表单窗口拖拽 |
|
|
|
addBtn: true, |
|
|
|
addBtn: true, |
|
|
|
viewBtn: true, |
|
|
|
viewBtn: true, |
|
|
|
delBtn: true, |
|
|
|
delBtn: true, |
|
|
@ -511,14 +512,24 @@ export default { |
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
if (this.excelForm.tenantId != "") { |
|
|
|
if (this.excelForm.tenantId != "") { |
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
|
column.disabled = false; |
|
|
|
column.display = true; |
|
|
|
column.action = `http://223.99.228.240:18081/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
column.action = `http://223.99.228.240:18081/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
column.disabled = false; |
|
|
|
column.display = true; |
|
|
|
column.action = `/api/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
column.action = `/api/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
column.disabled = true; |
|
|
|
column.display = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"excelForm.isCovered"() { |
|
|
|
|
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
|
|
|
|
if (this.excelForm.isCovered !== "") { |
|
|
|
|
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
|
|
|
|
|
column.action = `http://223.99.228.240:18081/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
column.action = `/api/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
"form.$channelId"() { |
|
|
|
"form.$channelId"() { |
|
|
@ -682,6 +693,11 @@ export default { |
|
|
|
this.excelBox = false; |
|
|
|
this.excelBox = false; |
|
|
|
this.refreshChange(); |
|
|
|
this.refreshChange(); |
|
|
|
done(); |
|
|
|
done(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//导入弹窗关闭 |
|
|
|
|
|
|
|
handleCloses() { |
|
|
|
|
|
|
|
this.excelBox = false; |
|
|
|
|
|
|
|
this.$refs.excelForm.resetFields(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//下载模板 |
|
|
|
//下载模板 |
|
|
|
handleTemplate() { |
|
|
|
handleTemplate() { |
|
|
|