Commit 4d46ec9a by yuwei

项目初始化

parent 98c5b476
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</div> </div>
<div :style="classCardbody"> <div :style="classCardbody">
<el-form ref="form" :model="form" label-width="80px" disabled> <el-form ref="form" :model="form" label-width="80px" disabled>
<el-form-item label="源数据表的字段名" prop="fieldName"> <el-form-item label="变更字段" prop="fieldName">
<el-input v-model="form.fieldName" /> <el-input v-model="fieldName" />
</el-form-item> </el-form-item>
<el-form-item label="版本号" prop="version"> <el-form-item label="版本号" prop="version">
<el-input v-model="form.version" /> <el-input v-model="form.version" />
...@@ -70,7 +70,18 @@ export default { ...@@ -70,7 +70,18 @@ export default {
// 表单参数 // 表单参数
form: {}, form: {},
// 状态数据字典 // 状态数据字典
statusOptions: [] statusOptions: [],
dicts: new Map([
['columnName', '字段名称'],
['columnComment', '字段注释'],
['dataDefault', '数据默认值'],
['columnKey', '是否主键'],
['columnNullable', '是否允许为空'],
['dataType', '数据类型'],
['dataLength', '数据长度'],
['dataPrecision', '数据精度'],
['dataScale', '数据小数位']
])
} }
}, },
created () { created () {
...@@ -84,6 +95,11 @@ export default { ...@@ -84,6 +95,11 @@ export default {
mounted () { mounted () {
this.getChangeRecord(this.data.id) this.getChangeRecord(this.data.id)
}, },
computed: {
fieldName () {
return this.dicts.get(this.form.fieldName)
}
},
methods: { methods: {
showCard () { showCard () {
this.$emit('showCard', this.showOptions) this.$emit('showCard', this.showOptions)
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</div> </div>
<div :style="classCardbody"> <div :style="classCardbody">
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="源数据表的字段名" prop="fieldName"> <el-form-item label="变更字段" prop="fieldName">
<el-input v-model="form.fieldName" placeholder="请输入源数据表的字段名" disabled /> <el-input v-model="fieldName" placeholder="请输入变更字段" disabled />
</el-form-item> </el-form-item>
<el-form-item label="版本号" prop="version"> <el-form-item label="版本号" prop="version">
<el-input v-model="form.version" placeholder="请输入版本号" /> <el-input v-model="form.version" placeholder="请输入版本号" />
...@@ -95,7 +95,18 @@ export default { ...@@ -95,7 +95,18 @@ export default {
] ]
}, },
// 状态数据字典 // 状态数据字典
statusOptions: [] statusOptions: [],
dicts: new Map([
['columnName', '字段名称'],
['columnComment', '字段注释'],
['dataDefault', '数据默认值'],
['columnKey', '是否主键'],
['columnNullable', '是否允许为空'],
['dataType', '数据类型'],
['dataLength', '数据长度'],
['dataPrecision', '数据精度'],
['dataScale', '数据小数位']
])
} }
}, },
created () { created () {
...@@ -109,6 +120,11 @@ export default { ...@@ -109,6 +120,11 @@ export default {
mounted () { mounted () {
this.getChangeRecord(this.data.id) this.getChangeRecord(this.data.id)
}, },
computed: {
fieldName () {
return this.dicts.get(this.form.fieldName)
}
},
methods: { methods: {
showCard () { showCard () {
this.$emit('showCard', this.showOptions) this.$emit('showCard', this.showOptions)
......
...@@ -177,8 +177,7 @@ export default { ...@@ -177,8 +177,7 @@ export default {
multiple: true, multiple: true,
// 表格头 // 表格头
tableColumns: [ tableColumns: [
{ prop: 'objectId', label: '源数据表主键', show: true }, { prop: 'fieldName', label: '变更字段', show: true, formatter: this.fieldNameFormatter },
{ prop: 'fieldName', label: '源数据表的字段名', show: true, formatter: this.fieldNameFormatter },
{ prop: 'fieldOldValue', label: '原来的值', show: true }, { prop: 'fieldOldValue', label: '原来的值', show: true },
{ prop: 'fieldNewValue', label: '最新的值', show: true }, { prop: 'fieldNewValue', label: '最新的值', show: true },
{ prop: 'version', label: '版本号', show: true }, { prop: 'version', label: '版本号', show: true },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment