dev
Jo 3 years ago
parent 4abab38f05
commit a434b83e5e
  1. BIN
      src/assets/img/search-white.png
  2. 10
      src/layouts/header/index.vue
  3. 10
      src/layouts/navbar/index.vue
  4. 12
      src/pages/data/list/index.vue
  5. 7
      src/pages/index/list/index.vue
  6. 103
      src/pages/setting/person/info.vue
  7. 2
      src/pages/user/list/index.vue

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 B

@ -115,8 +115,12 @@ export default {
let mg = this.$route.query.mg let mg = this.$route.query.mg
if (mg && atob(decodeURI(mg)) === 'true') { if (mg && atob(decodeURI(mg)) === 'true') {
this.showSetting = false this.showSetting = false
const userName = this.$route.query.userName
userName && this.setInfo({
userName
})
} }
// , // ,
setTimeout(() => { setTimeout(() => {
this.token && !this.isCustomer && this.getUserInfo() this.token && !this.isCustomer && this.getUserInfo()
}, 1000) }, 1000)
@ -125,6 +129,7 @@ export default {
...mapActions('user', [ ...mapActions('user', [
'setInfo', 'logout', 'setManager', 'setCustomer' 'setInfo', 'logout', 'setManager', 'setCustomer'
]), ]),
//
getUserInfo() { getUserInfo() {
this.$get(this.api.userInfo).then(res => { this.$get(this.api.userInfo).then(res => {
let userInfo = res.userInfo ? res.userInfo : {} let userInfo = res.userInfo ? res.userInfo : {}
@ -166,7 +171,8 @@ export default {
query: { query: {
mg: btoa(true), mg: btoa(true),
schoolId: btoa(this.schoolId), schoolId: btoa(this.schoolId),
customer: btoa(this.isCustomer) customer: btoa(this.isCustomer),
userName: this.userName
} }
}) })
window.open(route.href) window.open(route.href)

@ -14,7 +14,7 @@ import util from '@/libs/util'
export default { export default {
data() { data() {
return { return {
managerStr: this.$route.query.mg, managerStr: this.$route.query.mg, // urlmgmgtrue
isManager: false, isManager: false,
active: this.$route.path, active: this.$route.path,
defaultMenus: [], defaultMenus: [],
@ -62,9 +62,8 @@ export default {
}, },
mounted() { mounted() {
if (util.local.get(Setting.tokenKey)) {// if (util.local.get(Setting.tokenKey)) {//
setTimeout(() => { this.getPer()
this.isCustomer ? this.getPer() : this.initMenu() // store
}, 100)
if (this.managerStr && atob(decodeURI(this.managerStr)) === 'true') { if (this.managerStr && atob(decodeURI(this.managerStr)) === 'true') {
this.isManager = true this.isManager = true
this.setManager(false) this.setManager(false)
@ -78,7 +77,7 @@ export default {
'setManager' 'setManager'
]), ]),
initMenu() { initMenu() {
if (this.isManager) {// trueurlmanagerStr if (this.isManager) {// trueurlmg
this.defaultMenus = this.managerMenus this.defaultMenus = this.managerMenus
if (Setting.dynamicRoute) { if (Setting.dynamicRoute) {
let routes = this.routes let routes = this.routes
@ -106,6 +105,7 @@ export default {
Setting.dynamicRoute && addRoutes(routes) Setting.dynamicRoute && addRoutes(routes)
this.initMenu() this.initMenu()
}).catch(err => { }).catch(err => {
//
this.menus = this.defaultMenus this.menus = this.defaultMenus
}) })
}, },

@ -113,8 +113,8 @@
<el-table-column prop="updateTime" label="更新时间" width="170" align="center"></el-table-column> <el-table-column prop="updateTime" label="更新时间" width="170" align="center"></el-table-column>
<el-table-column label="操作" width="140"> <el-table-column label="操作" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="preview(scope.row)">预览</el-button> <el-button type="text" @click="preview(scope.row)" v-auth>预览</el-button>
<el-button type="text" @click="download(scope.row)">下载</el-button> <el-button type="text" @click="download(scope.row)" v-auth>下载</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -549,6 +549,9 @@ export default {
color: #3381d2; color: #3381d2;
} }
} }
&>.el-submenu>.el-menu{
background-color: #FAFAFA !important;
}
.el-submenu__title i{ .el-submenu__title i{
font-size: 14px; font-size: 14px;
} }
@ -571,7 +574,7 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
.is-active{ &.is-active{
color: #fff; color: #fff;
background-color: #0070FF; background-color: #0070FF;
} }
@ -596,6 +599,9 @@ export default {
} }
} }
} }
/deep/.el-table__body tr.current-row > td{
background-color: #daeaff;
}
.desc{ .desc{
padding: 9px 12px; padding: 9px 12px;
margin: 20px 0 10px; margin: 20px 0 10px;

@ -6,6 +6,7 @@
<div class="search"> <div class="search">
<input ref="keyword" v-model="keyword" type="text" placeholder="请输入关键词"> <input ref="keyword" v-model="keyword" type="text" placeholder="请输入关键词">
<img v-if="keyword" src="../../../assets/img/remove-gray.png" alt="" class="remove" @click="keyword = ''"> <img v-if="keyword" src="../../../assets/img/remove-gray.png" alt="" class="remove" @click="keyword = ''">
<img class="icon-wrap" src="../../../assets/img/search-gray.png" alt="">
</div> </div>
<div class="hot" v-if="hotData.length"> <div class="hot" v-if="hotData.length">
<span class="name">热门下载</span> <span class="name">热门下载</span>
@ -296,6 +297,10 @@ export default {
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
overflow: hidden; overflow: hidden;
.icon-wrap{
width: 20px;
margin: 0 20px;
}
input{ input{
flex: 1; flex: 1;
padding-left: 15px; padding-left: 15px;
@ -312,7 +317,7 @@ export default {
} }
} }
.remove{ .remove{
margin: 0 20px; margin-left: 20px;
cursor: pointer; cursor: pointer;
} }
} }

@ -5,70 +5,54 @@
<h6 class="l-title"><img src="@/assets/img/info1.png" alt=""> 用户信息</h6> <h6 class="l-title"><img src="@/assets/img/info1.png" alt=""> 用户信息</h6>
<div class="page-content"> <div class="page-content">
<ul class="list"> <ul class="list">
<div class="line"> <div class="line info">
<li> <li>
<label>姓名</label> <label>姓名</label>
<div>
<el-input size="small" v-model="form.userName" clearable></el-input> <el-input size="small" v-model="form.userName" clearable></el-input>
</div>
</li> </li>
<li> <li>
<label>性别</label> <label>性别</label>
<div>
<el-select size="small" v-model="form.sex"> <el-select size="small" v-model="form.sex">
<el-option v-for="item in sexList" :key="item.value" :label="item.name" :value="item.value"></el-option> <el-option v-for="item in sexList" :key="item.value" :label="item.name" :value="item.value"></el-option>
</el-select> </el-select>
</div>
</li> </li>
</div>
<div class="line info">
<li> <li>
<label>出生年月日</label> <label>出生年月日</label>
<div>
<el-date-picker size="small" v-model="form.dateBirth" :clearable="false" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker> <el-date-picker size="small" v-model="form.dateBirth" :clearable="false" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
</div>
</li> </li>
</div> <li class="selects">
<div class="line">
<li>
<label>所在地</label> <label>所在地</label>
<div class="mul"> <div class="mul">
<div class="child"> <div class="child">
<div>
<el-select size="small" v-model="form.countries" placeholder> <el-select size="small" v-model="form.countries" placeholder>
<el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label"></el-option> <el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label"></el-option>
</el-select> </el-select>
</div> </div>
</div>
<div class="child"> <div class="child">
<div>
<el-select size="small" v-model="form.provinceId" placeholder @change="id => getCity(id,1)"> <el-select size="small" v-model="form.provinceId" placeholder @change="id => getCity(id,1)">
<el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" :value="item.provinceId"></el-option> <el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" :value="item.provinceId"></el-option>
</el-select> </el-select>
</div> </div>
</div>
<div class="child"> <div class="child">
<div>
<el-select size="small" v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true"> <el-select size="small" v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true">
<el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" :value="item.cityId"></el-option> <el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" :value="item.cityId"></el-option>
</el-select> </el-select>
</div> </div>
</div> </div>
</div>
</li> </li>
</div> </div>
<div class="line"> <div class="line info">
<li> <li>
<label>身份证</label> <label>身份证</label>
<div>
<el-input size="small" v-model="form.idNumber" clearable></el-input> <el-input size="small" v-model="form.idNumber" clearable></el-input>
</div>
</li> </li>
<li> <li>
<label>教育程度</label> <label>教育程度</label>
<div>
<el-select size="small" v-model="form.educationDegree" placeholder="请选择教育程度"> <el-select size="small" v-model="form.educationDegree" placeholder="请选择教育程度">
<el-option v-for="(item,index) in educationDegreeList" :key="index" :label="item.name" :value="item.value"></el-option> <el-option v-for="(item,index) in educationDegreeList" :key="index" :label="item.name" :value="item.value"></el-option>
</el-select> </el-select>
</div>
</li> </li>
</div> </div>
</ul> </ul>
@ -135,36 +119,29 @@
<h6 class="l-title"><img src="@/assets/img/info3.png" alt=""> 账号信息</h6> <h6 class="l-title"><img src="@/assets/img/info3.png" alt=""> 账号信息</h6>
<div class="page-content"> <div class="page-content">
<ul class="list"> <ul class="list">
<div class="line"> <div class="line info imp">
<li style="margin-right: 136px"> <li>
<label>用户账号</label> <label>用户账号</label>
<div> <el-input class="m-r-10" size="small" v-model="form.account" clearable disabled></el-input>
<el-input size="small" v-model="form.account" clearable></el-input> <el-button type="text" size="small" @click="openAccount">更换</el-button>
</div>
</li> </li>
<li> <li>
<label>手机号</label> <label>手机号</label>
<div>
<el-input class="m-r-10" type="text" size="small" v-model="form.phone" disabled></el-input> <el-input class="m-r-10" type="text" size="small" v-model="form.phone" disabled></el-input>
<el-button type="text" size="small" @click="bindPhone">更换</el-button> <el-button type="text" size="small" @click="bindPhone">更换</el-button>
</div>
</li> </li>
</div> </div>
<div class="line"> <div class="line info imp">
<li> <li>
<label>邮箱</label> <label>邮箱</label>
<div>
<el-input class="m-r-10" size="small" v-model="form.email" disabled></el-input> <el-input class="m-r-10" size="small" v-model="form.email" disabled></el-input>
<el-button v-if="form.email" type="text" size="small" @click="bindEmail">更换</el-button> <el-button v-if="form.email" type="text" size="small" @click="bindEmail">更换</el-button>
<el-button v-else type="text" size="small" @click="bindEmail">添加</el-button> <el-button v-else type="text" size="small" @click="bindEmail">添加</el-button>
</div>
</li> </li>
<li> <li>
<label>密码</label> <label>密码</label>
<div>
<el-input class="m-r-10" size="small" value="xxxxxxxx" disabled></el-input> <el-input class="m-r-10" size="small" value="xxxxxxxx" disabled></el-input>
<el-button type="text" size="small" @click="bindPassword">更换</el-button> <el-button type="text" size="small" @click="bindPassword">更换</el-button>
</div>
</li> </li>
</div> </div>
</ul> </ul>
@ -229,6 +206,18 @@
<el-button size="small" type="primary" @click="editPassword"> </el-button> <el-button size="small" type="primary" @click="editPassword"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog title="修改用户账号" :visible.sync="accountVisible" :close-on-click-modal="false" width="30%">
<el-form label-width="82px">
<el-form-item label="用户账号">
<el-input v-model="account" placeholder="请输入用户账号"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="accountVisible = false"> </el-button>
<el-button size="small" type="primary" @click="confirmAccount"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -337,7 +326,9 @@ export default {
phoneCode: '', phoneCode: '',
phoneDisabled: false, phoneDisabled: false,
phoneTimer: null, phoneTimer: null,
updateTime: 0 updateTime: 0,
account: '',
accountVisible: false
}; };
}, },
watch: { watch: {
@ -526,10 +517,13 @@ export default {
this.concatArch() this.concatArch()
}, },
delArchive(i) { delArchive(i) {
this.$confirm(`此操作不可逆,是否确认删除?`, '提示', {
type: 'warning'
}).then(() => {
const id = this.archivesList[i].personalFileId const id = this.archivesList[i].personalFileId
id && this.$post(`${this.api.deleteProfile}?personalFileIds=${id}`).then(res => {
this.archivesList.splice(i, 1) this.archivesList.splice(i, 1)
}).catch(err => {}) id && this.$post(`${this.api.deleteProfile}?personalFileIds=${id}`).then(res => {}).catch(err => {})
}).catch(() => {})
}, },
bindEmail() { bindEmail() {
this.email = this.form.email this.email = this.form.email
@ -598,14 +592,6 @@ export default {
this.archivesList[index].professionalClassName = '' this.archivesList[index].professionalClassName = ''
this.archivesList[index].professionalId = '' this.archivesList[index].professionalId = ''
this.archivesList[index].professionalName = '' this.archivesList[index].professionalName = ''
// this.archivesList.map(e =>{
// if(e.disciplineId == item){
// e.professionalClassId = '',
// e.professionalClassName = '',
// e.professionalId = '',
// e.professionalName = ''
// }
// })
}, },
getItemProfessionalClass(item,index){ getItemProfessionalClass(item,index){
this.clearItemClass(index) this.clearItemClass(index)
@ -811,6 +797,18 @@ export default {
this.phoneVisible = false this.phoneVisible = false
}).catch(res => {}) }).catch(res => {})
}, },
openAccount() {
this.account = this.form.account
this.accountVisible = true
},
confirmAccount() {
if (this.account) {
this.form.account = this.account
this.accountVisible = false
} else {
util.errorMsg('请输入账号')
}
}
} }
}; };
</script> </script>
@ -829,8 +827,17 @@ export default {
.line{ .line{
display: flex; display: flex;
margin-bottom: 24px; margin-bottom: 24px;
li{ &.info li:not(.selects){
margin-right: 100px; width: 30%;
.el-input{
flex: 1;
}
&:first-child{
margin-right: 16%;
}
}
&.imp li{
width: calc(30% + 36px) !important;
} }
} }
li{ li{
@ -874,14 +881,14 @@ export default {
} }
.archives{ .archives{
position: relative; position: relative;
padding: 16px 30px; padding: 16px 0;
margin-bottom: 6px; margin-bottom: 6px;
border-radius: 4px; border-radius: 4px;
background-color: #FAFAFA; background-color: #FAFAFA;
.del{ .del{
position: absolute; position: absolute;
top: 48px; top: 48px;
right: 55px; right: 16px;
cursor: pointer; cursor: pointer;
} }
li{ li{

@ -92,7 +92,7 @@
<el-form-item prop="roleIds" label="账号角色"> <el-form-item prop="roleIds" label="账号角色">
<el-checkbox-group v-model="form.roleIds"> <el-checkbox-group v-model="form.roleIds">
<template v-for="(item,index) in roleList"> <template v-for="(item,index) in roleList">
<el-checkbox v-if="item.roleName != '超级管理员'" :key="index" :label="item.id" :disabled="item.roleName === '用户'">{{item.roleName}}</el-checkbox> <el-checkbox v-if="item.roleName != '超级管理员'" :key="index" :label="item.id">{{item.roleName}}</el-checkbox>
</template> </template>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>

Loading…
Cancel
Save