@nstc-business/imes 1.0.3 → 1.0.5
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 +17 -0
- package/package.json +1 -1
- package/src/components/calculateDetail/dialog.vue +36 -0
- package/src/components/calculateDetail/index.vue +1566 -0
- package/src/components/{model-calculate.vue → model-calculate/index.vue} +21 -19
- package/src/components/model-calculate/modelCalcTest.vue +58 -43
- package/src/components/model-calculate/tree.vue +5 -8
- package/src/index.js +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
### 模型测算工具
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
import modelCalculate from '@nstc-business/imes/src/components/model-calculate/index.vue'
|
|
5
|
+
<modelCalculate :modelId="modelId"></modelCalculate>
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### 测算详情弹框
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
import calculateDetailDialog from "@nstc-business/imes/src/components/calculateDetail/dialog.vue";
|
|
12
|
+
<calculateDetailDialog ref="calculateDetailDialog"></calculateDetailDialog>
|
|
13
|
+
this.$refs.calculateDetailDialog.open({
|
|
14
|
+
modelId: '476cfddfec584e3ab5ae53719ff03819',
|
|
15
|
+
logId: '9ed289ff9e4c46f99df7f58172011d7b'
|
|
16
|
+
});
|
|
17
|
+
```
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Dialog
|
|
3
|
+
v-drag
|
|
4
|
+
:visible.sync="visible"
|
|
5
|
+
title="模型应用详情"
|
|
6
|
+
width="85%"
|
|
7
|
+
max-dialog
|
|
8
|
+
:destroy-on-open="true"
|
|
9
|
+
>
|
|
10
|
+
<calculate-detail :logId="logId" :modelId="modelId"/>
|
|
11
|
+
</Dialog>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import {Dialog} from 'n20-common-lib'
|
|
16
|
+
import calculateDetail from './index.vue'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: 'calculateDetailDialog',
|
|
20
|
+
components: {Dialog, calculateDetail},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
visible: false,
|
|
24
|
+
logId: '',
|
|
25
|
+
modelId: ''
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
open(value) {
|
|
30
|
+
this.visible = true
|
|
31
|
+
this.logId = value.logId
|
|
32
|
+
this.modelId = value.modelId
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</script>
|