Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
whp-xl
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhichao
whp-xl
Commits
c60fa9f2
Commit
c60fa9f2
authored
Jun 05, 2021
by
lizhichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业审核、企业用户管理
parent
cd6a914e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
264 additions
and
12 deletions
+264
-12
index.ts
dcit-hcsystem-hcsystem-master/src/router/index.ts
+9
-0
http.ts
dcit-hcsystem-hcsystem-master/src/utils/http.ts
+3
-2
methods.ts
dcit-hcsystem-hcsystem-master/src/utils/methods.ts
+1
-0
EnterprisesCheck.vue
...csystem-master/src/views/Enterprises/EnterprisesCheck.vue
+234
-0
EnterprisesMg.vue
...m-hcsystem-master/src/views/Enterprises/EnterprisesMg.vue
+11
-8
EnterprisesMgEdit.vue
...system-master/src/views/Enterprises/EnterprisesMgEdit.vue
+2
-2
Login.vue
dcit-hcsystem-hcsystem-master/src/views/Login/Login.vue
+4
-0
No files found.
dcit-hcsystem-hcsystem-master/src/router/index.ts
View file @
c60fa9f2
...
...
@@ -207,6 +207,15 @@ export const defalutRouterMap = [
},
component
:
()
=>
import
(
'@/views/Enterprises/EnterprisesMg.vue'
)
},
{
path
:
'/EnterprisesCheck'
,
name
:
'qyshgl'
,
meta
:
{
title
:
'企业审核管理'
,
icon
:
''
,
},
component
:
()
=>
import
(
'@/views/Enterprises/EnterprisesCheck.vue'
)
},
]
},
{
...
...
dcit-hcsystem-hcsystem-master/src/utils/http.ts
View file @
c60fa9f2
import
axios
,
{
AxiosResponse
,
AxiosRequestConfig
}
from
'axios'
;
import
{
Message
}
from
'element-ui'
;
import
router
from
'@/router'
import
METHOD
from
"@/utils/methods"
;
/*
*http工具
*请求拦截器 负责将客户端标识token值存储并置放在头部提交给服务器
...
...
@@ -10,7 +10,8 @@ import router from '@/router'
//创建axios实例
const
service
=
axios
.
create
({
baseURL
:
"http://47.104.61.232:60018/danger/"
,
// baseURL: "http://47.104.61.232:60018/danger/",
baseURL
:
METHOD
.
URL
,
// baseURL:"http://192.168.1.104:60018/danger/",
timeout
:
10000
,
//超时时间
headers
:
{
...
...
dcit-hcsystem-hcsystem-master/src/utils/methods.ts
View file @
c60fa9f2
...
...
@@ -7,6 +7,7 @@ export default {
AlarmMg
:
'Alarm'
,
EnseList
:
'EnseList'
,
EnterprisesMg
:
'Enterprises'
,
EnterprisesCheck
:
'Enterprises'
,
GIS
:
'GIS'
,
HazardsListMg
:
'Hazards'
,
PlansMg
:
'Plans'
,
...
...
dcit-hcsystem-hcsystem-master/src/views/Enterprises/EnterprisesCheck.vue
0 → 100644
View file @
c60fa9f2
<
template
>
<div
class=
"EnseList"
>
<el-row
class=
"topBar"
>
<el-col>
<el-form
:inline=
"true"
:model=
"searchData"
>
<el-form-item>
<el-input
v-model=
"searchData.unitName"
placeholder=
"请输入企业名称查询"
></el-input>
</el-form-item>
<el-form-item
label
>
<el-select
clearable
v-model=
"searchData.accountStatus"
placeholder=
"请选择审核状态"
>
<el-option
label=
"待审核企业"
value=
"3"
></el-option>
<el-option
label=
"已审核企业"
value=
"0"
></el-option>
<el-option
label=
"已拒绝企业"
value=
"4"
></el-option>
</el-select>
</el-form-item>
<!--
<el-form-item>
<el-input
v-model=
"searchData.userName"
placeholder=
"请输入用户名查询"
></el-input>
</el-form-item>
<el-form-item>
<el-input
v-model=
"searchData.orgCode"
placeholder=
"请输入组织机构代码查询"
></el-input>
</el-form-item>
-->
<!--
<el-form-item>
<City
@
changeFun=
"changeFun"
:valueqv=
"cityval"
></City>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
@
click=
"searchFun()"
>
<i
class=
"el-icon-search"
></i>
搜索
</el-button>
<el-button
type=
"primary"
@
click=
"resetFun()"
>
<i
class=
"el-icon-refresh"
></i>
重置
</el-button>
</el-form-item>
</el-form>
</el-col>
</el-row>
<el-table
:data=
"tableData.pageData"
stripe
border
style=
"width:100%;"
:loading=
"loading"
>
<el-table-column
width=
"50"
type=
"index"
label=
"序号"
></el-table-column>
<el-table-column
prop=
"unitName"
label=
"企业名称"
></el-table-column>
<el-table-column
width=
"100"
prop=
"legalPerson"
label=
"企业法人"
></el-table-column>
<el-table-column
prop=
"orgCode"
label=
"组织机构代码"
></el-table-column>
<el-table-column
prop=
"legalPersonEmail"
label=
"法人邮箱"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"管理员名称"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"申请时间"
></el-table-column>
<el-table-column
width=
"120"
prop=
"status"
label=
"账号状态"
>
<template
slot-scope=
"scope"
>
<font
v-if=
"scope.row.accountStatus === '0'"
class=
"colorM"
>
<i
class=
"iconfont iconzhengchang"
></i>
正常
</font>
<font
v-else-if=
"scope.row.accountStatus == 2"
class=
"colorP"
>
<i
class=
"iconfont iconsuoding"
></i>
已锁定
</font>
<font
v-else-if=
"scope.row.accountStatus == 1"
class=
"colorR"
>
<i
class=
"iconfont iconicon_huabanfuben"
></i>
已删除
</font>
<font
v-else-if=
"scope.row.accountStatus == 3"
class=
"colorP"
>
<i
class=
"iconfont iconshenhe"
></i>
审核中
</font>
<font
v-else-if=
"scope.row.accountStatus == 4"
class=
"colorR"
>
<i
class=
"iconfont iconweitongguo"
></i>
审核未通过
</font>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"320"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"success"
size=
"small"
@
click=
"verrifyFun(scope.row)"
>
<i
class=
"el-icon-key"
></i>
审核/查看
</el-button>
<!--
<el-button
type=
"warning"
size=
"small"
@
click=
"resetPw(scope.row)"
v-if=
"scope.row.accountStatus != 1"
>
<i
class=
"el-icon-star-off"
></i>
重置密码
</el-button>
-->
<!--
<el-button
type=
"danger"
size=
"small"
@
click=
"setLock(scope.row)"
v-if=
"flase"
>
<i
class=
"el-icon-lock"
></i>
注销
</el-button>
-->
</
template
>
</el-table-column>
</el-table>
<el-pagination
background
layout=
"total,sizes, prev, pager, next, jumper"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"PAGE.page"
:page-size=
"PAGE.size"
></el-pagination>
<EnterprisesMgEdit
v-if=
"dialogVisible"
:dialogVisible=
"dialogVisible"
:editFormA=
"formData"
@
dialogFun=
"closeDialog"
@
refreshTableData=
"getTableData"
:key=
"zjKey"
></EnterprisesMgEdit>
</div>
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Provide
}
from
"vue-property-decorator"
;
import
EnterprisesMgEdit
from
"./EnterprisesMgEdit.vue"
;
import
City
from
"@/components/city.vue"
;
import
METHOD
from
"@/utils/methods"
;
@
Component
({
components
:
{
EnterprisesMgEdit
,
City
}
})
export
default
class
EnterprisesMg
extends
Vue
{
@
Provide
()
tableData
:
Object
=
{
pageData
:
[],
total
:
0
};
@
Provide
()
PAGE
:
any
=
{
page
:
1
,
size
:
10
};
@
Provide
()
searchData
:
any
=
{};
@
Provide
()
loading
:
Boolean
=
false
;
@
Provide
()
cityval
:
any
=
[];
//编辑组件
@
Provide
()
dialogVisible
:
Boolean
=
false
;
@
Provide
()
formData
:
any
=
{
dataType
:
""
,
enterpriseId
:
""
};
@
Provide
()
zjKey
:
any
=
0
;
getTableData
()
{
let
that
=
this
;
that
.
searchData
.
accountNotDel
=
true
;
let
param
=
Object
.
assign
({},
that
.
PAGE
,
that
.
searchData
);
that
.
loading
=
true
;
METHOD
.
axiosPost
(
that
,
`/enterpriseInfo/queryEnterpriseInfo`
,
param
,
function
(
res
:
any
)
{
that
.
loading
=
false
;
if
(
res
.
code
==
0
)
{
that
.
tableData
=
res
.
data
;
}
}
);
}
searchFun
()
{
this
.
PAGE
=
{
page
:
1
,
size
:
10
};
this
.
getTableData
();
}
resetFun
()
{
this
.
PAGE
=
{
page
:
1
,
size
:
10
};
this
.
searchData
=
{
unitName
:
""
};
this
.
getTableData
();
this
.
cityval
=
[];
}
handleSizeChange
(
val
:
any
)
{
this
.
PAGE
.
size
=
val
;
this
.
getTableData
();
}
handleCurrentChange
(
val
:
any
)
{
this
.
PAGE
.
page
=
val
;
this
.
getTableData
();
}
closeDialog
()
{
//关闭窗口
this
.
dialogVisible
=
false
;
this
.
formData
=
{};
}
selectChange
(
val
:
any
)
{
this
.
searchData
.
dataType
=
val
;
this
.
getTableData
();
}
verrifyFun
(
row
:
any
)
{
this
.
formData
=
Object
.
assign
({},
row
);
this
.
zjKey
++
;
this
.
dialogVisible
=
true
;
}
setLock
(
row
:
any
)
{
let
that
=
this
;
that
.
$confirm
(
`确定锁定企业
${
row
.
unitName
}
吗?`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
METHOD
.
axiosPost
(
that
,
`/enterpriseInfo/cancelEnterpriseInfoById/
${
row
.
enterpriseId
}
`
,
{
remarks
:
""
},
function
(
res
:
any
)
{
if
(
res
.
code
==
0
)
{
(
that
as
any
).
$message
({
type
:
"success"
,
message
:
"注销成功!"
});
that
.
getTableData
();
}
}
);
});
}
/*选择城市*/
changeFun
(
v
:
any
)
{
this
.
searchData
.
provinceId
=
v
[
0
];
this
.
searchData
.
cityId
=
v
[
1
];
this
.
searchData
.
countyId
=
v
[
2
];
}
resetPw
(
row
:
any
)
{
let
that
=
this
;
(
that
as
any
)
.
$confirm
(
"确定重置用户 "
+
row
.
userName
+
" 的密码 为 66668888 吗?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
METHOD
.
axiosGet
(
that
,
`/user/resetUserPwd/
${
row
.
userId
}
`
,
function
(
res
:
any
)
{
if
(
res
.
code
==
0
)
{
(
that
as
any
).
$message
({
type
:
"success"
,
message
:
"重置成功!"
});
}
});
});
}
created
()
{
this
.
getTableData
();
}
}
</
script
>
<
style
lang=
"scss"
>
@import
"@/utils/public.scss"
;
@media
screen
and
(
max-width
:
1350px
)
{
main
>
div
.el-table
{
height
:
calc
(
100%
-
150px
);
}
}
.el-dialog__body
{
padding
:
10px
20px
!
important
;
color
:
#606266
;
font-size
:
14px
;
word-break
:
break-all
;
}
</
style
>
\ No newline at end of file
dcit-hcsystem-hcsystem-master/src/views/Enterprises/EnterprisesMg.vue
View file @
c60fa9f2
...
...
@@ -12,9 +12,9 @@
<el-form-item>
<el-input
v-model=
"searchData.orgCode"
placeholder=
"请输入组织机构代码查询"
></el-input>
</el-form-item>
<el-form-item>
<
!--
<
el-form-item>
<City
@
changeFun=
"changeFun"
:valueqv=
"cityval"
></City>
</el-form-item>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
@
click=
"searchFun()"
>
<i
class=
"el-icon-search"
></i>
搜索
...
...
@@ -29,12 +29,12 @@
<el-table
:data=
"tableData.pageData"
stripe
border
style=
"width:100%;"
:loading=
"loading"
>
<el-table-column
width=
"50"
type=
"index"
label=
"序号"
></el-table-column>
<el-table-column
prop=
"unitName"
label=
"企业名称"
></el-table-column>
<el-table-column
prop=
"legalPerson"
label=
"企业法人"
></el-table-column>
<el-table-column
width=
"100"
prop=
"legalPerson"
label=
"企业法人"
></el-table-column>
<el-table-column
prop=
"orgCode"
label=
"组织机构代码"
></el-table-column>
<el-table-column
prop=
"legalPersonEmail"
label=
"法人邮箱"
></el-table-column>
<el-table-column
prop=
"userName"
label=
"管理员名称"
></el-table-column>
<el-table-column
prop=
"account"
label=
"管理员账号"
></el-table-column>
<el-table-column
prop=
"status"
label=
"账号状态"
>
<el-table-column
width=
"120"
prop=
"status"
label=
"账号状态"
>
<template
slot-scope=
"scope"
>
<font
v-if=
"scope.row.accountStatus === '0'"
class=
"colorM"
>
<i
class=
"iconfont iconzhengchang"
></i>
正常
...
...
@@ -55,15 +55,18 @@
</el-table-column>
<el-table-column
label=
"操作"
width=
"320"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"success"
size=
"small"
@
click=
"verrifyFun(scope.row)"
>
<
!--
<
el-button
type=
"success"
size=
"small"
@
click=
"verrifyFun(scope.row)"
>
<i
class=
"el-icon-key"
></i>
审核/查看
</el-button>
<el-button
type=
"warning"
size=
"small"
@
click=
"resetPw(scope.row)"
v-if=
"scope.row.accountStatus
!= 1
"
>
</el-button>
-->
<el-button
type=
"warning"
size=
"small"
@
click=
"resetPw(scope.row)"
v-if=
"scope.row.accountStatus
=== '0'
"
>
<i
class=
"el-icon-star-off"
></i>
重置密码
</el-button>
<el-button
type=
"danger"
size=
"small"
@
click=
"setLock(scope.row)"
v-if=
"scope.row.accountStatus
!= 1
"
>
<el-button
type=
"danger"
size=
"small"
@
click=
"setLock(scope.row)"
v-if=
"scope.row.accountStatus
=== '0'
"
>
<i
class=
"el-icon-lock"
></i>
注销
</el-button>
<el-button
type=
"success"
size=
"small"
@
click=
"setLock(scope.row)"
v-if=
"scope.row.accountStatus === '2'"
>
<i
class=
"el-icon-unlock"
></i>
启用
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
dcit-hcsystem-hcsystem-master/src/views/Enterprises/EnterprisesMgEdit.vue
View file @
c60fa9f2
...
...
@@ -72,8 +72,8 @@
{{
editForm
.
account
}}
</div>
</div>
<el-form
ref=
"editForm"
:model=
"editForm"
:rules=
"rules"
label-width=
"1
0
0px"
v-if=
"editFormA.accountStatus != 1"
>
<el-form-item
label=
"企业账号状态"
prop=
"accountStatus"
>
<el-form
ref=
"editForm"
:model=
"editForm"
:rules=
"rules"
label-width=
"1
1
0px"
v-if=
"editFormA.accountStatus != 1"
>
<el-form-item
style=
"padding-top: 10px;"
label=
"企业账号状态"
prop=
"accountStatus"
>
<el-radio-group
v-model=
"editForm.accountStatus"
@
change=
"radioChange"
>
<el-radio
:label=
"'0'"
>
审核通过
</el-radio>
<el-radio
:label=
"'4'"
>
审核不通过
</el-radio>
...
...
dcit-hcsystem-hcsystem-master/src/views/Login/Login.vue
View file @
c60fa9f2
...
...
@@ -182,6 +182,10 @@ export default class Login extends Vue {
JSON
.
stringify
(
res
.
data
.
userInfo
)
);
sessionStorage
.
setItem
(
"token"
,
JSON
.
stringify
(
res
.
data
.
token
));
if
(
res
.
data
.
userInfo
.
accountStatus
===
'2'
){
that
.
$message
.
error
(
"该用户已被锁定,请联系管理员!"
);
return
;
}
//登陆成功跳转页面
that
.
addDouter
(
res
.
data
.
userInfo
.
roleMenuList
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment