Commit 59adc42d by liangzhen

上传修改城自动

1 parent e99e4d1a
...@@ -179,10 +179,6 @@ ...@@ -179,10 +179,6 @@
scope.row.fileName scope.row.fileName
}} <el-button @click="handleClickXZ(scope.row)">下载</el-button> }} <el-button @click="handleClickXZ(scope.row)">下载</el-button>
</template> </template>
<!-- <template slot-scope="scope">
<input type="file" @change="handleFileUpload">
<button @click="submitFile(scope.row)">上传</button>
</template> -->
</el-table-column> </el-table-column>
<el-table-column label="复核情况" prop="rectificationStatus"> <el-table-column label="复核情况" prop="rectificationStatus">
<template slot-scope="scope" v-if="scope.row.confirmStatus == '1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus == '1'">
...@@ -610,26 +606,6 @@ export default { ...@@ -610,26 +606,6 @@ export default {
console.log("来了么"); console.log("来了么");
this.file = event.target.files[0]; this.file = event.target.files[0];
}, },
submitFile(row) {
// return;
console.log(row);
if (this.file) {
const formData = new FormData();
formData.append("file", this.file);
// formData.append("prjId", this.checkedList[0].projectId);
// formData.append("typeCode", row.typeCode);
ossupload(formData)
.then((response) => {
console.log(response);
this.$set(row, "fileId", response.data.fileId);
})
.catch((error) => {
console.error(error);
});
}
},
closed() { closed() {
console.log("关闭"); console.log("关闭");
this.handleSelectionChange(); this.handleSelectionChange();
......
...@@ -255,15 +255,9 @@ ...@@ -255,15 +255,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<input <input
type="file" type="file"
@change="handleFileUpload" @change="handleFileUpload($event,scope.row)"
v-if="scope.row.confirmStatus == '1'" v-if="scope.row.confirmStatus == '1'"
/> />
<button
@click="submitFile(scope.row)"
v-if="scope.row.confirmStatus == '1'"
>
上传
</button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -589,14 +583,12 @@ export default { ...@@ -589,14 +583,12 @@ export default {
this.dataPretreatmentSS(); this.dataPretreatmentSS();
} }
}, },
handleFileUpload(event) { handleFileUpload(event,row) {
console.log("来了么"); console.log("来了么");
this.file = event.target.files[0]; this.file = event.target.files[0];
this.submitFile(row)
}, },
submitFile(row) { submitFile(row) {
// this.$message('上传还没做')
// return
console.log(row);
if (this.file) { if (this.file) {
const formData = new FormData(); const formData = new FormData();
formData.append("file", this.file); formData.append("file", this.file);
......
...@@ -189,8 +189,7 @@ ...@@ -189,8 +189,7 @@
</el-table-column> </el-table-column>
<el-table-column label="附加解释材料" prop="fileId" width="400"> <el-table-column label="附加解释材料" prop="fileId" width="400">
<template slot-scope="scope" v-if="scope.row.confirmStatus == '1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus == '1'">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row, 'fileId')" />
<button @click="submitFile(scope.row, 'fileId')">上传</button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -217,18 +216,12 @@ ...@@ -217,18 +216,12 @@
</el-table-column> </el-table-column>
<el-table-column label="上传整改材料" prop="zgFileId" width="400"> <el-table-column label="上传整改材料" prop="zgFileId" width="400">
<template slot-scope="scope" v-if="scope.row.confirmStatus == '1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus == '1'">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row, 'zgFileId')" />
<button @click="submitFile(scope.row, 'zgFileId')">
上传
</button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="情况说明" prop="zgqkFileId" width="400"> <el-table-column label="情况说明" prop="zgqkFileId" width="400">
<template slot-scope="scope" v-if="scope.row.confirmStatus == '1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus == '1'">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row, 'zgqkFileId')" />
<button @click="submitFile(scope.row, 'zgqkFileId')">
上传
</button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -663,14 +656,12 @@ export default { ...@@ -663,14 +656,12 @@ export default {
this.dataPretreatmentSS(); this.dataPretreatmentSS();
} }
}, },
handleFileUpload(event) { handleFileUpload(event,row,type) {
console.log("来了么"); console.log("来了么");
this.file = event.target.files[0]; this.file = event.target.files[0];
this.submitFile(row,type)
}, },
submitFile(row, type) { submitFile(row,type) {
// return;
console.log(row);
if (this.file) { if (this.file) {
const formData = new FormData(); const formData = new FormData();
formData.append("file", this.file); formData.append("file", this.file);
......
...@@ -4,19 +4,26 @@ ...@@ -4,19 +4,26 @@
<p class="title">国网辽宁电力-桌面终端管理系统合规性检查评估</p> <p class="title">国网辽宁电力-桌面终端管理系统合规性检查评估</p>
<div class="continer"> <div class="continer">
<div class="top"> <div class="top">
<div class="change"></div> <el-steps :active="active" align-center finish-status="success">
<el-step v-for="item in tabList"
<el-steps :active="0" align-center finish-status="success"> :key="item.name"
<el-step title="可研" icon="el-icon-circle-check" @click.native="change()"></el-step> :title="item.label" @click.native="change(item.id)"></el-step>
<el-step title="计划" class="ssss"></el-step>
<el-step title="采购"></el-step>
<el-step title="合同"></el-step>
<el-step title="执行"></el-step>
<el-step title="结决算及转资"></el-step>
</el-steps> </el-steps>
</div> </div>
<div class="content">
<div class="left">
<p class="tableTitle">检查内容</p>
</div>
<div class="right">
<p class="tableTitle">检查项</p>
</div>
</div>
<!-- <div class="left"> <!-- <div class="left">
<div class="right">
<p class="tableTitle">检查内容</p>
<p class="tableTitle">检查项</p> <p class="tableTitle">检查项</p>
<el-table <el-table
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
...@@ -46,11 +53,28 @@ ...@@ -46,11 +53,28 @@
</template> </template>
<script> <script>
import { data } from 'jquery';
export default { export default {
data(){
return{
tabList:[
{label:"可研",id:'1'},
{label:"计划",id:'2'},
{label:"采购",id:'3'},
{label:"合同",id:'4'},
{label:"执行",id:'5'},
{label:"结决算及转资",id:'6'}
],
active:0
}
},
methods:{ methods:{
change(){
change(id){
console.log("切换") console.log("切换")
this.active=id*1
} }
} }
}; };
...@@ -86,10 +110,10 @@ export default { ...@@ -86,10 +110,10 @@ export default {
} }
.continer { .continer {
width: 100%; width: 100%;
display: flex;
background-color: #f5f5f6; background-color: #f5f5f6;
padding: 20px; padding: 20px;
position: relative; position: relative;
box-sizing: border-box;
.top{ .top{
width: 70%; width: 70%;
margin: 0 auto; margin: 0 auto;
...@@ -97,18 +121,20 @@ export default { ...@@ -97,18 +121,20 @@ export default {
} }
.content{
// background-color:#ccc; width: 100%;
margin-top: 10px;
display: flex;
}
.left { .left {
width: 30%; width: 49%;
min-height: 100px; min-height: 100px;
margin-top: 100px;
color: #fff; color: #fff;
} }
.right { .right {
width: 70%; width: 50%;
margin-top: 44px; margin-left: 10px;
padding: 0 20px;
} }
} }
/deep/.el-step__icon { /deep/.el-step__icon {
......
...@@ -223,8 +223,7 @@ ...@@ -223,8 +223,7 @@
</el-table-column> </el-table-column>
<el-table-column label="附加解释材料" prop="fileId" width="400"> <el-table-column label="附加解释材料" prop="fileId" width="400">
<template slot-scope="scope" v-if="scope.row.confirmStatus=='1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus=='1'">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row, 'fileId')" />
<button @click="submitFile(scope.row,'fileId')">上传</button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -252,14 +251,12 @@ ...@@ -252,14 +251,12 @@
width="400" width="400"
> >
<template slot-scope="scope" v-if="scope.row.confirmStatus=='1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus=='1'">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row, 'zgFileId')" />
<button @click="submitFile(scope.row,'zgFileId')">上传</button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="情况说明" prop="zgqkFileId" width="400"> <el-table-column label="情况说明" prop="zgqkFileId" width="400">
<template slot-scope="scope" v-if="scope.row.confirmStatus=='1'"> <template slot-scope="scope" v-if="scope.row.confirmStatus=='1'">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row, 'zgqkFileId')" />
<button @click="submitFile(scope.row,'zgqkFileId')">上传</button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -694,9 +691,10 @@ export default { ...@@ -694,9 +691,10 @@ export default {
this.dataPretreatmentSS(); this.dataPretreatmentSS();
} }
}, },
handleFileUpload(event) { handleFileUpload(event,row,type) {
console.log("来了么"); console.log("来了么");
this.file = event.target.files[0]; this.file = event.target.files[0];
this.submitFile(row,type)
}, },
submitFile(row,type) { submitFile(row,type) {
......
...@@ -159,22 +159,10 @@ ...@@ -159,22 +159,10 @@
<el-table-column prop="fileName" label="资料名称"> </el-table-column> <el-table-column prop="fileName" label="资料名称"> </el-table-column>
<el-table-column prop="projectCategory" label="操作"> <el-table-column prop="projectCategory" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<input type="file" @change="handleFileUpload" /> <input type="file" @change="handleFileUpload($event,scope.row)" />
<button @click="submitFile(scope.row)">上传</button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <el-pagination
@size-change="handleSizeChangetjcl"
@current-change="handleCurrentChangetjcl"
:current-page="currentPagetjcl"
:page-sizes="[10, 15, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
class="elpagination"
>
</el-pagination> -->
<p class="Btn"> <p class="Btn">
<span @click="cancel()">取消</span <span @click="cancel()">取消</span
><span @click="save()">确认上传</span> ><span @click="save()">确认上传</span>
...@@ -247,24 +235,7 @@ ...@@ -247,24 +235,7 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="projectCategory" label="操作">
<template slot-scope="scope">
<input type="file" @change="handleFileUpload">
<button @click="submitFile(scope.row)">上传</button>
</template>
</el-table-column> -->
</el-table> </el-table>
<!-- <el-pagination
@size-change="handleSizeChangetjcl"
@current-change="handleCurrentChangetjcl"
:current-page="currentPagetjcl"
:page-sizes="[10, 15, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
class="elpagination"
>
</el-pagination> -->
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -518,9 +489,10 @@ export default { ...@@ -518,9 +489,10 @@ export default {
let res = await qrscevaluationMaterials(params); let res = await qrscevaluationMaterials(params);
this.resetForm(); this.resetForm();
}, },
handleFileUpload(event) { handleFileUpload(event,row) {
console.log("来了么"); console.log("来了么",event,row);
this.file = event.target.files[0]; this.file = event.target.files[0];
this.submitFile(row)
}, },
submitFile(row) { submitFile(row) {
console.log(row); console.log(row);
......
...@@ -99,8 +99,14 @@ ...@@ -99,8 +99,14 @@
</el-table-column> </el-table-column>
<el-table-column prop="checkProblem" label="问题检查项" width="auto"> <el-table-column prop="checkProblem" label="问题检查项" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="submmitTime" label="问题来源" width="auto">
</el-table-column>
<el-table-column prop="submmitTime" label="提出时间" width="auto"> <el-table-column prop="submmitTime" label="提出时间" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="submmitTime" label="问题描述" width="auto">
</el-table-column>
<el-table-column prop="abarbeitungTime" label="整改情况" width="auto">
</el-table-column>
<el-table-column prop="abarbeitungTime" label="整改时间" width="auto"> <el-table-column prop="abarbeitungTime" label="整改时间" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="abarbeitungStatus" label="整改状态" width="auto"> <el-table-column prop="abarbeitungStatus" label="整改状态" width="auto">
......
...@@ -91,12 +91,24 @@ ...@@ -91,12 +91,24 @@
</el-table-column> </el-table-column>
<el-table-column prop="checkProblem" label="问题检查项" width="auto"> <el-table-column prop="checkProblem" label="问题检查项" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="checkProblem" label="问题描述" width="auto">
</el-table-column>
<el-table-column prop="appealFlag" label="是否申诉" width="auto"> <el-table-column prop="appealFlag" label="是否申诉" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="appealFlag" label="申诉理由" width="auto">
</el-table-column>
<el-table-column prop="appealPassFlag" label="申诉是否通过" width="auto"> <el-table-column prop="appealPassFlag" label="申诉是否通过" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="appealPassFlag" label="申诉复核情况" width="auto">
</el-table-column>
<el-table-column prop="completeFlag" label="是否完成整改" width="auto"> <el-table-column prop="completeFlag" label="是否完成整改" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="completeFlag" label="整改情况" width="auto">
</el-table-column>
<el-table-column prop="completeFlag" label="整改是否通过" width="auto">
</el-table-column>
<el-table-column prop="completeFlag" label="整改复核情况" width="auto">
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!