mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-16 05:30:27 +08:00
实现对ACME用户的增删改
This commit is contained in:
@@ -4,20 +4,25 @@
|
||||
Vue.component("menu-item", {
|
||||
props: ["href", "active", "code"],
|
||||
data: function () {
|
||||
var active = this.active;
|
||||
if (typeof(active) =="undefined") {
|
||||
var itemCode = "";
|
||||
var active = this.active
|
||||
if (typeof (active) == "undefined") {
|
||||
var itemCode = ""
|
||||
if (typeof (window.TEA.ACTION.data.firstMenuItem) != "undefined") {
|
||||
itemCode = window.TEA.ACTION.data.firstMenuItem;
|
||||
itemCode = window.TEA.ACTION.data.firstMenuItem
|
||||
}
|
||||
active = (itemCode == this.code);
|
||||
active = (itemCode == this.code)
|
||||
}
|
||||
return {
|
||||
vHref: (this.href == null) ? "" : this.href,
|
||||
vActive: active
|
||||
};
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
click: function (e) {
|
||||
this.$emit("click", e)
|
||||
}
|
||||
},
|
||||
template: '\
|
||||
<a :href="vHref" class="item" :class="{active:vActive}"><slot></slot></a> \
|
||||
<a :href="vHref" class="item" :class="{active:vActive}" @click="click"><slot></slot></a> \
|
||||
'
|
||||
});
|
||||
@@ -36,7 +36,7 @@ Vue.component("ssl-certs-box", {
|
||||
width = "35em"
|
||||
height = "20em"
|
||||
}
|
||||
teaweb.popup("/servers/components/ssl/selectPopup?viewSize=" + viewSize, {
|
||||
teaweb.popup("/servers/certs/selectPopup?viewSize=" + viewSize, {
|
||||
width: width,
|
||||
height: height,
|
||||
callback: function (resp) {
|
||||
@@ -48,7 +48,7 @@ Vue.component("ssl-certs-box", {
|
||||
// 上传证书
|
||||
uploadCert: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/components/ssl/uploadPopup", {
|
||||
teaweb.popup("/servers/certs/uploadPopup", {
|
||||
height: "28em",
|
||||
callback: function (resp) {
|
||||
teaweb.success("上传成功", function () {
|
||||
|
||||
@@ -17,7 +17,7 @@ Vue.component("ssl-certs-view", {
|
||||
|
||||
// 查看详情
|
||||
viewCert: function (certId) {
|
||||
teaweb.popup("/servers/components/ssl/certPopup?certId=" + certId, {
|
||||
teaweb.popup("/servers/certs/certPopup?certId=" + certId, {
|
||||
height: "28em",
|
||||
width: "48em"
|
||||
})
|
||||
|
||||
@@ -95,7 +95,7 @@ Vue.component("ssl-config-box", {
|
||||
// 选择证书
|
||||
selectCert: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/components/ssl/selectPopup", {
|
||||
teaweb.popup("/servers/certs/selectPopup", {
|
||||
width: "50em",
|
||||
height: "30em",
|
||||
callback: function (resp) {
|
||||
@@ -108,7 +108,7 @@ Vue.component("ssl-config-box", {
|
||||
// 上传证书
|
||||
uploadCert: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/components/ssl/uploadPopup", {
|
||||
teaweb.popup("/servers/certs/uploadPopup", {
|
||||
height: "28em",
|
||||
callback: function (resp) {
|
||||
teaweb.success("上传成功", function () {
|
||||
@@ -277,7 +277,7 @@ Vue.component("ssl-config-box", {
|
||||
// 选择客户端CA证书
|
||||
selectClientCACert: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/components/ssl/selectPopup?isCA=1", {
|
||||
teaweb.popup("/servers/certs/selectPopup?isCA=1", {
|
||||
width: "50em",
|
||||
height: "30em",
|
||||
callback: function (resp) {
|
||||
@@ -290,7 +290,7 @@ Vue.component("ssl-config-box", {
|
||||
// 上传CA证书
|
||||
uploadClientCACert: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/components/ssl/uploadPopup?isCA=1", {
|
||||
teaweb.popup("/servers/certs/uploadPopup?isCA=1", {
|
||||
height: "28em",
|
||||
callback: function (resp) {
|
||||
teaweb.success("上传成功", function () {
|
||||
|
||||
Reference in New Issue
Block a user