| | |
| | | this.isAdd = true; |
| | | var obj = Object.assign({},this.searchDataList[index],{isEdit: true}); |
| | | this.searchDataList.splice(index,1,obj); |
| | | console.log(obj,this.searchDataList[index]) |
| | | }, |
| | | deleteTable(index) { |
| | | this.searchDataList.splice(index,1); |
| | |
| | | this.tableForm.enumType = this.tableForm.enumTypeZn; |
| | | this.tableForm.id = null; |
| | | this.tableForm.objectId = this.detailobj.objectId; |
| | | console.log(this.tableForm,123) |
| | | this.searchDataList.unshift(this.tableForm); |
| | | }, |
| | | cancelTable() { |
| | |
| | | gettableName() { |
| | | this.$HTTP.get(`/api/blade-system/meta-object-type/detail?fId=${this.dictKey}`).then(res=> { //物理表数据 |
| | | if(res.code == 200) { |
| | | console.log(this.tableNameList,res.data.tableName,'gi') |
| | | this.tableNameList.forEach(item=> { |
| | | if(res.data.tableName == item.tableName) { |
| | | this.refCodeList = item.tableColumns; |
| | |
| | | this.metaForm.code = res.data.code; |
| | | this.detailobj = res.data; |
| | | this.detailobj.objectId = res.data.fid; |
| | | console.log(this.detailobj,888) |
| | | } |
| | | }) |
| | | }, |