+
+
{{ node.label }}
@@ -462,6 +463,7 @@ export default {
this.typeList = []
this.tableId = []
this.configChecked = []
+ this.configIds = []
},
// 获取tableId,提交的时候需要
getIds(){
@@ -488,7 +490,7 @@ export default {
if(!this.productName) return this.$message.warning('请输入数据产品名称')
if(!this.market) return this.$message.warning('请输入市场价格')
if(isNaN(this.market)) return this.$message.warning('市场价格请输入数字')
- if(!this.$refs.type.getCheckedNodes().length) return this.$message.warning('请选择数据')
+ // if(!this.$refs.type.getCheckedNodes().length) return this.$message.warning('请选择数据')
this.submited = true
@@ -627,13 +629,10 @@ export default {
},
confirmConfig(){
this.configChecked = this.$refs.typeConfig.getCheckedKeys().map(n => n)
- // this.getTableId(this.typeList)
this.checkedIds = this.configChecked
- console.log(44, this.checkedIds, this.configChecked, this.typeList)
- this.getIds().then(() => {
- this.configVisible = false
- console.log(33, this.tableId)
- this.$refs.type.setCheckedNodes([...this.tableId, ...this.checkedIds])
+ this.configVisible = false
+ this.$nextTick(() => {
+ this.$refs.type.setCheckedNodes(this.checkedIds)
})
}
}