@nstc-business/imes 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,6 +12,7 @@ import calculateDetailDialog from "@nstc-business/imes/src/components/calculateD
12
12
  <calculateDetailDialog ref="calculateDetailDialog"></calculateDetailDialog>
13
13
  this.$refs.calculateDetailDialog.open({
14
14
  modelId: '476cfddfec584e3ab5ae53719ff03819',
15
- logId: '9ed289ff9e4c46f99df7f58172011d7b'
15
+ logId: '9ed289ff9e4c46f99df7f58172011d7b',
16
+ showModelInfo: true // 是否显示模型信息
16
17
  });
17
18
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nstc-business/imes",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@
7
7
  max-dialog
8
8
  :destroy-on-open="true"
9
9
  >
10
- <calculate-detail :logId="logId" :modelId="modelId"/>
10
+ <calculate-detail :logId="logId" :modelId="modelId" :showModelInfo="showModelInfo" />
11
11
  </Dialog>
12
12
  </template>
13
13
 
@@ -22,7 +22,8 @@ export default {
22
22
  return {
23
23
  visible: false,
24
24
  logId: '',
25
- modelId: ''
25
+ modelId: '',
26
+ showModelInfo: true
26
27
  }
27
28
  },
28
29
  methods: {
@@ -30,6 +31,7 @@ export default {
30
31
  this.visible = true
31
32
  this.logId = value.logId
32
33
  this.modelId = value.modelId
34
+ this.showModelInfo = value.showModelInfo
33
35
  }
34
36
  }
35
37
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <Page>
3
- <expandable-pane title="模型信息">
3
+ <expandable-pane v-if="showModelInfo" title="模型信息">
4
4
  <descriptions>
5
5
  <el-descriptions-item label="模型类型">
6
6
  <span v-if="modelData.type === 1">评价模型</span>
@@ -878,6 +878,10 @@ import {N, Page, ExpandablePane, Descriptions, TablePro} from 'n20-common-lib'
878
878
  export default {
879
879
  name: 'calculateDetail',
880
880
  props: {
881
+ showModelInfo: {
882
+ type: Boolean,
883
+ default: true
884
+ },
881
885
  modelId: String,
882
886
  logId: String
883
887
  },