Commit 1d687018967f50e33a6b1488f375202756eb6002
1 parent
dfb62e8f
debug user role
Showing
3 changed files
with
7 additions
and
4 deletions
src/views/dashboard/index.vue
src/views/property/edit.vue
| ... | ... | @@ -208,14 +208,14 @@ onMounted(() => { |
| 208 | 208 | <el-input |
| 209 | 209 | v-model.trim="form.data.businessLicense" |
| 210 | 210 | placeholder="请填写营业执照" |
| 211 | - maxlength="50" | |
| 211 | + maxlength="1500" | |
| 212 | 212 | /> |
| 213 | 213 | </el-form-item> |
| 214 | 214 | <el-form-item label="物业LOGO" prop="logo" style="width: 50%"> |
| 215 | 215 | <el-input |
| 216 | 216 | v-model.trim="form.data.logo" |
| 217 | 217 | placeholder="请填写物业LOGO" |
| 218 | - maxlength="50" | |
| 218 | + maxlength="1500" | |
| 219 | 219 | /> |
| 220 | 220 | </el-form-item> |
| 221 | 221 | <el-form-item label="合同编号" prop="contractNumber" style="width: 50%"> | ... | ... |
src/views/user/role.vue
| ... | ... | @@ -2,9 +2,11 @@ |
| 2 | 2 | import { reactive, ref, onMounted } from "vue"; |
| 3 | 3 | import { userRoles } from "@/api/user/user"; |
| 4 | 4 | import { parseTime } from "@/utils/tool"; |
| 5 | +import { useRoute } from "vue-router"; | |
| 5 | 6 | interface Form { |
| 6 | 7 | page: number; |
| 7 | 8 | pageSize: number; |
| 9 | + userId: number | null; | |
| 8 | 10 | } |
| 9 | 11 | interface Params { |
| 10 | 12 | query: Form; |
| ... | ... | @@ -20,7 +22,8 @@ let data = reactive({ |
| 20 | 22 | params: { |
| 21 | 23 | query: { |
| 22 | 24 | page: 1, |
| 23 | - pageSize: 10 | |
| 25 | + pageSize: 10, | |
| 26 | + userId: useRoute().query.id | |
| 24 | 27 | }, |
| 25 | 28 | }, |
| 26 | 29 | }); | ... | ... |