2 lines
28 KiB
JavaScript
2 lines
28 KiB
JavaScript
webpackJsonp([9],{"+76J":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("mvHQ"),i=a.n(l),s=a("bOdI"),o=a.n(s),r={data:function(){var e;return e={tabMapOptions:[{label:"None",key:"0"},{label:"windows",key:"1"},{label:"linux",key:"2"}],ServerInfo:{serverName:"",pageNum:1,pageSize:100},loading:!1,fileType:["jmx"],add_value:!1,itemOptions:[],slaveOptions:[],planOptions:[],joinPlanForm:{planId:""},editForm:{},detailForm:{},queryInfo:{pageNum:1,pageSize:10,itemId:"",scriptName:""},testCaseList:[],currpage:1,total:0,importDialogVisible:!1,addDialogVisible:!1,editDialogVisible:!1,detailDialogVisible:!1,joinPlanDialogVisible:!1,multipleSelection:[],caseTypeOptions:[],caseLevelOptions:[],caseStatusOptions:[]},o()(e,"itemOptions",[]),o()(e,"slaveOptions",[]),o()(e,"addForm",{slaveIPs:"",itemId:"",scriptName:"",createTime:"2021-08-21 13:55:55",runStatus:0,runNums:"0",execEnv:[],uploadPerson:"",slaveIP:"",status:1,comments:"。。。"}),o()(e,"addFormRules",{itemId:[{required:!0,message:"请选择测试项目",trigger:"blur"}],slaveIP:[{required:!1,message:"请选择server名称",trigger:"blur"}],testCaseType:[{required:!0,message:"请选择用例类型",trigger:"blur"}],testCaseLevel:[{required:!0,message:"请选择用例等级",trigger:"blur"}],testCaseTitle:[{required:!0,message:"请输入用例标题",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],precondition:[{required:!0,message:"请输入前置条件",trigger:"blur"},{min:1,max:200,message:"长度在 1 到 200 个字符",trigger:"blur"}],testStep:[{required:!1,message:"请输入测试步骤",trigger:"blur"},{min:0,max:200,message:"长度在 0 到 200 个字符",trigger:"blur"}],expectResult:[{required:!1,message:"请输入预期结果",trigger:"blur"}],writePerson:[{required:!1,message:"请输入编写者姓名",trigger:"blur"}],comments:[{required:!1,message:"请输入备注",trigger:"blur"},{min:0,max:200,message:"长度在 0 到 200 个字符",trigger:"blur"}]}),o()(e,"joinPlanFormRules",{planId:[{required:!0,message:"请选择测试计划",trigger:"blur"}]}),e},watch:{},components:{UploadFile:a("hx1z").a},mounted:function(){this.getItemNameList(),this.getPlanNameList(),this.getCaseTypeAndCaseStatusAndCaseLevel(),this.getServerIPList()},created:function(){this.getPerformanceTestCaseList()},methods:{uploadSuccessStartImport:function(e){this.addForm.scriptName=""==this.addForm.scriptName?e:this.addForm.scriptName},getCaseTypeAndCaseStatusAndCaseLevel:function(){var e=this;this.$api.dict.queryAllDataDict().then(function(t){e.caseTypeOptions=t.data.data.caseType,e.caseLevelOptions=t.data.data.caseLevel,e.caseStatusOptions=t.data.data.caseStatus}).catch(function(){})},getPlanNameList:function(){var e=this;this.$api.plan.queryAllPlanName().then(function(t){e.planOptions=t.data.data}).catch(function(){})},joinTestPlanDialogVisible:function(){0!=this.multipleSelection.length?this.joinPlanDialogVisible=!0:this.$notify({type:"warning",message:"请勾选加入计划的用例"})},cancleJoinPlanDialogVisible:function(){this.joinPlanDialogVisible=!1},joinTestPlan:function(){var e=this;this.$refs.joinPlanFormRef.validate(function(t){if(t){var a=[];e.multipleSelection.forEach(function(t){var l={};l.caseId=t.id,l.planId=e.joinPlanForm.planId,a.push(l)}),e.$api.planrelation.caseJoinTestPlan(i()(a)).then(function(t){e.$notify({type:"success",message:t.data.msg}),e.joinPlanDialogVisible=!1,e.$refs.joinPlanFormRef.resetFields()}).catch(function(){})}})},updateTestCaseStatus:function(e){var t=this,a=e;a.updateTime=(new Date).getTime(),this.$api.test.updateFunctionTestCaseStatus(a).then(function(e){t.$notify({type:"success",message:e.data.msg}),t.getPerformanceTestCaseList()}).catch(function(){})},cancelImportDialogVisible:function(){this.importDialogVisible=!1,this.$refs.uploadFile.cancel()},importFunctionTestCase:function(){this.$refs.uploadFile.uploadSectionFile(),this.importDialogVisible=!1,this.loading=!0,this.$common.setLocalStorage()},batchExportFunctionTestCase:function(){var e=this;0!=this.multipleSelection.length?(this.loading=!0,this.$api.test.batchExportFunctionTestCaseToExcel(i()(this.multipleSelection)).then(function(t){e.loading=!1,e.$notify({type:"success",message:t.data.msg}),e.$common.downloadFiles(t.data.data.fileName),e.$api.comm.deleteFile(t.data.data.fileName)}).catch(function(){})):this.$notify({type:"warning",message:"请勾选需要导出的用例"})},exportAllFunctionTestCase:function(){var e=this;this.loading=!0,this.$api.test.exportAllFunctionTestCaseToExcel(i()(this.queryInfo)).then(function(t){e.loading=!1,200==t.data.code?(e.$notify({type:"success",message:t.data.msg}),e.$common.downloadFiles(t.data.data.fileName),e.$api.comm.deleteFile(t.data.data.fileName)):e.$notify({type:"error",message:t.data.msg})}).catch(function(){})},batchDelFunctionTestCase:function(){var e=this;if(0==this.multipleSelection.length)this.$notify({type:"warning",message:"请勾选需要删除的用例"});else{var t=this.multipleSelection;this.loading=!0,this.$confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$api.test.deletePerformanceTestCaseById(i()(t)).then(function(t){e.loading=!1,e.$notify({type:"success",message:t.data.msg}),e.getPerformanceTestCaseList()}).catch(function(){e.loading=!1})}).catch(function(){e.loading=!1})}},handleSelectionChange:function(e){this.multipleSelection=e},addPerformanceTestCase:function(e){var t=this;this.$refs.addFormRef.validate(function(a){if(a){t.addForm.createTime=(new Date).getTime();i()(e);var l=JSON.parse(localStorage.getItem("userInfo")).nick;t.addForm.slaveIP=t.addForm.slaveIPs.toString(),t.addForm.uploadPerson=""==t.addForm.uploadPerson?l:t.addForm.uploadPerson,t.$api.test.addPerformanceTestCase(i()(t.addForm)).then(function(e){t.$notify({message:e.data.msg,type:"success"}),t.addDialogVisible=!1,t.getPerformanceTestCaseList(),t.loading=!1}).catch(function(){t.loading=!0})}})},cancelAddDialogVisible:function(){this.addDialogVisible=!1,this.$refs.addFormRef.resetFields()},showDetailDialog:function(e){var t=this;this.$api.test.queryFunctionTestCaseById(e).then(function(e){t.detailForm=e.data.data,t.detailDialogVisible=!0}).catch(function(){})},showEditDialog:function(e){var t=this;this.$api.test.queryFunctionTestCaseById(e).then(function(e){t.editForm=e.data.data,t.editDialogVisible=!0}).catch(function(){})},editFunctionTestCase:function(){var e=this;this.$refs.editFormRef.validate(function(t){t&&(e.editForm.updateTime=(new Date).getTime(),e.$api.test.editFunctionTestCase(i()(e.editForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.editDialogVisible=!1,e.getPerformanceTestCaseList()}).catch(function(){}))})},runPerformanceTestCase:function(e,t,a){var l=this;this.$confirm("再次确认运行环境win?Linux?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.includes("jmx")?"1"==a?l.$notify({type:"warning",message:"脚本正在执行中,请稍后···"}):l.$api.test.runPerformanceTestCase(e).then(function(e){l.$notify({type:"success",message:e.data.msg}),l.loading=!1,l.getPerformanceTestCaseList()}).catch(function(){l.loading=!1}):l.$notify({type:"warning",message:"确认脚本文件是否存在!"})}).catch(function(){})},downloadReport:function(e,t){null==e?this.$notify({type:"warning",message:"还没有生成报告."}):"3"==t?this.$notify({type:"warning",message:"还没有生成报告..."}):this.$common.downloadFiles(e)},downloadscriptName:function(e){e.includes("jmx")?this.$common.downloadFiles(e):this.$notify({type:"warning",message:"没有对应的jmx文件"})},delPerformanceTestCase:function(e,t,a){var l=this;this.$confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){l.$api.comm.deletejmxFile(a),l.$api.comm.deletejmxFile(t),l.$api.test.deletePerformanceTestCaseById(e).then(function(e){l.$notify({type:"success",message:e.data.msg}),l.loading=!1,l.getPerformanceTestCaseList()}).catch(function(){l.loading=!1})}).catch(function(){})},getItemNameList:function(){var e=this;this.$api.item.queryAllItemIdAndItemName(this.queryInfo.itemName).then(function(t){e.itemOptions=t.data.data}).catch(function(){e.loading=!1})},getServerIPList:function(){var e=this;this.$api.server.queryAllServer(i()(this.ServerInfo)).then(function(t){e.slaveOptions=t.data.data.list}).catch(function(){e.loading=!1})},getPer_NameList:function(){this.itemOptions=[1,2,3,4]},getPerformanceTestCaseList:function(){var e=this;this.loading=!0,this.$api.test.queryAllPerformanceCase(i()(this.queryInfo)).then(function(t){e.testCaseList=t.data.data,e.total=t.data.count,e.loading=!1,e.queryInfo.pageNum=1}).catch(function(){e.loading=!0})},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.getPerformanceTestCaseList()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.getPerformanceTestCaseList()},getRowKeys:function(e){return e.id}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"performance-list-box"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"项目名称"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryInfo.itemId,callback:function(t){e.$set(e.queryInfo,"itemId",t)},expression:"queryInfo.itemId"}},e._l(e.itemOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.itemName,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"脚本名称"}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入脚本标题",clearable:""},model:{value:e.queryInfo.scriptName,callback:function(t){e.$set(e.queryInfo,"scriptName",t)},expression:"queryInfo.scriptName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getPerformanceTestCaseList}},[e._v("查 询")])],1)],1),e._v(" "),a("el-row",{staticClass:"add_button"},[a("el-col",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.addDialogVisible=!0}}},[e._v("添加")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{"tooltip-effect":"dark",data:e.testCaseList.slice((e.currpage-1)*e.queryInfo.pageSize,e.currpage*e.queryInfo.pageSize),border:"",fit:!0,"row-key":e.getRowKeys},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"序号",type:"index",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"项目名称",prop:"itemId",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"脚本名称",prop:"scriptName",width:"450","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"执行状态",prop:"runStatus"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.runStatus?a("span",{staticStyle:{color:"blue","font-size":"15px"}},[e._v("未执行")]):e._e(),e._v(" "),1===t.row.runStatus?a("span",{staticStyle:{color:"orange","font-size":"15px"}},[e._v("执行中")]):e._e(),e._v(" "),2===t.row.runStatus?a("span",{staticStyle:{color:"green","font-size":"15px"}},[e._v("执行完成")]):e._e(),e._v(" "),3===t.row.runStatus?a("span",{staticStyle:{color:"red","font-size":"15px"}},[e._v("执行异常")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,prop:"execEnv",label:"执行环境",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.execEnv?a("el-button",{staticStyle:{color:"grey","font-size":"13px"},attrs:{size:"small"}},[e._v("None")]):e._e(),e._v(" "),1===t.row.execEnv?a("el-button",{staticStyle:{color:"grey","font-size":"13px"},attrs:{size:"small"}},[e._v("windows")]):e._e(),e._v(" "),2===t.row.execEnv?a("el-button",{staticStyle:{color:"grey","font-size":"13px"},attrs:{size:"small"}},[e._v("linux")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"开始时间",prop:"startExecTime",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"结束时间",prop:"endExecTime",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"创建时间",prop:"createTime",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"slaveIP",prop:"slaveIP",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{"reserve-selection":!0,label:"备注",prop:"comments","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.runPerformanceTestCase(t.row.id,t.row.scriptName,t.row.runStatus)}}},[e._v("运行")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.downloadReport(t.row.reportPath,t.row.runStatus)}}},[e._v("报告")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.downloadscriptName(t.row.scriptName)}}},[e._v("脚本")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return e.delPerformanceTestCase(t.row.id,t.row.scriptName,t.row.reportPath)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-pagination",{attrs:{"page-sizes":[5,10,20,30],"page-size":e.queryInfo.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),a("el-dialog",{attrs:{title:"添加用例",visible:e.addDialogVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.addDialogVisible=t},close:e.cancelAddDialogVisible}},[a("el-form",{ref:"addFormRef",attrs:{model:e.addForm,rules:e.addFormRules,"label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"项目名称",prop:"itemId",clearable:""}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.addForm.itemId,callback:function(t){e.$set(e.addForm,"itemId",t)},expression:"addForm.itemId"}},e._l(e.itemOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.itemName,value:e.id+""}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"压测脚本",prop:"picture"},model:{value:e.editForm.picture,callback:function(t){e.$set(e.editForm,"picture",t)},expression:"editForm.picture"}},[a("upload-file",{ref:"uploadFile",attrs:{fileType:e.fileType},on:{"upload-file-event":e.uploadSuccessStartImport}}),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:e.cancelImportDialogVisible}},[e._v("清除")]),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:e.importFunctionTestCase}},[e._v("上传")])],1)],1),e._v(" "),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"server名称",prop:"slaveIP",clearable:""}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.addForm.slaveIPs,callback:function(t){e.$set(e.addForm,"slaveIPs",t)},expression:"addForm.slaveIPs"}},e._l(e.slaveOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.serverName,value:e.ip+""}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"server ip",prop:"slaveIP",clearable:""}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择",disabled:""},model:{value:e.addForm.slaveIPs,callback:function(t){e.$set(e.addForm,"slaveIPs",t)},expression:"addForm.slaveIPs"}},e._l(e.slaveOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.ip,value:e.ip+""}})}),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"脚本名字",prop:"scriptName"}},[a("el-input",{attrs:{placeholder:"请输入测试脚本名称"},model:{value:e.addForm.scriptName,callback:function(t){e.$set(e.addForm,"scriptName",t)},expression:"addForm.scriptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"执行环境",prop:"execEnv"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.addForm.execEnv,callback:function(t){e.$set(e.addForm,"execEnv",t)},expression:"addForm.execEnv"}},e._l(e.tabMapOptions,function(e){return a("el-option",{key:e.key,attrs:{label:e.label,value:e.key}})}),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注",prop:"comments"}},[a("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.addForm.comments,callback:function(t){e.$set(e.addForm,"comments",t)},expression:"addForm.comments"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancelAddDialogVisible}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.addPerformanceTestCase}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改用例",visible:e.editDialogVisible,width:"60%"},on:{"update:visible":function(t){e.editDialogVisible=t},close:function(t){e.editDialogVisible=!1}}},[a("el-form",{ref:"editFormRef",attrs:{model:e.editForm,rules:e.addFormRules,"label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"项目名称",prop:"itemId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.editForm.itemId,callback:function(t){e.$set(e.editForm,"itemId",t)},expression:"editForm.itemId"}},e._l(e.itemOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.itemName,value:e.id+""}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用例类型",prop:"testCaseType"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.editForm.testCaseType,callback:function(t){e.$set(e.editForm,"testCaseType",t)},expression:"editForm.testCaseType"}},e._l(e.caseTypeOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用例等级",prop:"testCaseLevel"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.editForm.testCaseLevel,callback:function(t){e.$set(e.editForm,"testCaseLevel",t)},expression:"editForm.testCaseLevel"}},e._l(e.caseLevelOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用例状态",prop:"testCaseStatus"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.editForm.testCaseStatus,callback:function(t){e.$set(e.editForm,"testCaseStatus",t)},expression:"editForm.testCaseStatus"}},e._l(e.caseStatusOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"测试模块",prop:"testMode"}},[a("el-input",{attrs:{placeholder:"请输入测试模块名称"},model:{value:e.editForm.testMode,callback:function(t){e.$set(e.editForm,"testMode",t)},expression:"editForm.testMode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"用例标题",prop:"testCaseTitle"}},[a("el-input",{attrs:{placeholder:"请输入用例标题"},model:{value:e.editForm.testCaseTitle,callback:function(t){e.$set(e.editForm,"testCaseTitle",t)},expression:"editForm.testCaseTitle"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"前置条件",prop:"precondition"}},[a("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入前置条件"},model:{value:e.editForm.precondition,callback:function(t){e.$set(e.editForm,"precondition",t)},expression:"editForm.precondition"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"测试步骤",prop:"testStep"}},[a("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.editForm.testStep,callback:function(t){e.$set(e.editForm,"testStep",t)},expression:"editForm.testStep"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"预期结果",prop:"expectResult"}},[a("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.editForm.expectResult,callback:function(t){e.$set(e.editForm,"expectResult",t)},expression:"editForm.expectResult"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"编写者",prop:"writePerson"}},[a("el-input",{model:{value:e.editForm.writePerson,callback:function(t){e.$set(e.editForm,"writePerson",t)},expression:"editForm.writePerson"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注",prop:"comments"}},[a("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.editForm.comments,callback:function(t){e.$set(e.editForm,"comments",t)},expression:"editForm.comments"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.editDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.editFunctionTestCase}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看用例",visible:e.detailDialogVisible,width:"60%"},on:{"update:visible":function(t){e.detailDialogVisible=t},close:function(t){e.detailDialogVisible=!1}}},[a("el-form",{attrs:{model:e.detailForm,"label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"项目名称",prop:"itemId"}},[a("el-select",{attrs:{placeholder:"请选择",disabled:""},model:{value:e.detailForm.itemId,callback:function(t){e.$set(e.detailForm,"itemId",t)},expression:"detailForm.itemId"}},e._l(e.itemOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.itemName,value:e.id+""}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用例类型",prop:"testCaseType"}},[a("el-select",{attrs:{placeholder:"请选择",disabled:""},model:{value:e.detailForm.testCaseType,callback:function(t){e.$set(e.detailForm,"testCaseType",t)},expression:"detailForm.testCaseType"}},e._l(e.caseTypeOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用例等级",prop:"testCaseLevel"}},[a("el-select",{attrs:{placeholder:"请选择",disabled:""},model:{value:e.detailForm.testCaseLevel,callback:function(t){e.$set(e.detailForm,"testCaseLevel",t)},expression:"detailForm.testCaseLevel"}},e._l(e.caseLevelOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用例状态",prop:"testCaseStatus"}},[a("el-select",{attrs:{placeholder:"请选择",disabled:""},model:{value:e.detailForm.testCaseStatus,callback:function(t){e.$set(e.detailForm,"testCaseStatus",t)},expression:"detailForm.testCaseStatus"}},e._l(e.caseStatusOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"测试模块",prop:"testMode"}},[a("el-input",{attrs:{placeholder:"请输入测试模块名称",disabled:""},model:{value:e.detailForm.testMode,callback:function(t){e.$set(e.detailForm,"testMode",t)},expression:"detailForm.testMode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"用例标题",prop:"testCaseTitle"}},[a("el-input",{attrs:{placeholder:"请输入用例标题",disabled:""},model:{value:e.detailForm.testCaseTitle,callback:function(t){e.$set(e.detailForm,"testCaseTitle",t)},expression:"detailForm.testCaseTitle"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"前置条件",prop:"precondition"}},[a("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入前置条件",disabled:""},model:{value:e.detailForm.precondition,callback:function(t){e.$set(e.detailForm,"precondition",t)},expression:"detailForm.precondition"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"测试步骤",prop:"testStep"}},[a("el-input",{attrs:{type:"textarea",rows:5,disabled:""},model:{value:e.detailForm.testStep,callback:function(t){e.$set(e.detailForm,"testStep",t)},expression:"detailForm.testStep"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"预期结果",prop:"expectResult"}},[a("el-input",{attrs:{type:"textarea",rows:5,disabled:""},model:{value:e.detailForm.expectResult,callback:function(t){e.$set(e.detailForm,"expectResult",t)},expression:"detailForm.expectResult"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"编写者",prop:"writePerson"}},[a("el-input",{attrs:{disabled:""},model:{value:e.detailForm.writePerson,callback:function(t){e.$set(e.detailForm,"writePerson",t)},expression:"detailForm.writePerson"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注",prop:"comments"}},[a("el-input",{attrs:{type:"textarea",rows:5,disabled:""},model:{value:e.detailForm.comments,callback:function(t){e.$set(e.detailForm,"comments",t)},expression:"detailForm.comments"}})],1)],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.detailDialogVisible=!1}}},[e._v("取 消")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"加入计划",visible:e.joinPlanDialogVisible,width:"30%"},on:{"update:visible":function(t){e.joinPlanDialogVisible=t},close:e.cancleJoinPlanDialogVisible}},[a("el-form",{ref:"joinPlanFormRef",staticClass:"demo-form-inline",attrs:{model:e.joinPlanForm,rules:e.joinPlanFormRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"计划名称",prop:"planId"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.joinPlanForm.planId,callback:function(t){e.$set(e.joinPlanForm,"planId",t)},expression:"joinPlanForm.planId"}},e._l(e.planOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.planName,value:e.id+""}})}),1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancleJoinPlanDialogVisible}},[e._v("取 消")]),e._v(" "),a("el-button",{on:{click:e.joinTestPlan}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c={data:function(){return{activeName:"list",load:{statistic:!1,list:!0,plan:!1,review:!1,report:!1}}},mounted:function(){},created:function(){},methods:{handleClick:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}},components:{PerformanceList:a("VU/8")(r,n,!1,function(e){a("Yq5e")},"data-v-7adc6062",null).exports}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"用例列表",name:"list"}},[e.load.list?a("PerformanceList"):e._e()],1)],1)],1)},staticRenderFns:[]};var m=a("VU/8")(c,d,!1,function(e){a("Hum2")},"data-v-703bbbd9",null);t.default=m.exports},Hum2:function(e,t){},Yq5e:function(e,t){}});
|
||
//# sourceMappingURL=9.c1ff9eb9c2b2e557ec4b.js.map
|