From eb6f8ed56223804837ec5b42e2dce655e53dae4b Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Sat, 03 Feb 2024 17:15:46 +0800
Subject: [PATCH] 隐患统计初始化时间参数、档案管理搜索样式
---
src/views/cGovernance/taskECall.vue | 40 +++++++++++++++++++++++++++++++---------
1 files changed, 31 insertions(+), 9 deletions(-)
diff --git a/src/views/cGovernance/taskECall.vue b/src/views/cGovernance/taskECall.vue
index 05ab674..2508504 100644
--- a/src/views/cGovernance/taskECall.vue
+++ b/src/views/cGovernance/taskECall.vue
@@ -34,6 +34,19 @@
// import AvueMap from "avue-plugin-map";
export default {
data () {
+
+ //手机号格式校验
+ let validatorPhone = function (rule, value, callback) {
+ if (value) {
+ if (!/^1[3456789]\d{9}$/.test(value)) {
+ callback(new Error('手机号格式有误!'))
+ } else {
+ callback()
+ }
+ }
+ callback()
+ }
+
return {
form: {},
query: {},
@@ -46,13 +59,16 @@
datetime: "",
selectionList: [],
option: {
+ labelWidth: 96,
+ searchLabelWidth: 96,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 210,
+
height: "auto",
calcHeight: 54,
dialogWidth: 950,
tip: false,
- searchShow: true,
- searchMenuSpan: 3,
- menuWidth: 280,
border: true,
//stripe:true,
index: true,
@@ -67,6 +83,7 @@
searchSpan: 4,
width: 100,
search: true,
+ searchLabelWidth: 76,
rules: [{
required: true,
message: "请输入事件名称",
@@ -74,13 +91,13 @@
},],
},
{
+ width: 100,
label: "事件类型",
prop: "type",
span: 12,
searchSpan: 4,
dataType: "number",
type: "select",
- width: 100,
dicUrl: "/api/blade-system/dict-biz/dictionary?code=eCallEventType",
props: {
label: "dictValue",
@@ -142,11 +159,12 @@
// search: true,
},
{
+ width: 110,
label: "姓名",
prop: "realName",
span: 12,
searchSpan: 4,
- width: 100,
+ searchLabelWidth: 66,
search: true,
rules: [{
required: false,
@@ -155,17 +173,21 @@
},],
},
{
+ width: 120,
label: "联系方式",
prop: "phone",
span: 12,
- width: 100,
searchSpan: 4,
search: true,
rules: [{
required: false,
message: "请输入联系方式",
trigger: "blur",
- },],
+ },
+ {
+ validator: validatorPhone,
+ trigger: 'blur'
+ }],
},
{
label: "事发地点",
@@ -178,9 +200,9 @@
},],
},
{
+ width: 100,
label: "事发时间",
prop: "occurrenceTime",
- width: 100,
type: "date",
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
@@ -193,7 +215,7 @@
{
label: "事发位置",
prop: "location",
- submitBtn: "提交",
+ submitBtn: "保存",
hide: true,
type: 'map',
dataType: "string",
--
Gitblit v1.9.3