mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
Merge remote-tracking branch 'origin/dev0731' into dev0731
This commit is contained in:
@@ -8,6 +8,12 @@ const logout = function() {
|
|||||||
return ajax.post('/b1/system/user/logout',{});
|
return ajax.post('/b1/system/user/logout',{});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const getRsaPublicKey=function(){
|
||||||
|
return ajax.get('/b1/common/secret/rsa-public-key');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**修改密码
|
/**修改密码
|
||||||
* oldPassword:'',
|
* oldPassword:'',
|
||||||
* newPassword:'',
|
* newPassword:'',
|
||||||
@@ -20,5 +26,6 @@ const modifyPassword = function(data) {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
logout,
|
logout,
|
||||||
modifyPassword
|
modifyPassword,
|
||||||
|
getRsaPublicKey
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -364,6 +364,7 @@ body {margin: 0px;padding: 0px;}
|
|||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover{
|
&:hover{
|
||||||
|
|||||||
@@ -671,7 +671,7 @@ export default {
|
|||||||
apiUserBasic.getUserAudiences(params).then(rs=>{
|
apiUserBasic.getUserAudiences(params).then(rs=>{
|
||||||
if(rs.status==200){
|
if(rs.status==200){
|
||||||
let crowdList=[];
|
let crowdList=[];
|
||||||
rs.result.audienceList.forEach(item=>{
|
rs.result.list.forEach(item=>{
|
||||||
crowdList.push({
|
crowdList.push({
|
||||||
id:item.id,
|
id:item.id,
|
||||||
name:item.audienceName,
|
name:item.audienceName,
|
||||||
|
|||||||
@@ -361,6 +361,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
caseYears:[],
|
||||||
refId: '',//消息跳转案例的id
|
refId: '',//消息跳转案例的id
|
||||||
selectList: [],//点击选中的list
|
selectList: [],//点击选中的list
|
||||||
twoList: [], //二级分类{type:12}
|
twoList: [], //二级分类{type:12}
|
||||||
@@ -387,7 +388,7 @@ export default {
|
|||||||
Positive: [],//排行数据3
|
Positive: [],//排行数据3
|
||||||
protocolDialogVisible: false,
|
protocolDialogVisible: false,
|
||||||
protocolConfirmButton: true,
|
protocolConfirmButton: true,
|
||||||
years: [new Date().getFullYear().toString()],
|
years: [],
|
||||||
queryCondition: {
|
queryCondition: {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
@@ -572,7 +573,7 @@ export default {
|
|||||||
}
|
}
|
||||||
console.log(isBack, 'isBack');
|
console.log(isBack, 'isBack');
|
||||||
// Promise.all([apiType.items("org_domain"), apiCase.majorTypes()]).then(rs => {
|
// Promise.all([apiType.items("org_domain"), apiCase.majorTypes()]).then(rs => {
|
||||||
Promise.all([apiType.treeList(1,90,1), apiCase.majorTypes()]).then(rs => {
|
Promise.all([apiType.treeList(1,155,1), apiCase.majorTypes()]).then(rs => {
|
||||||
if (rs[0].code == 200) {
|
if (rs[0].code == 200) {
|
||||||
const {records} = rs[0].data
|
const {records} = rs[0].data
|
||||||
records.forEach(item => {
|
records.forEach(item => {
|
||||||
|
|||||||
@@ -317,7 +317,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 清除 -->
|
<!-- 清除 -->
|
||||||
<div v-if="stagList.length > 0 && !newData" class="search-div" style="padding: 0;">
|
<div v-if="stagList.length > 0 && !newData" class="search-div" style="padding: 0;margin-bottom: 20px;">
|
||||||
<div class="searchbar" style="background-color:#f6f7fb;display: flex;justify-content: space-between;">
|
<div class="searchbar" style="background-color:#f6f7fb;display: flex;justify-content: space-between;">
|
||||||
<div style="line-height: 30px;">
|
<div style="line-height: 30px;">
|
||||||
<span class="item-title"> 搜索条件</span>
|
<span class="item-title"> 搜索条件</span>
|
||||||
@@ -331,7 +331,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 标题最新最热好评率 -->
|
<!-- 标题最新最热好评率 -->
|
||||||
<div class="xcourse-list" style="background-color: #fff;border-radius: 8px;padding:0 25px;margin-top: 20px;">
|
<div class="xcourse-list" style="background-color: #fff;border-radius: 8px;padding:0 25px;">
|
||||||
<div class="order-div" v-if="!newData">
|
<div class="order-div" v-if="!newData">
|
||||||
<span class="quyer-tag">
|
<span class="quyer-tag">
|
||||||
<el-button type="text" class="order-class" @click="orderChange('studys')"
|
<el-button type="text" class="order-class" @click="orderChange('studys')"
|
||||||
@@ -1012,14 +1012,14 @@ export default {
|
|||||||
}
|
}
|
||||||
if (item.children) {
|
if (item.children) {
|
||||||
//增加死数据
|
//增加死数据
|
||||||
item.children.push({
|
// item.children.push({
|
||||||
type: 12,
|
// type: 12,
|
||||||
id: item.id * (index + 200),
|
// id: item.id * (index + 200),
|
||||||
name: '线上品牌系列课程',
|
// name: '线上品牌系列课程',
|
||||||
children: [],
|
// children: [],
|
||||||
checked: false,
|
// checked: false,
|
||||||
newData: true
|
// newData: true
|
||||||
})
|
// })
|
||||||
item.children.forEach(subItem => {
|
item.children.forEach(subItem => {
|
||||||
let newSubItem = {
|
let newSubItem = {
|
||||||
type: 12,
|
type: 12,
|
||||||
|
|||||||
@@ -239,6 +239,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import apiTeach from '@/api/modules/teacher.js';
|
import apiTeach from '@/api/modules/teacher.js';
|
||||||
import { mapGetters, mapActions } from 'vuex';
|
import { mapGetters, mapActions } from 'vuex';
|
||||||
|
import { JSEncrypt } from 'jsencrypt'
|
||||||
import userApi from "@/api/system/user";
|
import userApi from "@/api/system/user";
|
||||||
import accountApi from "@/api/account";
|
import accountApi from "@/api/account";
|
||||||
import apiPassword from '@/api/boe/login.js'
|
import apiPassword from '@/api/boe/login.js'
|
||||||
@@ -538,12 +539,16 @@
|
|||||||
this.checkboxGroup = [];
|
this.checkboxGroup = [];
|
||||||
apiUserhobby.info(this.userInfo.aid).then(res=>{
|
apiUserhobby.info(this.userInfo.aid).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
|
let tlist=[];
|
||||||
res.result.forEach(item=>{
|
res.result.forEach(item=>{
|
||||||
this.checkboxGroup.push(item.refId);
|
|
||||||
item.name = this.sysTypeName(item.refId)
|
item.name = this.sysTypeName(item.refId)
|
||||||
|
if(item.name){
|
||||||
|
this.checkboxGroup.push(item.refId);
|
||||||
|
tlist.push(item);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
// console.log(res.result);
|
// console.log(res.result);
|
||||||
this.interestList = res.result;
|
this.interestList = tlist;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -685,8 +690,32 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updatePassword(){
|
updatePassword(){
|
||||||
|
let $this=this;
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
apiPassword.getRsaPublicKey().then(krs=>{
|
||||||
|
if(krs.code=='0'){
|
||||||
|
let publicKey=krs.data.list.publickey;
|
||||||
|
let encryptor = new JSEncrypt();
|
||||||
|
let rsa ='-----BEGIN PUBLIC KEY-----'+publicKey+'-----END PUBLIC KEY-----';
|
||||||
|
encryptor.setPublicKey(rsa);
|
||||||
|
let mpdata={
|
||||||
|
oldPassword:$this.passwordForm.oldPass,
|
||||||
|
newPassword:encryptor.encrypt($this.passwordForm.newPass),
|
||||||
|
confirmPassword:encryptor.encrypt($this.passwordForm.confirmPass)
|
||||||
|
}
|
||||||
|
apiUserBasic.modifyPassword(mpdata).then(res=>{
|
||||||
|
if(res.status==200){
|
||||||
|
this.$message.success('修改密码成功')
|
||||||
|
this.dialogVisiblePassword = false;
|
||||||
|
}else{
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$this.$message.error('获取公钥错误:'+res.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
// apiPassword.modifyPassword({oldPassword:this.passwordForm.oldPass,newPassword:this.passwordForm.newPass,confirmPassword:this.passwordForm.confirmPass}).then(res=>{
|
// apiPassword.modifyPassword({oldPassword:this.passwordForm.oldPass,newPassword:this.passwordForm.newPass,confirmPassword:this.passwordForm.confirmPass}).then(res=>{
|
||||||
// if(res.status==200){
|
// if(res.status==200){
|
||||||
// this.$message.success('修改密码成功')
|
// this.$message.success('修改密码成功')
|
||||||
@@ -695,14 +724,6 @@
|
|||||||
// this.$message.error(res.message);
|
// this.$message.error(res.message);
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
apiUserBasic.modifyPassword({oldPassword:this.passwordForm.oldPass,newPassword:this.passwordForm.newPass,confirmPassword:this.passwordForm.confirmPass}).then(res=>{
|
|
||||||
if(res.status==200){
|
|
||||||
this.$message.success('修改密码成功')
|
|
||||||
this.dialogVisiblePassword = false;
|
|
||||||
}else{
|
|
||||||
this.$message.error(res.message);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user