From 73dc1816a212b2b0f9a52b7f66082e3e62ca25e8 Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Thu, 3 Dec 2020 14:12:56 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E3=80=91=E5=B1=9E=E6=80=A7=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?-=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-12-03?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/user/tag-property.vue | 15 +++++++++++++--
src/views/modules/user/usertag.vue | 1 +
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/user/tag-property.vue b/src/views/modules/user/tag-property.vue
index 060da17..1822bc1 100644
--- a/src/views/modules/user/tag-property.vue
+++ b/src/views/modules/user/tag-property.vue
@@ -18,7 +18,7 @@
- {{"确定"}}
+ {{"确定"}}
@@ -45,13 +45,15 @@ export default {
tagid: '',
tagPropertyid: ''
},
- paramNameArr: []
+ paramNameArr: [],
+ isAble: false
}
},
methods: {
// 获取数据列表
init (tagId, propertyId, relationId) {
this.visible = true
+ this.isAble = false
this.$nextTick(() => {
// 调用获取标签属性下拉信息接口
this.getParamListInfo()
@@ -76,8 +78,17 @@ export default {
},
// 表单提交
dataFormSubmitHandle: debounce(function () {
+ if (this.dataForm.tagPropertyid === '' || this.dataForm.tagPropertyid === null) {
+ this.$message({
+ message: '请选择标签属性!',
+ type: 'warning'
+ })
+ return false
+ }
+ this.isAble = true
this.$http[!this.dataForm.id ? 'post' : 'put']('/app-user/tagproperty/', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
+ this.isAble = false
return this.$message.error(res.msg)
}
this.$message({
diff --git a/src/views/modules/user/usertag.vue b/src/views/modules/user/usertag.vue
index 4a21591..b49e432 100644
--- a/src/views/modules/user/usertag.vue
+++ b/src/views/modules/user/usertag.vue
@@ -24,6 +24,7 @@
+
配置属性