|
|
@ -357,7 +357,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async reload() { |
|
|
|
async reload() { |
|
|
|
// const id = this.meta.columns.filter((c) => c.pk).map(c => this.localState[c._cn]).join('___'); |
|
|
|
// const id = this.meta.columns.filter((c) => c.pk).map(c => this.localState[c._cn]).join('___'); |
|
|
|
const where = this.meta.columns.filter((c) => c.pk).map(c => `(${c._cn},eq,${this.value[c._cn]})`).join('~and'); |
|
|
|
const where = this.meta.columns.filter((c) => c.pk).map(c => `(${c._cn},eq,${this.localState[c._cn]})`).join('~and'); |
|
|
|
this.$set(this, 'changedColumns', {}); |
|
|
|
this.$set(this, 'changedColumns', {}); |
|
|
|
// this.localState = await this.api.read(id); |
|
|
|
// this.localState = await this.api.read(id); |
|
|
|
const data = await this.api.list({...(this.queryParams || {}), where}) || [{}]; |
|
|
|
const data = await this.api.list({...(this.queryParams || {}), where}) || [{}]; |
|
|
@ -457,7 +457,7 @@ export default { |
|
|
|
& > div > .xc-input > div > input, |
|
|
|
& > div > .xc-input > div > input, |
|
|
|
& > div > select, |
|
|
|
& > div > select, |
|
|
|
& > div > .xc-input > select, |
|
|
|
& > div > .xc-input > select, |
|
|
|
& > div textarea { |
|
|
|
& > div textarea:not(.inputarea) { |
|
|
|
border: 1px solid #7f828b33; |
|
|
|
border: 1px solid #7f828b33; |
|
|
|
padding: 1px 5px; |
|
|
|
padding: 1px 5px; |
|
|
|
font-size: .8rem; |
|
|
|
font-size: .8rem; |
|
|
@ -490,7 +490,7 @@ export default { |
|
|
|
& > div > .xc-input > div > input, |
|
|
|
& > div > .xc-input > div > input, |
|
|
|
& > div > select, |
|
|
|
& > div > select, |
|
|
|
& > div > .xc-input > select, |
|
|
|
& > div > .xc-input > select, |
|
|
|
& > div textarea { |
|
|
|
& > div textarea:not(.inputarea) { |
|
|
|
background: #1e1e1e; |
|
|
|
background: #1e1e1e; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -506,7 +506,7 @@ export default { |
|
|
|
& > div > .xc-input > div > input, |
|
|
|
& > div > .xc-input > div > input, |
|
|
|
& > div > select, |
|
|
|
& > div > select, |
|
|
|
& > div > .xc-input > select, |
|
|
|
& > div > .xc-input > select, |
|
|
|
& > div textarea { |
|
|
|
& > div textarea:not(.inputarea) { |
|
|
|
background: white; |
|
|
|
background: white; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|