From dea9682d0b8691585932bbed51a6bcaf34d8ab96 Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期五, 17 十一月 2023 09:40:24 +0800 Subject: [PATCH] 项目表 --- web/src/views/modules/project/SoftwareTestOrder-AddOrUpdate.vue | 73 ++++++++++++++++++++++-------------- 1 files changed, 44 insertions(+), 29 deletions(-) diff --git a/web/src/views/modules/project/SoftwareTestOrder-AddOrUpdate.vue b/web/src/views/modules/project/SoftwareTestOrder-AddOrUpdate.vue index 9687ce7..8ea3e84 100644 --- a/web/src/views/modules/project/SoftwareTestOrder-AddOrUpdate.vue +++ b/web/src/views/modules/project/SoftwareTestOrder-AddOrUpdate.vue @@ -1,10 +1,10 @@ <template> <zt-dialog ref="dialog" column="2" @confirm="formSubmit"> <el-form ref="form" :inline="true" :model="dataForm" :disabled="dataForm.disabled" label-width="120px" - class="weiTuoDanAuto"> + class="weiTuoDanAuto" style="padding-top: 0"> <div class="DManageForm"> - <el-form-item readonly label-width="60px" label="缂栧彿:" style="width: 99% ;margin-bottom:-5px"> - <span>{{ dataForm.project.code }}</span> + <el-form-item readonly label-width="50px" label="缂栧彿:" style="width: 99% ;margin-bottom:-5px"> + <span>{{ dataForm.softwareTestOrder.code}}</span> </el-form-item> </div> <div style="border: 1px solid rgba(0,0,0,.2)"> @@ -105,7 +105,7 @@ <el-table class="el-software" height="230" border :data="dataForm.measuredList" @cell-click="handleCellClick" stripe> - <el-table-column type="index" align="center" width="80" label="搴忓彿"/> + <el-table-column prop="no" align="center" width="80" label="搴忓彿"/> <el-table-column min-width="300" label="鍚嶇О"> <template slot-scope="scope"> <span>{{ (dataForm.project.softwareName||'') + scope.row.name }}</span> @@ -122,10 +122,6 @@ <el-table-column label="鏄惁琚祴浠�" width="180" align="center"> <template slot-scope="scope"> <zt-dict v-model="scope.row.isMeasured" dict="is_or_not" :radio="true"></zt-dict> - <!-- <el-radio-group v-model="scope.row.isMeasured">--> - <!-- <el-radio :label="1">鏄�</el-radio>--> - <!-- <el-radio :label="0">鍚�</el-radio>--> - <!-- </el-radio-group>--> </template> </el-table-column> </el-table> @@ -137,11 +133,6 @@ </div> <div style="width: calc(100% - 120px)"> <zt-dict v-model="dataForm.project.softwareType" :radio="true" dict="software_type"></zt-dict> - <!-- <el-checkbox-group v-model="dataForm.checkList">--> - <!-- <el-checkbox :label="0">閫氱敤搴旂敤杞欢</el-checkbox>--> - <!-- <el-checkbox :label="1">琛屼笟搴旂敤杞欢</el-checkbox>--> - <!-- <el-checkbox :label="2">宓屽叆寮忚蒋浠�</el-checkbox>--> - <!-- </el-checkbox-group>--> </div> </div> </div> @@ -159,11 +150,6 @@ <el-form-item style="width: 20%;padding-left:5%;margin-bottom: 0"> <zt-dict v-model="dataForm.softwareTestOrder.testBasis" :radio="true" dict="test_basis" clearable></zt-dict> - <!-- <el-checkbox-group v-model="dataForm.checkList">--> - <!-- <el-checkbox :label="0">GB/T 25000.21-2016</el-checkbox>--> - <!-- <el-checkbox :label="1">GJB/Z 141-2004</el-checkbox>--> - <!-- <el-checkbox :label="2">鍏朵粬锛歿{dataForm.other}}</el-checkbox>--> - <!-- </el-checkbox-group>--> </el-form-item> </div> </div> @@ -171,7 +157,7 @@ <div class="DWidth DAlign DHold"> 娴嬭瘯绫诲瀷 </div> - <div class="el-border-left" style="width: 98%"> + <div class="el-border-left test-type-line-height" style="width: 98%"> <el-form-item style="width: 40%;padding-left:5%;margin-bottom: 0"> <zt-dict-checkbox v-model="dataForm.softwareTestOrder.testType1" column="2" dict="test_type1" clearable></zt-dict-checkbox> @@ -198,7 +184,7 @@ </div> <div class="el-border-left" style="width: 98%"> <el-form-item style="padding-left:5%;margin-bottom:0"> - <zt-dict v-model="dataForm.project.testLevel" :radio="true" dict="test_level"></zt-dict> + <zt-dict v-model="dataForm.softwareTestOrder.testLevel" :radio="true" dict="test_level"></zt-dict> </el-form-item> </div> </div> @@ -231,7 +217,7 @@ <div class="el-border-left" style="width: 98%;"> <el-form-item label="鏄惁鐩朇NAS绔�" label-width="130px" style="padding-left:5%;margin-bottom:0"> <zt-dict v-model="dataForm.softwareTestOrder.otherRequire" :radio="true" - dict="is_or_not"></zt-dict> + dict="other_require"></zt-dict> </el-form-item> </div> </div> @@ -375,7 +361,7 @@ </div> </div> </div> - <div class="el-flex"> + <div class="el-flex el-border-bottom"> <div class="DPadding3 DAlign DHold"> 璇存槑 </div> @@ -391,6 +377,15 @@ </span> </div> </div> + </div> + <div class="el-flex order-sc" style="height: 170px"> +<!-- <div class="DPadding3 DAlign DHold">--> +<!-- 濮旀墭鍗曚笂浼�--> +<!-- </div>--> + <el-form-item class="marginTopAndMarginBottom" style="width: 100%"> + <config-uploader busi-type="test_order" model-name="dataForm" :dataForm="dataForm" + v-model="dataForm.files"/> + </el-form-item> </div> </div> @@ -413,6 +408,7 @@ id: null, projectId: null, softwareTestOrder: { + code:'', optEnviron:'', programLang:'', testBasis:'', @@ -500,9 +496,14 @@ ...res.data } if(this.dataForm.softwareTestOrder){ - this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') - this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') - console.log(this.dataForm.softwareTestOrder.testType1) + if(this.dataForm.softwareTestOrder.testType1){ + this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') + console.log(this.dataForm.softwareTestOrder.testType1) + } + if(this.dataForm.softwareTestOrder.testType2){ + this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') + console.log(this.dataForm.softwareTestOrder.testType2) + } } if(this.dataForm.project === null){ this.dataForm.project={} @@ -527,8 +528,12 @@ // 琛ㄥ崟鎻愪氦 async formSubmit() { console.log(this.dataForm, ' this.dataForm') - this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.join(',') - this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.join(',') + if(this.dataForm.softwareTestOrder.testType1){ + this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.join(',') + } + if(this.dataForm.softwareTestOrder.testType2){ + this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.join(',') + } console.log(this.dataForm.softwareTestOrder.testType1) let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/project/SoftwareTestOrder/', this.dataForm) if (res.success) { @@ -536,8 +541,12 @@ this.$refs.dialog.close() this.$emit('refreshDataList') }else{ - this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') - this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') + if(this.dataForm.softwareTestOrder.testType1){ + this.dataForm.softwareTestOrder.testType1=this.dataForm.softwareTestOrder.testType1.split(',') + } + if(this.dataForm.softwareTestOrder.testType2){ + this.dataForm.softwareTestOrder.testType2=this.dataForm.softwareTestOrder.testType2.split(',') + } } } } @@ -640,4 +649,10 @@ .csjgxx > .el-form-item > .el-form-item__content { width: calc(100% - 130px); } +.order-sc > .el-form-item > .el-form-item__content { + width:100%; +} +.test-type-line-height>.el-form-item>.el-form-item__content{ + line-height: 30px; +} </style> -- Gitblit v1.9.1