From 547aab154e85a9a89f1e320f92bd43854d10faeb Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期四, 14 十二月 2023 14:12:45 +0800 Subject: [PATCH] 1、调整车间看板页面详情弹窗描述列表内容字段 2、报警分析页面在原有表格中为每个报警号增加子表格,内容为出现此报警号的设备ID以及报警时间等 3、报警分析页面表格请求数据设置加载中动画 4、调整设备参数阈值管理页面添加或编辑阈值上下限输入框为数字输入框,避免上下限数字比较大小时出现问题 --- src/views/system/modules/PasswordModal.vue | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/views/system/modules/PasswordModal.vue b/src/views/system/modules/PasswordModal.vue index f9f897e..810cc5f 100644 --- a/src/views/system/modules/PasswordModal.vue +++ b/src/views/system/modules/PasswordModal.vue @@ -31,6 +31,7 @@ <script> import {changePassword} from '@/api/api' + import { ajaxGetDictItems, getDictItemsFromCache } from '@/api/api' export default { name: "PasswordModal", @@ -69,6 +70,13 @@ sm: { span: 16 }, }, form:this.$form.createForm(this) + } + }, + watch:{ + visible:{ + handler(value){ + if(value) this.initDictData('password_length') + } } }, created () { @@ -136,7 +144,20 @@ handleConfirmBlur (e) { const value = e.target.value this.confirmDirty = this.confirmDirty || !!value - } + }, + initDictData(dictCode) { + //鏍规嵁瀛楀吀Code, 鍒濆鍖栧瓧鍏告暟缁� + ajaxGetDictItems(dictCode, null).then((res) => { + if (res.success) { + const regExp = new RegExp("^(?=.*[a-zA-Z])(?=.*\\\d)(?=.*[~!@#$%^&*()_+`\\-={}:\";'<>?,./]).{"+Number(res.result[0].value)+",}$"); + this.validatorRules.password.rules[0]={ + required:true, + pattern: regExp, + message: `瀵嗙爜鐢�${res.result[0].value}浣嶆暟瀛椼�佸ぇ灏忓啓瀛楁瘝鍜岀壒娈婄鍙风粍鎴�!`, + } + } + }) + }, } } </script> \ No newline at end of file -- Gitblit v1.9.3