From 6c1a8525238a596bc2ca1576a3ce2a1084058072 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 26 Sep 2023 15:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=A4=B9+demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 +-- src/views/common/selectDiv.vue | 36 +++++++++++++++++++ src/views/common/yzz.vue | 32 ----------------- .../technicalSpecificationList.vue | 25 +++++++------ 4 files changed, 52 insertions(+), 45 deletions(-) create mode 100644 src/views/common/selectDiv.vue delete mode 100644 src/views/common/yzz.vue 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) {