|
|
@ -77,7 +77,6 @@ |
|
|
|
return { |
|
|
|
return { |
|
|
|
description: '字段管理管理页面', |
|
|
|
description: '字段管理管理页面', |
|
|
|
tableid:'', |
|
|
|
tableid:'', |
|
|
|
tablename:'', |
|
|
|
|
|
|
|
visible: false, |
|
|
|
visible: false, |
|
|
|
confirmLoading: false, |
|
|
|
confirmLoading: false, |
|
|
|
// 工具栏的按钮配置 |
|
|
|
// 工具栏的按钮配置 |
|
|
@ -119,7 +118,6 @@ |
|
|
|
key: 'tableId_dictText', title: '对应实体', width: '6%', |
|
|
|
key: 'tableId_dictText', title: '对应实体', width: '6%', |
|
|
|
type: JVXETypes.normal, |
|
|
|
type: JVXETypes.normal, |
|
|
|
disabled: true, |
|
|
|
disabled: true, |
|
|
|
defaultValue:this.tablename, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'fieldName', title: '中文名称', width: '6%', |
|
|
|
key: 'fieldName', title: '中文名称', width: '6%', |
|
|
@ -260,13 +258,16 @@ |
|
|
|
let method = ''; |
|
|
|
let method = ''; |
|
|
|
if (str.search("row") !== -1) { |
|
|
|
if (str.search("row") !== -1) { |
|
|
|
props.row.id =''; |
|
|
|
props.row.id =''; |
|
|
|
|
|
|
|
console.log("新增") |
|
|
|
httpurl += this.url.add; |
|
|
|
httpurl += this.url.add; |
|
|
|
method = 'post'; |
|
|
|
method = 'post'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
console.log("编辑") |
|
|
|
httpurl += this.url.edit; |
|
|
|
httpurl += this.url.edit; |
|
|
|
method = 'put'; |
|
|
|
method = 'put'; |
|
|
|
} |
|
|
|
} |
|
|
|
props.row.tableId = this.tableid |
|
|
|
props.row.tableId = this.tableid |
|
|
|
|
|
|
|
console.log(props.row) |
|
|
|
httpAction(httpurl, props.row, method).then((res) => { |
|
|
|
httpAction(httpurl, props.row, method).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
if (res.success) { |
|
|
|
this.$message.success(res.message); |
|
|
|
this.$message.success(res.message); |
|
|
@ -275,6 +276,7 @@ |
|
|
|
this.$message.warning(res.message); |
|
|
|
this.$message.warning(res.message); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
props.row |
|
|
|
}, |
|
|
|
}, |
|
|
|
//新增触发事件 |
|
|
|
//新增触发事件 |
|
|
|
added(event) { |
|
|
|
added(event) { |
|
|
|