From 3be64a2af3efaa0ca75612bac31e4816f4668c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Mon, 10 Mar 2025 11:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=AD=90=E9=82=AE=E4=BB=B6=E5=85=B3?= =?UTF-8?q?=E5=81=9C=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/myAssetsType/index_v3.vue | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/views/components/myAssetsType/index_v3.vue b/src/views/components/myAssetsType/index_v3.vue index 851e10b..682f7ca 100644 --- a/src/views/components/myAssetsType/index_v3.vue +++ b/src/views/components/myAssetsType/index_v3.vue @@ -72,6 +72,7 @@ @@ -244,6 +245,23 @@ + + + + + + + @@ -350,9 +368,17 @@ export default { ...mapGetters(["nickName"]), }, data() { + const changeSateTetx = (rule, value, callback) => { + if (this.ruleForm.yjxtzc == 2 && !value) { + callback(new Error("请填写")); + } else { + callback(); + } + }; return { ruleForm: {}, rules: { + bfyy: [{ validator: changeSateTetx, trigger: "blur" }], ssdw: [ { required: true, message: "所属单位不能为空", trigger: "blur" }, ], @@ -481,6 +507,11 @@ export default { } }, methods: { + changeState(e) { + if (e != 2) { + this.ruleForm.bfyy = ""; + } + }, getInfo(id) { assetEmailInfo(id).then((res) => { this.ruleForm = res.data;