xiala
This commit is contained in:
parent
697df757b8
commit
b84a15a93e
|
@ -49,6 +49,12 @@ export function updatesubinspecttask(id) {
|
|||
method: 'put',
|
||||
})
|
||||
}
|
||||
export function upinspectdept(id) {
|
||||
return request({
|
||||
url: `/quality/inspectdept/${id}/up/`,
|
||||
method: 'put',
|
||||
})
|
||||
}
|
||||
|
||||
export function createsubinspecttask(data) {
|
||||
return request({
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div slot="header" class="clearfix">
|
||||
<span>任务详情</span>
|
||||
</div>
|
||||
<div style="margin-left: 10px; margin-right: 10px">
|
||||
<div style="margin-left: 10px; margin-right: 10px;">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<div style="margin-bottom: 6px">
|
||||
|
@ -551,8 +551,7 @@ export default {
|
|||
sendconfirm(){
|
||||
|
||||
|
||||
|
||||
const lengths = this.multipleSelection.length;
|
||||
const lengths = this.multipleSelection.lengths;
|
||||
for (let i = 0; i < lengths; i++) {
|
||||
this.ids.push(this.multipleSelection[i].id);
|
||||
}
|
||||
|
@ -562,7 +561,6 @@ export default {
|
|||
|
||||
this.mbersData.records=this.ids
|
||||
console.log(this.mbersData)
|
||||
|
||||
addappoint(this.mbersData).then((res) => {
|
||||
|
||||
this.dialogFormVisible = false;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-card style="float:left;width: 25%;">
|
||||
<el-card style="float:left;width: 27%;">
|
||||
|
||||
<el-table
|
||||
:data="recordList"
|
||||
|
@ -9,30 +9,38 @@
|
|||
stripe
|
||||
highlight-current-row
|
||||
style="width: 100%"
|
||||
@row-click="recorclickRow"
|
||||
|
||||
>
|
||||
<el-table-column
|
||||
label="组织名称"
|
||||
width="180">
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary"
|
||||
@click="recorclickRow(scope)"> {{ scope.row.dept__name }}</el-link>
|
||||
|
||||
{{ scope.row.dept__name }}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="检查状态"
|
||||
width="180">
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
|
||||
<el-tag size="medium">{{ scope.row.state }}</el-tag>
|
||||
{{ scope.row.state }}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<template slot-scope="scope">
|
||||
|
||||
<el-button
|
||||
@click="handleCheckup(scope)">组长提交</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</el-card>
|
||||
<el-card class="box-card" style="float:right;width: 75%;">
|
||||
<el-card class="box-card" style="float:right;width: 73%;">
|
||||
|
||||
<el-table
|
||||
:data="inspectitemList"
|
||||
|
@ -179,7 +187,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {getsubinspecttaskdep,getinspectrecordlist,updateinspectrecord,getinspectrecord} from "@/api/subinspecttask";
|
||||
import {getsubinspecttaskdep,getinspectrecordlist,updateinspectrecord,getinspectrecord,upinspectdept} from "@/api/subinspecttask";
|
||||
import { upUrl, upHeaders } from "@/api/file";
|
||||
import Pagination from "@/components/Pagination";
|
||||
import checkPermission from "@/utils/permission";
|
||||
|
@ -255,9 +263,10 @@ export default {
|
|||
|
||||
},
|
||||
|
||||
recorclickRow(row, col, e) {
|
||||
recorclickRow(scope) {
|
||||
this.listLoading2 = true;
|
||||
this.listQuery = {pageoff:true, subtask: this.subtask, dept: row.dept }
|
||||
console.log(scope.row.id)
|
||||
this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept}
|
||||
this.getinspectrecordlist();
|
||||
},
|
||||
handcheckupdate(scope)
|
||||
|
@ -345,6 +354,15 @@ export default {
|
|||
this.dialog = false;
|
||||
clearTimeout(this.timer);
|
||||
},
|
||||
//组长提交
|
||||
handleCheckup(scope)
|
||||
{
|
||||
|
||||
upinspectdept(scope.row.dept).then((res) => {
|
||||
this.$message.success("提交成功");
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue