Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
sgaqgl-vue
Commits
bffbb00d
Commit
bffbb00d
authored
Jan 11, 2023
by
黄自鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
履职管理增加按钮完成,取消完成
parent
a29c0bed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
3 deletions
+84
-3
performanceReport.js
src/api/daily/performanceReport.js
+14
-1
index.vue
src/views/daily/performanceReport/index.vue
+2
-2
report.vue
src/views/daily/performanceReport/report.vue
+68
-0
No files found.
src/api/daily/performanceReport.js
View file @
bffbb00d
...
@@ -51,7 +51,20 @@ export function doAddDtl(query) {
...
@@ -51,7 +51,20 @@ export function doAddDtl(query) {
})
})
}
}
export
function
lzwc
(
query
)
{
return
request
({
url
:
'aqgl/rcgl/lzrw/lzwc'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
qxwc
(
query
)
{
return
request
({
url
:
'aqgl/rcgl/lzrw/qxwc'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/daily/performanceReport/index.vue
View file @
bffbb00d
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<AttachFileButton
:app=
'app'
></AttachFileButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<
WorkFlowButton
:app=
'this'
></WorkFlowButton
>
<
!--
<WorkFlowButton
:app=
'this'
></WorkFlowButton>
--
>
<!-- 额外按钮-->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 表头设置 -->
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<!-- tabs -->
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"履职报告"
name=
"first"
>
<el-tab-pane
label=
"履职报告"
name=
"first"
>
<Report
ref=
"report"
/>
<Report
:mapp=
"app"
ref=
"report"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
...
src/views/daily/performanceReport/report.vue
View file @
bffbb00d
...
@@ -34,7 +34,10 @@
...
@@ -34,7 +34,10 @@
<AttachFileButton
:app=
'app'
></AttachFileButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 额外按钮-->
<el-button
@
click=
"lzwc"
size=
'mini'
type=
"primary"
>
履职完成
</el-button>
<el-button
@
click=
"qxwc"
size=
'mini'
type=
"primary"
>
取消完成
</el-button>
<!-- 表头设置 -->
<!-- 表头设置 -->
<!-- 权限-->
<!-- 权限-->
...
@@ -71,6 +74,7 @@
...
@@ -71,6 +74,7 @@
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
},
props
:[
'mapp'
],
data
()
{
data
()
{
return
{
return
{
/*需要的额外参数 */
/*需要的额外参数 */
...
@@ -95,6 +99,70 @@
...
@@ -95,6 +99,70 @@
}
}
},
},
methods
:
{
methods
:
{
lzwc
(){
//console.log(this.mapp.singleItem)
/*if (this.app.selectOne || this.app.clickOne) {
this.$confirm('确定发布该题库吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
publish({id:this.singleItem.id}).then(res=>{
if(res.success){
this.$success('该题库发布成功!')
this.$refs.TablePager.pageQuery()
}
})
// let id=this.singleItem.id
// this.$router.push({path: '/paper/'+id,query: { singleItem: this.singleItem}})
})
} else {
this.$warning('请选中一行操作');
}*/
if
(
this
.
mapp
.
selectOne
||
this
.
mapp
.
clickOne
)
{
this
.
$confirm
(
'确认完成履职报告, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
lzwc
({
id
:
this
.
mapp
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'履职报告已完成!'
)
this
.
$refs
.
TablePager
.
pageQuery
()
}
})
// let id=this.singleItem.id
// this.$router.push({path: '/paper/'+id,query: { singleItem: this.singleItem}})
})
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
qxwc
(){
if
(
this
.
mapp
.
selectOne
||
this
.
mapp
.
clickOne
)
{
this
.
$confirm
(
'取消完成履职报告, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
qxwc
({
id
:
this
.
mapp
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'已取消!'
)
this
.
$refs
.
TablePager
.
pageQuery
()
}
})
// let id=this.singleItem.id
// this.$router.push({path: '/paper/'+id,query: { singleItem: this.singleItem}})
})
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
/* 基础查询*/
/* 基础查询*/
query
:
doQueryDtl
,
query
:
doQueryDtl
,
...
...
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