实现员工信息页面的事务和党务模块功能

pull/6/head
yzw 2022-12-29 11:16:44 +08:00
parent 2b180f8dd3
commit a025baf3cc
4 changed files with 98 additions and 27 deletions

View File

@ -126,4 +126,20 @@ export function getActivity(params) {
method: 'get',
params
})
}
export function getRoutine(params) {
return request({
url: '/person/routine',
method: 'get',
params
})
}
export function getParty(params) {
return request({
url: '/person/party',
method: 'get',
params
})
}

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1672282048164" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4415" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M540.7 133.4l103.5 209.8c4.6 9.4 13.6 15.9 24 17.4l231.5 33.6c26.1 3.8 36.6 35.9 17.7 54.4L749.9 612c-7.5 7.3-10.9 17.9-9.2 28.2l39.5 230.6c4.5 26-22.9 45.9-46.2 33.6L526.9 795.5c-9.3-4.9-20.4-4.9-29.7 0l-207 108.9c-23.4 12.3-50.7-7.6-46.2-33.6l39.5-230.6c1.8-10.3-1.7-20.9-9.2-28.2L106.8 448.7c-18.9-18.4-8.5-50.6 17.7-54.4L356 360.7c10.4-1.5 19.4-8 24-17.4l103.5-209.8c11.7-23.7 45.5-23.7 57.2-0.1z" fill="#409eff" p-id="4416"></path></svg>

After

Width:  |  Height:  |  Size: 775 B

View File

@ -104,46 +104,36 @@
<div class="pp-block2">
<div class="pp-block2-left height-350">
<p class="item-title-p">论文</p>
<p class="item-title-p">事务</p>
<div class="item-content-div">
<el-table
:data="articleData"
:data="routineData"
max-height="250"
border
style="width: 90%; margin: 10px auto"
>
<el-table-column prop="action" label="动作" width="80">
</el-table-column>
<el-table-column prop="year" label="年份" width="100" sortable>
</el-table-column>
<el-table-column prop="role" label="角色" width="100">
</el-table-column>
<el-table-column prop="title" label="标题"> </el-table-column>
<el-table-column prop="publication_name" label="刊物名称">
</el-table-column>
<el-table-column
prop="publication_type"
label="刊物类别"
width="100"
>
</el-table-column>
<el-table-column prop="status" label="状态" width="80">
<el-table-column prop="scale" label="范围" width="100">
</el-table-column>
<el-table-column prop="name" label="事务名"> </el-table-column>
</el-table>
</div>
</div>
<div class="pp-block2-right height-350">
<p class="item-title-p">项目</p>
<div class="item-content-div"></div>
</div>
</div>
<div class="pp-block2">
<div class="pp-block2-left">
<p class="item-title-p">事务</p>
<div class="item-content-div"></div>
</div>
<div class="pp-block2-right">
<p class="item-title-p">党务</p>
<div class="item-content-div"></div>
<div class="item-content-div">
<div
v-for="(value, key, index) in partyData"
:key="index"
class="honor-bar"
>
<svg-icon icon-class="" />
<el-tag>{{ value }}</el-tag>
</div>
</div>
</div>
</div>
@ -175,6 +165,40 @@
</div>
</div>
</div>
<div class="pp-block2">
<div class="pp-block2-left height-350">
<p class="item-title-p">论文</p>
<div class="item-content-div">
<el-table
:data="articleData"
max-height="250"
border
style="width: 90%; margin: 10px auto"
>
<el-table-column prop="year" label="年份" width="100" sortable>
</el-table-column>
<el-table-column prop="role" label="角色" width="100">
</el-table-column>
<el-table-column prop="title" label="标题"> </el-table-column>
<el-table-column prop="publication_name" label="刊物名称">
</el-table-column>
<el-table-column
prop="publication_type"
label="刊物类别"
width="100"
>
</el-table-column>
<el-table-column prop="status" label="状态" width="80">
</el-table-column>
</el-table>
</div>
</div>
<div class="pp-block2-right height-350">
<p class="item-title-p">项目</p>
<div class="item-content-div"></div>
</div>
</div>
</div>
</div>
</template>
@ -198,6 +222,8 @@ export default {
innovationData: [],
articleData: [],
activityData: [],
routineData: [],
partyData: [],
};
},
mounted() {
@ -322,6 +348,34 @@ export default {
console.log("err", err);
}
);
//
personApi.getRoutine({ id_card: this.$store.state.user.id_card }).then(
(res) => {
this.routineData = res.data;
},
(err) => {
console.log("err", err);
}
);
//
personApi.getParty({ id_card: this.$store.state.user.id_card }).then(
(res) => {
let partyData = res.data;
//
function sortByTime(x, y) {
let numX = parseInt(x),
numY = parseInt(y);
return numY - numX;
}
partyData.sort(sortByTime);
this.partyData = partyData;
},
(err) => {
console.log("err", err);
}
);
},
computed: {
industryExperience() {

View File

@ -546,7 +546,7 @@
<p>
厂里累计有
{{ totalPersonProjectNum }}
人负责过项目最多有人负责过7次项目
人负责过项目最多有人负责过5次项目
</p>
<p>
立项最多的年份是2021年共计13个项目立项最少的年份是2022年仅1个项目