|
|
|
@ -143,9 +143,9 @@ export class MysqlUi {
|
|
|
|
|
static getNewColumn(suffix) { |
|
|
|
|
return { |
|
|
|
|
column_name: 'title' + suffix, |
|
|
|
|
dt: 'int', |
|
|
|
|
dt: 'varchar', |
|
|
|
|
dtx: 'specificType', |
|
|
|
|
ct: 'integer(11)', |
|
|
|
|
ct: 'varchar(45)', |
|
|
|
|
nrqd: true, |
|
|
|
|
rqd: false, |
|
|
|
|
ck: false, |
|
|
|
@ -156,11 +156,10 @@ export class MysqlUi {
|
|
|
|
|
clen: 45, |
|
|
|
|
np: null, |
|
|
|
|
ns: null, |
|
|
|
|
// data_type_x_specific: ' ',
|
|
|
|
|
dtxp: '11', |
|
|
|
|
dtxs: ' ', |
|
|
|
|
dtxp: '45', |
|
|
|
|
dtxs: '', |
|
|
|
|
altered: 1, |
|
|
|
|
uidt: 'Number', |
|
|
|
|
uidt: 'SingleLineText', |
|
|
|
|
uip: '', |
|
|
|
|
uicn: '' |
|
|
|
|
}; |
|
|
|
@ -678,14 +677,14 @@ export class MysqlUi {
|
|
|
|
|
// set headers before settings result
|
|
|
|
|
for (let i = 0; i < keys.length; i++) { |
|
|
|
|
const text = keys[i]; |
|
|
|
|
headers.push({ text, value: text, sortable: false }); |
|
|
|
|
headers.push({text, value: text, sortable: false}); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
const keys = Object.keys(result); |
|
|
|
|
for (let i = 0; i < keys.length; i++) { |
|
|
|
|
const text = keys[i]; |
|
|
|
|
if (typeof text !== 'function') { |
|
|
|
|
headers.push({ text, value: text, sortable: false }); |
|
|
|
|
headers.push({text, value: text, sortable: false}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
result = [result]; |
|
|
|
|