This commit is contained in:
@@ -74,7 +74,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<ElButton type="primary" :loading="saving" @click="handleSave">保存配置</ElButton>
|
||||
<ElButton v-if="canUpdate" type="primary" :loading="saving" @click="handleSave">
|
||||
保存配置
|
||||
</ElButton>
|
||||
<ElButton :disabled="saving" @click="loadConfig">重新加载</ElButton>
|
||||
</div>
|
||||
</template>
|
||||
@@ -84,7 +86,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, type FormInstance, type FormRules } from 'element-plus'
|
||||
import { AssetWalletService, PackageManageService } from '@/api/modules'
|
||||
import type {
|
||||
@@ -94,10 +96,14 @@
|
||||
} from '@/types/api'
|
||||
import { formatDateTime } from '@/utils/business/format'
|
||||
import { usePermission } from '@/composables/usePermission'
|
||||
import { useAuth } from '@/composables/useAuth'
|
||||
import { AUGUST_PERMISSIONS } from '@/config/constants/augustIteration'
|
||||
|
||||
defineOptions({ name: 'AssetWalletAutoRenewal' })
|
||||
|
||||
const { isPlatformAccount } = usePermission()
|
||||
const { hasAuth } = useAuth()
|
||||
const canUpdate = computed(() => hasAuth(AUGUST_PERMISSIONS.assetWalletAutoRenewal.update))
|
||||
|
||||
const formRef = ref<FormInstance>()
|
||||
const loading = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user