xiala
This commit is contained in:
parent
a04123d4a9
commit
1fb508fbef
|
@ -2,8 +2,8 @@
|
|||
ENV = 'development'
|
||||
|
||||
# base api
|
||||
#VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
|
||||
VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
|
||||
VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
|
||||
#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
|
||||
|
||||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
|
||||
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
|
||||
|
|
|
@ -551,11 +551,11 @@ export default {
|
|||
sendconfirm(){
|
||||
|
||||
|
||||
const lengths = this.multipleSelection.lengths;
|
||||
const lengths = this.multipleSelection.length;
|
||||
for (let i = 0; i < lengths; i++) {
|
||||
this.ids.push(this.multipleSelection[i].id);
|
||||
}
|
||||
|
||||
console.log(lengths)
|
||||
//let data = { records: this.ids };//检查项ID
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-card style="float:left;width: 27%;">
|
||||
<el-card style="float:left;width: 25%;">
|
||||
|
||||
<el-table
|
||||
:data="recordList"
|
||||
|
@ -15,7 +15,7 @@
|
|||
label="组织名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary"
|
||||
<el-link type="primary"
|
||||
@click="recorclickRow(scope)"> {{ scope.row.dept__name }}</el-link>
|
||||
|
||||
|
||||
|
@ -26,21 +26,21 @@
|
|||
>
|
||||
<template slot-scope="scope">
|
||||
|
||||
{{ scope.row.state }}
|
||||
{{ scope.row.state }}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<template slot-scope="scope">
|
||||
|
||||
<el-button
|
||||
@click="handleCheckup(scope)">组长提交</el-button>
|
||||
<el-link type="primary"
|
||||
@click="handleCheckup(scope)">组长提交</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
</el-card>
|
||||
<el-card class="box-card" style="float:right;width: 73%;">
|
||||
<el-card class="box-card" style="float:right;width: 75%;">
|
||||
|
||||
<el-table
|
||||
:data="inspectitemList"
|
||||
|
@ -49,18 +49,10 @@
|
|||
highlight-current-row
|
||||
style="width: 100%">
|
||||
|
||||
<el-table-column
|
||||
label="检查类别"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
|
||||
{{ scope.row.item_.cate_name }}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="检查要点"
|
||||
width="180">
|
||||
width="280">
|
||||
<template slot-scope="scope">
|
||||
|
||||
{{ scope.row.item_.name }}
|
||||
|
@ -76,15 +68,7 @@
|
|||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="取证要求"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
|
||||
{{ scope.row.item_.require }}
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column
|
||||
label="检查人"
|
||||
|
@ -242,7 +226,6 @@ export default {
|
|||
|
||||
//巡检的公司
|
||||
getsubinspecttaskdep() {
|
||||
console.log(this.id)
|
||||
getsubinspecttaskdep(this.id)
|
||||
.then((res) => {
|
||||
this.recordList = res.data;
|
||||
|
@ -265,7 +248,6 @@ export default {
|
|||
|
||||
recorclickRow(scope) {
|
||||
this.listLoading2 = true;
|
||||
console.log(scope.row.id)
|
||||
this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept}
|
||||
this.getinspectrecordlist();
|
||||
},
|
||||
|
@ -336,7 +318,7 @@ export default {
|
|||
}
|
||||
this.form.imgs = files;
|
||||
this.form.id=this.recordid;
|
||||
|
||||
console.log(this.recordid)
|
||||
updateinspectrecord(this.recordid, this.form).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
this.getinspectrecordlist();
|
||||
|
@ -358,7 +340,7 @@ export default {
|
|||
handleCheckup(scope)
|
||||
{
|
||||
|
||||
upinspectdept(scope.row.dept).then((res) => {
|
||||
upinspectdept(scope.row.id).then((res) => {
|
||||
this.$message.success("提交成功");
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue