|
|
@@ -2,18 +2,21 @@
|
|
|
<div class="my-page">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="6" v-for="(item, index) in items" :key="index">
|
|
|
- <el-card shadow="hover" :body-style="{ padding: '0' }" >
|
|
|
- <div class="item" style="font-size: medium; background-color:lightskyblue ">{{ item.docxName }}</div>
|
|
|
- <div style="margin: 15px">
|
|
|
+ <el-card shadow="hover" :body-style="{ padding: '0' }" >
|
|
|
+
|
|
|
+ <div class="item" style="font-size: large; background-color:lightskyblue ">{{ item.docxName }}</div>
|
|
|
+ <div style="margin: auto">
|
|
|
<div><div class="card-label">创建人</div><span>{{username}}</span></div>
|
|
|
<div><div class="card-label">创建时间</div><span>{{ item.creatTime.substring(0,10) }}</span></div>
|
|
|
<div><div class="card-label">最新修改时间</div><span></span></div>
|
|
|
- <div><div class="card-label">用例数量</div><span>{{ item.testCaseList.length }}</span></div>
|
|
|
+ <div><div class="card-label">用例数量</div><span></span></div>
|
|
|
</div>
|
|
|
<el-divider style="margin: 10px"></el-divider>
|
|
|
<el-button @click="gototestList(item)" style="">用例列表</el-button>
|
|
|
- <el-button @click="gototcFinalList(item)" :style="{'background-color': item.tcFinalList.length!==0?'white':'lightskyblue'}"> {{item.tcFinalList.length!==0?"已生成完整用例列表":"生成完整用例列表"}}</el-button>
|
|
|
+ <el-button @click="gototcFinalList(item)" :style="{'background-color': item.tcFinalList.length!==0?'white':'lightskyblue'}"> {{item.tcFinalList.length!==0?"已归档":"生成完整用例列表"}}</el-button>
|
|
|
</el-card>
|
|
|
+
|
|
|
+
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -43,13 +46,15 @@ export default defineComponent({
|
|
|
]);
|
|
|
const username = ref()
|
|
|
const router = useRouter()
|
|
|
- const hasFinalList = ref(true)
|
|
|
+
|
|
|
+ //{{JSON.parse(item.actionList)[0].times }}
|
|
|
|
|
|
onMounted(() => {
|
|
|
console.log(useStore.taskList)
|
|
|
items.value = useStore.taskList;
|
|
|
username.value = useStore.userInfo.username
|
|
|
console.log(username)
|
|
|
+
|
|
|
});
|
|
|
|
|
|
|
|
|
@@ -73,7 +78,7 @@ export default defineComponent({
|
|
|
gototestList,
|
|
|
username,
|
|
|
gototcFinalList,
|
|
|
- hasFinalList
|
|
|
+
|
|
|
};
|
|
|
}
|
|
|
})
|
|
|
@@ -102,4 +107,6 @@ export default defineComponent({
|
|
|
display: inline-block;
|
|
|
margin-bottom: 5px;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
</style>
|