角色详情

cyl/dev
wangxia 2 years ago
parent 9da3f3bac5
commit 2b60db299b

@ -85,11 +85,20 @@ export function getPointDetailApi (data) {
data: data, data: data,
}); });
} }
// 登录状态账号设置修改密码 // 老的登录状态账号设置修改密码
// export function setUserPswApi (data) {
// return request({
// url: "/yishoudan/changePassword",
// method: "post",
// data: setqs(data),
// });
// }
// 新的登录状态账号设置修改密码
export function setUserPswApi (data) { export function setUserPswApi (data) {
return request({ return request({
url: "/yishoudan/changePassword", url: "/yishoudan/updatePasswordByPwd",
method: "post", method: "post",
data: setqs(data), data: setqs(data),
}); });

@ -116,7 +116,7 @@
</ul>--> </ul>-->
<div> <div>
<span> <span>
powered by Powered by
<svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true"> <svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true">
<use xlink:href="#icon-bocai2" /> <use xlink:href="#icon-bocai2" />
</svg>Copyright © 2015-2023 Bocai. All Rights Reserved. </svg>Copyright © 2015-2023 Bocai. All Rights Reserved.

@ -40,22 +40,7 @@
</a-input> </a-input>
</a-form-item> </a-form-item>
<a-form-item label="确认密码" style="text-align: left"> <a-form-item label="确认密码" style="text-align: left">
<a-input v-decorator="[ <a-input v-decorator="['repassword',{ rules: [ { required: true,message: '请再次输入新密码', }, { validator: replacepassword,}, ], validateTrigger: 'submit', validateFirst: true,},]" type="password" placeholder="请再次输入密码">
'repassword',
{
rules: [
{
required: true,
message: '请再次输入新密码',
},
{
validator: replacepassword,
},
],
validateTrigger: 'submit',
validateFirst: true,
},
]" type="password" placeholder="请再次输入密码">
<!-- <i slot="prefix" class="iconfont icon-mima" /> --> <!-- <i slot="prefix" class="iconfont icon-mima" /> -->
</a-input> </a-input>
</a-form-item> </a-form-item>
@ -90,6 +75,7 @@ export default {
components: { components: {
updatepsw, updatepsw,
}, },
inject: ['logout'],
// //
props: { props: {
userinfo: { userinfo: {
@ -111,7 +97,8 @@ export default {
computed: {}, computed: {},
// //
watch: { watch: {
userinfo() { userinfo: {
handler() {
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.userinfo) console.log(this.userinfo)
@ -119,6 +106,8 @@ export default {
console.log(this.username) console.log(this.username)
}) })
}, },
immediate: true,
},
}, },
// //
/** /**
@ -143,9 +132,9 @@ export default {
console.log(values) console.log(values)
if (!err) { if (!err) {
this.btnLoading = true this.btnLoading = true
params.repassword = values.repassword params.tel = this.userinfo.tel
params.newpassword = values.newpassword params.password = values.newpassword
params.password = values.password params.oldPassword = values.password
try { try {
const { data } = await setUserPswApi(params) const { data } = await setUserPswApi(params)
console.log(data) console.log(data)
@ -154,7 +143,7 @@ export default {
this.$message.success('密码修改成功') this.$message.success('密码修改成功')
this.btnLoading = false this.btnLoading = false
this.form.resetFields() this.form.resetFields()
this.logout()
// this.reload() // this.reload()
}, 1000) }, 1000)
} else { } else {

@ -679,7 +679,7 @@ export default {
created() { created() {
this.contentListSearchForm.start = moment().add(-0, 'd').format('YYYY-MM-DD') this.contentListSearchForm.start = moment().add(-0, 'd').format('YYYY-MM-DD')
this.contentListSearchForm.end = moment().format('YYYY-MM-DD') this.contentListSearchForm.end = moment().format('YYYY-MM-DD')
this.billList = [...this.billList, ...this.billList, ...this.billList] // this.billList = [...this.billList, ...this.billList, ...this.billList]
tableWidth(this, this.columns, 120) tableWidth(this, this.columns, 120)
console.log(this.currWidth) console.log(this.currWidth)
this.$emit('setTitle', '团队数据') this.$emit('setTitle', '团队数据')
@ -745,7 +745,7 @@ export default {
end = moment().format('YYYY-MM-DD') end = moment().format('YYYY-MM-DD')
} else if (tag == 2) { } else if (tag == 2) {
that.checked2 = true that.checked2 = true
start = moment().startOf('week').format('YYYY-MM-DD') start = moment().startOf('week').weekday(-1).format('YYYY-MM-DD')
end = moment().format('YYYY-MM-DD') end = moment().format('YYYY-MM-DD')
} else if (tag == 3) { } else if (tag == 3) {
that.checked3 = true that.checked3 = true
@ -829,8 +829,6 @@ export default {
console.log(item) console.log(item)
console.log(index) console.log(index)
}) })
console.log(this.contentListSearchForm.start)
console.log(this.contentListSearchForm.end)
console.log(newList) console.log(newList)
if (this.menuType == 'group') { if (this.menuType == 'group') {
console.log('isgroup') console.log('isgroup')

@ -36,7 +36,7 @@
<button @click="changepage(1)"></button> <button @click="changepage(1)"></button>
</div> </div>
</div> </div>
<a-table :columns="columns" class="" :data-source="data" :pagination="false" @change="onChange" :loading="{ spinning: isspinning, tip: '加载中', wrapperClassName: 'spinstyle', }" :rowKey="(record) => record.index"> <a-table :columns="columns" class :data-source="data" :pagination="false" @change="onChange" :loading="{ spinning: isspinning, tip: '加载中', wrapperClassName: 'spinstyle', }" :rowKey="(record) => record.index">
<a slot="name" slot-scope="text" style="height:0px">{{ text }}</a> <a slot="name" slot-scope="text" style="height:0px">{{ text }}</a>
<a slot="userDetail" style="color: #ff4400;height:0px" slot-scope="text, text1" @click="toDetail(text1)"></a> <a slot="userDetail" style="color: #ff4400;height:0px" slot-scope="text, text1" @click="toDetail(text1)"></a>
</a-table> </a-table>
@ -152,11 +152,21 @@
<div class="cb-cricle"></div> <div class="cb-cricle"></div>
<div class="ui-list-info"> <div class="ui-list-info">
<!-- :style="padding-bottom: item.desp == '' ? '18px' : '24px';" --> <!-- :style="padding-bottom: item.desp == '' ? '18px' : '24px';" -->
<div class="f12 c6" style="white-space: pre-line" v-if="item.desp != ''"> <div class="f12 c6" style="white-space: pre-line" v-html="item.desp" v-if="item.desp != ''">
{{ item.desp }} <!-- {{ }} -->
<template v-if="item.policy"> <template v-if="item.policy">
<span class="ml12" style="color: #ff4400; cursor: pointer" @click="showInfo2(item.policy)"></span> <span class="ml12" style="color: #ff4400; cursor: pointer" @click="showInfo2(item.policy)"></span>
</template> </template>
</div>
<div class="f12 c9">
{{ item.creator }}
<span class="ml8">{{ formatDateYMDHM(item.createTime) }}</span>
</div>
</div>
</div>
</template>
</div>
</div>
<a-modal class="billDetailModal recordInfo" title="报名信息" :visible="zzvisible" @cancel="policyModalCancel" width="716px" :footer="null"> <a-modal class="billDetailModal recordInfo" title="报名信息" :visible="zzvisible" @cancel="policyModalCancel" width="716px" :footer="null">
<a-row class="f16 mb8"> <a-row class="f16 mb8">
<a-col :span="4"> <a-col :span="4">
@ -218,17 +228,6 @@
</a-col> </a-col>
</a-row> </a-row>
</a-modal> </a-modal>
</div>
<div class="f12 c9">
{{ item.creator }}
<span class="ml8">{{ formatDateYMDHM(item.createTime) }}</span>
</div>
</div>
</div>
</template>
</div>
</div>
<a-modal class="editDetailModal" transitionName centered v-model="editTownsmanVisibel" width="716px" @cancel="cancelEditTownsman" :footer="null" destroyOnClose> <a-modal class="editDetailModal" transitionName centered v-model="editTownsmanVisibel" width="716px" @cancel="cancelEditTownsman" :footer="null" destroyOnClose>
<div slot="title">老乡信息</div> <div slot="title">老乡信息</div>
<div class="editInfoContent"> <div class="editInfoContent">
@ -772,7 +771,7 @@ export default {
console.log(this.allOrders) console.log(this.allOrders)
this.allOrders.forEach((item1, index) => { this.allOrders.forEach((item1, index) => {
this.replaceIndex(item1, index) this.replaceIndex(item1, index)
console.log(item1) // console.log(item1)
for (var key in item1.records) { for (var key in item1.records) {
// console.log(key, item1.records[key]); // console.log(key, item1.records[key]);
item1.records[key].forEach((item, index) => { item1.records[key].forEach((item, index) => {
@ -809,7 +808,7 @@ export default {
} }
}) })
console.log(this.allOrders) console.log(this.allOrders)
this.allOrders = this.allOrders.reverse() // this.allOrders = this.allOrders.reverse()
}) })
this.getTownsmanImg(e) this.getTownsmanImg(e)
}, },

@ -52,7 +52,7 @@
</ul> </ul>
</div> </div>
<span v-if="isLogin" class="logined fsa"> <span v-if="isLogin" class="logined fsa">
<div class="" v-if="loginValue.agencyName == '郑州一才工作' && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 )"> <div class v-if="loginValue.agencyName == '郑州一才工作' && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 )">
<a-dropdown overlayClassName="logindropdown" placement="bottomRight"> <a-dropdown overlayClassName="logindropdown" placement="bottomRight">
<div class="mr20"> <div class="mr20">
<svg class="svg_icon f16" aria-hidden="true"> <svg class="svg_icon f16" aria-hidden="true">
@ -263,7 +263,7 @@
</ul>--> </ul>-->
<div> <div>
<span> <span>
powered by Powered by
<svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true"> <svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true">
<use xlink:href="#icon-bocai2" /> <use xlink:href="#icon-bocai2" />
</svg>Copyright © 2015-2023 Bocai. All Rights Reserved. </svg>Copyright © 2015-2023 Bocai. All Rights Reserved.
@ -291,6 +291,7 @@ export default {
provide() { provide() {
return { return {
getJobList: this.getJobList, getJobList: this.getJobList,
logout: this.logout,
} }
}, },
// //

@ -95,7 +95,7 @@
</a-layout-content> </a-layout-content>
<a-layout-footer :style="{ marginLeft: pLeft }" class="tac f12" style="textalign: center"> <a-layout-footer :style="{ marginLeft: pLeft }" class="tac f12" style="textalign: center">
<span> <span>
powered by Powered by
<svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true"> <svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true">
<use xlink:href="#icon-bocai2" /> <use xlink:href="#icon-bocai2" />
</svg>Copyright © 2015-2023 Bocai. All Rights Reserved. </svg>Copyright © 2015-2023 Bocai. All Rights Reserved.

@ -146,7 +146,7 @@
</ul>--> </ul>-->
<div> <div>
<span> <span>
powered by Powered by
<svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true"> <svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true">
<use xlink:href="#icon-bocai2" /> <use xlink:href="#icon-bocai2" />
</svg>Copyright © 2015-2023 Bocai. All Rights Reserved. </svg>Copyright © 2015-2023 Bocai. All Rights Reserved.

Loading…
Cancel
Save