diff --git a/src/main.js b/src/main.js index 789fd1c..539f207 100644 --- a/src/main.js +++ b/src/main.js @@ -18,13 +18,13 @@ import decimalUtil from '@/utils/decimalUtil.js' import getLodop from '@/utils/LodopFuncs.js' import pdf from 'vue-pdf' import { debounce,throttle} from '@/utils/common.js' -import yzz from '@/views/common/yzz.vue' +import selectDiv from '@/views/common/selectDiv.vue' Vue.component('downloadExcel', JsonExcel) Vue.component('pdf', pdf) Vue.use(VueCookie) Vue.config.productionTip = false -Vue.component('yzz', yzz); +Vue.component('selectDiv', selectDiv); // 非生产环境, 适配mockjs模拟数据 // api: https://github.com/nuysoft/Mock if (process.env.NODE_ENV !== 'production') { diff --git a/src/views/common/selectDiv.vue b/src/views/common/selectDiv.vue new file mode 100644 index 0000000..08252fa --- /dev/null +++ b/src/views/common/selectDiv.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/views/common/yzz.vue b/src/views/common/yzz.vue deleted file mode 100644 index 25a96a2..0000000 --- a/src/views/common/yzz.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue b/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue index 8c3e8eb..a129fa2 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue @@ -63,6 +63,7 @@ + { - if (data.code == 0) { - this.dataList1 = data.page.list - this.pageIndex = data.page.currPage - this.pageSize = data.page.pageSize - this.totalPage = data.page.totalCount - } - this.dataListLoading = false - }) + // this.searchData.limit = this.pageSize + // this.searchData.page = this.pageIndex + // technicalSpecificationListSearch(this.searchData).then(({data}) => { + // if (data.code == 0) { + // this.dataList1 = data.page.list + // this.pageIndex = data.page.currPage + // this.pageSize = data.page.pageSize + // this.totalPage = data.page.totalCount + // } + // this.dataListLoading = false + // }) + this.$refs.selectDiv.setLengthAll(3) + this.$refs.selectDiv.setLengthselected(2) }, // 获取基础数据列表S getBaseList (val, type) {