|
@@ -91,6 +91,16 @@ const chooseSubmit = async () => {
|
|
|
IndustrialManagementIds: item.CheckList.join(","),
|
|
|
});
|
|
|
});
|
|
|
+ let isSubmit = [];
|
|
|
+ arr.flat(Infinity).forEach((item) => {
|
|
|
+ if (!item.IndustrialManagementIds) {
|
|
|
+ isSubmit.push(item.ChartPermissionId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (isSelectedClick.value) {
|
|
|
+ if (isSubmit.length === arr.flat(Infinity).length) return Toast("请至少选择一个赛道");
|
|
|
+ if (!objective.value && !subjectivity.value) return Toast("请至少选择一项主客观内容");
|
|
|
+ }
|
|
|
const res = await postChooseSubmit({
|
|
|
IsObjective: objective.value ? 1 : 0,
|
|
|
IsSubjective: subjectivity.value ? 1 : 0,
|
|
@@ -99,6 +109,13 @@ const chooseSubmit = async () => {
|
|
|
});
|
|
|
if (res.Ret === 200) {
|
|
|
Toast.success("保存成功");
|
|
|
+
|
|
|
+ chooseList.value = [];
|
|
|
+ objective.value = false;
|
|
|
+ subjectivity.value = false;
|
|
|
+ isSelectedClick.value = false;
|
|
|
+ activeTag.value = 0;
|
|
|
+ getChooseList();
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -174,7 +191,7 @@ onMounted(() => {
|
|
|
去小程序
|
|
|
<wx-open-launch-weapp id="launch-btn" class="wx-app" username="gh_a9d3744e1072" path="pages/index/index">
|
|
|
<div v-is="'script'" type="text/wxtag-template">
|
|
|
- <div class="btn">去小程序</div>
|
|
|
+ <div class="btn"> </div>
|
|
|
</div>
|
|
|
</wx-open-launch-weapp>
|
|
|
</div>
|
|
@@ -216,20 +233,20 @@ onMounted(() => {
|
|
|
}
|
|
|
}
|
|
|
.authority {
|
|
|
- height: 138px;
|
|
|
+ // height: 138px;
|
|
|
width: 105%;
|
|
|
overflow: hidden;
|
|
|
padding-top: 10px;
|
|
|
.item {
|
|
|
width: 148px;
|
|
|
- height: 34px;
|
|
|
+ height: 50px;
|
|
|
font-size: 24px;
|
|
|
border-radius: 4px;
|
|
|
background-color: #edf4ff;
|
|
|
display: inline-block;
|
|
|
margin: 20px 20px 0 0;
|
|
|
text-align: center;
|
|
|
- line-height: 32px;
|
|
|
+ line-height: 48px;
|
|
|
border: 1px solid #3385ff;
|
|
|
font-weight: 400;
|
|
|
color: #3385ff;
|
|
@@ -264,13 +281,13 @@ onMounted(() => {
|
|
|
border-bottom: 1px dashed #dadfe5;
|
|
|
.item {
|
|
|
width: 124px;
|
|
|
- height: 38px;
|
|
|
+ height: 50px;
|
|
|
font-size: 24px;
|
|
|
border-radius: 4px;
|
|
|
display: inline-block;
|
|
|
- margin: 20px 20px 0 0;
|
|
|
+ margin: 20px 35px 0 0;
|
|
|
text-align: center;
|
|
|
- line-height: 36px;
|
|
|
+ line-height: 48px;
|
|
|
border: 1px solid #3385ff;
|
|
|
font-weight: 400;
|
|
|
color: #3385ff;
|
|
@@ -347,6 +364,8 @@ onMounted(() => {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
.bottom-btn {
|
|
|
+ position: relative; // 相对定位
|
|
|
+ z-index: 0;
|
|
|
width: 368px;
|
|
|
height: 80px;
|
|
|
background: #3385ff;
|
|
@@ -356,5 +375,18 @@ onMounted(() => {
|
|
|
font-size: 34px;
|
|
|
color: #fff;
|
|
|
}
|
|
|
+ .wx-app {
|
|
|
+ position: absolute; // 绝对定位
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ z-index: 100;
|
|
|
+ opacity: 0;
|
|
|
+ .btn {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|