Commit 4d46ec9a by yuwei

项目初始化

parent 98c5b476
......@@ -9,8 +9,8 @@
</div>
<div :style="classCardbody">
<el-form ref="form" :model="form" label-width="80px" disabled>
<el-form-item label="源数据表的字段名" prop="fieldName">
<el-input v-model="form.fieldName" />
<el-form-item label="变更字段" prop="fieldName">
<el-input v-model="fieldName" />
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input v-model="form.version" />
......@@ -70,7 +70,18 @@ export default {
// 表单参数
form: {},
// 状态数据字典
statusOptions: []
statusOptions: [],
dicts: new Map([
['columnName', '字段名称'],
['columnComment', '字段注释'],
['dataDefault', '数据默认值'],
['columnKey', '是否主键'],
['columnNullable', '是否允许为空'],
['dataType', '数据类型'],
['dataLength', '数据长度'],
['dataPrecision', '数据精度'],
['dataScale', '数据小数位']
])
}
},
created () {
......@@ -84,6 +95,11 @@ export default {
mounted () {
this.getChangeRecord(this.data.id)
},
computed: {
fieldName () {
return this.dicts.get(this.form.fieldName)
}
},
methods: {
showCard () {
this.$emit('showCard', this.showOptions)
......
......@@ -10,8 +10,8 @@
</div>
<div :style="classCardbody">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="源数据表的字段名" prop="fieldName">
<el-input v-model="form.fieldName" placeholder="请输入源数据表的字段名" disabled />
<el-form-item label="变更字段" prop="fieldName">
<el-input v-model="fieldName" placeholder="请输入变更字段" disabled />
</el-form-item>
<el-form-item label="版本号" prop="version">
<el-input v-model="form.version" placeholder="请输入版本号" />
......@@ -95,7 +95,18 @@ export default {
]
},
// 状态数据字典
statusOptions: []
statusOptions: [],
dicts: new Map([
['columnName', '字段名称'],
['columnComment', '字段注释'],
['dataDefault', '数据默认值'],
['columnKey', '是否主键'],
['columnNullable', '是否允许为空'],
['dataType', '数据类型'],
['dataLength', '数据长度'],
['dataPrecision', '数据精度'],
['dataScale', '数据小数位']
])
}
},
created () {
......@@ -109,6 +120,11 @@ export default {
mounted () {
this.getChangeRecord(this.data.id)
},
computed: {
fieldName () {
return this.dicts.get(this.form.fieldName)
}
},
methods: {
showCard () {
this.$emit('showCard', this.showOptions)
......
......@@ -177,8 +177,7 @@ export default {
multiple: true,
// 表格头
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: 'fieldNewValue', 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