Commit d48ee858 authored by liuzhaoh's avatar liuzhaoh

Merge branch 'dev' of http://app.bmetech.com/liuzhaohui/dctomproject into dev

parents dfdc6e4f 7159f508
...@@ -91,14 +91,14 @@ const handleSave = ()=> { ...@@ -91,14 +91,14 @@ const handleSave = ()=> {
width: 100%; width: 100%;
.real-btn { .real-btn {
width: auto; width: auto;
height: 28px; height: 32px;
background: rgb(64, 158, 255); background: rgb(64, 158, 255);
border: 1px solid rgb(64, 158, 255); border: 1px solid rgb(64, 158, 255);
border-radius: 4px; border-radius: 4px;
box-shadow: 0 1px 9px 0 rgba(12, 123, 255, 0.3) inset; box-shadow: 0 1px 9px 0 rgba(12, 123, 255, 0.3) inset;
text-align: center; text-align: center;
padding: 0 16px; padding: 0 16px;
line-height: 28px; line-height: 32px;
color: rgba(255, 255, 255, 0.85); color: rgba(255, 255, 255, 0.85);
margin-right: 16px; margin-right: 16px;
cursor: pointer; cursor: pointer;
......
This diff is collapsed.
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<el-form-item label="事件名称:"> <el-form-item label="事件名称:">
<el-select v-model="formInline.eventNameId" <el-select v-model="formInline.eventNameId"
placeholder="请选择" placeholder="请选择"
style="width: 280px"
> >
<el-option <el-option
v-for="(item, index) in basicConfiguration.ticketEventName" v-for="(item, index) in basicConfiguration.ticketEventName"
...@@ -20,17 +21,20 @@ ...@@ -20,17 +21,20 @@
<el-form-item label="所属区域:"> <el-form-item label="所属区域:">
<el-select v-model="formInline.branchFactoryIds" <el-select v-model="formInline.branchFactoryIds"
placeholder="请选择" placeholder="请选择"
style="width: 180px"
> >
<el-option label="全部" value="" />
<el-option v-for="(item, index) in basicConfiguration.branchFactoryList" <el-option v-for="(item, index) in basicConfiguration.branchFactoryList"
:key="item.id" :key="item.branchFactoryId"
:label="item.name" :label="item.branchFactory"
:value="item.id" :value="item.branchFactoryId"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="设备类型"> <el-form-item label="设备类型">
<el-select v-model="formInline.deviceType"> <el-select v-model="formInline.deviceType"
style="width: 180px"
placeholder="请选择"
>
<el-option label="全部" value="" /> <el-option label="全部" value="" />
<el-option <el-option
v-for="(item, index) in basicConfiguration.deviceList" v-for="(item, index) in basicConfiguration.deviceList"
...@@ -42,14 +46,13 @@ ...@@ -42,14 +46,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发生时间"> <el-form-item label="发生时间">
<el-date-picker type="daterange" <el-date-picker type="datetimerange"
v-model="formInline.createTime" v-model="formInline.createTime"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"
date-format="YYYY/MM/DD ddd" value-format="YYYY-MM-DD HH:mm:ss"
time-format="A hh:mm:ss"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -935,42 +938,7 @@ const changeBag = (data)=>{ ...@@ -935,42 +938,7 @@ const changeBag = (data)=>{
} }
const tableData = [ const tableData = ref([]);
{
id: 1,
name: '张三',
phone: '13888888888',
email: '<EMAIL>',
branchFactory: '上海分公司',
deviceType: '烟感',
eventTime: '2021-09-09 12:00:00',
eventStatus: '已处理',
eventDetail: '设备报警',
level: 1
},
{
id: 2,
name: '张三',
phone: '13888888888',
email: '<EMAIL>',
branchFactory: '上海分公司',
deviceType: '烟感',
eventTime: '2021-09-09 12:00:00',
eventStatus: '已处理',
eventDetail: '设备报警',
level: 2
},
{
id: 3,
name: '张三',
phone: '13888888888',
email: '<EMAIL>',
branchFactory: '上海分公司',
deviceType: '烟感',
eventTime: '20',
level: 3
}
];
const tableColumns = ref([ const tableColumns = ref([
{ {
...@@ -1051,8 +1019,9 @@ const getWarnAndTicketConfigMap = ()=> { ...@@ -1051,8 +1019,9 @@ const getWarnAndTicketConfigMap = ()=> {
} }
getDataFun(url,params).then(res => { getDataFun(url,params).then(res => {
if (res && res.code === 1) { if (res && res.code === 1) {
const { ticketEventName, eventType } = res.data; const { ticketEventName, deviceType } = res.data;
basicConfiguration.ticketEventName = basicConfiguration.ticketEventName.concat(ticketEventName); basicConfiguration.ticketEventName = basicConfiguration.ticketEventName.concat(ticketEventName);
basicConfiguration.deviceList = deviceType;
} }
}); });
}; };
...@@ -1143,9 +1112,9 @@ const disposeType = (list)=> { ...@@ -1143,9 +1112,9 @@ const disposeType = (list)=> {
} }
onMounted(() => { onMounted(() => {
// getBranchTypeList(); getBranchTypeList();
// getWarnAndTicketConfigMap(); getWarnAndTicketConfigMap();
// searchData(); searchData();
}); });
const currentPage = ref(1); const currentPage = ref(1);
...@@ -1176,6 +1145,9 @@ const handlePaginationChange = (pagination) => { ...@@ -1176,6 +1145,9 @@ const handlePaginationChange = (pagination) => {
color: #fff; color: #fff;
text-align: center; text-align: center;
} }
.table-box {
height: calc(100vh - 200px);
}
.yellow { .yellow {
// color: #faa508; // color: #faa508;
position: relative; position: relative;
...@@ -1186,9 +1158,8 @@ const handlePaginationChange = (pagination) => { ...@@ -1186,9 +1158,8 @@ const handlePaginationChange = (pagination) => {
border-radius: 50%; border-radius: 50%;
background: #ffb224; background: #ffb224;
position: absolute; position: absolute;
left: 50%; left: 0;
top: 50%; top: 6px;
transform: translate(-50%);
} }
} }
.red { .red {
...@@ -1200,9 +1171,8 @@ const handlePaginationChange = (pagination) => { ...@@ -1200,9 +1171,8 @@ const handlePaginationChange = (pagination) => {
border-radius: 50%; border-radius: 50%;
background: #db001d; background: #db001d;
position: absolute; position: absolute;
left: 50%; left: 0;
top: 50%; top: 6px;
transform: translate(-50%);
} }
} }
...@@ -1215,9 +1185,8 @@ const handlePaginationChange = (pagination) => { ...@@ -1215,9 +1185,8 @@ const handlePaginationChange = (pagination) => {
border-radius: 50%; border-radius: 50%;
background: #aa05fa; background: #aa05fa;
position: absolute; position: absolute;
left: 50%; left: 0;
top: 50%; top: 6px;
transform: translate(-50%);
} }
} }
.view-btn { .view-btn {
......
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