From 51e69943d843e638c3302d5a458d284fa4a84a14 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 25 四月 2024 12:52:51 +0800 Subject: [PATCH] 工艺文件下查看成品检测的检测参数接口更改 --- src/views/technology/document/teststandard.vue | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/technology/document/teststandard.vue b/src/views/technology/document/teststandard.vue index 2a7da1a..a523ebd 100644 --- a/src/views/technology/document/teststandard.vue +++ b/src/views/technology/document/teststandard.vue @@ -35,13 +35,14 @@ /> <el-table-column label="鍙傛暟缂栧彿" prop="code" align="center" /> <el-table-column label="鍙傛暟椤�" prop="parameterItem" align="center" /> - <el-table-column label="妫�娴嬬被鍨�" prop="paramType" align="center" /> <el-table-column - label="妫�娴嬭寖鍥�" + label="瑕佹眰鍊�" prop="referenceValue" align="center" /> <el-table-column label="鍗曚綅" prop="unit" align="center" /> + <el-table-column label="娴嬭瘯鏂规硶" prop="method" align="center" /> + <el-table-column label="娴嬭瘯鐩殑" prop="purpose" align="center" /> </el-table> </el-col> </el-row> @@ -52,14 +53,15 @@ /></basic-container> </template> <script> -import { getTestStandardParams } from '@/api/quality/teststandard' +//import { getTestStandardParams } from '@/api/quality/teststandard' import ttable from '@/views/common/ztt-table.vue' import { mapGetters } from 'vuex' import { deleteTestStandard, getTestStand, - saveTestStandard -} from '../../../api/technology/document' + saveTestStandard, + getTestStandardParams +} from '@/api/technology/document' import qualityStandardDialog from '@/views/common/teststandardradio.vue' export default { @@ -75,7 +77,7 @@ }, data() { return { - paramObj: { documentId: this.documentId }, + paramObj: {documentId : this.documentId}, showQualityStandard: false, testStandardParams: [], ajaxFun: getTestStand, @@ -184,7 +186,16 @@ computed: { ...mapGetters(['permissions']) }, - created() {}, + created() { + this.$nextTick(()=>{ + getTestStand(this.paramObj) + }) + }, + mounted(){ + this.$nextTick(()=>{ + getTestStand(this.paramObj) + }) + }, methods: { // 鑾峰彇鏁版嵁鍒楄〃 getData() { -- Gitblit v1.9.3