Commit bbbdf869 by jml0128

feat:增加服务商审核人字段

1 parent 0a042789
.DS_Store
node_modules/
npm-debug.log
yarn-error.log
yarn.lock
.vscode/
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
src
README.md
\ No newline at end of file
<!--
* @Description:
* @Date: 2021-09-08 15:26:40
-->
# 0.1.18
1. BI 组件增加 from 入参
2. 增加服务商审核人字段
{ {
"name": "xrk-bi", "name": "xrk-bi",
"version": "0.1.17", "version": "0.1.19",
"description": "xrk-bi", "description": "xrk-bi",
"author": "xrk", "author": "xrk",
"main": "dist/bundler.js", "main": "dist/bundler.js",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: jml * @Author: jml
* @Date: 2021-02-26 15:38:10 * @Date: 2021-02-26 15:38:10
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-28 21:56:47 * @LastEditTime: 2021-09-08 15:00:42
--> -->
<template> <template>
<div class="xrk-components-bi bi" :class="{ 'bi-print': print }"> <div class="xrk-components-bi bi" :class="{ 'bi-print': print }">
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
useScale: [Number, String, Boolean], useScale: [Number, String, Boolean],
cantEdit: [Number, String], cantEdit: [Number, String],
projectType: [Number, String], projectType: [Number, String],
from: [Number, String],
getBaseInfo: { getBaseInfo: {
type: Function, type: Function,
default: () => {} default: () => {}
......
...@@ -31,6 +31,10 @@ export default { ...@@ -31,6 +31,10 @@ export default {
baseFontSize() { baseFontSize() {
const { isPrint } = this; const { isPrint } = this;
return isPrint ? printWidth : Math.min(window.innerWidth / 10, 75); return isPrint ? printWidth : Math.min(window.innerWidth / 10, 75);
},
platform() {
// gongye , cso
return this.Bi.from;
} }
} }
}; };
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
computed: { computed: {
catalogueArr() { catalogueArr() {
const hasSingleChoice = this.showSingleChoice.length > 0; const hasSingleChoice = this.showSingleChoice.length > 0;
const { page1 = 0, page2 = 0, page3Info = [] } = this; const { page2 = 0, page3Info = [] } = this;
return [ return [
{ {
name: '项目总览', name: '项目总览',
...@@ -225,7 +225,11 @@ export default { ...@@ -225,7 +225,11 @@ export default {
totalTopicNum, totalTopicNum,
chooseTopicNum, chooseTopicNum,
isContrainGroupAnalyse, isContrainGroupAnalyse,
isContrainSingleAnalyse isContrainSingleAnalyse,
isAuditCso, // 乙方可见
isAuditGongye, // 甲方可见
csoAuditUser // 审核人姓名
} = info; } = info;
this.biInfo = { this.biInfo = {
biInfoId: id, biInfoId: id,
...@@ -249,7 +253,7 @@ export default { ...@@ -249,7 +253,7 @@ export default {
pos: aspNamePosition pos: aspNamePosition
} }
]; ];
this.baseInfo = [ const _baseInfo = [
[ [
{ {
name: '项目名称', name: '项目名称',
...@@ -293,6 +297,25 @@ export default { ...@@ -293,6 +297,25 @@ export default {
} }
] ]
]; ];
const showReviewer = () => {
switch (this.platform) {
case 'gongye':
return isAuditGongye == 1;
case 'cso':
return isAuditCso == 1;
}
return false;
};
this.baseInfo = showReviewer()
? _baseInfo.concat([
[
{
name: '服务商审核人',
value: csoAuditUser || '-'
}
]
])
: _baseInfo;
this.textData = [ this.textData = [
[ [
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!