首次提交

master
tangyi 2022-01-25 18:08:57 +08:00
parent 5775bab1ab
commit 0dd02ef87d
10 changed files with 82 additions and 20 deletions

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "hello-world",
"name": "火眼识才",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "hello-world",
"name": "hysc-ht",
"version": "0.1.0",
"private": true,
"scripts": {

View File

@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>火眼识才</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->

View File

@ -53,9 +53,6 @@
font-size: 16px;
color: #454D67;
line-height: 42px;
border-bottom: 1px solid #E4EAEE;
}
.title-item li.cur{
border-bottom: 1px solid #0544A4;
}
</style>

View File

@ -424,6 +424,7 @@ export default {
.reportListCon {
background: #f8fafb;
padding: 20px;
margin-bottom: 30px;
}
.reportListCon > p {
width: 93%;

View File

@ -2,7 +2,7 @@
<div class="disFlex">
<NavLeft navIf="generateTest" />
<div class="projectManagement">
<div class="title">编辑题库</div>
<div class="title">测试详情</div>
<div class="projectTopicText">
<p class="tit">项目信息</p>
@ -27,7 +27,15 @@
</div>
<div class="ewm">
<img :src="projectData.qrCodeUrl" alt="" />
<div>
<img :src="projectData.qrCodeUrl" alt="" />
<p>微信二维码</p>
</div>
<div>
<img :src="projectData.dingQrCodeUrl" alt="" />
<p>钉钉二维码</p>
</div>
</div>
</div>
@ -56,7 +64,7 @@
</div>
<button type="button" @click="getProject()" class="queryProject">
<img src="" alt="" /> 查询
<img src="../assets/search-btn.png" alt="" /> 查询
</button>
</div>
@ -76,7 +84,7 @@
v-model="scope.row.isAllowViewResultIf"
@change="testStatus(scope.row)"
/>
<p>{{ scope.row.isAllowViewResultIf }}</p>
</template>
</el-table-column>
<el-table-column
@ -292,6 +300,7 @@ export default {
},
testStatus(data) {
let that=this
let isAllowViewResult = 1;
if (data.isAllowViewResultIf) {
isAllowViewResult = 0;
@ -306,6 +315,7 @@ export default {
})
.then(function (response) {
console.log(response.data.data);
that.getProject();
})
.catch(function (error) {
console.log(error);
@ -498,10 +508,13 @@ export default {
display: flex;
align-items: center;
}
.projectTopicText .projectTopicCon > .ewm > img {
.projectTopicText .projectTopicCon > .ewm img {
height: 100px;
width: 100px;
}
.projectTopicText .projectTopicCon > .ewm p{
text-align: center;
}
.projectTopicTable {
margin-top: 30px;
}

View File

@ -2,7 +2,7 @@
<div class="disFlex">
<NavLeft navIf="generateTest" />
<div class="projectManagement zdin">
<div class="title">项目管理</div>
<div class="title">测试管理</div>
<div class="search">
<div class="searchInput">
<el-input

View File

@ -25,7 +25,7 @@
</div>
<button type="button" @click="queryProject()" class="queryProject">
<img src="" alt="" /> 查询
<img src="../assets/search-btn.png" alt="" /> 查询
</button>
<button type="primary" @click="addProject()" class="addProject">
<img src="" alt="" /> 新建
@ -41,7 +41,20 @@
/>
<el-table-column align="center" prop="createTime" label="创建时间" />
<el-table-column align="center" prop="name" label="项目" />
<el-table-column align="center" prop="note" label="备注" />
<el-table-column label="备注" >
<template #default="scope">
<el-popover effect="light" trigger="hover" placement="top" width="auto">
<template #default>
<div>项目: {{ scope.row.name }}</div>
<div>备注: {{ scope.row.note }}</div>
</template>
<template #reference>
<el-tag>{{ scope.row.name }}</el-tag>
</template>
</el-popover>
</template>
</el-table-column>
<el-table-column align="center" prop="testCount" label="数量" />
<el-table-column align="center" fixed="right" label="状态">
<template #default="scope">
@ -422,6 +435,9 @@ export default {
width: 90px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
background: #0544a4;
box-shadow: 0px 2px 7px 0px rgba(120, 137, 149, 0.25);
border-radius: 3px;
@ -432,6 +448,11 @@ export default {
font-weight: 400;
color: #ffffff;
}
.queryProject>img{
margin-right: 5px;
width: 17px;
}
.addProject {
width: 90px;
cursor: pointer;

View File

@ -326,7 +326,7 @@
<el-drawer
v-model="generateTestIf"
title="编辑问题"
:title=titGenerateTest
:direction="direction"
:before-close="handleClose"
>
@ -406,6 +406,7 @@ export default {
topicType: 1,
total: "",
fileImgData: "",
titGenerateTest:"新建问题",
generateTestData: {
name: "",
companyName: "",
@ -631,6 +632,7 @@ export default {
})
.then(function (data) {
console.log(data);
this.$router.push("/projectTopic");
})
})
@ -698,7 +700,7 @@ export default {
this.buttonDataIF = false;
this.topicData = { ...data.row };
this.titGenerateTest="编辑问题"
},
@ -871,6 +873,8 @@ export default {
this.clearFata();
this.topicData.libraryType = this.TopicPageData.libraryType;
this.addCation();
this.titGenerateTest="新建问题"
this.buttonDataIF = true;
this.topicData.projectId = this.projectData.id;
},
handleClose() {

View File

@ -82,7 +82,7 @@
<el-input v-model="topicParametersData.key"></el-input>
</el-form-item>
<div>
<div class="textDataCss">
<p class="tit">value</p>
<el-input
v-model="topicParametersData.value"
@ -102,7 +102,7 @@
<el-button type="primary" v-else @click="updLibraryTypeParam()"
>修改项目</el-button
>
<el-button @click="resetForm()"></el-button>
<el-button @click="handleClose()"></el-button>
</el-form-item>
</el-drawer>
</div>
@ -155,11 +155,26 @@ export default {
},
methods: {
// A
handleClose(){
this.topicParametersIf=false
},
topicParametersNavIfFun(num) {
this.topicParametersDataNavIf=1
this.topicParametersNavIf = num;
this.topicParametersDataNavDataList =
this.topicParametersDataNavData[num - 1];
if (this.topicParametersNavIf == 1) {
this.topicParametersData.libraryType = "topic_type_1";
} else if (this.topicParametersNavIf == 2) {
this.topicParametersData.libraryType = "topic_type_2";
} else if (this.topicParametersNavIf == 3) {
this.topicParametersData.libraryType = "topic_type_3";
} else if (this.topicParametersNavIf == 4) {
this.topicParametersData.libraryType = "topic_type_4";
}
this.topicParametersData.topicType = this.topicParametersDataNavIf;
this.getTopicParametersData();
},
topicParametersIfFun() {
(this.topicParametersData = {
@ -174,6 +189,8 @@ export default {
this.topicParametersDataNavIf = num;
this.updataIf = true;
this.topicParametersDataNavData = { ...this.topicParametersDataNavData };
this.topicParametersData.topicType = this.topicParametersDataNavIf;
this.getTopicParametersData();
},
updata(data) {
this.topicParametersData = { ...data };
@ -288,6 +305,15 @@ padding-top: 85px;
.topicParametersButton {
margin-top: 30px;
}
.textDataCss{
display: flex;
}
.textDataCss p{
font-size: 14px;
color:#606266;
}
.topicParametersConmentTit > p {
margin-right: 60px;
font-size: 16px;