首次提交

master^2
tangyi 2022-01-25 18:41:23 +08:00
parent 5775bab1ab
commit 88d103adf2
10 changed files with 121 additions and 31 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

@ -106,7 +106,18 @@
<div class="projectTopicTable">
<el-table :data="tableData" style="width: 100%" max-height="500">
<el-table-column align="center" prop="id" label="序号" />
<el-table-column align="center" prop="topic" label="题目" />
<el-table-column label="题目" >
<template #default="scope">
<el-popover effect="light" trigger="hover" placement="top" width="auto">
<template #default>
<div>备注: {{ scope.row.topic }}</div>
</template>
<template #reference>
<el-tag>{{ scope.row.topic }}</el-tag>
</template>
</el-popover>
</template>
</el-table-column>
<el-table-column align="center" fixed="right" label="选择状态">
<template #default="scope">
<div v-if="scope.row.isSelect == 0"></div>
@ -326,7 +337,7 @@
<el-drawer
v-model="generateTestIf"
title="编辑问题"
:title=titGenerateTest
:direction="direction"
:before-close="handleClose"
>
@ -406,6 +417,7 @@ export default {
topicType: 1,
total: "",
fileImgData: "",
titGenerateTest:"新建问题",
generateTestData: {
name: "",
companyName: "",
@ -445,7 +457,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "1",
topicType: 1,
topicTypeValue: "",
},
{
@ -457,7 +469,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "1",
topicType: 1,
topicTypeValue: "",
},
{
@ -469,7 +481,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "1",
topicType: 1,
topicTypeValue: "",
},
{
@ -481,7 +493,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "1",
topicType: 1,
topicTypeValue: "",
},
],
@ -579,7 +591,12 @@ export default {
'Content-Type': 'multipart/form-data'
}
}).then(function(res) {
console.log(res);
ElMessage({
type: "错误",
message:res.data.msg,
});
});
@ -631,6 +648,7 @@ export default {
})
.then(function (data) {
console.log(data);
this.$router.push("/projectTopic");
})
})
@ -698,7 +716,7 @@ export default {
this.buttonDataIF = false;
this.topicData = { ...data.row };
this.titGenerateTest="编辑问题"
},
@ -774,8 +792,20 @@ export default {
}
}
}
if(this.topicType == 2||this.topicType == 4){
for (let index = 0; index < this.topicData.options.length; index++) {
console.log(this.topicData.options[index]);
if (!this.topicData.options[index].score) {
this.$alert("请填写分数", "类型错误", {
confirmButtonText: "确定",
});
return;
}
console.log(123);
}
}
this.drawer = false;
let that = this;
this.axios
.post("/hysc/library/addTopic", this.topicData)
@ -822,7 +852,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "",
topicType: 1,
topicTypeValue: "",
},
{
@ -834,7 +864,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "",
topicType: 1,
topicTypeValue: "",
},
{
@ -846,7 +876,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "",
topicType: 1,
topicTypeValue: "",
},
{
@ -858,7 +888,7 @@ export default {
optionIndexEn: "",
score: "",
topicId: 0,
topicType: "",
topicType: 1,
topicTypeValue: "",
},
],
@ -871,6 +901,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;