Commit 41a2b41e authored by 赵啸非's avatar 赵啸非

历久设备展示

parent c8ec2a47
...@@ -12,7 +12,14 @@ ...@@ -12,7 +12,14 @@
<el-link style="margin-left: 10px" type="primary" :underline="false" <el-link style="margin-left: 10px" type="primary" :underline="false"
>地图模式</el-link >地图模式</el-link
> >
<el-button style="float:right;margin-right:10px" type="text" icon="el-icon-back" @click="$router.go(-1)" size="small">返回</el-button> <el-button
style="float: right; margin-right: 10px"
type="text"
icon="el-icon-back"
@click="$router.go(-1)"
size="small"
>返回</el-button
>
<el-divider></el-divider> <el-divider></el-divider>
<LayoutTable :data="tableData" :config="tableConfig"> <LayoutTable :data="tableData" :config="tableConfig">
<el-button <el-button
...@@ -67,9 +74,6 @@ ...@@ -67,9 +74,6 @@
type="danger" type="danger"
>未激活:{{ tableData.unActiveCount }}</el-tag >未激活:{{ tableData.unActiveCount }}</el-tag
> >
</LayoutTable> </LayoutTable>
<!-- 设备导入对话框 --> <!-- 设备导入对话框 -->
...@@ -158,7 +162,11 @@ export default { ...@@ -158,7 +162,11 @@ export default {
/** 下载模板操作 */ /** 下载模板操作 */
downloadTemplate() { downloadTemplate() {
this.isExport = true; this.isExport = true;
this.$download("/device/downloadTemplate", {}, { type: "excel",fileName:"设备导入模板" }) this.$download(
"/device/downloadTemplate",
{},
{ type: "excel", fileName: "设备导入模板" }
)
.then(() => (this.isExport = false)) .then(() => (this.isExport = false))
.catch((error) => { .catch((error) => {
this.isExport = false; this.isExport = false;
...@@ -184,15 +192,15 @@ export default { ...@@ -184,15 +192,15 @@ export default {
/** 导出Excel */ /** 导出Excel */
doExport() { doExport() {
this.isExport = true; this.isExport = true;
console.log("ids", this.selection) console.log("ids", this.selection);
this.$download( this.$download(
"/device/exportExcel", "/device/exportExcel",
{ {
"idList": this.selection, idList: this.selection,
"deviceName": this.$route.query["deviceName"], deviceName: this.$route.query["deviceName"],
"siteId": this.$route.query["siteId"], siteId: this.$route.query["siteId"],
}, },
{ type: "excel" ,fileName:"设备表"} { type: "excel", fileName: "设备表" }
) )
.then(() => (this.isExport = false)) .then(() => (this.isExport = false))
.catch((error) => { .catch((error) => {
...@@ -333,7 +341,7 @@ export default { ...@@ -333,7 +341,7 @@ export default {
label: "设备生产商", label: "设备生产商",
prop: "deviceFirmId", prop: "deviceFirmId",
formatter: this.formatter, formatter: this.formatter,
width: 150, width: 150,
}, },
{ label: "负责人", prop: "leadingOfficial" }, { label: "负责人", prop: "leadingOfficial" },
{ label: "联系电话", prop: "leadingOfficialTelephone" }, { label: "联系电话", prop: "leadingOfficialTelephone" },
...@@ -343,6 +351,8 @@ export default { ...@@ -343,6 +351,8 @@ export default {
formatter: this.formatter, formatter: this.formatter,
}, },
{ label: "利旧设备", prop: "source", formatter: this.formatter },
{ {
prop: "enabled", prop: "enabled",
label: "启用/停用", label: "启用/停用",
...@@ -356,7 +366,6 @@ export default { ...@@ -356,7 +366,6 @@ export default {
formatter: this.formatterDate, formatter: this.formatterDate,
}, },
// { label: "激活状态", prop: "active", formatter: this.formatterYES },
{ {
label: "操作", label: "操作",
width: 240, width: 240,
......
...@@ -87,6 +87,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe ...@@ -87,6 +87,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
this.addDict(model, "isReceiveMess", paramService.getParamBySecondOrganize("Device", "isReceiveMess")); this.addDict(model, "isReceiveMess", paramService.getParamBySecondOrganize("Device", "isReceiveMess"));
this.addDict(model, "deviceStatus", paramService.getParamBySecondOrganize("Device", "deviceStatus")); this.addDict(model, "deviceStatus", paramService.getParamBySecondOrganize("Device", "deviceStatus"));
this.addDict(model, "enabled", paramService.getParamBySecondOrganize("Device", "enabled")); this.addDict(model, "enabled", paramService.getParamBySecondOrganize("Device", "enabled"));
this.addDict(model, "source", YesNoEnum.getEnumMap());
super.init(model, context); super.init(model, context);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment