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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
| <template>
| <div class="WebManage">
| <div class="title">域名管理</div>
| <!-- <div class="row">
| <div class="label">系统升级访问域名</div>
| <el-input disabled v-model="systemName"></el-input>
| </div> -->
|
| <div class="row">
| <div class="label">APP升级访问域名</div>
| <el-input v-model="appName"></el-input>
| </div>
|
| <div @click="save" class="save_button">保存</div>
| </div>
| </template>
|
| <script>
| import { getRemoteServer, setRemoteServer } from "@/api/system";
|
| export default {
| data() {
| return {
| systemName: "",
| appName: "",
| };
| },
| created() {
| this.getRemoteServer();
| },
| methods: {
| async getRemoteServer() {
| const res = await getRemoteServer();
| this.appName = res.data.appServer;
| },
| async save() {
| const res = await setRemoteServer({
| appServer: this.appName,
| });
| if (res && res.success) {
| this.$notify({
| type: "success",
| message: "保存成功",
| });
| }
| },
| },
| };
| </script>
|
| <style lang="scss" scoped >
| .WebManage {
| margin: 10vh auto;
| text-align: left;
| width: 600px;
|
| .title {
| font-size: 20px;
| font-weight: 700;
| }
|
| .row {
| margin-top: 40px;
| display: flex;
| align-items: center;
|
| .label {
| width: 150px;
| font-size: 14px;
| }
| }
|
| .save_button {
| margin: 0 auto;
| margin-top: 80px;
| width: 188px;
| height: 40px;
| background: var(--colorCard);
| border-radius: 25px;
| font-weight: bold;
| font-size: 16px;
| line-height: 40px;
| color: #fff;
| text-align: center;
| cursor: pointer;
| }
| }
| </style>
|
|