Commit b7a45a68 authored by danfuman's avatar danfuman

修改

parent b5df284c
...@@ -527,6 +527,7 @@ ...@@ -527,6 +527,7 @@
}, },
addinputs(){ addinputs(){
let tables = JSON.parse(JSON.stringify(this.tableData)) let tables = JSON.parse(JSON.stringify(this.tableData))
tables.forEach(item=>{ tables.forEach(item=>{
item.planMeasureId = item.id item.planMeasureId = item.id
item.id = item.actualId item.id = item.actualId
......
...@@ -134,7 +134,8 @@ ...@@ -134,7 +134,8 @@
<el-table-column label="操作" min-width="260" :resizable="false" fixed="right"> <el-table-column label="操作" min-width="260" :resizable="false" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="wordprimary tabs" @click="editpro(scope.row)">修改项目信息</span> <span class="wordprimary tabs" @click="editpro(scope.row)">修改项目信息</span>
<span class="wordprimary tabs" @click="detailpro(scope.row)">查看导入进度</span> <span class="wordprimary tabs" @click="detailpro(scope.row)" v-if="scope.row.cbStage !=3">查看导入进度</span>
<span style="color:#eee;" class="wordprimary tabs" v-if="scope.row.cbStage ===3">查看导入进度</span>
<span class="worddel tabs" v-if="scope.row.projectFileStatus != 1" @click="deleetpro(scope.row)">删除</span> <span class="worddel tabs" v-if="scope.row.projectFileStatus != 1" @click="deleetpro(scope.row)">删除</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -196,8 +197,9 @@ ...@@ -196,8 +197,9 @@
<div class="popbot" > <div class="popbot" >
<div class="btn btn_cancel h32" @click="dialogVisible = false">取消</div> <div class="btn btn_cancel h32" @click="dialogVisible = false">取消</div>
<div class="btn btn_primary h32" v-if="isedit && !ischeck" @click="savepro">保存</div> <div class="btn btn_primary h32" v-if="isedit && !ischeck" @click="savepro">保存</div>
<div class="btn btn_primary h32" v-if="isedit && ischeck" @click="changepro">下一步,导入数据</div> <div class="btn btn_primary h32" v-if="!isedit && ischeck && queryParam.cbStage ==='3'" @click="insertPro1">创建项目</div>
<div class="btn btn_primary h32" v-if="!isedit && ischeck" @click="insertPro" :class="{'btn_disabled':!queryParam.cbStage}" :disabled="!queryParam.cbStage">下一步,导入数据</div> <div class="btn btn_primary h32" v-if="isedit && ischeck && queryParam.cbStage !=='3'" @click="changepro">下一步,导入数据</div>
<div class="btn btn_primary h32" v-if="!isedit && ischeck && queryParam.cbStage !=='3'" @click="insertPro" :class="{'btn_disabled':!queryParam.cbStage}" :disabled="!queryParam.cbStage">下一步,导入数据</div>
</div> </div>
</el-dialog> </el-dialog>
...@@ -504,6 +506,16 @@ ...@@ -504,6 +506,16 @@
} }
}) })
}, },
//创建项目
insertPro1(){
addProject(JSON.stringify(this.queryParam)).then(res=>{
if(res.code == 200){
this.getlist()
// this.uploadData = res.data
// this.isupload = true
}
})
},
//修改项目 //修改项目
savepro(){ savepro(){
this.queryParam.projectId = this.queryParam.id this.queryParam.projectId = this.queryParam.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment