Commit 1a1dcdc0 by shangriqiang

增加参数 party,判断甲方,不显示 执行人和手机号

1 parent 988d2b55
Showing with 37 additions and 28 deletions
......@@ -5,39 +5,42 @@
<template>
<div>
<div class="task-log-pdf-title" style="font-size: 29px">
{{ executorName }} -- 任务记录
{{ baseInfo.fullName }} -- 任务记录
</div>
<div style="padding:0 29px 29px;background:#fff;">
<div style="padding:0 29px 0px;background:#fff;">
<BiTitle index="1" name="任务基础信息"></BiTitle>
<div style="display: block;overflow: hidden">
<div class="panel-row">
<div class="panel-cell">
<span class="panel-cell-label" style="">项目执行人:</span>
<div class="panel-cell" v-if="+this.search.party !== 1">
<span class="panel-cell-label" style>项目执行人:</span>
<span class="panel-cell-ctx">{{ baseInfo.fullName }}</span>
</div>
<div class="panel-cell">
<span class="panel-cell-label" style="">项目名称:</span>
<div
class="panel-cell"
:style="{ width: +this.search.party !== 1 ? '30%' : '100%' }"
>
<span class="panel-cell-label">项目名称:</span>
<span class="panel-cell-ctx">{{ baseInfo.projectName }}</span>
</div>
<div class="panel-cell">
<span class="panel-cell-label" style="">电话:</span>
<div class="panel-cell" v-if="+this.search.party !== 1">
<span class="panel-cell-label">电话:</span>
<span class="panel-cell-ctx">{{ baseInfo.phone }}</span>
</div>
</div>
<div class="panel-row">
<div class="panel-cell">
<span class="panel-cell-label" style="">发行单位:</span>
<span class="panel-cell-label">发行单位:</span>
<span class="panel-cell-ctx">
{{ baseInfo.industryEnterpriseName }}
</span>
</div>
<div class="panel-cell">
<span class="panel-cell-label" style="">服务商:</span>
<span class="panel-cell-label" style>服务商:</span>
<span class="panel-cell-ctx">{{ baseInfo.enterpriseName }}</span>
</div>
<div class="panel-cell">
<span class="panel-cell-label" style="">任务提交时间:</span>
<span class="panel-cell-label" style>任务提交时间:</span>
<span class="panel-cell-ctx">{{ baseInfo.createDt }}</span>
</div>
</div>
......@@ -52,7 +55,7 @@
v-for="(item, k) in ctxInfo"
:key="k"
>
<span class="panel-cell-label" style="">{{ item.label }}:</span>
<span class="panel-cell-label" style>{{ item.label }}:</span>
<span class="panel-cell-ctx">{{ item.value }}</span>
</div>
<!-- 拜访信息 -->
......@@ -69,9 +72,9 @@
<div
style="display: inline-block;width: 100%;height: 50px;line-height: 50px;color:#9aa2b2"
>
<p class="panel-cell-label" style="">传递信息 :</p>
<p class="panel-cell-label" style>传递信息 :</p>
<div
style="color: #2d2d2d;text-indent: 2em;list-style: circle"
style="text-indent: 2em;list-style: circle"
v-for="(item, k) in cdInfo"
:key="k"
>
......@@ -84,17 +87,17 @@
<div
style="display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2"
>
<p class="panel-cell-label" style="">信息反馈记录:</p>
<div style="color: #2d2d2d;padding:20px 20px 0 0">
<img style="width: 100%;" :src="feedBackUrl" alt="" />
<p class="panel-cell-label" style>信息反馈记录:</p>
<div style="padding:20px 20px 0 0">
<img style="width: 100%;" :src="feedBackUrl" alt />
</div>
</div>
<div
style="display: inline-block;width: 33%;line-height: 50px;color:#9aa2b2"
>
<p class="panel-cell-label" style="">信息转发记录:</p>
<div style="color: #2d2d2d;padding:20px 20px 0 0">
<img style="width: 100%;" :src="forwardUrl" alt="" />
<p class="panel-cell-label" style>信息转发记录:</p>
<div style="padding:20px 20px 0 0">
<img style="width: 100%;" :src="forwardUrl" alt />
</div>
</div>
</div>
......@@ -135,13 +138,11 @@ export default {
cdInfo: [], // 传递信息
feedBackUrl: '', //反馈记录
forwardUrl: '', //转发记录
visitTatgetType: ''
};
},
computed: {
executorName() {
return this.baseInfo[0] && this.baseInfo[0]['value'];
visitTatgetType: '',
search: {
party: '' //party=1 工业 party=2乙方
}
};
},
async mounted() {
await this.getCtxInfo().then(({ data: { data } }) => {
......@@ -171,6 +172,15 @@ export default {
this.baseInfo = res;
});
});
const search = window.location.search
.slice(1)
.split('&')
.reduce((acc, cur) => {
let [key, val] = cur.split('=');
acc[key] = val;
return acc;
}, {});
this.search = search;
}
};
</script>
......@@ -200,14 +210,13 @@ export default {
.panel-cell-ctx {
display: inline-block;
color: #2d2d2d;
}
.task-log-pdf-title {
position: relative;
/*padding-left: 29px;*/
text-indent: 12px;
margin-bottom: 50px;
margin-bottom: 20px;
/*background: #fff;*/
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!