From b34b160a7332f94015fc047455b718e303920dc8 Mon Sep 17 00:00:00 2001 From: lilibo <1471506043@qq.com> Date: 星期三, 22 一月 2025 10:58:23 +0800 Subject: [PATCH] 漏洞修改 升级tomcat版本 --- admin-web/src/views/foundation/material/specs/specsAdd.vue | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin-web/src/views/foundation/material/specs/specsAdd.vue b/admin-web/src/views/foundation/material/specs/specsAdd.vue index 7f5fdec..1534454 100644 --- a/admin-web/src/views/foundation/material/specs/specsAdd.vue +++ b/admin-web/src/views/foundation/material/specs/specsAdd.vue @@ -44,6 +44,7 @@ return { loading: false, formData: { + goodsTemplatesId: '', modelName: '', unit: '', states: 1, @@ -71,17 +72,14 @@ this.$refs.ruleForm.validate((valid) => { if (valid) { const params = Object.assign({}, this.formData) + params.goodsTemplatesId = this.setting.goodsTemplatesId if (this.loading) return this.loading = true addSpecs(params).then(res => { this.loading = false - if (res) { - this.$message.success('淇濆瓨鎴愬姛锛�') - this.close() - this.$emit('search') - } else { - this.$message.error('淇濆瓨澶辫触') - } + this.$message.success('淇濆瓨鎴愬姛锛�') + this.close() + this.$emit('search') }).catch(() => { this.loading = false }); -- Gitblit v1.9.1