Commit 21f4e30c authored by 姬鋆屾's avatar 姬鋆屾

parent 5f03309f
<template> <template>
<div class="page"> <div class="page">
<LayoutTable notAdd notDel :data="tableData" :config="tableConfig"> <LayoutTable notAdd notDel :data="tableData" :config="tableConfig">
<el-button <el-button
slot="table-head-left2" slot="table-head-left2"
style="margin-left: 10px" style="margin-left: 10px"
...@@ -11,7 +10,6 @@ ...@@ -11,7 +10,6 @@
@click="monitorWarn" @click="monitorWarn"
>监测预警</el-button >监测预警</el-button
> >
</LayoutTable> </LayoutTable>
<drawer-show ref="dataDrawerShow" /> <drawer-show ref="dataDrawerShow" />
...@@ -21,18 +19,18 @@ ...@@ -21,18 +19,18 @@
</template> </template>
<script> <script>
/** 表单弹出框模式需引入 */ /** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow"; import dialogShow from "./dialogshow";
import drawerShow from "./dataDrawerShow"; import drawerShow from "./dataDrawerShow";
import table from "@/assets/mixins/table"; import table from "@/assets/mixins/table";
export default { export default {
name: "AppointmentRecordsList", name: "AppointmentRecordsList",
components: { components: {
dialogShow,drawerShow dialogShow,
drawerShow,
}, },
mixins: [table], mixins: [table],
created() { created() {},
},
methods: { methods: {
/** 重写新增方法 */ /** 重写新增方法 */
toAdd(row) { toAdd(row) {
...@@ -52,14 +50,20 @@ ...@@ -52,14 +50,20 @@
}, },
serviceConstraint(row) { serviceConstraint(row) {
let _this=this let _this = this;
this.$confirm('服务约束后,系统将停止向该群众推送此项服务,是否确认?', "系统服务", { this.$confirm(
"服务约束后,系统将停止向该群众推送此项服务,是否确认?",
"系统服务",
{
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning",
}).then(function() { }
)
.then(function() {
//todo //todo
_this.$post("/appointment/records", { id: [row.id] }) _this
.$post("/appointment/records", { id: [row.id] })
.then((res) => { .then((res) => {
if (res && res.code && res.code == 1) { if (res && res.code && res.code == 1) {
_this.getList(); _this.getList();
...@@ -69,12 +73,9 @@ ...@@ -69,12 +73,9 @@
.catch((error) => { .catch((error) => {
_this.$message.error(error.message); _this.$message.error(error.message);
}); });
}).then(response => {
}) })
} .then((response) => {});
},
}, },
data() { data() {
return { return {
...@@ -104,28 +105,38 @@ ...@@ -104,28 +105,38 @@
label: "姓名", label: "姓名",
fuzzy: true, fuzzy: true,
}, },
], ],
columns: [ columns: [
{type: "index",label: "序号",width: 50}, { type: "index", label: "序号", width: 50 },
{label: "姓名", prop: "name"}, { label: "姓名", prop: "name" },
{label: "联系方式", prop: "contactInfo"}, { label: "联系方式", prop: "contactInfo" },
{label: "身份证号码", prop: "idNumber"}, { label: "身份证号码", prop: "idNumber" },
{label: "预约业务", prop: "reservationService"}, { label: "预约业务", prop: "reservationService" },
{label: "预约编号", prop: "reservationNumber"}, { label: "预约编号", prop: "reservationNumber" },
{label: "监测时间", prop: "monitorTime", formatter: this.formatterDate}, {
label: "监测时间",
prop: "monitorTime",
formatter: this.formatterDate,
},
{label: "监测设备", prop: "monitorDevice"}, { label: "监测设备", prop: "monitorDevice" },
{label: "签到方式", prop: "checkInMethod",formatter: this.formatter}, {
label: "签到方式",
prop: "checkInMethod",
formatter: this.formatter,
},
{label: "监测凭证", prop: "monitorCertificate",formatter: (row) => { {
label: "监测凭证",
prop: "monitorCertificate",
formatter: (row) => {
return row.monitorCertificate != "" ? ( return row.monitorCertificate != "" ? (
<el-image <el-image
style="width: 70px; height: 70px" style="width: 70px; height: 70px"
...@@ -135,11 +146,12 @@ ...@@ -135,11 +146,12 @@
) : ( ) : (
"--" "--"
); );
},}, },
},
{ {
label: "操作", label: "操作",
width: 240, width: 240,
formatter: row => { formatter: (row) => {
return ( return (
<div> <div>
<el-button <el-button
...@@ -154,11 +166,11 @@ ...@@ -154,11 +166,11 @@
</el-button> </el-button>
</div> </div>
); );
} },
} },
] ],
} },
};
}
}; };
},
};
</script> </script>
<template> <template>
<div class="page"> <div class="page">
<LayoutTable :data="tableData" :config="tableConfig"> <LayoutTable :data="tableData" :config="tableConfig"> </LayoutTable>
</LayoutTable>
<dialog-show ref="dialogform" @ok="getData" /> <dialog-show ref="dialogform" @ok="getData" />
</div> </div>
</template> </template>
<script> <script>
/** 表单弹出框模式需引入 */ /** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow"; import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table"; import table from "@/assets/mixins/table";
export default { export default {
name: "DeviceList", name: "DeviceList",
components: { components: {
dialogShow dialogShow,
},
mixins: [table],
created() {
}, },
mixins: [table],
created() {},
methods: { methods: {
/** 重写新增方法 */ /** 重写新增方法 */
toAdd(row) { toAdd(row) {
...@@ -33,51 +30,72 @@ ...@@ -33,51 +30,72 @@
toView(row) { toView(row) {
this.$refs.dialogform.view(row); this.$refs.dialogform.view(row);
}, },
}, },
data() { data() {
return { return {
config: { config: {
search: [ search: [
{
name: "deviceName",
type: "text",
label: "设备名称",
fuzzy: true,
},
{
name: "deviceStatus",
type: "select",
label: "设备状态",
},
], ],
columns: [ columns: [
{type: "selection", width: 60}, { type: "selection", width: 60 },
{type: "index",label: "序号",width: 50}, { type: "index", label: "序号", width: 50 },
{label: "设备名称", prop: "deviceName"}, { label: "设备名称", prop: "deviceName" },
{label: "设备编码", prop: "deviceCode"}, { label: "设备编码", prop: "deviceCode" },
{label: "设备位置", prop: "deviceLocation"}, { label: "设备位置", prop: "deviceLocation" },
{label: "经度", prop: "lon"}, { label: "经度", prop: "lon" },
{label: "纬度", prop: "lati"}, { label: "纬度", prop: "lati" },
{label: "楼层", prop: "floor",formatter: this.formatter}, { label: "楼层", prop: "floor", formatter: this.formatter },
{label: "楼栋", prop: "build",formatter: this.formatter}, { label: "楼栋", prop: "build", formatter: this.formatter },
/* {label: "超时时间", prop: "timeOutPeriod",formatter: this.formatter}, /* {label: "超时时间", prop: "timeOutPeriod",formatter: this.formatter},
{label: "临近时间", prop: "nearTime",formatter: this.formatter},*/ {label: "临近时间", prop: "nearTime",formatter: this.formatter},*/
{label: "设备状态 ", prop: "deviceStatus",formatter: this.formatter}, {
label: "设备状态 ",
prop: "deviceStatus",
formatter: this.formatter,
},
{label: "备注", prop: "deviceRemark"}, { label: "备注", prop: "deviceRemark" },
{ {
label: "操作", label: "操作",
width: 240, width: 240,
formatter: row => { formatter: (row) => {
return ( return (
<table-buttons noAdd noEdit noDel row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} /> <table-buttons
noAdd
noEdit
noDel
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
); );
} },
} },
] ],
} },
};
}
}; };
},
};
</script> </script>
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