This commit is contained in:
Paidax
2024-11-29 09:03:59 +08:00
commit 2ffadd89a7
3480 changed files with 879405 additions and 0 deletions
@@ -0,0 +1,271 @@
<!--#
layout("/mobile/platform.html"){
#-->
<style>
.van-doc-card {
margin: 14px;
padding: 6px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 8px 12px #ebedf0;
line-height: 25px;
font-size: 12px;
}
.van-collapse-item .van-cell__title :before {
content: '';
display: inline-block;
height: 15px;
background-color: #0e5996;
width: 4px;
position: relative;
top: 3px;
margin-right: 2px;
border-radius: 8px;
}
.van-collapse-item__content .van-cell__title :before {
display: none;
}
.content_div {
margin-top: 10px;
background-color: white;
padding: 6px;
border-radius: 10px;
box-shadow: 0 8px 12px #ebedf0;
}
.van-collapse-item__content {
padding: 0px 6px;
background-color: #f9f9f9;
}
.van-dropdown-menu__bar {
display: -webkit-box;
}
</style>
<div id="app">
<van-nav-bar title="我的测评" left-arrow placeholder fixed
@click-left="history.back()"></van-nav-bar>
<div>
<div class="search-fixed">
<van-dropdown-menu active-color="#1989fa">
<van-dropdown-item v-model="pageForm.annual" :options="yearOption" @change="yearChange"></van-dropdown-item>
</van-dropdown-menu>
</div>
<div style="margin: 60px auto">
<template>
<van-list :finished="finished" :finished-text="tableData.length>0?'没有更多了':''"
v-if="tableData && tableData.length>0"
v-model="loading"
@load="pageData">
<div v-for="o in tableData" :key="o.id" class="van-doc-card">
<div @click="toCommentator(o)" style="padding: 10px">
<div>
<div style="display: flex;font-size: 18px">{{ o.assessment }}</div>
<div style="align-items: center">
<van-tag type="primary">{{ o.assessmentMode==1 ? '会员评家考核' : '工会主席考核' }}</van-tag>
<!--<van-tag type="primary">{{ o.commentTarget==1 ? '校工会' : '分工会' }}</van-tag>-->
<van-tag type="primary" v-if="o.commentTarget==1">{{ '校工会' }}</van-tag>
<van-tag type="primary" v-if="o.commentTarget==2">{{ unionName }}</van-tag>
</div>
</div>
<van-row gutter="20">
<van-col span="10">
<span>年度:{{ o.annual }}</span>
</van-col>
<van-col span="14" v-if="o.assessmentMode==2">
<span>测评对象:{{ o.evaluatedPersonName }}({{o.evaluatedPersonType}})</span>
</van-col>
</van-row>
<van-row gutter="20">
<van-col span="10">
<span>测评模式:{{ o.scoringMode==1 ? '评分' : '满意度' }}</span>
</van-col>
<van-col span="14">
<span>测评结果:{{ o.reviewResult ? o.reviewResult : '暂无' }}</span>
</van-col>
</van-row>
<!--<div>年度:{{ o.annual }}</div>
<div>测评结果:{{ o.reviewResult ? o.reviewResult : '暂无' }}</div>-->
</div>
</div>
</van-list>
<van-empty v-else description="暂无数据"></van-empty>
</template>
</div>
</div>
<van-popup v-model="descPopup" position="right" style="height: 100%;width: 100%;background-color: #f9f9f9"
safe-area-inset-bottom>
<van-sticky>
<van-nav-bar @click-left="descPopup=false" left-arrow
title="测评详情"></van-nav-bar>
</van-sticky>
<div>
<van-form :show-error-message="false" style="margin-bottom: 60px">
<!-- v-for测评内容 -->
<van-collapse v-model="activeNames" accordion>
<div v-if="zbxx.scoringMode==1">
<div v-for="o in zbxx.nrs">
<van-collapse-item :title="o.content" :name="o.id" style="margin: 5px">
<!-- v-for测评指标 -->
<div v-for="item in o.bzs" style="margin-top: 10px" class="content_div">
<div>
<div style="font-size: 15px;color: black">
{{item.contentNumber}}、{{item.inspection}}
</div>
<van-row>
<div style="font-size: 15px;text-align: right;margin-right: 30px;margin-bottom:-4px">标准分:{{item.score}}</div>
</van-row>
<van-field
v-model="item.resultScore"
name="测评分"
label="测评分"
readonly
></van-field>
<van-field v-if="item.isEvidence"
v-model="item.options"
name="意见或建议"
label="意见或建议"
readonly
></van-field>
</div>
</div>
</van-collapse-item>
</div>
<div >
<van-field
v-model="commentPeo.reviewResult"
name="测评结果"
label="测评结果"
readonly
></van-field>
</div>
</div>
<div v-if="zbxx.scoringMode==2">
<div v-for="o in zbxx.nrs">
<div v-for="item in o.bzs">
<div class="van-doc-card">
<div style="font-size: 15px;color: black">
{{item.contentNumber}}、{{item.inspection}}
</div>
<van-field name="radio" label="满意度" style="padding: 12px 2px;margin: 5px">
<template #input>
<van-radio-group style="margin-left: -20px" v-model="item.resultScore" disabled direction="horizontal">
<van-radio name="满意">满意</van-radio>
<van-radio name="基本满意">基本满意</van-radio>
<van-radio name="不满意">不满意</van-radio>
</van-radio-group>
</template>
</van-field>
</div>
</div>
</div>
<div class="van-doc-card">
<van-field
v-model="commentPeo.presidentOpinions"
rows="2"
readonly
name="意见或建议"
label="意见或建议"
></van-field>
<van-field
v-model="commentPeo.reviewResult"
name="测评结果"
label="测评结果"
readonly
></van-field>
</div>
</div>
</van-collapse>
</van-form>
</div>
</van-popup>
<div>
<van-tabbar v-model="tarBarActive">
<van-tabbar-item icon="home-o" replace url="/mobile/unioncomment/appraisal/index">民主测评</van-tabbar-item>
<van-tabbar-item icon="manager-o" replace url="/mobile/unioncomment/appraisal/mine">我的测评</van-tabbar-item>
</van-tabbar>
</div>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
tarBarActive: 1,
pageForm: {
annual:'',
},
descPopup: false,
commentPeo: {},
zbxx: {},
activeNames: '',
unionName: '${@shiro.getPrincipalProperty("union").getUnionname()}',
yearOption:[],
}
},
methods: {
yearChange() {
this.pageForm.pageNumber = 1
this.tableData = []
this.finished = false
this.pageData()
},
async pageData() {
this.mLoading = true
const resp = await $.post('/mobile/unioncomment/appraisal/onLoad', this.pageForm)
if (resp.code === 0) {
if (resp.data.list.length === 0) {
this.tableData = []
this.loading = false
this.finished = true
} else {
this.tableData = this.tableData.concat(resp.data.list)
}
if (this.tableData.length === resp.data.totalCount) {
this.finished = true
} else {
this.pageForm.pageNumber++
}
}
this.loading = false;
this.mLoading = false
},
async toCommentator(o) {
const resp = await $.get('/mobile/unioncomment/appraisal/getBzById', {
peoId: o.id,
})
if (resp.code === 0) {
this.commentPeo = resp.data.commentPeo;
this.zbxx = resp.data.zbxx
this.activeNames = this.zbxx.nrs[0].id
this.descPopup = true
}
}
},
async created() {
for (let i = new Date().getFullYear() - 10; i <= new Date().getFullYear(); i++) {
this.yearOption.unshift({value: i, text: i + '年'},)
}
this.$set(this.pageForm, "annual", this.yearOption[0].value)
this.pageData()
}
});
</script>
<!--#
}
#-->