Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zj-manage
Overview
Overview
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
new-zhengjiang
zj-manage
Commits
41b0de89
Commit
41b0de89
authored
May 24, 2023
by
songwenlu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx
parent
587c9b13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
69 deletions
+43
-69
request.js
src/utils/request.js
+2
-2
index.vue
src/views/FamilyManage/index.vue
+41
-67
No files found.
src/utils/request.js
View file @
41b0de89
...
...
@@ -3,9 +3,9 @@ import { Message } from "element-ui";
import
{
getToken
}
from
"@/utils/auth"
;
const
config
=
{
// proxy: 'http://192.168.3.144:9089/
', // 本地
proxy
:
'http://192.168.3.87:8881
'
,
// 本地
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
proxy
:
"http://81.69.231.72:8881/"
,
// 测试地址
//
proxy: "http://81.69.231.72:8881/", // 测试地址
};
//axios基本配置
...
...
src/views/FamilyManage/index.vue
View file @
41b0de89
...
...
@@ -7,10 +7,7 @@
class=
"search_form"
style=
"text-align: left; margin-bottom: 10px"
>
<el-form-item
label=
"姓名"
label-width=
"200"
>
<el-form-item
label=
"姓名"
label-width=
"200"
>
<el-input
v-model=
"searchForm.name"
placeholder=
"请输入姓名"
...
...
@@ -57,10 +54,7 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
查询
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -73,39 +67,41 @@
:pagination=
"pagination"
@
Jump=
"jumpPage"
>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"380"
align=
"left"
>
<template
#
state
>
<el-table-column
label=
"状态描述"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
round
@
click=
"view(scope.row)"
>
查看
</el-button>
<el-tag
:type=
"scope.row.stateCode=='0'? '':scope.row.stateCode=='002'? 'danger': 'success'"
>
{{
scope
.
row
.
state
}}
</el-tag>
</
template
>
</el-table-column>
</template>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"380"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
round
@
click=
"view(scope.row)"
>
查看
</el-button
>
<el-button
type=
"warning"
size=
"mini"
round
@
click=
"getRecord(scope.row)"
>
记录
</el-button>
>
记录
</el-button
>
<el-button
v-if=
"scope.row.state=='待审核
'"
v-if=
"scope.row.stateCode == '0
'"
type=
"success"
size=
"mini"
round
@
click=
"auditHandle(scope.row,'0')"
>
通过
</el-button>
@
click=
"auditHandle(scope.row, '0')"
>
通过
</el-button
>
<el-button
type=
"danger"
size=
"mini"
round
v-if=
"scope.row.state=='待审核'"
@
click=
"auditHandle(scope.row,'1')"
>
拒绝
</el-button>
v-if=
"scope.row.stateCode == '0'"
@
click=
"auditHandle(scope.row, '1')"
>
拒绝
</el-button
>
<!-- 公示期的单子可以暂停公示 -->
<!--
<el-button
...
...
@@ -161,11 +157,11 @@
>
<!-- 通过0 拒绝1 -->
<div
v-if=
"flag == 1"
>
<span>
确定拒绝该家庭码的申请吗?确定的话请
<span
style=
"color: red"
>
选择和输入
</span>
拒绝原因
</span>
<div
style=
"margin-top:15px"
>
<span>
确定拒绝该家庭码的申请吗?确定的话请
输入
拒绝原因
</span>
<div
style=
"margin-top:
15px"
>
<el-input
type=
"textarea"
:autosize=
"{ minRows: 4, maxRows: 4}"
:autosize=
"{ minRows: 4, maxRows: 4
}"
placeholder=
"请输入拒绝原因"
v-model=
"auditData.record"
>
...
...
@@ -174,12 +170,12 @@
</div>
<div
v-else
>
<span>
确定通过该家庭码的申请吗?确定的话请
<span
style=
"color: red"
>
选择通过状态
</span>
和输入说明
</span>
<el-form
:model=
"auditData"
label-width=
"80px"
ref=
"form"
<span
>
确定通过该家庭码的申请吗?确定的话请
<span
style=
"color: red"
>
选择通过状态
</span
>
和输入说明
</span
>
<el-form
:model=
"auditData"
label-width=
"80px"
ref=
"form"
>
<el-form-item
label=
"状态码"
>
<el-select
v-model=
"auditData.stateCode"
...
...
@@ -194,31 +190,21 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"说明"
prop=
"record"
>
<el-form-item
label=
"说明"
prop=
"record"
>
<el-input
type=
"textarea"
placeholder=
"请输入说明"
v-model=
"auditData.record"
:autosize=
"{ minRows: 4, maxRows: 4}"
:autosize=
"{ minRows: 4, maxRows: 4
}"
>
</el-input>
</el-form-item>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelBtn"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmBtn"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"confirmBtn"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 人才详情的对话框 -->
...
...
@@ -286,10 +272,7 @@
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- 申请的单子有通过拒绝-->
<!-- <el-button type="danger" size="mini" round @click="deny(viewRow)"
>拒绝
...
...
@@ -308,15 +291,8 @@
>
<div
class=
"content"
>
<
template
v-if=
"record && record.length > 0"
>
<div
class=
"cell"
:key=
"index"
v-for=
"(item, index) in record"
>
<p
class=
"label"
style=
"margin-right: 20px"
>
<div
class=
"cell"
:key=
"index"
v-for=
"(item, index) in record"
>
<p
class=
"label"
style=
"margin-right: 20px"
>
{{
item
?.
state
}}
<span
v-if=
"item?.record"
>
(
{{
item
?.
record
}}
)
</span>
</p>
...
...
@@ -329,7 +305,6 @@
<p
v-else
>
暂无记录~
</p>
</div>
</el-dialog>
</div>
</template>
...
...
@@ -421,6 +396,7 @@ export default {
key
:
"state"
,
label
:
"状态描述"
,
width
:
250
,
type
:
"slot"
,
},
{
...
...
@@ -525,10 +501,8 @@ export default {
value
:
item
.
code
,
};
});
});
getReviewState
(
1
).
then
((
res
)
=>
{
let
arr
=
[];
res
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
state
!=
"不符合"
)
{
...
...
@@ -591,13 +565,13 @@ export default {
if
(
this
.
flag
==
0
)
{
// 通过
if
(
this
.
auditData
.
stateCode
)
{
console
.
log
(
this
.
auditData
,
"审核"
);
console
.
log
(
this
.
auditData
,
"审核"
);
familyAudit
(
this
.
auditData
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
res
.
msg
||
"审核成功"
);
this
.
auditDialog
=
false
;
this
.
init
();
}
else
{
}
else
{
this
.
$message
.
success
(
res
.
msg
||
"审核失败"
);
}
});
...
...
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