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

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