diff --git a/package.json b/package.json index b51a8bc6..ec1259cb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "MIT", "scripts": { "local": "vue-cli-service serve --mode local", - "dev": "vue-cli-service serve --mode dev", + "dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode dev", "front": "vue-cli-service serve --mode front", "build:prod": "vue-cli-service build --mode prod", "build:stage": "vue-cli-service build --mode stage", diff --git a/src/api/base/coreDepartment.js b/src/api/base/coreDepartment.js index 5e452bc2..eeb34ff5 100644 --- a/src/api/base/coreDepartment.js +++ b/src/api/base/coreDepartment.js @@ -3,7 +3,7 @@ * @Date: 2023-10-21 11:50:46 * @LastEditTime: 2023-10-30 14:37:28 * @LastEditors: DY - * @Description: + * @Description: */ import request from '@/utils/request' @@ -65,4 +65,11 @@ export function getCoreDepartmentList(query) { method: 'get', params: query }) -} \ No newline at end of file +} +export function getDepartmentList(query) { + return request({ + url: '/system/dept/list', + method: 'get', + params: query + }) +} diff --git a/src/api/equipment/base/inspection/items.js b/src/api/equipment/base/inspection/items.js index da183b67..936e5579 100644 --- a/src/api/equipment/base/inspection/items.js +++ b/src/api/equipment/base/inspection/items.js @@ -5,13 +5,6 @@ * @LastEditors: zhp * @Description: */ -/* - * @Author: zhp - * @Date: 2024-07-12 15:31:41 - * @LastEditTime: 2024-07-22 09:33:20 - * @LastEditors: zhp - * @Description: - */ import request from '@/utils/request' @@ -26,7 +19,7 @@ export function getItemPageData(data) { return request({ url: '/base/equipment-check-program/page', method: 'get', - data + params: data }) } diff --git a/src/views/equipment/analysis/quality/index.vue b/src/views/equipment/analysis/quality/index.vue index b2590f89..75c22521 100644 --- a/src/views/equipment/analysis/quality/index.vue +++ b/src/views/equipment/analysis/quality/index.vue @@ -252,7 +252,7 @@ export default { computed: {}, created() { this.fillLineOptions(); - this.fillProductOptions(); + // this.fillProductOptions(); }, mounted() { // window.addEventListener('resize', () => { @@ -284,23 +284,23 @@ export default { ); }, - async fillProductOptions() { - const { data } = await this.$axios({ - url: '/base/core-product/listAll', - method: 'get', - }); - const cfg = this.searchBarFormConfig.find( - (item) => item.__index == 'product' - ); - this.$set( - cfg, - 'selectOptions', - data.map((item) => ({ - id: item.id, - name: item.name, - })) - ); - }, + // async fillProductOptions() { + // const { data } = await this.$axios({ + // url: '/base/core-product/listAll', + // method: 'get', + // }); + // const cfg = this.searchBarFormConfig.find( + // (item) => item.__index == 'product' + // ); + // this.$set( + // cfg, + // 'selectOptions', + // data.map((item) => ({ + // id: item.id, + // name: item.name, + // })) + // ); + // }, async getList() { const { data } = await this.$axios({ diff --git a/src/views/equipment/base/inspection/Settings/add-or-updata.vue b/src/views/equipment/base/inspection/Settings/add-or-updata.vue index c500c4c3..515f0635 100644 --- a/src/views/equipment/base/inspection/Settings/add-or-updata.vue +++ b/src/views/equipment/base/inspection/Settings/add-or-updata.vue @@ -6,84 +6,60 @@ * @Description: --> - - - - {{ '添加内容' }} - - - + + + + {{ '添加内容' }} + + + 巡检单名称 {{ dataForm.name }} - + 部门 {{ dataForm.department }} - - 巡检时间 + + 计划巡检时间 {{ parseTime(dataForm.planCheckTime) }} - + - + - - - 巡检内容 - + + + 巡检内容 + - - + + 添加 - - - - - + + + + + - - + - + - - + +