Commit 68acc617 by shangriqiang

style: 修复样式问题

1 parent 47b84364
Showing with 69 additions and 16 deletions
...@@ -10,15 +10,36 @@ ...@@ -10,15 +10,36 @@
<div style="padding:0 29px 29px;background:#fff;"> <div style="padding:0 29px 29px;background:#fff;">
<BiTitle index="1" name="任务基础信息"></BiTitle> <BiTitle index="1" name="任务基础信息"></BiTitle>
<div style="display: block;overflow: hidden"> <div style="display: block;overflow: hidden">
<div <div class="panel-row">
class="panel-cell" <div class="panel-cell">
style="transform: translateY(1px);display: inline-block;width: 33%;height: 70px;line-height: 70px;color:#9aa2b2;border-bottom:1px solid #f4f4f4" <span class="panel-cell-label" style="">项目执行人:</span>
v-for="(item, k) in baseInfo" <span class="panel-cell-ctx">{{ baseInfo.fullName }}</span>
:key="k" </div>
> <div class="panel-cell">
<span class="panel-cell-label" style="">{{ item.label }}</span> <span class="panel-cell-label" style="">项目名称:</span>
: <span class="panel-cell-ctx">{{ baseInfo.projectName }}</span>
<span style="color: #2d2d2d">{{ item.value }}</span> </div>
<div class="panel-cell">
<span class="panel-cell-label" style="">电话:</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-ctx">
{{ baseInfo.industryEnterpriseName }}
</span>
</div>
<div class="panel-cell">
<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-ctx">{{ baseInfo.createDt }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -31,9 +52,8 @@ ...@@ -31,9 +52,8 @@
v-for="(item, k) in ctxInfo" v-for="(item, k) in ctxInfo"
:key="k" :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>
<span style="color: #2d2d2d">{{ item.value }}</span>
</div> </div>
<!-- 拜访信息 --> <!-- 拜访信息 -->
<div> <div>
...@@ -88,7 +108,7 @@ ...@@ -88,7 +108,7 @@
/* eslint-disable */ /* eslint-disable */
import BiTitle from './components/title.vue'; import BiTitle from './components/title.vue';
import BiCoverEnd from './components/cover-end'; import BiCoverEnd from './components/cover-end';
import createCells from './client.js'; import createCtxInfo from './client.js';
export default { export default {
name: 'TaskRecord', name: 'TaskRecord',
...@@ -128,22 +148,55 @@ export default { ...@@ -128,22 +148,55 @@ export default {
this.cdInfo = data.cdInfo; this.cdInfo = data.cdInfo;
this.feedBackUrl = data.feedBackUrl; this.feedBackUrl = data.feedBackUrl;
this.forwardUrl = data.forwardUrl; this.forwardUrl = data.forwardUrl;
this.cdInfo = data.cdInfo;
this.visitPlanInformation = data.visitPlanInformation; this.visitPlanInformation = data.visitPlanInformation;
this.visitTatgetType = data.visitTatgetType; this.visitTatgetType = data.visitTatgetType;
this.ctxInfo = createCells(this.visitTatgetType, data); this.ctxInfo = createCtxInfo(this.visitTatgetType, data);
// this.ctxInfo = data
}); });
let baseInfoFields = [
{ label: '项目执行人', key: 'fullName', value: '' },
{ label: '项目名称', key: 'projectName', value: '' },
{ label: '电话', key: 'phone', value: '' },
{ label: '发行单位', key: 'industryEnterpriseName', value: '' },
{ label: '服务商', key: 'enterpriseName', value: '' },
{ label: '任务提交时间', key: 'createDt', value: '' }
];
this.$nextTick(() => { this.$nextTick(() => {
this.getBaseInfo().then(({ data: { data } }) => { this.getBaseInfo().then(({ data: { data } }) => {
this.baseInfo = createCells(this.visitTatgetType, data); let res = {};
baseInfoFields.map(i => {
res[i.key] = data[i.key];
});
this.baseInfo = res;
}); });
}); });
} }
}; };
</script> </script>
<style scoped> <style scoped>
.panel-row{
border-bottom: 1px solid #f4f4f4;
}
.panel-cell {
display: inline-flex;
min-height: 70px;
line-height: 30px;
transform: translateY(1px);
width: 33%;
color: #9aa2b2;
}
.panel-cell-label { .panel-cell-label {
color: #a9b0bd; color: #a9b0bd;
margin-right: 0.5em;
min-width: 6rem;
text-align: right;
}
.panel-cell-ctx {
display: inline-block;
color: #2d2d2d;
} }
.task-log-pdf-title { .task-log-pdf-title {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!