fix:项目不分页数据访问统一设置pageSize为-1
This commit is contained in:
@@ -255,7 +255,7 @@
|
||||
editParamBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框
|
||||
moduleParamShow: false, //module默认参数param悬浮窗
|
||||
assetSearch: {host: '', sn: '', text: '', label: 'IP', dropdownShow: false}, //侧滑框中asset的搜索相关
|
||||
assetPageObj: {pageNo: 1, pageSize: 9999},
|
||||
assetPageObj: {pageNo: 1, pageSize: -1},
|
||||
selectedAssets: [], //侧滑框中选中的asset
|
||||
projectList: [],
|
||||
moduleList: [],
|
||||
@@ -402,7 +402,7 @@
|
||||
|
||||
/*获取project列表*/
|
||||
getProjectList() {
|
||||
this.$get('project', {pageSize: 999, pageNo: 1}).then(response => {
|
||||
this.$get('project', {pageSize: -1, pageNo: 1}).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.projectList = response.data.list;
|
||||
if (this.moduleList.length == 0) {
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
},
|
||||
|
||||
getProjectList() {
|
||||
this.$get('project', {pageNo: 1, pageSize: 9999}).then(response => {
|
||||
this.$get('project', {pageNo: 1, pageSize: -1}).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.linkObjList = response.data.list;
|
||||
}
|
||||
@@ -328,7 +328,7 @@
|
||||
},
|
||||
|
||||
getModuleList() {
|
||||
this.$get('module', {pageNo: 1, pageSize: 9999}).then(response => {
|
||||
this.$get('module', {pageNo: 1, pageSize: -1}).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.linkObjList = response.data.list;
|
||||
}
|
||||
@@ -336,7 +336,7 @@
|
||||
},
|
||||
|
||||
getAssetList() {
|
||||
this.$get('asset', {pageNo: 1, pageSize: 9999}).then(response => {
|
||||
this.$get('asset', {pageNo: 1, pageSize: -1}).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.linkObjList = response.data.list;
|
||||
}
|
||||
|
||||
@@ -706,7 +706,7 @@
|
||||
},
|
||||
getAllModelOptionData(data) {
|
||||
this.assetData.assetType = this.assetType;
|
||||
this.$get('model?typeCode=' + this.assetType + '&pageNo=1&pageSize=999').then(response => {
|
||||
this.$get('model?typeCode=' + this.assetType + '&pageNo=1&pageSize=-1').then(response => {
|
||||
if (response.code === 200) {
|
||||
this.allModelUlData = response.data.list
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-scrollbar>
|
||||
|
||||
|
||||
<!-- end--表单-->
|
||||
|
||||
<!--底部按钮-->
|
||||
@@ -280,7 +280,7 @@
|
||||
|
||||
/*获取project列表*/
|
||||
getProjectList() {
|
||||
this.$get('project', {pageSize: 999, pageNo: 1}).then(response => {
|
||||
this.$get('project', {pageSize: -1, pageNo: 1}).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.projectList = response.data.list;
|
||||
if ((!this.currentProject || !this.currentProject.id) && this.projectList.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user