|
@ -104,8 +104,8 @@ |
|
|
<el-col :span="13" :key="index"> |
|
|
<el-col :span="13" :key="index"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<span slot="label"> |
|
|
<span slot="label"> |
|
|
标签名称{{index+1}} |
|
|
|
|
|
<el-tooltip content="标签名称" placement="top"> |
|
|
|
|
|
|
|
|
标签组名称{{index+1}} |
|
|
|
|
|
<el-tooltip content="标签组名称" placement="top"> |
|
|
<i class="el-icon-question" /> |
|
|
<i class="el-icon-question" /> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
|
<el-button v-if="index+1 < tagData.length" class="button-new-tag" size="small" type="warning" @click="removeTag(index)">删除</el-button> |
|
|
<el-button v-if="index+1 < tagData.length" class="button-new-tag" size="small" type="warning" @click="removeTag(index)">删除</el-button> |
|
@ -394,7 +394,7 @@ export default { |
|
|
this.tagData[this.handleIndex]['value'].push(this.tagName) |
|
|
this.tagData[this.handleIndex]['value'].push(this.tagName) |
|
|
this.dialogFormVisible = false |
|
|
this.dialogFormVisible = false |
|
|
}, |
|
|
}, |
|
|
//添加标签名称 |
|
|
|
|
|
|
|
|
//添加标签组 |
|
|
addTag(){ |
|
|
addTag(){ |
|
|
if(!this.validTagData()){ |
|
|
if(!this.validTagData()){ |
|
|
return |
|
|
return |
|
@ -405,9 +405,9 @@ export default { |
|
|
} |
|
|
} |
|
|
this.tagData.push(obj); |
|
|
this.tagData.push(obj); |
|
|
}, |
|
|
}, |
|
|
//移除标签名称 |
|
|
|
|
|
|
|
|
//移除标签组 |
|
|
removeTag(idx){ |
|
|
removeTag(idx){ |
|
|
this.$confirm('是否确认删除该标签名称', '警告', { |
|
|
|
|
|
|
|
|
this.$confirm('是否确认删除该标签组', '警告', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
@ -421,7 +421,7 @@ export default { |
|
|
validTagData(flag=true){ |
|
|
validTagData(flag=true){ |
|
|
return this.tagData.every(item=>{ |
|
|
return this.tagData.every(item=>{ |
|
|
if(!item.label){ |
|
|
if(!item.label){ |
|
|
flag && this.$message.warning('标签名称不能为空') |
|
|
|
|
|
|
|
|
flag && this.$message.warning('标签组名称不能为空') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
if (!item.value.length) { |
|
|
if (!item.value.length) { |
|
|