master
tangyi 2022-01-18 19:44:39 +08:00
parent 82dc933b20
commit 5cb2cd86f8
5 changed files with 75 additions and 17 deletions

View File

@ -117,22 +117,27 @@
<div class="wxDd">
<p>微信</p>
<div class="wxDdCon">
<img src="" alt="" />
<img :src="usernameData.wxMiniHeader" alt="" />
<p>{{ usernameData.wxMiniShowname }}</p>
</div>
<p>钉钉</p>
<div class="wxDdCon">
<img src="" alt="" />
<p></p>
<img :src="usernameData.dingdingHeader" alt="" />
<p>{{ usernameData.dingdingShowname }}</p>
</div>
</div>
</div>
<div v-else class="reportList">
<div class="reportListCon">
<p>MBTI人格类型测试</p>
<p><span> 测试时间</span> <span> 2021.02.23 12:32:34</span></p>
<p><span> 创建部门</span> <span> 人事部</span></p>
<div class="reportListCon" v-for="item in ReportListData" :key="item">
<p>{{item.testName}}</p>
<p><span> 测试时间</span> <span> {{item.createTime}}</span></p>
<p><span> 创建部门</span> <span> {{item.companyName}}</span></p>
<P>
<span>允许面试人员查看结果</span>
<el-switch v-model="item.isAllowViewResultIf" @change="isAllowViewResultIf(item)" class="mb-2"> </el-switch>
</P>
</div>
</div>
</div>
@ -153,6 +158,7 @@ export default {
return {
input: "",
select: "",
value1:true,
drawer: false,
value: "",
Time: "",
@ -189,14 +195,16 @@ export default {
//
queryName(data) {
this.drawer = true;
this.getReportList(data.row);
this.getReportList(data.row.id);
this.usernameData = data.row;
console.log(this.usernameData);
this.usernameDataIf = true;
},
//
queryNamea(data) {
this.drawer = true;
this.getReportList(data.row);
this.getReportList(data.row.id);
this.usernameData = data.row;
this.usernameDataIf = false;
},
@ -232,7 +240,6 @@ export default {
params: param,
})
.then(function (response) {
console.log(response.data);
that.tableData = response.data.data.records;
that.total = response.data.data.total;
})
@ -251,7 +258,38 @@ export default {
})
.then(function (response) {
console.log(response.data);
that.ReportListData = response.data.data.records;
that.ReportListData = response.data.data;
for (let index = 0; index < that.ReportListData.length; index++) {
console.log(that.ReportListData[index].isAllowViewResult);
if ( that.ReportListData[index].isAllowViewResult=="1") {
that.ReportListData[index].isAllowViewResultIf=true
}else{
that.ReportListData[index].isAllowViewResultIf=false
}
}
console.log( response.data.data,"123");
})
.catch(function (error) {
console.log(error);
});
},
isAllowViewResultIf(data){
console.log(data);
console.log(data.isAllowViewResultIf);
if (data.isAllowViewResultIf) {
data.isAllowViewResult="1"
}else{
data.isAllowViewResult="0"
}
this.axios
.post("/hysc/test/allowViewResult", {id:this.usernameData.id,
isAllowViewResult:data.isAllowViewResult
})
.then(function (response) {
console.log(response.data, "213123");
})
.catch(function (error) {
console.log(error);
@ -266,8 +304,13 @@ export default {
// endTime: "",
// startTime: "",
// },
console.log(this.consumerData.type);
if (this.consumerData.type == "手机号" || this.consumerData.type == "") {
if (this.consumerData.keyword&&this.consumerData.type == "") {
this.consumerData.type="手机号"
}
if (this.consumerData.type == "手机号" ) {
if (!this.phonetest(this.consumerData.keyword)) {
this.$alert("请正确输入手机号", "手机号错误", {
confirmButtonText: "确定",
@ -352,7 +395,7 @@ export default {
justify-content: space-between;
}
.reportListCon > p > :nth-child(1) {
width: 138px;
width: 144px;
height: 19px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;

View File

@ -218,6 +218,7 @@ export default {
mounted() {
//
this.getGenerateTest();
},
methods: {
addIdCard(data) {

View File

@ -7,7 +7,11 @@
<li class="cur">用户管理</li>
</ul>
</div>
<div class="consumer-seach">
<div>
<div>
</div>
<div class="consumer-seach">
<ul class="consumer-seach-item">
<li>
<el-input
@ -85,6 +89,8 @@
>
</el-pagination>
</div>
</div>
</div>
<el-drawer

View File

@ -125,7 +125,7 @@
<el-button type="primary" @click="addProjectManagement()"
>新建项目</el-button
>
<el-button @click="resetForm(ruleFormRef)"></el-button>
<el-button @click="resetForm()"></el-button>
</el-form-item>
</el-form>
</div>
@ -266,6 +266,14 @@ export default {
this.$router.push("/projectTopic");
},
//
resetForm(){
this.drawer=false
this.addProjectData= {
projectName: "",
projectUnit: "",
projectNote: "",
}
},
projectDelete(id) {
let that = this;
this.axios

View File

@ -713,7 +713,6 @@ export default {
},
//
addprojectTopic() {
this.drawer = false;
if (this.topicType == 1 || this.topicType == 3) {
for (let index = 0; index < this.topicData.options.length; index++) {
for (
@ -725,7 +724,7 @@ export default {
this.topicData.options[index].topicType ==
this.topicData.options[key].topicType
) {
this.$alert("选项类型不能相同请重新添加", "类型错误", {
this.$alert("请正确添加选项类型,不能为空或者重复", "类型错误", {
confirmButtonText: "确定",
});
return;
@ -733,6 +732,7 @@ export default {
}
}
}
this.drawer = false;
let that = this;
this.axios