提交 d3d12444 authored 作者: junjie's avatar junjie

fix: 计算字段不参与关联于制作自定义数据集

上级 701ebf42
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
watch: { watch: {
'table': function() { 'table': function() {
fieldList(this.table.id).then(response => { fieldList(this.table.id).then(response => {
this.fields = response.data this.fields = JSON.parse(JSON.stringify(response.data)).filter(ele => ele.extField === 0)
this.checkedFields = [] this.checkedFields = []
this.checkedList.forEach(ele => { this.checkedList.forEach(ele => {
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
initField() { initField() {
if (this.table.id) { if (this.table.id) {
fieldList(this.table.id).then(response => { fieldList(this.table.id).then(response => {
this.fields = response.data this.fields = JSON.parse(JSON.stringify(response.data)).filter(ele => ele.extField === 0)
}) })
} }
}, },
......
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
// if (response.data) { // if (response.data) {
this.union.sourceTableId = this.table.id this.union.sourceTableId = this.table.id
fieldList(this.table.id).then(response => { fieldList(this.table.id).then(response => {
this.sourceFieldOption = response.data this.sourceFieldOption = JSON.parse(JSON.stringify(response.data)).filter(ele => ele.extField === 0)
}) })
this.editUnion = true this.editUnion = true
// } else { // } else {
...@@ -320,7 +320,7 @@ export default { ...@@ -320,7 +320,7 @@ export default {
this.union.targetTableId = param.id this.union.targetTableId = param.id
this.union.targetTableFieldId = '' this.union.targetTableFieldId = ''
fieldList(param.id).then(response => { fieldList(param.id).then(response => {
this.targetFieldOption = response.data this.targetFieldOption = JSON.parse(JSON.stringify(response.data)).filter(ele => ele.extField === 0)
}) })
this.$refs['targetTable'].doClose() this.$refs['targetTable'].doClose()
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论