Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
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
徐俊
yn-science-front
Commits
06d833da
Commit
06d833da
authored
Dec 13, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.yiboshi.com/XuJun/yn-science-front
parents
6d52a531
6ab0386c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
115 additions
and
15 deletions
+115
-15
main.js
src/main.js
+1
-1
auditEdit.vue
src/views/audit/components/auditEdit.vue
+3
-3
Index.vue
src/views/audit/project/Index.vue
+17
-2
batchAudit.vue
src/views/audit/project/batchAudit.vue
+87
-0
index.vue
src/views/expert/index.vue
+1
-1
managerSetting.vue
src/views/manager/unit/components/managerSetting.vue
+1
-1
index.vue
src/views/manager/user/index.vue
+1
-1
index.vue
src/views/person/index.vue
+1
-1
index.vue
src/views/report/expert/index.vue
+2
-4
managerSetting.vue
src/views/unit/components/managerSetting.vue
+1
-1
No files found.
src/main.js
View file @
06d833da
...
@@ -27,7 +27,7 @@ Vue.prototype.$api = api
...
@@ -27,7 +27,7 @@ Vue.prototype.$api = api
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$confirm
=
confirm
Vue
.
prototype
.
$confirm
=
confirm
Vue
.
prototype
.
$defaultPageSize
=
10
Vue
.
prototype
.
$defaultPageSize
=
10
Vue
.
prototype
.
$defaultPageSizeOptions
=
[
"10"
,
"20"
,
"50"
,
"100"
]
Vue
.
prototype
.
$defaultPageSizeOptions
=
[
"10"
,
"20"
,
"50"
,
"100"
,
"500"
]
//导出Excel
//导出Excel
Vue
.
prototype
.
$ToDoExcel
=
ToDoExcel
;
Vue
.
prototype
.
$ToDoExcel
=
ToDoExcel
;
...
...
src/views/audit/components/auditEdit.vue
View file @
06d833da
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
<div>
<div>
<a-row>
<a-row>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
<div
class=
"
tb
-title"
>
<div
class=
"
main
-title"
>
<span>
审核
</span>
<span>
审核
</span>
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-row>
<a-row>
<a-row>
<a-col
:span=
"24"
style=
"
margin-top: 6px;
text-align: center;"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<a-form-model-item
prop=
"auditContent"
>
<a-form-model-item
prop=
"auditContent"
>
<a-textarea
v-model=
"auditObj.auditContent"
:auto-size=
"
{ minRows: 5, maxRows: 8 }" :max-length="500" style="width: 60%;height: 115px;" />
<a-textarea
v-model=
"auditObj.auditContent"
:auto-size=
"
{ minRows: 5, maxRows: 8 }" :max-length="500" style="
margin: 4px 4px;
width: 60%;height: 115px;" />
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
</a-row>
</a-row>
...
...
src/views/audit/project/Index.vue
View file @
06d833da
...
@@ -26,12 +26,13 @@
...
@@ -26,12 +26,13 @@
<btn-group
:data=
"tabDate"
:itemCount=
"itemCount"
v-model=
"activekey"
@
change=
"callback"
/>
<btn-group
:data=
"tabDate"
:itemCount=
"itemCount"
v-model=
"activekey"
@
change=
"callback"
/>
</div>
</div>
<div
style=
"display: inline-block;width:50%;text-align: right;"
>
<div
style=
"display: inline-block;width:50%;text-align: right;"
>
<a-button
type=
"primary"
@
click=
"batchAudit"
style=
"margin-right: 8px;"
>
批量审核
</a-button>
<a-button
type=
"primary"
@
click=
"exportData"
icon=
"download"
>
Excel
</a-button>
<a-button
type=
"primary"
@
click=
"exportData"
icon=
"download"
>
Excel
</a-button>
</div>
</div>
</div>
</div>
<a-divider
style=
"height: 1px; background-color: #e8e8e8;"
/>
<a-divider
style=
"height: 1px; background-color: #e8e8e8;"
/>
<span
class=
"form-description"
v-if=
"description"
>
※ 审核时间:
{{
description
}}
</span>
<span
class=
"form-description"
v-if=
"description"
>
※ 审核时间:
{{
description
}}
</span>
<a-table
:dataSource=
"tableData"
:columns=
"columns"
:scroll=
"
{ x: 'max-content' }" rowKey="id" :pagination="false" :loading="loading">
<a-table
:
row-selection=
"
{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :
dataSource="tableData" :columns="columns" :scroll="{ x: 'max-content' }" rowKey="id" :pagination="false" :loading="loading">
<template
slot=
"projName"
slot-scope=
"record"
>
<template
slot=
"projName"
slot-scope=
"record"
>
<a
@
click=
"recordClick(record, 'view')"
>
{{
record
.
projName
}}
</a>
<a
@
click=
"recordClick(record, 'view')"
>
{{
record
.
projName
}}
</a>
</
template
>
</
template
>
...
@@ -50,6 +51,9 @@
...
@@ -50,6 +51,9 @@
<a-modal
v-model=
"visibleAudit"
v-if=
"visibleAudit"
title=
"审核"
:footer=
"null"
width=
"94%"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<a-modal
v-model=
"visibleAudit"
v-if=
"visibleAudit"
title=
"审核"
:footer=
"null"
width=
"94%"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
@
changeScroll=
"() => {this.$refs.s_modal.changeScroll()}"
></audit>
<audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
@
changeScroll=
"() => {this.$refs.s_modal.changeScroll()}"
></audit>
</a-modal>
</a-modal>
<a-modal
v-model=
"visibleBatch"
v-if=
"visibleBatch"
title=
"批量审核"
:footer=
"null"
width=
"700px"
:dialog-style=
"{ top: '15%' }"
destroyOnClose
:maskClosable=
"false"
>
<batch-audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
/>
</a-modal>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<project-view
v-model=
"objectId"
@
close=
"closeWindow"
></project-view>
<project-view
v-model=
"objectId"
@
close=
"closeWindow"
></project-view>
</a-modal>
</a-modal>
...
@@ -64,16 +68,18 @@ import { getType } from '@/views/utils/auth'
...
@@ -64,16 +68,18 @@ import { getType } from '@/views/utils/auth'
import
moment
from
'moment'
import
moment
from
'moment'
import
{
isEmptyParams
,
filterExportExcelData
,
tableColumnsName
}
from
"@/views/utils/common"
;
import
{
isEmptyParams
,
filterExportExcelData
,
tableColumnsName
}
from
"@/views/utils/common"
;
import
audit
from
'@/views/audit/project/audit'
import
audit
from
'@/views/audit/project/audit'
import
batchAudit
from
'@/views/audit/project/batchAudit'
import
projectView
from
'@/views/report/project/components/projectView'
import
projectView
from
'@/views/report/project/components/projectView'
import
taskFileInfo
from
'@/views/report/task/components/taskFileInfo'
import
taskFileInfo
from
'@/views/report/task/components/taskFileInfo'
export
default
{
export
default
{
name
:
"projectAudit"
,
name
:
"projectAudit"
,
components
:
{
components
:
{
projectView
,
audit
,
taskFileInfo
projectView
,
audit
,
taskFileInfo
,
batchAudit
},
},
data
()
{
data
()
{
return
{
return
{
selectedRowKeys
:
[],
// 选项卡
// 选项卡
panes
:
{
count1
:
0
,
count2
:
0
,
count3
:
0
,
count4
:
0
,
count5
:
0
,
},
panes
:
{
count1
:
0
,
count2
:
0
,
count3
:
0
,
count4
:
0
,
count5
:
0
,
},
form
:
this
.
$form
.
createForm
(
this
,
{
name
:
'advanced_search'
}),
form
:
this
.
$form
.
createForm
(
this
,
{
name
:
'advanced_search'
}),
...
@@ -123,6 +129,7 @@ export default {
...
@@ -123,6 +129,7 @@ export default {
// 弹窗标志
// 弹窗标志
visibleAudit
:
false
,
visibleAudit
:
false
,
visibleView
:
false
,
visibleView
:
false
,
visibleBatch
:
false
,
isButten
:
false
,
isButten
:
false
,
description
:
''
,
description
:
''
,
id
:
null
,
id
:
null
,
...
@@ -135,6 +142,14 @@ export default {
...
@@ -135,6 +142,14 @@ export default {
this
.
getYear
()
this
.
getYear
()
},
},
methods
:
{
methods
:
{
onSelectChange
(
selectedRowKeys
)
{
console
.
log
(
'selectedRowKeys changed: '
,
selectedRowKeys
);
this
.
selectedRowKeys
=
selectedRowKeys
;
},
batchAudit
()
{
console
.
log
(
'selectedRowKeys changed: '
,
this
.
selectedRowKeys
);
this
.
visibleBatch
=
true
},
search
()
{
search
()
{
this
.
pagination
.
pageIndex
=
1
this
.
pagination
.
pageIndex
=
1
this
.
getListByPage
();
this
.
getListByPage
();
...
...
src/views/audit/project/batchAudit.vue
0 → 100644
View file @
06d833da
<
template
>
<div
class=
"app-content"
style=
"height:260px;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<div>
<a-form-model
ref=
"form"
:model=
"auditObj"
:rules=
"rules"
class=
"from-table font-line-space"
>
<audit-edit
:auditObj
.
sync=
"auditObj"
/>
</a-form-model>
</div>
<div
style=
"text-align: center;margin-top: 12px;"
>
<a-button
type=
"primary"
@
click=
"submit"
style=
"margin-left:16px;"
>
提交
</a-button>
</div>
</a-spin>
</div>
</
template
>
<
script
>
import
{
isEmptyParams
}
from
"@/views/utils/common"
;
import
AuditEdit
from
'@/views/audit/components/auditEdit'
export
default
{
name
:
"Audit"
,
components
:
{
AuditEdit
},
data
()
{
return
{
auditObj
:
{
id
:
this
.
value
,
auditObjectId
:
this
.
objId
,
auditResult
:
null
,
auditType
:
1
,
auditContent
:
''
},
rules
:
{
auditContent
:
{
required
:
true
,
message
:
'请填写审核意见'
,
trigger
:
'blur'
},
auditResult
:
{
required
:
true
,
message
:
'请选择审核结果'
,
trigger
:
'change'
},
},
loading
:
false
,
};
},
props
:
{
value
:
{
type
:
String
,
default
:
()
=>
{
return
null
}
},
objId
:
{
type
:
String
,
default
()
{
return
null
}
},
},
created
()
{
},
methods
:
{
submit
()
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
// this.loading = true
// let pars = isEmptyParams(this.auditObj)
// let par = { ...pars }
// this.$api.auditManager.projectBatchAudit(par).then(({ data = {} }) => {
// if (data) {
// if (data === '项目上报已经到达上限!') {
// this.$message.info('项目上报已经到达上限!')
// } else {
// this.$message.success('审核成功!')
// this.$emit('close', 'audit')
// }
// }
// this.loading = false
// }).catch(() => { this.loading = false })
}
else
{
this
.
$message
.
error
(
'请选择审核结果或填写审核意见!'
)
return
false
}
})
},
},
}
</
script
>
<
style
scoped
lang=
"less"
>
::v-deep .ant-spin-container {
width: 100%;
height: 100%;
}
textarea {
height: 115px;
}
</
style
>
src/views/expert/index.vue
View file @
06d833da
...
@@ -200,7 +200,7 @@ export default {
...
@@ -200,7 +200,7 @@ export default {
let
self
=
this
let
self
=
this
this
.
$confirm
({
this
.
$confirm
({
title
:
'重置密码'
,
title
:
'重置密码'
,
content
:
'重置后密码为"ky
cz
123456"确定要重置密码?'
,
content
:
'重置后密码为"ky123456"确定要重置密码?'
,
okText
:
'确定'
,
okText
:
'确定'
,
okType
:
'danger'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
...
...
src/views/manager/unit/components/managerSetting.vue
View file @
06d833da
...
@@ -284,7 +284,7 @@ export default {
...
@@ -284,7 +284,7 @@ export default {
let
self
=
this
let
self
=
this
this
.
$confirm
({
this
.
$confirm
({
title
:
'重置密码'
,
title
:
'重置密码'
,
content
:
'重置后密码为"ky
cz
123456"确定要重置密码?'
,
content
:
'重置后密码为"ky123456"确定要重置密码?'
,
okText
:
'确定'
,
okText
:
'确定'
,
okType
:
'danger'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
...
...
src/views/manager/user/index.vue
View file @
06d833da
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
let
self
=
this
let
self
=
this
this
.
$confirm
({
this
.
$confirm
({
title
:
'重置密码'
,
title
:
'重置密码'
,
content
:
'重置后密码为"ky
cz
123456"确定要重置密码?'
,
content
:
'重置后密码为"ky123456"确定要重置密码?'
,
okText
:
'确定'
,
okText
:
'确定'
,
okType
:
'danger'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
...
...
src/views/person/index.vue
View file @
06d833da
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
let
self
=
this
let
self
=
this
this
.
$confirm
({
this
.
$confirm
({
title
:
'重置密码'
,
title
:
'重置密码'
,
content
:
'重置后密码为"ky
cz
123456"确定要重置密码?'
,
content
:
'重置后密码为"ky123456"确定要重置密码?'
,
okText
:
'确定'
,
okText
:
'确定'
,
okType
:
'danger'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
...
...
src/views/report/expert/index.vue
View file @
06d833da
...
@@ -206,9 +206,7 @@ export default {
...
@@ -206,9 +206,7 @@ export default {
this
.
deleteExpert
(
record
.
id
,
record
.
userRoleId
)
this
.
deleteExpert
(
record
.
id
,
record
.
userRoleId
)
}
}
else
if
(
type
===
'report'
)
{
else
if
(
type
===
'report'
)
{
let
request
=
{...
record
}
this
.
$api
.
expert
.
update
({
id
:
record
.
id
,
reportState
:
2
}).
then
(({
data
=
{}
})
=>
{
request
.
reportState
=
2
this
.
$api
.
expert
.
update
(
request
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
$message
.
success
(
'上报成功!'
)
this
.
$message
.
success
(
'上报成功!'
)
this
.
getListByPage
()
this
.
getListByPage
()
...
@@ -221,7 +219,7 @@ export default {
...
@@ -221,7 +219,7 @@ export default {
let
self
=
this
let
self
=
this
this
.
$confirm
({
this
.
$confirm
({
title
:
'重置密码'
,
title
:
'重置密码'
,
content
:
'重置后密码为"ky
cz
123456"确定要重置密码?'
,
content
:
'重置后密码为"ky123456"确定要重置密码?'
,
okText
:
'确定'
,
okText
:
'确定'
,
okType
:
'danger'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
...
...
src/views/unit/components/managerSetting.vue
View file @
06d833da
...
@@ -266,7 +266,7 @@ export default {
...
@@ -266,7 +266,7 @@ export default {
let
self
=
this
let
self
=
this
this
.
$confirm
({
this
.
$confirm
({
title
:
'重置密码'
,
title
:
'重置密码'
,
content
:
'重置后密码为"ky
cz
123456"确定要重置密码?'
,
content
:
'重置后密码为"ky123456"确定要重置密码?'
,
okText
:
'确定'
,
okText
:
'确定'
,
okType
:
'danger'
,
okType
:
'danger'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
...
...
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