diff --git a/src/views/auditPages/assetsManagement/mobileApplication.vue b/src/views/auditPages/assetsManagement/mobileApplication.vue index 48986fc..234b02f 100644 --- a/src/views/auditPages/assetsManagement/mobileApplication.vue +++ b/src/views/auditPages/assetsManagement/mobileApplication.vue @@ -99,8 +99,8 @@
- + diff --git a/src/views/auditPages/assetsManagement/program.vue b/src/views/auditPages/assetsManagement/program.vue index b7fe655..5b8645a 100644 --- a/src/views/auditPages/assetsManagement/program.vue +++ b/src/views/auditPages/assetsManagement/program.vue @@ -94,12 +94,12 @@
- + diff --git a/src/views/auditPages/taskManagement/index.vue b/src/views/auditPages/taskManagement/index.vue index 85dfdab..434a9e5 100644 --- a/src/views/auditPages/taskManagement/index.vue +++ b/src/views/auditPages/taskManagement/index.vue @@ -241,6 +241,7 @@ export default { } }, mounted() { + localStorage.removeItem("activeName") this.getInfo(); this.cancalDebounce(); window.addEventListener('resize', this.cancalDebounce); @@ -386,6 +387,10 @@ export default { // 任务创建 handleAdd() { this.$refs.taskDialog.open() + setTimeout(() => { + this.$refs.ruleForm.clearValidate() + + }, 100); }, // 关闭弹框 importClose() { diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue index 1352938..16ce249 100644 --- a/src/views/auditPages/taskManagement/info.vue +++ b/src/views/auditPages/taskManagement/info.vue @@ -301,6 +301,8 @@ export default { console.log(tab); this.activeName = tab.name this.xtmcName = tab.$attrs.xtmcName, + localStorage.setItem("activeName",this.activeName) + this.handleQuery() }, //返回图片 @@ -408,6 +410,10 @@ export default { }); }) this.activeName = this.chanckListTow[0].lable + if(localStorage.getItem("activeName")){ + this.activeName = localStorage.getItem("activeName") + localStorage.setItem("activeName",this.activeName) + } this.handleQuery(); }, diff --git a/src/views/components/renwuType/index_v1.vue b/src/views/components/renwuType/index_v1.vue index d3d1463..06087b8 100644 --- a/src/views/components/renwuType/index_v1.vue +++ b/src/views/components/renwuType/index_v1.vue @@ -44,7 +44,7 @@ required: true, pattern: /^[a-zA-Z0-9]{18}$/, message: '请输入正确格式的18位统一社会信用代码', - trigger: 'blur' + trigger: 'change' }, ]" label="统一社会信用代码" required> @@ -149,7 +149,7 @@ type: 'email', required: true, message: '请输入正确的邮箱地址', - trigger: ['blur', 'change'] + trigger: ['change', 'change'] } ]" > @@ -209,7 +209,7 @@ required: true, pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: '请输入正确的手机号码', - trigger: 'blur' + trigger: 'change' } ]" > @@ -226,7 +226,7 @@ required: true, type: 'email', message: '请输入正确的邮箱地址', - trigger: ['blur', 'change'] + trigger: ['change', 'change'] } ]" > @@ -295,27 +295,26 @@ export default { data() { return { ruleForm:{ - }, rules: { ssdw: [ - { required: true, message: "所属单位不能为空", trigger: "blur" } + { required: true, message: "所属单位不能为空", trigger: "change" } ], xcxmc: [ - { required: true, message: "小程序名称不能为空", trigger: "blur" } + { required: true, message: "小程序名称不能为空", trigger: "change" } ], appId: [ - { required: true, message: "APPID不能为空", trigger: "blur" } + { required: true, message: "APPID不能为空", trigger: "change" } ], rzzt: [ - { required: true, message: "认证主体不能为空", trigger: "blur" } + { required: true, message: "认证主体不能为空", trigger: "change" } ], state: [ { required: true, message: "小程序状态不能为空", trigger: "change" } ], ysId: [ - { required: true, message: "账号原始ID不能为空", trigger: "blur" } + { required: true, message: "账号原始ID不能为空", trigger: "change" } ], packState: [ { required: true, message: "小程序包状态不能为空", trigger: "change" } @@ -330,13 +329,13 @@ export default { { required: true, message: "认证类型不能为空", trigger: "change" } ], icpState: [ - { required: true, message: "icp备案状态不能为空", trigger: "blur" } + { required: true, message: "icp备案状态不能为空", trigger: "change" } ], ymbmd: [ - { required: true, message: "域名白名单不能为空", trigger: "blur" } + { required: true, message: "域名白名单不能为空", trigger: "change" } ], fwlm: [ - { required: true, message: "服务类目不能为空", trigger: "blur" } + { required: true, message: "服务类目不能为空", trigger: "change" } ], sshy: [ @@ -349,24 +348,24 @@ export default { { required: true, message: "行政区划不能为空", trigger: "change" } ], xtzrr: [ - { required: true, message: "系统责任人不能为空", trigger: "blur" } + { required: true, message: "系统责任人不能为空", trigger: "change" } ], xtzrryx: [ - { required: true, message: "系统责任人邮箱不能为空", trigger: "blur" }, - { type: 'email', message: "请输入正确的邮箱地址", trigger: ["blur", "change"] } + { required: true, message: "系统责任人邮箱不能为空", trigger: "change" }, + { type: 'email', message: "请输入正确的邮箱地址", trigger: ["change", "change"] } ], xtzrrdz: [ - { required: true, message: "系统责任人地址不能为空", trigger: "blur" } + { required: true, message: "系统责任人地址不能为空", trigger: "change" } ], yycjAppid: [ - { required: true, message: "引入插件(APPID)不能为空", trigger: "blur" } + { required: true, message: "引入插件(APPID)不能为空", trigger: "change" } ], yycjKfz: [ - { required: true, message: "引用插件(开发者)不能为空", trigger: "blur" } + { required: true, message: "引用插件(开发者)不能为空", trigger: "change" } ], xtjj: [ - { required: true, message: "系统简介不能为空", trigger: "blur" } + { required: true, message: "系统简介不能为空", trigger: "change" } ] }, @@ -404,6 +403,12 @@ export default { } assetTaskminitaskSh(obj).then(res=>{ this.ruleForm = res.data; + + console.log(111); + setTimeout(() => { + this.$refs.ruleForm.clearValidate() + + }, 100); }) }, // 单位名称模糊查询 @@ -427,7 +432,7 @@ export default { }); this.$router.go(-1); this.ruleForm.bfyy = "" - this.$refs.baofei.resetForm() + this.$refs.baofei.resetForm() }) }, diff --git a/src/views/components/renwuType/index_v2.vue b/src/views/components/renwuType/index_v2.vue index 6b01b97..f3f3c96 100644 --- a/src/views/components/renwuType/index_v2.vue +++ b/src/views/components/renwuType/index_v2.vue @@ -47,7 +47,7 @@ pattern: /^[a-zA-Z0-9]{18}$/, message: '请输入正确格式的18位统一社会信用代码', - trigger: 'blur' + trigger: 'change' } ]" > @@ -178,7 +178,7 @@ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: '请输入正确的手机号码', - trigger: 'blur' + trigger: 'change' } ]" > @@ -196,7 +196,7 @@ type: 'email', message: '请输入正确的邮箱地址', - trigger: ['blur', 'change'] + trigger: ['change', 'change'] } ]" > @@ -277,26 +277,26 @@ export default { }, rules: { ssdw: [ - { required: true, message: "所属单位不能为空", trigger: "blur" } + { required: true, message: "所属单位不能为空", trigger: "change" } ], gzhmc: [ - { required: true, message: "公众号名称不能为空", trigger: "blur" } + { required: true, message: "公众号名称不能为空", trigger: "change" } ], wxh: [ - { required: true, message: "微信号不能为空", trigger: "blur" } + { required: true, message: "微信号不能为空", trigger: "change" } ], rzzt: [ - { required: true, message: "认证主体不能为空", trigger: "blur" } + { required: true, message: "认证主体不能为空", trigger: "change" } ], tyshxydm: [ - { required: true, message: "统一社会信用代码不能为空", trigger: "blur" }, - { pattern: /^[a-zA-Z0-9]{18}$/, message: "请输入正确格式的18位统一社会信用代码", trigger: "blur" } + { required: true, message: "统一社会信用代码不能为空", trigger: "change" }, + { pattern: /^[a-zA-Z0-9]{18}$/, message: "请输入正确格式的18位统一社会信用代码", trigger: "change" } ], gzhzt: [ { required: true, message: "公众号状态不能为空", trigger: "change" } ], gzhId: [ - { required: true, message: "公众号ID不能为空", trigger: "blur" } + { required: true, message: "公众号ID不能为空", trigger: "change" } ], gzhlx: [ { required: true, message: "公众号类型不能为空", trigger: "change" } @@ -320,30 +320,30 @@ export default { { required: true, message: "行政区划不能为空", trigger: "change" } ], xtzrr: [ - { required: true, message: "系统责任人不能为空", trigger: "blur" } + { required: true, message: "系统责任人不能为空", trigger: "change" } ], xtzrrdh: [ - { required: true, message: "系统责任人电话不能为空", trigger: "blur" }, - { pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" } + { required: true, message: "系统责任人电话不能为空", trigger: "change" }, + { pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "change" } ], xtzrryx: [ - { required: true, message: "系统责任人邮箱不能为空", trigger: "blur" }, - { type: 'email', message: "请输入正确的邮箱地址", trigger: ['blur', 'change'] } + { required: true, message: "系统责任人邮箱不能为空", trigger: "change" }, + { type: 'email', message: "请输入正确的邮箱地址", trigger: ['change', 'change'] } ], xtzrrdz: [ - { required: true, message: "系统责任人地址不能为空", trigger: "blur" } + { required: true, message: "系统责任人地址不能为空", trigger: "change" } ], cdmc: [ - { required: true, message: "菜单信息(菜单名称)不能为空", trigger: "blur" } + { required: true, message: "菜单信息(菜单名称)不能为空", trigger: "change" } ], cdlj: [ - { required: true, message: "菜单信息(菜单链接)不能为空", trigger: "blur" } + { required: true, message: "菜单信息(菜单链接)不能为空", trigger: "change" } ], cdlx: [ - { required: true, message: "菜单信息(菜单类型)不能为空", trigger: "blur" } + { required: true, message: "菜单信息(菜单类型)不能为空", trigger: "change" } ], xtjj: [ - { required: true, message: "系统简介不能为空", trigger: "blur" } + { required: true, message: "系统简介不能为空", trigger: "change" } ] }, @@ -380,6 +380,10 @@ export default { } assetTaskofficetaskSh(obj).then(res=>{ this.ruleForm = res.data; + setTimeout(() => { + this.$refs.ruleForm.clearValidate() + + }, 100); }) }, // 单位名称模糊查询 diff --git a/src/views/components/renwuType/index_v3.vue b/src/views/components/renwuType/index_v3.vue index 0470e6f..9b54062 100644 --- a/src/views/components/renwuType/index_v3.vue +++ b/src/views/components/renwuType/index_v3.vue @@ -162,7 +162,7 @@ required: true, pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: '请输入正确的手机号码', - trigger: 'blur' + trigger: 'change' } ]" > @@ -177,7 +177,7 @@ required: true, type: 'email', message: '请输入正确的邮箱地址', - trigger: ['blur', 'change'] + trigger: ['change', 'change'] } ]" > @@ -241,19 +241,19 @@ export default { }, rules: { ssdw: [ - { required: true, message: "所属单位不能为空", trigger: "blur" } + { required: true, message: "所属单位不能为空", trigger: "change" } ], dzyxhz: [ - { required: true, message: "电子邮箱后缀不能为空", trigger: "blur" } + { required: true, message: "电子邮箱后缀不能为空", trigger: "change" } ], jslx: [ { required: true, message: "建设类型不能为空", trigger: "change" } ], yjxtgys: [ - { required: true, message: "邮件系统供应商不能为空", trigger: "blur" } + { required: true, message: "邮件系统供应商不能为空", trigger: "change" } ], mmsf: [ - { required: true, message: "密码算法不能为空", trigger: "blur" } + { required: true, message: "密码算法不能为空", trigger: "change" } ], yjxtzc: [ { required: true, message: "邮件系统状态不能为空", trigger: "change" } @@ -265,7 +265,7 @@ export default { { required: true, message: "安全备份环境不能为空", trigger: "change" } ], szzscs: [ - { required: true, message: "数字证书厂商不能为空", trigger: "blur" } + { required: true, message: "数字证书厂商不能为空", trigger: "change" } ], sxsj: [ { required: true, message: "上线时间不能为空", trigger: "change" } @@ -280,14 +280,14 @@ export default { { required: true, message: "行政区划不能为空", trigger: "change" } ], xtzrr: [ - { required: true, message: "系统责任人不能为空", trigger: "blur" } + { required: true, message: "系统责任人不能为空", trigger: "change" } ], xtzrrdz: [ - { required: true, message: "系统责任人地址不能为空", trigger: "blur" } + { required: true, message: "系统责任人地址不能为空", trigger: "change" } ], jj: [ - { required: true, message: "简介不能为空", trigger: "blur" } + { required: true, message: "简介不能为空", trigger: "change" } ] }, @@ -323,6 +323,10 @@ export default { } assetTaskemailtaskSh(obj).then(res=>{ this.ruleForm = res.data; + setTimeout(() => { + this.$refs.ruleForm.clearValidate() + + }, 100); }) }, // 单位名称模糊查询 diff --git a/src/views/components/renwuType/index_v4.vue b/src/views/components/renwuType/index_v4.vue index 61cf73f..4db0d61 100644 --- a/src/views/components/renwuType/index_v4.vue +++ b/src/views/components/renwuType/index_v4.vue @@ -58,7 +58,7 @@ required: true, pattern: /^[a-zA-Z0-9]{18}$/, message: '请输入正确格式的18位统一社会信用代码', - trigger: 'blur' + trigger: 'change' } ]" > @@ -202,23 +202,23 @@ export default { }, rules: { ssdw: [ - { required: true, message: "所属单位不能为空", trigger: "blur" } + { required: true, message: "所属单位不能为空", trigger: "change" } ], appName: [ - { required: true, message: "移动应用名称不能为空", trigger: "blur" } + { required: true, message: "移动应用名称不能为空", trigger: "change" } ], pack: [ - { required: true, message: "包名不能为空", trigger: "blur" } + { required: true, message: "包名不能为空", trigger: "change" } ], icpState: [ { required: true, message: "icp备案状态不能为空", trigger: "change" } ], icpbah: [ - { required: true, message: "icp备案号不能为空", trigger: "blur" } + { required: true, message: "icp备案号不能为空", trigger: "change" } ], wjm: [ - { required: true, message: "文件名不能为空", trigger: "blur" } + { required: true, message: "文件名不能为空", trigger: "change" } ], sshy: [ { required: true, message: "所属行业不能为空", trigger: "change" } @@ -233,22 +233,22 @@ export default { { required: true, message: "安全加固情况不能为空", trigger: "change" } ], bbxx: [ - { required: true, message: "版本信息不能为空", trigger: "blur" } + { required: true, message: "版本信息不能为空", trigger: "change" } ], bbh: [ - { required: true, message: "版本信息(版本号)不能为空", trigger: "blur" } + { required: true, message: "版本信息(版本号)不能为空", trigger: "change" } ], bbxxMd5: [ - { required: true, message: "版本信息(MD5)不能为空", trigger: "blur" } + { required: true, message: "版本信息(MD5)不能为空", trigger: "change" } ], bbxxSjpt: [ - { required: true, message: "版本信息(上架平台)不能为空", trigger: "blur" } + { required: true, message: "版本信息(上架平台)不能为空", trigger: "change" } ], wjdx: [ - { required: true, message: "文件大小不能为空", trigger: "blur" } + { required: true, message: "文件大小不能为空", trigger: "change" } ], jj: [ - { required: true, message: "简介不能为空", trigger: "blur" } + { required: true, message: "简介不能为空", trigger: "change" } ] }, @@ -284,6 +284,10 @@ export default { } assetTaskapptaskSh(obj).then(res=>{ this.ruleForm = res.data; + setTimeout(() => { + this.$refs.ruleForm.clearValidate() + + }, 100); }) }, // 单位名称模糊查询 diff --git a/src/views/unitPages/myTask/index.vue b/src/views/unitPages/myTask/index.vue index ecfd6c9..04aa22b 100644 --- a/src/views/unitPages/myTask/index.vue +++ b/src/views/unitPages/myTask/index.vue @@ -179,6 +179,7 @@ export default { } }, mounted() { + localStorage.removeItem("activeName") console.log(this.$store.state.user); console.log(this.$store.state.user.roles[0]); diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue index 08da3c7..55b76e7 100644 --- a/src/views/unitPages/myTask/info.vue +++ b/src/views/unitPages/myTask/info.vue @@ -272,8 +272,9 @@ export default { destroyed() { window.removeEventListener('resize', this.cancalDebounce); }, - + methods: { + handleClick(tab, event) { console.log(tab.name); this.formInline = { @@ -281,8 +282,8 @@ export default { } this.activeName = tab.name this.xtmcName = tab.$attrs.xtmcName, - - this.handleQuery() + localStorage.setItem("activeName",this.activeName) + this.handleQuery() }, //返回图片 @@ -390,11 +391,11 @@ export default { }); }) this.activeName = this.chanckListTow[0].lable + if(localStorage.getItem("activeName")){ + this.activeName = localStorage.getItem("activeName") + localStorage.setItem("activeName",this.activeName) + } this.handleQuery(); - - - - }, titleInfo() { getassetTaskid(this.$route.query.id || this.$route.meta.id).then(res => {