Commit b0cf7d42 by ‘july-fu’

fix: 架构层次缺失不能发布

1 parent 44be0b50
Showing with 14 additions and 1 deletions
......@@ -1036,6 +1036,10 @@ export default {
}
})
} else if (type == 'pushEdit') {
if (!this.formData.archiLevelId) {
this.$message.error('请选择架构层级,补全后发布!')
return
}
// 编辑发布
this.$confirm('确认发布吗', '提示', {
confirmButtonText: '确定',
......@@ -1106,9 +1110,18 @@ export default {
viewId: [],
state: 2,
}
this.selectList.map((item) => {
let hasArchiLevelId = true
this.selectList.forEach((item) => {
if (!this.dicObj.archiLevelId[item.archiLevelId]) {
hasArchiLevelId = false
}
params.viewId.push(item.viewId)
})
console.log('this.selectList', this.selectList)
if (!hasArchiLevelId) {
this.$message.error('数据中存在架构层级缺失,请检查!')
return
}
this.$confirm('确认批量发布吗', '提示', {
confirmButtonText: '确定',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!