|
|
@@ -22,6 +22,7 @@ import langMap from "~/map/langMap";
|
|
|
import handle from "~/until/handle";
|
|
|
import axios from "axios";
|
|
|
|
|
|
+const pageLimit = 10;
|
|
|
export default {
|
|
|
name: "solutionIndex",
|
|
|
props:['uLang','pType','pKey','pSolution'],
|
|
|
@@ -38,6 +39,7 @@ export default {
|
|
|
queryData['key']=ctx.key;
|
|
|
queryData['type']=ctx.type;
|
|
|
queryData['page']=1;
|
|
|
+ queryData['limit']=pageLimit;
|
|
|
// 获取数据
|
|
|
let url = 'http://szhfy.com.cn/api/searchSolution.php';
|
|
|
let [err,res] = await handle(axios.post(
|
|
|
@@ -65,6 +67,7 @@ export default {
|
|
|
page: 1,
|
|
|
nowCount: 199,
|
|
|
nowTotal: 2,
|
|
|
+ limit:pageLimit,
|
|
|
solutions:this.pSolution?this.pSolution:[],
|
|
|
pageSave: {
|
|
|
|
|
|
@@ -76,7 +79,14 @@ export default {
|
|
|
this.$root.$on('changeSolutionType',this.selectType);
|
|
|
this.$root.$on('changePage',this.changePageHandle);
|
|
|
// this.$root.$on('changeProductType',this.selectType);
|
|
|
-
|
|
|
+ const queryData = {};
|
|
|
+ // console.log(ctx)
|
|
|
+ queryData['key']=this.key;
|
|
|
+ queryData['type']=this.type;
|
|
|
+ queryData['page']=this.page;
|
|
|
+ queryData['limit']=this.limit;
|
|
|
+ let data = qs.stringify(queryData);
|
|
|
+ this.loadPageData(data);
|
|
|
},
|
|
|
methods:{
|
|
|
switchLang(nextLang){
|
|
|
@@ -110,6 +120,7 @@ export default {
|
|
|
queryData['key']=this.key;
|
|
|
queryData['type']=this.type;
|
|
|
queryData['page']=this.page;
|
|
|
+ queryData['limit']=this.limit;
|
|
|
// 获取数据
|
|
|
let url = '/api/searchSolution.php';
|
|
|
let data = qs.stringify(queryData);
|