@ -14,112 +14,38 @@
<!-- 列表 XmTestCase 测试用例 -- >
< el -table ref = "xmTestCaseTable" :data ="xmTestCases" :height ="maxTableHeight" @sort-change ="sortChange" highlight -current -row v-loading ="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" >
< el -table -column type = "selection" width = "55" show -overflow -tooltip fixed = "left" > < / e l - t a b l e - c o l u m n >
< el -table -column sortable type = "index" width = "55" show -overflow -tooltip fixed = "left" > < / e l - t a b l e - c o l u m n >
<!--
<!--
< el -table -column sortable prop = "username" width = "55" show -overflow -tooltip fixed = "left" >
< span class = "cell-text" > { { scope . row . username } } } < / span >
< span class = "cell-bar" > < el -input style = "display:inline;" v-model ="scope.row.username" placeholder="" @change="editSomeFields(scope.row,'username',$event)" :maxlength ="22" > < / el -input > < / span >
< / e l - t a b l e - c o l u m n >
-- >
< el -table -column prop = "id" label = "主键" min -width = " 120 " show -overflow -tooltip fixed = "left" > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "caseName" label = "标题" min -width = " 1 20" show -overflow -tooltip >
< el -table -column prop = "id" label = "编号" width = "120 " show -overflow -tooltip fixed = "left" > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "caseName" label = "标题" min -width = " 25 0 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . caseName } } < / span >
< span > < el -link @click ="showEdit(scope.row)" > {{ scope.row.caseName }} < / el -link > < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "caseRemark" label = "备注" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . caseRemark } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "testStep" label = "测试步骤" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . testStep } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "expectResult" label = "期望结果" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . expectResult } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "menuId" label = "关联的故事" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . menuId } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "menuName" label = "关联故事名" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . menuName } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "ctime" label = "创建时间" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . ctime } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "ltime" label = "更新时间" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . ltime } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "luserid" label = "更新人编号" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . luserid } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "lusername" label = "更新人姓名" min -width = " 120 " show -overflow -tooltip >
< el -table -column prop = "caseStatus" label = "状态" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . lusername } } < / span >
< el -tag v-for ="(item,index) in formatDictsWithClass(dicts,'testCaseStatus',scope.row.caseStatus)" :key="index" :type="item.className" > {{ item.name }} < / el -tag >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "cbranchId" label = "创建机构" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . cbranchId } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "moduleId" label = "模块编号" min -width = " 120 " show -overflow -tooltip >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "caseRemark" label = "备注" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . moduleId } } < / span >
< span > { { scope . row . caseRemark } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "moduleName" label = "模块名称" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . moduleName } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "caseStatus" label = "用例状态1正常0废弃" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . caseStatus } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "cuserid" label = "创建人编号" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . cuserid } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "cusername" label = "创建人姓名" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . cusername } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "productId" label = "产品编号" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . productId } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "verNum" label = "版本号" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . verNum } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "casedbId" label = "用例库编号" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . casedbId } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "casedbName" label = "用例库名称" min -width = " 120 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span > { { scope . row . casedbName } } < / span >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e >
@ -127,14 +53,14 @@
< / e l - r o w >
< el -row >
<!-- 编辑 XmTestCase 测试用例界面 -- >
< el -drawer title = "编辑测试用例" :visible.sync ="editFormVisible" size = "60%" append -to -body :close-on-click-modal ="false" >
< xm -test -case -edit op -type = " edit " :xm-test-case ="editForm" :visible ="editFormVisible" @cancel ="editFormVisible=false" @submit ="afterEditSubmit" > < / xm -test -case -edit >
< / e l - d r a w e r >
< el -dialog title = "编辑测试用例" :visible.sync ="editFormVisible" width = "60%" top = "20px " append -to -body :close-on-click-modal ="false" >
< xm -test -case -edit op -type = " edit " :xm-test-case ="editForm" :visible ="editFormVisible" @cancel ="editFormVisible=false" @submit ="afterEditSubmit" @edit-fields ="onEditFields" > < / x m - t e s t - c a s e - e d i t >
< / e l - d i a l o g >
<!-- 新增 XmTestCase 测试用例界面 -- >
< el -drawer title = "新增测试用例" :visible.sync ="addFormVisible" size = "60%" append -to -body :close-on-click-modal ="false" >
< xm -test -case -edit op -type = " add " :visible ="addFormVisible" @cancel ="addFormVisible=false" @submit ="afterAddSubmit" > < / xm -test -case -edit >
< / e l - d r a w e r >
< el -dialog title = "新增测试用例" :visible.sync ="addFormVisible" width = "60%" top = "20px " append -to -body :close-on-click-modal ="false" >
< xm -test -case -edit op -type = " add " :xm-test-casedb ="xmTestCasedb" : visible ="addFormVisible" @cancel ="addFormVisible=false" @submit ="afterAddSubmit" > < / xm -test -case -edit >
< / e l - d i a l o g >
< / e l - r o w >
< / section >
< / template >
@ -183,6 +109,7 @@ export default {
load : { list : false , edit : false , del : false , add : false } , / / 查 询 中 . . .
sels : [ ] , / / 列 表 选 中 数 据
dicts : {
testCaseStatus : [ ] ,
/ / s e x : [ { i d : ' 1 ' , n a m e : ' 男 ' } , { i d : ' 2 ' , n a m e : ' 女 ' } ]
} , / / 下 拉 选 择 框 的 所 有 静 态 数 据 p a r a m s = { c a t e g o r y I d : ' a l l ' , i t e m C o d e s : [ ' s e x ' ] } 返 回 结 果 { s e x : [ { i d : ' 1 ' , n a m e : ' 男 ' } , { i d : ' 2 ' , n a m e : ' 女 ' } ] }
addFormVisible : false , / / 新 增 x m T e s t C a s e 界 面 是 否 显 示