lepu-test-platform-web/dist/static/js/9.c1ff9eb9c2b2e557ec4b.js

2 lines
28 KiB
JavaScript
Raw Normal View History

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
//# sourceMappingURL=9.c1ff9eb9c2b2e557ec4b.js.map