| | |
| | | <el-col :span="1.5"> |
| | | <el-button v-if="userId === 1" type="success" plain icon="Refresh" @click="handleSyncTenantDict">同步租户字典</el-button> |
| | | </el-col> |
| | | <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> |
| | | <right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar> |
| | | </el-row> |
| | | </template> |
| | | |
| | |
| | | <el-table-column label="社会信用代码" align="center" prop="licenseNumber" /> |
| | | <el-table-column label="过期时间" align="center" prop="expireTime" width="180"> |
| | | <template #default="scope"> |
| | | <span>{{ parseTime(scope.row.expireTime, '{y}-{m}-{d}') }}</span> |
| | | <span>{{ proxy.parseTime(scope.row.expireTime, '{y}-{m}-{d}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="租户状态" align="center" prop="status"> |
| | |
| | | </template> |
| | | |
| | | <script setup name="Tenant" lang="ts"> |
| | | import { listTenant, getTenant, delTenant, addTenant, updateTenant, changeTenantStatus, syncTenantPackage, syncTenantDict } from '@/api/system/tenant'; |
| | | import { |
| | | listTenant, |
| | | getTenant, |
| | | delTenant, |
| | | addTenant, |
| | | updateTenant, |
| | | changeTenantStatus, |
| | | syncTenantPackage, |
| | | syncTenantDict |
| | | } from '@/api/system/tenant'; |
| | | import { selectTenantPackage } from '@/api/system/tenantPackage'; |
| | | import useUserStore from '@/store/modules/user'; |
| | | import { TenantForm, TenantQuery, TenantVO } from '@/api/system/tenant/types'; |