|
@ -18,7 +18,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-button type="primary" @click="dataFormSubmitHandle()" style="margin-left:48%" class="end">{{"确定"}}</el-button> |
|
|
<el-button type="primary" @click="dataFormSubmitHandle()" :disabled="isAble" style="margin-left:48%" class="end">{{"确定"}}</el-button> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
@ -45,13 +45,15 @@ export default { |
|
|
tagid: '', |
|
|
tagid: '', |
|
|
tagPropertyid: '' |
|
|
tagPropertyid: '' |
|
|
}, |
|
|
}, |
|
|
paramNameArr: [] |
|
|
paramNameArr: [], |
|
|
|
|
|
isAble: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 获取数据列表 |
|
|
// 获取数据列表 |
|
|
init (tagId, propertyId, relationId) { |
|
|
init (tagId, propertyId, relationId) { |
|
|
this.visible = true |
|
|
this.visible = true |
|
|
|
|
|
this.isAble = false |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
// 调用获取标签属性下拉信息接口 |
|
|
// 调用获取标签属性下拉信息接口 |
|
|
this.getParamListInfo() |
|
|
this.getParamListInfo() |
|
@ -76,8 +78,17 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 表单提交 |
|
|
// 表单提交 |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
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 }) => { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/app-user/tagproperty/', this.dataForm).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
|
|
|
this.isAble = false |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
|
this.$message({ |
|
|
this.$message({ |
|
|