Commit 47b84364 by shangriqiang

适配后端数据结构

1 parent bc1e4dfa
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0",
"@vue/composition-api": "^1.0.0-rc.11", "@vue/composition-api": "^1.0.0-rc.11",
"@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-prettier": "^6.0.0",
"babel-core": "^6.26.0", "babel-core": "^6.26.0",
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<script> <script>
import { getQueryVariable } from './packages/bi/src/chart-type/common'; import { getQueryVariable } from './packages/bi/src/chart-type/common';
export default { export default {
name: 'App', name: 'App',
data() { data() {
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
> >
<p class="panel-cell-label" style="">信息转发记录:</p> <p class="panel-cell-label" style="">信息转发记录:</p>
<div style="color: #2d2d2d;padding:20px 20px 0 0"> <div style="color: #2d2d2d;padding:20px 20px 0 0">
<img style="width: 100%;" :src="forward" alt="" /> <img style="width: 100%;" :src="forwardUrl" alt="" />
</div> </div>
</div> </div>
</div> </div>
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
visitPlanInformation: '', // 拜访信息 visitPlanInformation: '', // 拜访信息
cdInfo: [], // 传递信息 cdInfo: [], // 传递信息
feedBackUrl: '', //反馈记录 feedBackUrl: '', //反馈记录
forward: '', //转发记录 forwardUrl: '', //转发记录
visitTatgetType: '' visitTatgetType: ''
}; };
}, },
...@@ -127,15 +127,15 @@ export default { ...@@ -127,15 +127,15 @@ export default {
await this.getCtxInfo().then(({ data: { data } }) => { await this.getCtxInfo().then(({ data: { data } }) => {
this.cdInfo = data.cdInfo; this.cdInfo = data.cdInfo;
this.feedBackUrl = data.feedBackUrl; this.feedBackUrl = data.feedBackUrl;
this.forward = data.forward; this.forwardUrl = data.forwardUrl;
this.cdInfo = data.cdInfo; 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 = createCells(this.visitTatgetType, data);
}); });
this.$nextTick(() => { this.$nextTick(() => {
this.getBaseInfo().then(res => { this.getBaseInfo().then(({ data: { data } }) => {
this.baseInfo = createCells(this.visitTatgetType, res.data.data[0]); this.baseInfo = createCells(this.visitTatgetType, data);
}); });
}); });
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!