feat:修改签到及下载二维码

This commit is contained in:
lixg
2023-01-11 20:26:24 +08:00
parent b5e5290aa1
commit e6b4f00bd3
4 changed files with 151 additions and 148 deletions

View File

@@ -47,10 +47,14 @@
<div @click="copyUrl" class="codeUrlCopy">复制链接</div> <div @click="copyUrl" class="codeUrlCopy">复制链接</div>
</div> </div>
<div class="qrm_footer"> <div class="qrm_footer">
<span style="margin-left: 52px">下载二维码</span> <span
<div class="qrmbtn" @click="downloadQr(200)"> style="color: #387df7; cursor: pointer"
@click="downloadQr(200)"
>下载二维码</span
>
<!-- <div class="qrmbtn" @click="downloadQr(200)">
<div class="btntext">200*200</div> <div class="btntext">200*200</div>
</div> </div> -->
<!-- <div class="qrmbtn" @click="downloadQr(200)"> <!-- <div class="qrmbtn" @click="downloadQr(200)">
<div class="btntext">400*400</div> <div class="btntext">400*400</div>
</div> </div>
@@ -294,6 +298,7 @@ export default {
.qrm_footer { .qrm_footer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
margin-bottom: 44px; margin-bottom: 44px;
.qrmbtn { .qrmbtn {
width: 80px; width: 80px;
@@ -303,7 +308,7 @@ export default {
justify-content: center; justify-content: center;
border-radius: 4px; border-radius: 4px;
border: 1px solid #387df7; border: 1px solid #387df7;
margin-left: 16px; // margin-left: 16px;
cursor: pointer; cursor: pointer;
.btntext { .btntext {
color: #387df7; color: #387df7;

View File

@@ -436,8 +436,8 @@ export default {
}&type=${1}`, }&type=${1}`,
}; };
console.log("codeInfo", state.codeInfo); console.log("codeInfo", state.codeInfo);
state.codeIndex = 1; state.codeIndex = 0;
state.codeType = 2; state.codeType = 1;
}; };
const onSelectChange = (selectedRowKeys, e) => { const onSelectChange = (selectedRowKeys, e) => {
@@ -650,7 +650,6 @@ export default {
customRender: (text) => { customRender: (text) => {
return ( return (
<div class="opa"> <div class="opa">
<a-radio-group name="radioGroup">
<a-radio <a-radio
value="1" value="1"
checked={text.record.signStatus} checked={text.record.signStatus}
@@ -718,7 +717,6 @@ export default {
> >
请假 请假
</a-radio> </a-radio>
</a-radio-group>
{/** {/**
<a-checkbox <a-checkbox
@@ -867,7 +865,8 @@ export default {
console.log("props.projectTaskInfo", props.projectTaskInfo); console.log("props.projectTaskInfo", props.projectTaskInfo);
window.open( window.open(
`${ `${
process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${ process.env.VUE_APP_BASE_API
}/admin/student/exportTaskStudent?currentStageId=${
props.projectTaskInfo.stageId props.projectTaskInfo.stageId
}&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=0` }&type=${1}&pid=${props.projectTaskInfo.projectId}&taskType=0`
); );

View File

@@ -590,9 +590,9 @@ export default {
// scopedSlots: { customRender: "action" }, //引入的插槽 // scopedSlots: { customRender: "action" }, //引入的插槽
customRender: (text) => { customRender: (text) => {
// console.log("text.record.signStatus", text.record.signStatus);
return ( return (
<div class="opa"> <div class="opa">
<a-radio-group name="radioGroup">
<a-radio <a-radio
value="1" value="1"
checked={text.record.signStatus} checked={text.record.signStatus}
@@ -660,7 +660,6 @@ export default {
> >
请假 请假
</a-radio> </a-radio>
</a-radio-group>
{/** {/**
<a-checkbox <a-checkbox
@@ -852,8 +851,8 @@ export default {
}&type=${2}`, }&type=${2}`,
}; };
console.log("codeInfo", state.codeInfo); console.log("codeInfo", state.codeInfo);
state.codeIndex = 1; state.codeIndex = 0;
state.codeType = 2; state.codeType = 1;
}; };
{ {

View File

@@ -5559,7 +5559,7 @@ export default defineComponent({
}&type=${3}`, }&type=${3}`,
}; };
console.log("codeInfo", state.codeInfo); console.log("codeInfo", state.codeInfo);
state.codeIndex = type; state.codeIndex = 0;
state.codeType = type; state.codeType = type;
}; };
return { return {