|
@@ -10,9 +10,7 @@
|
|
|
<br>
|
|
|
<el-tree :data="data1" :default-expanded-keys="key_arr" :expand-on-click-node="true" node-key="id" @node-click="clickFun">
|
|
|
<span slot-scope="{ node, data }" style="width:100%;" class="custom-tree-node" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
|
|
|
- <!-- <el-tooltip class="item" effect="dark" :content="data.label" placement="right"> -->
|
|
|
<span :title="data.label" class="span_el">{{ node.label }}</span>
|
|
|
- <!-- </el-tooltip> -->
|
|
|
<el-dropdown v-show="data.del" style="margin-left:10px" trigger="click">
|
|
|
<span v-show="data.codes === '1' ? false : true" class="el-dropdown-link">
|
|
|
···<i class="el-icon--right" />
|
|
@@ -39,7 +37,6 @@
|
|
|
</el-select>
|
|
|
<el-button type="primary" @click="queryCaseData(test_plan)">查询</el-button>
|
|
|
<el-button type="primary" style="margin: 3% 2%" @click="createGetShow">新增</el-button>
|
|
|
- <!-- <el-button @click="implement">执行结果</el-button> -->
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-header>
|
|
@@ -367,6 +364,7 @@ export default {
|
|
|
cancelButtonText: '取消'
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ this.key_arr = []
|
|
|
var caseData = {
|
|
|
projectId: data.projectId,
|
|
|
modifier: this.userInformation,
|
|
@@ -379,6 +377,7 @@ export default {
|
|
|
this.$message({ type: 'success', message: '已删除' })
|
|
|
this.data1 = []
|
|
|
this.AllQueryFolderData()
|
|
|
+ this.key_arr.push(this.startId)
|
|
|
} else {
|
|
|
this.$message({ type: 'error', message: res.msg, duration: 1000 })
|
|
|
}
|
|
@@ -431,6 +430,7 @@ export default {
|
|
|
this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
|
|
|
this.dialogFormVisibleUpdate = false
|
|
|
this.AllQueryFolderData()
|
|
|
+ this.key_arr.push(this.startId)
|
|
|
})
|
|
|
}
|
|
|
if (e === '新增') {
|
|
@@ -451,6 +451,7 @@ export default {
|
|
|
this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
|
|
|
this.dialogFormVisibleUpdate = false
|
|
|
this.AllQueryFolderData()
|
|
|
+ this.key_arr.push(this.startId)
|
|
|
} else {
|
|
|
this.$notify({ title: '提示', message: res.msg, duration: 2000 })
|
|
|
}
|
|
@@ -477,6 +478,7 @@ export default {
|
|
|
item.caseInfo.ids = item.id
|
|
|
item.caseInfo.status_case = item.status
|
|
|
item.caseInfo.keys = item.status
|
|
|
+ item.caseInfo.thrr = this.startId
|
|
|
this.gridData.push(item.caseInfo)
|
|
|
})
|
|
|
this.total = res.data.length
|
|
@@ -654,6 +656,7 @@ export default {
|
|
|
updateTestPlanCase({ creator: this.userInformation, modifier: this.userInformation, id: ele.ids, status: 3, testPlanId: ele.thrr }).then(res => { this.implement() })
|
|
|
},
|
|
|
Unclicked4(e, index, ele) {
|
|
|
+ console.log(ele)
|
|
|
this.gridData[index].keys = 0
|
|
|
updateTestPlanCase({ creator: this.userInformation, modifier: this.userInformation, id: ele.ids, status: 0, testPlanId: ele.thrr }).then(res => { this.implement() })
|
|
|
},
|