Commit 5ed26527347d43442229eb19a545f3b171fb7ff6
1 parent
ed244fda
1
Showing
7 changed files
with
33 additions
and
9 deletions
src/assets/images/user.png
0 → 100644
5.11 KB
src/store/modules/user.js
| ... | ... | @@ -3,8 +3,6 @@ import { getToken, setToken, removeToken } from '@/utils/auth' |
| 3 | 3 | import { resetRouter } from '@/router' |
| 4 | 4 | import md5 from "js-md5"; // 密码加密 |
| 5 | 5 | const define = require('@/utils/define') |
| 6 | -import qs from 'qs' | |
| 7 | - | |
| 8 | 6 | |
| 9 | 7 | const user = { |
| 10 | 8 | state: { |
| ... | ... | @@ -82,7 +80,10 @@ const user = { |
| 82 | 80 | return new Promise((resolve, reject) => { |
| 83 | 81 | getInfo().then((res) => { |
| 84 | 82 | let { menuList, userInfo, permissionList } = res.data |
| 85 | - const avatar = (userInfo.headIcon == "" || userInfo.headIcon == null) || require("@/assets/images/user.jpg"); | |
| 83 | + const avatar = (userInfo.headIcon == '/api/File/Image/userAvatar/') ? require("@/assets/images/user.png") : userInfo.headIcon; | |
| 84 | + // const avatar = (userInfo.headIcon == "" || userInfo.headIcon == null) || require("@/assets/images/user.jpg"); | |
| 85 | + console.log(avatar); | |
| 86 | + | |
| 86 | 87 | if (!menuList.length) { |
| 87 | 88 | reject('您的权限不足,请联系管理员') |
| 88 | 89 | commit('SET_LOGIN_LOADING', false) | ... | ... |
src/views/DisposalSuggestions/Form.vue
| ... | ... | @@ -109,7 +109,7 @@ |
| 109 | 109 | <div class="text">{{ dataForm.areaName || "--" }}</div> |
| 110 | 110 | </div> |
| 111 | 111 | </el-col> |
| 112 | - <el-col :span="24" v-for="(v, i) in dataForm.judgmentOpinions" :key="i" style="border: #f6f6f6 solid 1px; border-radius: 10px; padding: 8px; margin-bottom: 5px;"> | |
| 112 | + <el-col :span="24" v-for="(v, i) in dataForm.judgmentOpinions" :key="i + 'judgmentOpinions'" style="border: #f6f6f6 solid 1px; border-radius: 10px; padding: 8px; margin-bottom: 5px;"> | |
| 113 | 113 | <div class="title">研判信息{{ i + 1 }}</div> |
| 114 | 114 | <div class="form-item"> |
| 115 | 115 | <div class="label w-120">处置类型:</div> |
| ... | ... | @@ -120,7 +120,7 @@ |
| 120 | 120 | <div class="text">{{ v.judgmentOpinion }}</div> |
| 121 | 121 | </div> |
| 122 | 122 | </el-col> |
| 123 | - <el-col :span="24" v-for="(v, index) in dataForm.disposalSuggestions" :key="index" style="border: #f6f6f6 solid 1px; border-radius: 10px; padding: 8px; margin-bottom: 5px;"> | |
| 123 | + <el-col :span="24" v-for="(v, index) in dataForm.disposalSuggestions" :key="index + 'disposalSuggestions'" style="border: #f6f6f6 solid 1px; border-radius: 10px; padding: 8px; margin-bottom: 5px;"> | |
| 124 | 124 | <div class="title">处置信息{{ index + 1 }}</div> |
| 125 | 125 | <div class="form-item"> |
| 126 | 126 | <div class="label w-120">处置结果:</div> | ... | ... |
src/views/baseCaseHandling/Form.vue
| ... | ... | @@ -620,6 +620,9 @@ export default { |
| 620 | 620 | // this.companyChange(res.data.registeredEntity, 'change'); |
| 621 | 621 | this.dataForm = res.data; |
| 622 | 622 | this.loading = false; |
| 623 | + this.$nextTick(() => { | |
| 624 | + this.getSystemSelect(res.data.registeredEntity) | |
| 625 | + }) | |
| 623 | 626 | }).catch(() => { |
| 624 | 627 | this.loading = false; |
| 625 | 628 | }); | ... | ... |
src/views/baseSystemInfo/DetailForm.vue
| ... | ... | @@ -35,7 +35,7 @@ |
| 35 | 35 | <p class="text">{{ dataForm.systemClass | dynamicTextClassName(systemClassOptions) }}</p> |
| 36 | 36 | </div> |
| 37 | 37 | </el-col> |
| 38 | - <el-col :span="24"> | |
| 38 | + <el-col :span="24" v-if="dataForm.systemType != '580634746028033285'"> | |
| 39 | 39 | <div class="form-item"> |
| 40 | 40 | <div class="label w-120">备案号:</div> |
| 41 | 41 | <p class="text">{{ dataForm.systemRecordNumber || "--" }}</p> |
| ... | ... | @@ -299,8 +299,11 @@ import { getSystemDetail, getUpdataRecord } from "@/api/baseData/info"; |
| 299 | 299 | import { getCompanyInfoById } from "@/api/baseData/company"; |
| 300 | 300 | import HandForm from '@/views/baseCaseHandling/Form.vue' // 案件处理 |
| 301 | 301 | import ReportForm from '@/views/baseInspectionReport/Form.vue' // 案件处理 |
| 302 | +import infoMixin from "@/mixins/info"; | |
| 303 | + | |
| 302 | 304 | export default { |
| 303 | 305 | components: {HandForm, ReportForm}, |
| 306 | + mixins: [infoMixin], | |
| 304 | 307 | props: ['areaOptions'], |
| 305 | 308 | data() { |
| 306 | 309 | return { |
| ... | ... | @@ -346,6 +349,7 @@ export default { |
| 346 | 349 | stateOptions: [], |
| 347 | 350 | HandFormVisible: false, |
| 348 | 351 | ReportFormVisible: false, |
| 352 | + specialRecordTypeOption: [], | |
| 349 | 353 | }; |
| 350 | 354 | }, |
| 351 | 355 | computed: { |
| ... | ... | @@ -357,9 +361,10 @@ export default { |
| 357 | 361 | } |
| 358 | 362 | }, |
| 359 | 363 | watch: {}, |
| 360 | - created() { | |
| 364 | + async created() { | |
| 361 | 365 | this.initStateTypeOption(); |
| 362 | 366 | this.initSystemTypeList(); |
| 367 | + await this.initSpecialRecordTypeOption(); | |
| 363 | 368 | }, |
| 364 | 369 | mounted() {}, |
| 365 | 370 | methods: { |
| ... | ... | @@ -411,6 +416,7 @@ export default { |
| 411 | 416 | await this.initSystemClassList(data.systemType); |
| 412 | 417 | this.dataForm = data; |
| 413 | 418 | this.dataForm.companyName = companyName; |
| 419 | + this.dataForm.specialRecordType && (this.dataForm.specialRecordType = this.specialRecordTypeOption.find(v => v.id == this.dataForm.specialRecordType).fullName); | |
| 414 | 420 | this.loading = false; |
| 415 | 421 | }, |
| 416 | 422 | async initSystemTypeList() { | ... | ... |
src/views/homePage/components/Header.vue
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | </el-dropdown-menu> |
| 22 | 22 | </el-dropdown> |
| 23 | 23 | </div> |
| 24 | - <UserInfoPage ref="UserInfoPage" v-if="visbleUserInfo" @refresh="() => this.visbleUserInfo = false"/> | |
| 24 | + <UserInfoPage ref="UserInfoPage" v-if="visbleUserInfo" @refresh="visbleUserInfoRefresh"/> | |
| 25 | 25 | </header> |
| 26 | 26 | </template> |
| 27 | 27 | |
| ... | ... | @@ -39,6 +39,10 @@ export default { |
| 39 | 39 | }, |
| 40 | 40 | mounted() {}, |
| 41 | 41 | methods: { |
| 42 | + visbleUserInfoRefresh() { | |
| 43 | + this.avatar = process.env.VUE_APP_BASE_API + this.$store.state.user.avatar; | |
| 44 | + this.visbleUserInfo = false; | |
| 45 | + }, | |
| 42 | 46 | async logout() { |
| 43 | 47 | await this.$store.dispatch("LogOut"); |
| 44 | 48 | this.$router.push({ path: "/login" }); | ... | ... |
src/views/homePage/components/UserInfoPage.vue
| ... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 | |
| 39 | 39 | <span slot="footer" class="dialog-footer"> |
| 40 | 40 | <el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading">保存</el-button> |
| 41 | - <el-button type="danger" @click="visible = false">关闭</el-button> | |
| 41 | + <el-button type="danger" @click="close()">关闭</el-button> | |
| 42 | 42 | </span> |
| 43 | 43 | </el-dialog> |
| 44 | 44 | </template> |
| ... | ... | @@ -95,6 +95,8 @@ export default { |
| 95 | 95 | handleSuccess(res, file) { |
| 96 | 96 | if (res.code == 200) { |
| 97 | 97 | this.updateAvatar(res.data); |
| 98 | + this.$emit('changeAvatar', res.data); | |
| 99 | + // this.logout(); | |
| 98 | 100 | } else { |
| 99 | 101 | this.$message({ |
| 100 | 102 | message: "上传失败", |
| ... | ... | @@ -103,6 +105,10 @@ export default { |
| 103 | 105 | }); |
| 104 | 106 | } |
| 105 | 107 | }, |
| 108 | + async logout() { | |
| 109 | + await this.$store.dispatch("LogOut"); | |
| 110 | + this.$router.push({ path: "/login" }); | |
| 111 | + }, | |
| 106 | 112 | updateAvatar(data) { |
| 107 | 113 | UpdateAvatar(data.name).then((res) => { |
| 108 | 114 | this.user.avatar = data.url; |
| ... | ... | @@ -136,6 +142,10 @@ export default { |
| 136 | 142 | }) |
| 137 | 143 | |
| 138 | 144 | }, |
| 145 | + close() { | |
| 146 | + this.visible = false; | |
| 147 | + this.$emit("refresh"); | |
| 148 | + } | |
| 139 | 149 | }, |
| 140 | 150 | }; |
| 141 | 151 | </script> | ... | ... |