|
@@ -20,7 +20,7 @@ |
|
|
label="label" |
|
|
label="label" |
|
|
id="value" |
|
|
id="value" |
|
|
:isData="true" |
|
|
:isData="true" |
|
|
width="300px" |
|
|
|
|
|
|
|
|
width="260px" |
|
|
:data="warnOptions" |
|
|
:data="warnOptions" |
|
|
@change="changeType" |
|
|
@change="changeType" |
|
|
></TreeFilter> |
|
|
></TreeFilter> |
|
@@ -59,7 +59,12 @@ |
|
|
<s-button link :opt="FormOptEnum.DELETE" @click="onDelete([scope.row.id], `确定删除该预警吗?`)" /> |
|
|
<s-button link :opt="FormOptEnum.DELETE" @click="onDelete([scope.row.id], `确定删除该预警吗?`)" /> |
|
|
</template> |
|
|
</template> |
|
|
</ProTable> |
|
|
</ProTable> |
|
|
<el-dialog v-model="visible" :title="detailData.alarmTypeDesc + '-' + detailData.tick" width="830px" :before-close="handleClose"> |
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
|
v-model="visible" |
|
|
|
|
|
:title="detailData.alarmTypeDesc ? detailData.alarmTypeDesc + '-' + detailData.tick : ''" |
|
|
|
|
|
width="830px" |
|
|
|
|
|
:before-close="handleClose" |
|
|
|
|
|
> |
|
|
<div> |
|
|
<div> |
|
|
<img class="detailpic" :src="detailData.snapshotUrl" alt="" /> |
|
|
<img class="detailpic" :src="detailData.snapshotUrl" alt="" /> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
@@ -281,6 +286,7 @@ const columns: ColumnProps<ZJRQ.WarnInfo>[] = [ |
|
|
{ |
|
|
{ |
|
|
prop: "tick", |
|
|
prop: "tick", |
|
|
label: "预警时间", |
|
|
label: "预警时间", |
|
|
|
|
|
width: 180, |
|
|
search: { |
|
|
search: { |
|
|
// 自定义 search 组件 |
|
|
// 自定义 search 组件 |
|
|
span: 1, |
|
|
span: 1, |
|
@@ -340,16 +346,14 @@ function RefreshTable() { |
|
|
let detailData = ref({}); |
|
|
let detailData = ref({}); |
|
|
function onDetail(row: any) { |
|
|
function onDetail(row: any) { |
|
|
visible.value = true; |
|
|
visible.value = true; |
|
|
setTimeout(async ()=> { |
|
|
|
|
|
await warnZJRQApi.detail({ id: row.id }).then((res:any) => { |
|
|
|
|
|
|
|
|
warnZJRQApi.detail({ id: row.id }).then((res:any) => { |
|
|
let { code, data } = res; |
|
|
let { code, data } = res; |
|
|
|
|
|
|
|
|
if (code == 200) { |
|
|
if (code == 200) { |
|
|
detailData.value = data |
|
|
detailData.value = data |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|