| | |
| | | </el-form> |
| | | </ContentWrap> |
| | | <!-- 列表 --> |
| | | <el-skeleton :loading="loading" animated> |
| | | <el-skeleton :loading="loading"> |
| | | <div class="package-card" v-for="(item, index) in packages" :key="`dynamics-${index}`"> |
| | | <div class="card-content"> |
| | | <img class="card-icon" :src="item.icon"/> |
| | |
| | | |
| | | const loading = ref(true) // 列表的加载中 |
| | | const total = ref(0) // 列表的总页数 |
| | | let packages = reactive<TenantPackageVO[]>([]) |
| | | const packages = ref([]) |
| | | |
| | | const queryParams = reactive({ |
| | | pageNo: 1, |
| | |
| | | const getList = async () => { |
| | | try { |
| | | const data = await TenantPackageApi.getTenantPackagePage(queryParams) |
| | | packages = Object.assign(packages, data.list) |
| | | packages.value = data.list |
| | | total.value = data.total |
| | | } finally { |
| | | loading.value = false |