mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
chore: 兼容数据库
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
<product-info :product="item" @order="doOrder" />
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-empty v-if="suites.length == 0 && addons.length == 0" class="w-100 mt-10" description="暂无套餐可购买" />
|
||||
</div>
|
||||
|
||||
<order-modal ref="orderModalRef" />
|
||||
|
||||
@@ -36,6 +36,9 @@
|
||||
</span>
|
||||
<span>(<expires-time-text :value="item.expiresTime" />)</span>
|
||||
</a-tag>
|
||||
<div class="flex-o ml-5">
|
||||
暂无套餐 <a-button v-if="detail.suites?.length === 0" class="ml-5" type="primary" size="small" @click="goBuy">去购买</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</a-popover>
|
||||
</div>
|
||||
@@ -48,6 +51,7 @@ import { ref } from "vue";
|
||||
import ExpiresTimeText from "/@/components/expires-time-text.vue";
|
||||
import api, { SuiteDetail } from "/@/views/certd/suite/mine/api";
|
||||
import { FsIcon } from "@fast-crud/fast-crud";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
defineOptions({
|
||||
name: "SuiteCard"
|
||||
@@ -60,4 +64,11 @@ async function loadSuiteDetail() {
|
||||
}
|
||||
|
||||
loadSuiteDetail();
|
||||
|
||||
const router = useRouter();
|
||||
function goBuy() {
|
||||
router.push({
|
||||
path: "/certd/suite/buy"
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -45,6 +45,7 @@ import { notification } from "ant-design-vue";
|
||||
import { request } from "/@/api/service";
|
||||
import SuiteDurationSelector from "/@/views/sys/suite/setting/suite-duration-selector.vue";
|
||||
import ProductManager from "/@/views/sys/suite/product/index.vue";
|
||||
import { useSettingStore } from "/@/store/modules/settings";
|
||||
|
||||
defineOptions({
|
||||
name: "SettingsSuite"
|
||||
@@ -83,11 +84,13 @@ async function loadSettings() {
|
||||
merge(formState, data);
|
||||
}
|
||||
|
||||
const settingsStore = useSettingStore();
|
||||
loadSettings();
|
||||
const onClick = async () => {
|
||||
const form = await formRef.value.validateFields();
|
||||
await api.SuiteSettingSave(form);
|
||||
await loadSettings();
|
||||
await settingsStore.loadSysSettings();
|
||||
notification.success({
|
||||
message: "保存成功"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user