
@@ -46,7 +46,8 @@
import Card from "@/components/card.vue";
import { ref, onMounted, computed } from "vue";
import { GlobalStore } from "@/stores";
-import { getRiskList } from "@/api/modules/headNoise";
+import { getRiskList, riskDataEdit } from "@/api/modules/headNoise";
+import { ElMessage } from "element-plus";
let pageNo = ref(1 as any);
let moreScroll = ref(true as any);
@@ -66,10 +67,25 @@ function handleClick(event: any) {
//获取风险清册
let alarmList = ref([] as any);
let detailData = ref({} as any);
-const getAlarmListInfo = async (tip:any) => {
- let data:any = {
+// 销号数据编辑
+const stateEdit = async (obj:any) => {
+ let data: any = {
+ ...obj
+ };
+ const res: any = await riskDataEdit(data);
+ if (res.success) {
+ ElMessage({
+ showClose: true,
+ message: "操作成功",
+ type: "success"
+ });
+ await getAlarmListInfo("search");
+ }
+}
+const getAlarmListInfo = async (tip: any) => {
+ let data: any = {
projectSn: store.sn,
- pageNo: tip == 'search'?1:pageNo.value,
+ pageNo: tip == "search" ? 1 : pageNo.value,
pageSize: 20
};
const res: any = await getRiskList(data);
@@ -98,7 +114,7 @@ function closeDialog() {
}
onMounted(async () => {
- await getAlarmListInfo('search');
+ await getAlarmListInfo("search");
refScrollbar.value.wrapRef.addEventListener("scroll", (e: any) => {
// console.log("滚动容器", e);
const scrollTop = e.target.scrollTop;
@@ -153,7 +169,7 @@ onMounted(async () => {
justify-content: center;
align-items: center;
text-align: center;
- width: 25%;
+ width: 20%;
}
}
.list-box {
@@ -185,7 +201,7 @@ onMounted(async () => {
}
div {
text-align: center;
- width: 25%;
+ width: 20%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
@@ -271,9 +287,12 @@ onMounted(async () => {
}
}
}
-:deep(){
+:deep() {
.h-card .content {
- height: 87% !important;
-}
+ height: 87% !important;
+ }
+ .el-checkbox__inner {
+ background-color: transparent;
+ }
}