|
|
@ -121,8 +121,6 @@ |
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis' |
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis' |
|
|
|
import FieldxList from "@/views/fieldx/FieldxList"; |
|
|
|
import FieldxList from "@/views/fieldx/FieldxList"; |
|
|
|
import {getAction} from "@api/manage"; |
|
|
|
|
|
|
|
import {filterObj} from "@/utils/util"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'TablexList', |
|
|
|
name: 'TablexList', |
|
|
@ -241,9 +239,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
// this.loadParameter(); |
|
|
|
this.loadParameter(); |
|
|
|
this.getSuperFieldList(); |
|
|
|
this.getSuperFieldList(); |
|
|
|
// this.loadData(); |
|
|
|
this.loadData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
importExcelUrl: function(){ |
|
|
|
importExcelUrl: function(){ |
|
|
@ -256,12 +254,12 @@ |
|
|
|
this.$refs.FieldxList.edit(record); |
|
|
|
this.$refs.FieldxList.edit(record); |
|
|
|
this.$refs.FieldxList.disableSubmit = false; |
|
|
|
this.$refs.FieldxList.disableSubmit = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// loadParameter() { |
|
|
|
loadParameter() { |
|
|
|
// this.queryParam.moduleId = this.$route.query.moduleid; |
|
|
|
this.queryParam.moduleId = this.$route.query.moduleid; |
|
|
|
// // console.log("***********想看看") |
|
|
|
// console.log("***********想看看") |
|
|
|
// this.loadRouteType = true; |
|
|
|
this.loadRouteType = true; |
|
|
|
// this.loadData(); |
|
|
|
this.loadData(); |
|
|
|
// }, |
|
|
|
}, |
|
|
|
initDictConfig(){ |
|
|
|
initDictConfig(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
getSuperFieldList(){ |
|
|
|
getSuperFieldList(){ |
|
|
@ -275,62 +273,7 @@ |
|
|
|
fieldList.push({type:'int',value:'verisonStatus',text:'版本状态',dictCode:''}) |
|
|
|
fieldList.push({type:'int',value:'verisonStatus',text:'版本状态',dictCode:''}) |
|
|
|
fieldList.push({type:'int',value:'verison',text:'版本号',dictCode:''}) |
|
|
|
fieldList.push({type:'int',value:'verison',text:'版本号',dictCode:''}) |
|
|
|
this.superFieldList = fieldList |
|
|
|
this.superFieldList = fieldList |
|
|
|
}, |
|
|
|
|
|
|
|
loadParameter() { |
|
|
|
|
|
|
|
if (this.loadRouteType === false) { |
|
|
|
|
|
|
|
this.id = this.$route.query.moduleid; |
|
|
|
|
|
|
|
// console.log("***********想看看") |
|
|
|
|
|
|
|
this.loadRouteType = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
loadData(arg) { |
|
|
|
|
|
|
|
if (!this.url.list) { |
|
|
|
|
|
|
|
this.$message.error("请设置url.list属性!"); |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//加载数据 若传入参数1则加载第一页的内容 |
|
|
|
|
|
|
|
if (arg === 1) { |
|
|
|
|
|
|
|
this.ipagination.current = 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.loadParameter(); |
|
|
|
|
|
|
|
var params = this.getQueryParams();//查询条件 |
|
|
|
|
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
getAction(this.url.list, params).then((res) => { |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ |
|
|
|
|
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
|
|
|
|
if (res.result.total) { |
|
|
|
|
|
|
|
this.ipagination.total = res.result.total; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.ipagination.total = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.warning(res.message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
getQueryParams() { |
|
|
|
|
|
|
|
//获取查询条件 |
|
|
|
|
|
|
|
let sqp = {} |
|
|
|
|
|
|
|
if (this.superQueryParams) { |
|
|
|
|
|
|
|
sqp['superQueryParams'] = encodeURI(this.superQueryParams) |
|
|
|
|
|
|
|
sqp['superQueryMatchType'] = this.superQueryMatchType |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); |
|
|
|
|
|
|
|
param.field = this.getQueryField(); |
|
|
|
|
|
|
|
param.pageNo = this.ipagination.current; |
|
|
|
|
|
|
|
param.pageSize = this.ipagination.pageSize; |
|
|
|
|
|
|
|
//param.id=this.id; |
|
|
|
|
|
|
|
param.moduleId = this.$route.query.moduleid; |
|
|
|
|
|
|
|
return filterObj(param); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
searchReset() { |
|
|
|
|
|
|
|
this.queryParam='' |
|
|
|
|
|
|
|
this.loadData(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|