|
@@ -98,7 +98,7 @@
|
|
|
import {mapGetters} from 'vuex'
|
|
import {mapGetters} from 'vuex'
|
|
|
export default {
|
|
export default {
|
|
|
componentName:'normalTable',
|
|
componentName:'normalTable',
|
|
|
- props:['tableName','idName','tableData','apiId','formPath','oldFormPath','options','autoQuery','detailPath','customTitle','hidePagination','hideSearch','statusHideDetailBtn','specialKey','drawerWidth','isExport','isNewExport','columns','fileName','excelTitle','exportValue','exportName','exporAdd'],
|
|
|
|
|
|
|
+ props:['tableName','idName','tableData','apiId','formPath','oldFormPath','options','autoQuery','detailPath','customTitle','hidePagination','hideSearch','statusHideDetailBtn','specialKey','drawerWidth','isExport','isNewExport','columns','fileName','excelTitle','exportValue','exportName','exporAdd','is_cache'],
|
|
|
components:{
|
|
components:{
|
|
|
tableTemp: () => import('./modules/table.vue'),
|
|
tableTemp: () => import('./modules/table.vue'),
|
|
|
setColumn: () => import('./modules/setColumn.vue'),
|
|
setColumn: () => import('./modules/setColumn.vue'),
|
|
@@ -158,6 +158,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
async listData () {
|
|
async listData () {
|
|
|
this.searchValue?this.param.content.where.condition = this.searchValue:''
|
|
this.searchValue?this.param.content.where.condition = this.searchValue:''
|
|
|
|
|
+ if (this.is_cache){
|
|
|
|
|
+ this.param.content.nocache = true
|
|
|
|
|
+ }
|
|
|
this.param.id = this.apiId.query
|
|
this.param.id = this.apiId.query
|
|
|
const res = await this.$api.requested(this.param)
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.list = res.data
|
|
this.list = res.data
|