promptDialog.vue
1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<div>
<a-modal v-model:open="dialogVisible" title="提示" @ok="handleOk">
<div class="tipBox">
<InfoCircleOutlined style="font-size: 15px; color: #FC8B0A;" />
<span style="padding-left: 8px;" >该车辆已有正在进行的检测工单,请勿重复创建</span>
</div>
</a-modal>
</div>
</template>
<script lang="ts">
import { Component } from 'vue-facing-decorator';
import { EnhanceFormComponent } from "@/core/form/EnhanceFormComponent";
import { User } from "lib/src/entity/security/entity/User";
import { InfoCircleOutlined } from "@ant-design/icons-vue";
@Component({
components: { InfoCircleOutlined }
})
export default class promptDialog extends EnhanceFormComponent<User> {
dialogVisible = false;
showVisible(): void {
this.dialogVisible = true;
}
handleOk() {
this.dialogVisible = false;
}
}
</script>
<style scoped lang="less">
.tipBox {
width: 100%;
height: 22px;
line-height: 22px;
color: #2f3133;
font-size: 14px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
}
</style>