|
@@ -26,7 +26,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { ref, reactive, onMounted } from 'vue'
|
|
|
+import { ref, reactive, onMounted, onUnmounted } from 'vue'
|
|
|
import { typeMenuList, componentName } from '../common.data'
|
|
|
import { sysTypeWarnList, sysWarn } from '../common.api'
|
|
|
import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
|
|
@@ -195,7 +195,12 @@ function getClearList() {
|
|
|
onMounted(() => {
|
|
|
getMenuList()
|
|
|
})
|
|
|
-
|
|
|
+onUnmounted(() => {
|
|
|
+ if (timer) {
|
|
|
+ clearTimeout(timer);
|
|
|
+ timer = undefined;
|
|
|
+ }
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
@@ -247,6 +252,7 @@ onMounted(() => {
|
|
|
width: 100%;
|
|
|
height: calc(100% - 48px);
|
|
|
overflow-y: auto;
|
|
|
+
|
|
|
.btn {
|
|
|
position: relative;
|
|
|
width: 81%;
|
|
@@ -256,6 +262,7 @@ onMounted(() => {
|
|
|
background: url('../../../../../assets/images/fire/no-choice.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
cursor: pointer;
|
|
|
+
|
|
|
.text {
|
|
|
width: 80%;
|
|
|
position: absolute;
|
|
@@ -266,6 +273,7 @@ onMounted(() => {
|
|
|
text-align: center;
|
|
|
transform: translate(-50%, 0);
|
|
|
}
|
|
|
+
|
|
|
.warn {
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
@@ -287,6 +295,7 @@ onMounted(() => {
|
|
|
background: url('../../../../../assets/images/fire/choice.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
cursor: pointer;
|
|
|
+
|
|
|
.text {
|
|
|
width: 80%;
|
|
|
position: absolute;
|
|
@@ -297,6 +306,7 @@ onMounted(() => {
|
|
|
text-align: center;
|
|
|
transform: translate(-62%, 0);
|
|
|
}
|
|
|
+
|
|
|
.warn {
|
|
|
width: 100%;
|
|
|
position: absolute;
|