|
- {{ dialogTableNewValue.table[0].name }}
- |
- {{ dialogTableNewValue.table[0].name }}
- |
操作 |
|
{{ item.name }}
@@ -328,6 +317,7 @@
currRelationType: '',
currPropSource: '',
tableDialogVisible: false,
+ dialogTableInput: '请输入',
dialogTableId: '',
dialogTableOldValue: {}, // 弹框表格值副本 刚打开dialog的值 点击取消会把该值保存到数据库
dialogTableNewValue: { // 弹框表格值 对表格的更新操作在此进行 点击确定会把该值保存到数据库
@@ -362,13 +352,19 @@
propertyData.forEach(item => {
item.data.forEach(item1 => {
if (item1.type == 'table' && JSON.stringify(item1.value) == '{}') {
+ let tableRef = JSON.parse(item1.ref)
item1.value = {
- name: '未命名表单',
- table: [
- { id: 'table_head',name: '命名',desc: '描述'}
+ name: item1.label,
+ table:[
+ { id: 'table_head',name: tableRef.firstColumn,desc: tableRef.secondColumn}
]
}
}
+ if (item1.type == 'table' && JSON.stringify(item1.value) !== '{}') {
+ that.dialogTableInput = item1.value.table.length > 1 ? '请查看' : '请输入'
+ let tableRef = JSON.parse(item1.ref)
+ item1.value.table[0] = { id: 'table_head',name: tableRef.firstColumn,desc: tableRef.secondColumn}
+ }
})
})
that.propertyData = propertyData;
@@ -680,18 +676,19 @@
display: inline-block;
width: 85%;
}
+ #tableDialog {
+ cursor: pointer;
+ }
#tableDialog >>> .el-dialog__body {
padding: 10px 20px;
color: #606266;
font-size: 14px;
word-break: break-all;
- cursor: pointer;
}
#tableDialog >>> .el-input__inner {
border: none;
padding: 0;
text-overflow: ellipsis;
- cursor: pointer;
}
.table {
width: 100%;
@@ -709,7 +706,7 @@
font-size: 18px;
font-family: PingFangSC-Light;
}
- .headInput >>> .el-input__inner {
+ .tableHead {
font-size: 14px;
color: #909399;
font-weight: bold;
|