diff --git a/src/api/customer.js b/src/api/customer.js
index 8f96a4d..7cdf748 100644
--- a/src/api/customer.js
+++ b/src/api/customer.js
@@ -6,6 +6,13 @@ export function getCategoryList(params) {
params
});
}
+// 分页查询个人收藏
+export function getPolicyCollect(params) {
+ return request({
+ url: '/companyUser/getPolicyCollect',
+ params
+ });
+}
// 禁用/启用企业 isOpen = true代表启用
export function handleCompanyUser(params) {
return request({
diff --git a/src/views/account/index.vue b/src/views/account/index.vue
index 9e5129e..7cf12b8 100644
--- a/src/views/account/index.vue
+++ b/src/views/account/index.vue
@@ -65,11 +65,19 @@
>启用
升级
+ 已升级
{
- resetPw({ userId, password: value }).then(({ data }) => {
+ resetPw({ userId, password: this.md5(value) }).then(({ data }) => {
this.msgSuccess(data);
});
})
diff --git a/src/views/customer/add.vue b/src/views/customer/add.vue
index 2f1966d..ba7a26b 100644
--- a/src/views/customer/add.vue
+++ b/src/views/customer/add.vue
@@ -13,7 +13,7 @@
@@ -22,6 +22,8 @@
@@ -29,6 +31,8 @@
@@ -36,6 +40,8 @@
@@ -80,6 +86,8 @@
@@ -87,6 +95,8 @@
@@ -117,8 +127,8 @@
-
-
+
+
{
if (data === 500) return this.msgError('该手机号已被注册');
+ formData.password = this.md5(formData.password)
addCompanyUser(formData).then(({ message }) => {
this.msgSuccess(message);
this.$router.go(-1);
diff --git a/src/views/customer/index.vue b/src/views/customer/index.vue
index 6ed35a3..e4279e2 100644
--- a/src/views/customer/index.vue
+++ b/src/views/customer/index.vue
@@ -484,7 +484,8 @@ import {
getCategoryList,
handleCompanyUser,
deleteCompanyUser,
- resetPw
+ resetPw,
+ getPolicyCollect
} from '@/api/customer';
import { parseTime } from '@/utils/ruoyi';
import { getToken } from '@/utils/auth';
@@ -570,6 +571,7 @@ export default {
pageNum: 1,
pageSize: 10
},
+ rouId: null,
dialogTotal: 0,
dialogData: [],
formA: {},
@@ -658,33 +660,14 @@ export default {
},
handleCollecDialog(row) {
this.openDialog = true;
- console.log(row.id);
+ this.rouId = row.userId
this.getCollecList();
},
getCollecList() {
- this.dialogData = [
- {
- id: '1447500160736436224',
- method: 1,
- title:
- '关于公开征求《合肥市外国专家“合肥友谊奖”考核暂行办法》(修订版)意见的通知',
- level: 3,
- attribute: 'KJJ',
- listDate: '2021-10-11',
- source: '外国专家与科技人才管理服务处'
- },
- {
- id: '1447500160736436225',
- method: 1,
- title:
- '关于公开征求《合肥市外国专家“合肥友谊奖”考核暂行办法》(修订版)意见的通知',
- level: 3,
- attribute: 'KJJ',
- listDate: '2021-10-11',
- source: '外国专家与科技人才管理服务处'
- }
- ];
- this.dialogTotal = this.dialogData.length;
+ getPolicyCollect(Object.assign({},this.query,{userId:this.rouId})).then(({data})=>{
+ this.dialogData = data.list
+ this.dialogTotal = data.total
+ })
},
/** 下载模板操作 */
importTemplate() {
diff --git a/src/views/login.vue b/src/views/login.vue
index 6a3d408..9f5535c 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -146,9 +146,10 @@ export default {
Cookies.remove('password');
Cookies.remove('rememberMe');
}
- console.log(this.md5(this.loginForm.password));
+ let loginForm = Object.assign({},this.loginForm)
+ loginForm.password = this.md5(loginForm.password)
this.$store
- .dispatch('Login', this.loginForm)
+ .dispatch('Login', loginForm)
.then(() => {
this.$router.push({ path: this.redirect || '/' });
})
diff --git a/src/views/policy/library/add.vue b/src/views/policy/library/add.vue
index e849a4f..ae7ac93 100644
--- a/src/views/policy/library/add.vue
+++ b/src/views/policy/library/add.vue
@@ -176,7 +176,7 @@ export default {
editSatus: false,
ruleForm: {
title: '',
- ids: '',
+ ids: [],
attribute: '',
listDate: '',
source: '',
@@ -297,6 +297,9 @@ export default {
if (id) {
this.editPage = true;
getPolicyInfo({ policyId: id }).then(({ data }) => {
+ // if(!data.ids.length){
+ // data.ids=['1']
+ // }
this.ruleForm = data;
if(data.method==1){
this.editPage = true;
diff --git a/src/views/policy/tag/index.vue b/src/views/policy/tag/index.vue
index 7aac125..9e2b0c6 100644
--- a/src/views/policy/tag/index.vue
+++ b/src/views/policy/tag/index.vue
@@ -76,6 +76,7 @@
:ref="'editableInput' + index"
size="small"
placeholder="请输入标签信息"
+ maxlength="10"
@keyup.enter.native="handleEditableInputConfirm(tag, index)"
@change="handleEditableInputConfirm(tag, index)"
@blur="handleEditableInputBlur(tag, index)"
diff --git a/src/views/ums/admin/index.vue b/src/views/ums/admin/index.vue
index a5f09d8..dff6053 100644
--- a/src/views/ums/admin/index.vue
+++ b/src/views/ums/admin/index.vue
@@ -83,7 +83,8 @@
-
+
编辑
+
+
+ 重置密码
删除
+
@@ -134,7 +144,7 @@
-
+
{
+ updateAdmin(userId, {password:this.md5(value)}).then(({message}) => {
+ this.msgSuccess(message);
+ });
+ })
+ .catch(() => {});
+ },
handleDelete(index, row) {
this.$confirm('是否要删除该用户?', '提示', {
confirmButtonText: '确定',
@@ -313,6 +339,7 @@ export default {
handleUpdate(index, row) {
this.dialogVisible = true;
this.isEdit = true;
+ delete row.password
this.admin = Object.assign({}, row);
},
submitForm(formName){
@@ -338,7 +365,9 @@ export default {
this.getList();
});
} else {
- createAdmin(this.admin).then(response => {
+ let admin = Object.assign({},this.admin)
+ admin.password = this.md5(admin.password)
+ createAdmin(admin).then(response => {
this.$message({
message: '添加成功!',
type: 'success'
diff --git a/src/views/ums/role/index.vue b/src/views/ums/role/index.vue
index 2a0b071..c9fbcfe 100644
--- a/src/views/ums/role/index.vue
+++ b/src/views/ums/role/index.vue
@@ -30,6 +30,7 @@
listQuery.keyword = stripscript(e)"
class="input-width"
placeholder="角色名称"
clearable