1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| <template>
| <el-container>
| <div class="editor-total">
| <div id="editor" v-html="xmlContent"></div>
| <button @click="saveXml">保 存</button>
| </div>
| </el-container>
| </template>
|
| <script>
| import { getGroupMapXML } from "@/api/integration/groupMapAttrXML.js";
|
| export default {
| data() {
| return {
| xmlContent: "", // 从后端获取的XML内容
| };
| },
| mounted() {
|
| },
| created() {
| this.onLoad();
| },
| methods: {
| onLoad() {
| let xmlName = "PDM";
| getGroupMapXML({ xmlName: xmlName }).then((res) => {
| this.xmlContent = res.data.data;
| console.log(res.data.data);
| });
| },
|
| },
| };
| </script>
| <style>
| .editor-total {
| width: 100%;
| height: 100%;
| }
| </style>
|
|