This commit is contained in:
kclf
2022-12-06 14:50:19 +08:00
7 changed files with 75 additions and 36 deletions

View File

@@ -69,7 +69,7 @@ export default {
onMounted(() => {
console.log("onMounted");
// init()
init()
});
function getMember() {
@@ -138,13 +138,13 @@ export default {
} else {
state.managerArray = [];
}
getMemberData();
// getMemberData();
return;
}
if (!props.value) {
if (!(state.options && state.options.length)) {
state.options = [];
getMember();
// getMember();
}
return;
}

View File

@@ -153,6 +153,8 @@
</span>
</a-tag>
</div>
<button class="xkbtn" @click="downloadTemplate">下载模板
</button>
</div>
</div>
<div class="main_item" style="margin-top: -25px">
@@ -465,8 +467,14 @@ export default {
state.ballotId = null;
console.log(e);
};
function downloadTemplate() {
window.open('/manageApi/投票基础数据模版.xlsx')
}
return {
...toRefs(state),
downloadTemplate,
showDrawerCreVote,
afterVisibleChange,
closeDrawer,

View File

@@ -5164,7 +5164,6 @@ export default defineComponent({
state.teacherId = item.teacherId;
state.qdms_inputV6 = item.intro;
state.member = { value: item.teacherId, name: item.teacher };
if (item.attach == "") {
state.imgList = [];
} else {

View File

@@ -200,6 +200,7 @@
'background-image': 'url(' + item.dictValue + ')',
display: index >= 5 ? 'none' : 'flex',
}"
style="background-size: 100% 100%"
></div>
<div
@click="showLearnBgMore"
@@ -1720,7 +1721,7 @@ export default {
getLearnPath();
if (store.state.pathmapPic.length > 0) {
console.log("store.state.pathmapPic", store.state.pathmapPic);
state.imgData = [store.state.pathmapPic[0]];
state.imgData = store.state.pathmapPic;
}
});
//添加权限

View File

@@ -905,9 +905,7 @@
<div class="close_exit" @click="closedeleteAll"></div>
</div>
<div class="body">
<span
>请确认是否批量删除{{ deleteType === 1 ? "任务" : "学员" }}</span
>
<span>请确认是否批量删除任务</span>
</div>
<div class="del_btnbox">
<div class="del_btn btn1" @click="closedeleteAll">
@@ -1744,6 +1742,7 @@ export default {
.then((res) => {
console.log(res);
state.deleteAll = false;
// state.deleteType = null;
message.destroy();
state.selectRow = []; //选择行
state.selectAll = 0; //0未选择1全选2部分选择

View File

@@ -68,36 +68,62 @@
/>
<div class="inname">封面图</div>
</div>
<div
:class="`box ${projectInfo.picUrl == src ? 'active' : ''}`"
style="
width: 100px;
height: 100px;
border-radius: 5px;
cursor: pointer;
position: relative;
overflow: hidden;
"
v-for="(src, index) in projectPic"
:key="index"
@click="
() => {
projectInfo.picUrl = src;
<div class="in select" style="flex:1">
<a-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
>
v-model:value="projectInfo.picUrl"
dropdownClassName="dropdown-style"
style="width: 440px"
placeholder="请选择"
:options="projectPic"
allowClear
></a-select>
<img
style="
width: 100px;
height: 100px;
margin-bottom: 4px;
margin-right: 4px;
"
:src="src"
style="width:100px;height:100px;margin-top:20px;border-radius: 8px"
v-if="projectInfo.picUrl"
:src="projectInfo.picUrl"
alt="avatar"
/>
<div class="i_bottom">
<span style="color: #999ba3">
高宽比为16:9 (:800*450) png或jpg图片
</span>
</div>
</div>
<!-- <div-->
<!-- :class="`box ${projectInfo.picUrl == src ? 'active' : ''}`"-->
<!-- style="-->
<!-- width: 100px;-->
<!-- height: 100px;-->
<!-- border-radius: 5px;-->
<!-- cursor: pointer;-->
<!-- position: relative;-->
<!-- overflow: hidden;-->
<!-- "-->
<!-- v-for="(src, index) in projectPic"-->
<!-- :key="index"-->
<!-- @click="-->
<!-- () => {-->
<!-- projectInfo.picUrl = src;-->
<!-- }-->
<!-- "-->
<!-- >-->
<!-- <img-->
<!-- style="-->
<!-- width: 100px;-->
<!-- height: 100px;-->
<!-- margin-bottom: 4px;-->
<!-- margin-right: 4px;-->
<!-- "-->
<!-- :src="src"-->
<!-- alt="avatar"-->
<!-- />-->
<!-- </div>-->
</div>
<div class="name">
<div class="namebox">
<img
@@ -333,7 +359,7 @@ export default {
});
onMounted(() => {
state.projectPic = store.state.projectPic.map((e) => e.dictValue);
state.projectPic = store.state.projectPic.map((e) => ({value:e.dictValue,label:e.dictName}));
state.viewDetail = routers.query.viewDetail;
getProjectInfo();
getTemplate();

View File

@@ -2511,6 +2511,12 @@ export default {
let leng = res.data.data.stageList.length;
if (leng > 0) {
let taskarr = res.data.data.stageList;
console.log('11-22-33',taskarr)
if(taskarr.length==1){
if(taskarr[0].stageId == '0'){
taskarr[0].name = '无阶段任务'
}
}
state.taskSyllabus = taskarr;
}
}