Commit 8b7035c5 authored by Gakki's avatar Gakki

123

parent 15679672
......@@ -382,16 +382,25 @@ export default {
params: this.jsonData
}).then(res => {
if (res.code == 200) {
console.log(res.data.content)
// 如果查询到content里有内容,则在下方以表格的形式展示出来。否则提示无匹配数据。
this.resultList = res.data.content
if(this.resultList.length > 0) {
this.confirmVisible = !this.confirmVisible
// 提交标签内容, 如果有labelId则调用put接口,反之调用post接口
} else {
if(res.data == null) {
this.$message.error('该标签无搜索结果,标签添加失败!')
} else if(!!res.data.content) {
if(res.data.content.length > 0) {
this.resultList = res.data.content
this.confirmVisible = !this.confirmVisible
} else {
this.$message.error('该标签无搜索结果,标签添加失败!')
}
} else {
}
// 如果查询到content里有内容,则在下方以表格的形式展示出来。否则提示无匹配数据。
// if(res.data !== null || res.data.content.length !== 0) {
// this.resultList = res.data.content
// this.confirmVisible = !this.confirmVisible
// // 提交标签内容, 如果有labelId则调用put接口,反之调用post接口
// } else {
// this.$message.error('该标签无搜索结果,标签添加失败!')
// }
// this.$message.success('修改成功!')
// this.resetFormFields()
// this.finish = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment