master
parent
82dc933b20
commit
5cb2cd86f8
|
@ -117,22 +117,27 @@
|
||||||
<div class="wxDd">
|
<div class="wxDd">
|
||||||
<p>微信</p>
|
<p>微信</p>
|
||||||
<div class="wxDdCon">
|
<div class="wxDdCon">
|
||||||
<img src="" alt="" />
|
<img :src="usernameData.wxMiniHeader" alt="" />
|
||||||
<p>{{ usernameData.wxMiniShowname }}</p>
|
<p>{{ usernameData.wxMiniShowname }}</p>
|
||||||
</div>
|
</div>
|
||||||
<p>钉钉</p>
|
<p>钉钉</p>
|
||||||
<div class="wxDdCon">
|
<div class="wxDdCon">
|
||||||
<img src="" alt="" />
|
<img :src="usernameData.dingdingHeader" alt="" />
|
||||||
<p></p>
|
<p>{{ usernameData.dingdingShowname }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else class="reportList">
|
<div v-else class="reportList">
|
||||||
<div class="reportListCon">
|
<div class="reportListCon" v-for="item in ReportListData" :key="item">
|
||||||
<p>MBTI人格类型测试</p>
|
<p>{{item.testName}}</p>
|
||||||
<p><span> 测试时间</span> <span> 2021.02.23 12:32:34</span></p>
|
<p><span> 测试时间</span> <span> {{item.createTime}}</span></p>
|
||||||
<p><span> 创建部门</span> <span> 人事部</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -153,6 +158,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
input: "",
|
input: "",
|
||||||
select: "",
|
select: "",
|
||||||
|
value1:true,
|
||||||
drawer: false,
|
drawer: false,
|
||||||
value: "",
|
value: "",
|
||||||
Time: "",
|
Time: "",
|
||||||
|
@ -189,14 +195,16 @@ export default {
|
||||||
// 查看用户信息
|
// 查看用户信息
|
||||||
queryName(data) {
|
queryName(data) {
|
||||||
this.drawer = true;
|
this.drawer = true;
|
||||||
this.getReportList(data.row);
|
this.getReportList(data.row.id);
|
||||||
this.usernameData = data.row;
|
this.usernameData = data.row;
|
||||||
|
console.log(this.usernameData);
|
||||||
|
|
||||||
this.usernameDataIf = true;
|
this.usernameDataIf = true;
|
||||||
},
|
},
|
||||||
// 查看测试列表
|
// 查看测试列表
|
||||||
queryNamea(data) {
|
queryNamea(data) {
|
||||||
this.drawer = true;
|
this.drawer = true;
|
||||||
this.getReportList(data.row);
|
this.getReportList(data.row.id);
|
||||||
this.usernameData = data.row;
|
this.usernameData = data.row;
|
||||||
this.usernameDataIf = false;
|
this.usernameDataIf = false;
|
||||||
},
|
},
|
||||||
|
@ -232,7 +240,6 @@ export default {
|
||||||
params: param,
|
params: param,
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
console.log(response.data);
|
|
||||||
that.tableData = response.data.data.records;
|
that.tableData = response.data.data.records;
|
||||||
that.total = response.data.data.total;
|
that.total = response.data.data.total;
|
||||||
})
|
})
|
||||||
|
@ -251,7 +258,38 @@ export default {
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
console.log(response.data);
|
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) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
@ -266,8 +304,13 @@ export default {
|
||||||
// endTime: "",
|
// endTime: "",
|
||||||
// startTime: "",
|
// startTime: "",
|
||||||
// },
|
// },
|
||||||
|
|
||||||
console.log(this.consumerData.type);
|
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)) {
|
if (!this.phonetest(this.consumerData.keyword)) {
|
||||||
this.$alert("请正确输入手机号", "手机号错误", {
|
this.$alert("请正确输入手机号", "手机号错误", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
|
@ -352,7 +395,7 @@ export default {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.reportListCon > p > :nth-child(1) {
|
.reportListCon > p > :nth-child(1) {
|
||||||
width: 138px;
|
width: 144px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
|
|
@ -218,6 +218,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
// 初始化获取数据
|
// 初始化获取数据
|
||||||
this.getGenerateTest();
|
this.getGenerateTest();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addIdCard(data) {
|
addIdCard(data) {
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
<li class="cur">用户管理</li>
|
<li class="cur">用户管理</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="consumer-seach">
|
<div>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="consumer-seach">
|
||||||
<ul class="consumer-seach-item">
|
<ul class="consumer-seach-item">
|
||||||
<li>
|
<li>
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -85,6 +89,8 @@
|
||||||
>
|
>
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-drawer
|
<el-drawer
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
<el-button type="primary" @click="addProjectManagement()"
|
<el-button type="primary" @click="addProjectManagement()"
|
||||||
>新建项目</el-button
|
>新建项目</el-button
|
||||||
>
|
>
|
||||||
<el-button @click="resetForm(ruleFormRef)">取消新建</el-button>
|
<el-button @click="resetForm()">取消新建</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -266,6 +266,14 @@ export default {
|
||||||
this.$router.push("/projectTopic");
|
this.$router.push("/projectTopic");
|
||||||
},
|
},
|
||||||
//删除项目
|
//删除项目
|
||||||
|
resetForm(){
|
||||||
|
this.drawer=false
|
||||||
|
this.addProjectData= {
|
||||||
|
projectName: "",
|
||||||
|
projectUnit: "",
|
||||||
|
projectNote: "",
|
||||||
|
}
|
||||||
|
},
|
||||||
projectDelete(id) {
|
projectDelete(id) {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.axios
|
this.axios
|
||||||
|
|
|
@ -713,7 +713,6 @@ export default {
|
||||||
},
|
},
|
||||||
// 新增题目
|
// 新增题目
|
||||||
addprojectTopic() {
|
addprojectTopic() {
|
||||||
this.drawer = false;
|
|
||||||
if (this.topicType == 1 || this.topicType == 3) {
|
if (this.topicType == 1 || this.topicType == 3) {
|
||||||
for (let index = 0; index < this.topicData.options.length; index++) {
|
for (let index = 0; index < this.topicData.options.length; index++) {
|
||||||
for (
|
for (
|
||||||
|
@ -725,7 +724,7 @@ export default {
|
||||||
this.topicData.options[index].topicType ==
|
this.topicData.options[index].topicType ==
|
||||||
this.topicData.options[key].topicType
|
this.topicData.options[key].topicType
|
||||||
) {
|
) {
|
||||||
this.$alert("选项类型不能相同请重新添加", "类型错误", {
|
this.$alert("请正确添加选项类型,不能为空或者重复", "类型错误", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
@ -733,6 +732,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.drawer = false;
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
this.axios
|
this.axios
|
||||||
|
|
Loading…
Reference in New Issue