Update styles of buttons (#21)
This commit is contained in:
1 parent
23bd8e44d6
commit
b5b0216272
8 files changed
+29
-7
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix style bugs",
|
||||||
|
"packageName": "@acedatacloud/hub",
|
||||||
|
"email": "cqc@cuiqingcai.com",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
:on-error="onError"
|
:on-error="onError"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
>
|
>
|
||||||
<el-button type="primary" class="btn btn-upload">
|
<el-button round type="primary" class="btn btn-upload">
|
||||||
<font-awesome-icon icon="fa-solid fa-upload" class="icon mr-2" />
|
<font-awesome-icon icon="fa-solid fa-upload" class="icon mr-2" />
|
||||||
{{ $t('midjourney.button.uploadReferences') }}
|
{{ $t('midjourney.button.uploadReferences') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
@@ -16,7 +16,9 @@
|
|||||||
<div v-for="(task, taskKey) in tasks" :key="taskKey" class="task">
|
<div v-for="(task, taskKey) in tasks" :key="taskKey" class="task">
|
||||||
<task-preview :full="false" :model-value="task" @custom="$emit('custom', $event)" />
|
<task-preview :full="false" :model-value="task" @custom="$emit('custom', $event)" />
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" class="btn mb-4" @click="onLoadHistory">{{ $t('midjourney.button.history') }}</el-button>
|
<el-button type="primary" round class="btn mb-4" @click="onLoadHistory">{{
|
||||||
|
$t('midjourney.button.history')
|
||||||
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" size="large" class="btn-create" :loading="creating" @click="onCreateOrder">
|
<el-button type="primary" round size="large" class="btn-create" :loading="creating" @click="onCreateOrder">
|
||||||
{{ $t('application.button.createOrder') }}
|
{{ $t('application.button.createOrder') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -67,6 +67,10 @@
|
|||||||
"message": "Payment Successful",
|
"message": "Payment Successful",
|
||||||
"description": "The message of the successful payment."
|
"description": "The message of the successful payment."
|
||||||
},
|
},
|
||||||
|
"message.orderExpired": {
|
||||||
|
"message": "Order expired, please create a new order to pay.",
|
||||||
|
"description": "The message of the expired order."
|
||||||
|
},
|
||||||
"message.createFailed": {
|
"message.createFailed": {
|
||||||
"message": "Creation Failed",
|
"message": "Creation Failed",
|
||||||
"description": "The message of the failed creation."
|
"description": "The message of the failed creation."
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column>
|
<el-table-column>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button type="danger" size="small" @click="onDelete(scope.row.id)">
|
<el-button type="danger" round size="small" @click="onDelete(scope.row.id)">
|
||||||
{{ $t('common.button.delete') }}
|
{{ $t('common.button.delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ export default defineComponent({
|
|||||||
application: undefined,
|
application: undefined,
|
||||||
loading: false,
|
loading: false,
|
||||||
form: {
|
form: {
|
||||||
amount: 1000,
|
|
||||||
packageId: undefined
|
packageId: undefined
|
||||||
},
|
},
|
||||||
creating: false
|
creating: false
|
||||||
@@ -165,13 +164,13 @@ export default defineComponent({
|
|||||||
orderOperator
|
orderOperator
|
||||||
.create({
|
.create({
|
||||||
application_id: this.application?.id,
|
application_id: this.application?.id,
|
||||||
amount: this.form.amount,
|
amount: this.package?.amount,
|
||||||
...(this.form.packageId !== 'custom' && this.package
|
...(this.form.packageId !== 'custom' && this.package
|
||||||
? {
|
? {
|
||||||
package_id: this.package.id
|
package_id: this.package.id
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
description: `${this.application?.service?.title} x ${this.form.amount} ${unit}`
|
description: `${this.application?.service?.title} x ${this.package?.amount} ${unit}`
|
||||||
})
|
})
|
||||||
.then(({ data: data }: { data: IOrderDetailResponse }) => {
|
.then(({ data: data }: { data: IOrderDetailResponse }) => {
|
||||||
this.creating = false;
|
this.creating = false;
|
||||||
|
|||||||
@@ -26,6 +26,10 @@
|
|||||||
<el-descriptions-item v-if="order?.application?.service" :label="$t('order.field.api')">
|
<el-descriptions-item v-if="order?.application?.service" :label="$t('order.field.api')">
|
||||||
{{ order?.application?.service?.title }}
|
{{ order?.application?.service?.title }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item v-if="order?.pay_way" :label="$t('order.field.payWay')">
|
||||||
|
<span v-if="order?.pay_way === PayWay.WechatPay">{{ $t('order.title.wechatPay') }}</span>
|
||||||
|
<span v-if="order?.pay_way === PayWay.Stripe">{{ $t('order.title.stripe') }}</span>
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('order.field.amount')">
|
<el-descriptions-item :label="$t('order.field.amount')">
|
||||||
{{ order?.amount }} {{ $t(`service.unit.${order?.application?.service?.unit}`) }}
|
{{ order?.amount }} {{ $t(`service.unit.${order?.application?.service?.unit}`) }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -48,6 +52,12 @@
|
|||||||
<el-alert :title="$t('order.message.paidSuccessfully')" type="success" show-icon :closable="false" />
|
<el-alert :title="$t('order.message.paidSuccessfully')" type="success" show-icon :closable="false" />
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row v-if="order?.state === OrderState.EXPIRED" class="mb-5">
|
||||||
|
<el-col :span="14" :offset="5">
|
||||||
|
<el-divider border-style="dashed" />
|
||||||
|
<el-alert :title="$t('order.message.orderExpired')" type="error" show-icon :closable="false" />
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-row v-if="order?.state === OrderState.PENDING || order?.state === OrderState.FAILED">
|
<el-row v-if="order?.state === OrderState.PENDING || order?.state === OrderState.FAILED">
|
||||||
<el-col :span="14" :offset="5">
|
<el-col :span="14" :offset="5">
|
||||||
<el-divider border-style="dashed" />
|
<el-divider border-style="dashed" />
|
||||||
|
|||||||
Reference in new issue
Block a user