ap-dev 1.2.13 → 1.2.14
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/dev/ConfigPanel/CptTemplate.vue +92 -0
- package/dev/ConfigPanel/DevCpt.vue +355 -63
- package/ops/ApiPanel/components/ApiCode.vue +13 -0
- package/ops/ApiPanel/components/ApiContent.vue +17 -0
- package/ops/ApiPanel/components/ApiTable.vue +40 -0
- package/ops/ApiPanel/components/ApiTittle1.vue +16 -0
- package/ops/ApiPanel/components/ApiTittle2.vue +16 -0
- package/ops/ApiPanel/components/index.js +5 -0
- package/ops/ApiPanel/index.vue +265 -0
- package/ops/ApiPanel/modules/ApiDefault.vue +17 -0
- package/ops/ApiPanel/modules/ApiLog.vue +31 -0
- package/ops/ConfigPanel/OpsDocHistory.vue +145 -0
- package/ops/ConfigPanel/index.vue +41 -0
- package/ops/OperatePanel/index.vue +109 -0
- package/ops/OpsDoc/index.vue +246 -0
- package/ops/ops/index.vue +61 -0
- package/ops/ops/opsStore.js +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="width: 100%;height: 450px" class="flex-justify-start">
|
|
3
|
+
<div style="width: 400px;height: 100%">
|
|
4
|
+
<ap-aside-tree ref="cptParamTreeRef" :options.sync="cptParamTreeOptions">
|
|
5
|
+
<div slot="tree" slot-scope="scope" style="width: 100%">
|
|
6
|
+
<span @click="copyText(scope.data.fdName, $event)">{{ scope.data.fdName }} </span>
|
|
7
|
+
<span class="ap-color-blue"
|
|
8
|
+
@click="copyParamValue(scope.data.fdCode, $event)">{{ scope.data.fdCode }}</span>
|
|
9
|
+
</div>
|
|
10
|
+
</ap-aside-tree>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="flex-1" style="height: 100%;margin-left: 15px;">
|
|
13
|
+
<el-input v-model="myValue" type="textarea" :rows=24></el-input>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
|
|
20
|
+
import clipboard from "ap-util/util/ClipboardUtil";
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: "CptTemplate",
|
|
24
|
+
model: {
|
|
25
|
+
prop: 'modelValue',
|
|
26
|
+
event: 'changeModelValue'
|
|
27
|
+
},
|
|
28
|
+
props: {
|
|
29
|
+
cptId: {
|
|
30
|
+
required: false
|
|
31
|
+
},
|
|
32
|
+
modelValue: {
|
|
33
|
+
required: false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
data() {
|
|
37
|
+
return {
|
|
38
|
+
cptParamTreeOptions: this.getCptParamTreeOptions(),
|
|
39
|
+
opts: {},
|
|
40
|
+
myValue: null,
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
myValue(value) {
|
|
45
|
+
this.$emit('changeModelValue', this.myValue);
|
|
46
|
+
},
|
|
47
|
+
modelValue(value){
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
created() {
|
|
51
|
+
this.myValue = this.modelValue;
|
|
52
|
+
},
|
|
53
|
+
mounted: function () {
|
|
54
|
+
this.$refs.cptParamTreeRef.reLoadTreeData();
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
getCptParamTreeOptions() {
|
|
58
|
+
let treeOptions = {
|
|
59
|
+
title: "组件参数",
|
|
60
|
+
initData: false,
|
|
61
|
+
onClick: (data, node, comp) => {
|
|
62
|
+
},
|
|
63
|
+
loadOptions: {
|
|
64
|
+
url: "/apd/TDevCptParam/getTDevCptParamList",
|
|
65
|
+
data: () => {
|
|
66
|
+
return {
|
|
67
|
+
cptId: this.cptId
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
treeKey: {
|
|
71
|
+
idKey: "fdId",
|
|
72
|
+
parentKey: "fdParentId",
|
|
73
|
+
childrenKey: "children",
|
|
74
|
+
label: "fdName"
|
|
75
|
+
},
|
|
76
|
+
success: (response) => {
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return treeOptions;
|
|
82
|
+
},
|
|
83
|
+
copyParamValue(code, event) {
|
|
84
|
+
let str = '"${' + code + '.value}"';
|
|
85
|
+
clipboard(str, event);
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<style scoped>
|
|
92
|
+
</style>
|