This commit is contained in:
shilixia 2021-04-25 14:02:59 +08:00
parent a04123d4a9
commit 1fb508fbef
3 changed files with 15 additions and 33 deletions

View File

@ -2,8 +2,8 @@
ENV = 'development' ENV = 'development'
# base api # base api
#VUE_APP_BASE_API = 'http://10.0.11.127: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_APP_BASE_API = 'http://127.0.0.1:8000/api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # to control whether the babel-plugin-dynamic-import-node plugin is enabled.

View File

@ -551,11 +551,11 @@ export default {
sendconfirm(){ sendconfirm(){
const lengths = this.multipleSelection.lengths; const lengths = this.multipleSelection.length;
for (let i = 0; i < lengths; i++) { for (let i = 0; i < lengths; i++) {
this.ids.push(this.multipleSelection[i].id); this.ids.push(this.multipleSelection[i].id);
} }
console.log(lengths)
//let data = { records: this.ids };//检查项ID //let data = { records: this.ids };//检查项ID

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card style="float:left;width: 27%;"> <el-card style="float:left;width: 25%;">
<el-table <el-table
:data="recordList" :data="recordList"
@ -15,7 +15,7 @@
label="组织名称" label="组织名称"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link type="primary" <el-link type="primary"
@click="recorclickRow(scope)"> {{ scope.row.dept__name }}</el-link> @click="recorclickRow(scope)"> {{ scope.row.dept__name }}</el-link>
@ -26,21 +26,21 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.state }} {{ scope.row.state }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-link type="primary"
@click="handleCheckup(scope)">组长提交</el-button> @click="handleCheckup(scope)">组长提交</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
<el-card class="box-card" style="float:right;width: 73%;"> <el-card class="box-card" style="float:right;width: 75%;">
<el-table <el-table
:data="inspectitemList" :data="inspectitemList"
@ -49,18 +49,10 @@
highlight-current-row highlight-current-row
style="width: 100%"> 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 <el-table-column
label="检查要点" label="检查要点"
width="180"> width="280">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.item_.name }} {{ scope.row.item_.name }}
@ -76,15 +68,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="取证要求"
width="180">
<template slot-scope="scope">
{{ scope.row.item_.require }}
</template>
</el-table-column>
<el-table-column <el-table-column
label="检查人" label="检查人"
@ -242,7 +226,6 @@ export default {
//巡检的公司 //巡检的公司
getsubinspecttaskdep() { getsubinspecttaskdep() {
console.log(this.id)
getsubinspecttaskdep(this.id) getsubinspecttaskdep(this.id)
.then((res) => { .then((res) => {
this.recordList = res.data; this.recordList = res.data;
@ -265,7 +248,6 @@ export default {
recorclickRow(scope) { recorclickRow(scope) {
this.listLoading2 = true; this.listLoading2 = true;
console.log(scope.row.id)
this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept} this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept}
this.getinspectrecordlist(); this.getinspectrecordlist();
}, },
@ -336,7 +318,7 @@ export default {
} }
this.form.imgs = files; this.form.imgs = files;
this.form.id=this.recordid; this.form.id=this.recordid;
console.log(this.recordid)
updateinspectrecord(this.recordid, this.form).then((res) => { updateinspectrecord(this.recordid, this.form).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
this.getinspectrecordlist(); this.getinspectrecordlist();
@ -358,7 +340,7 @@ export default {
handleCheckup(scope) handleCheckup(scope)
{ {
upinspectdept(scope.row.dept).then((res) => { upinspectdept(scope.row.id).then((res) => {
this.$message.success("提交成功"); this.$message.success("提交成功");
}) })