提交 c254b833 authored 作者: quanlili's avatar quanlili

修改批量

上级 d922db8e
<template> <template>
<div class="metadata_contrast app-container"> <div class="metadata_contrast app-container">
<div class=" clearfix">
<a><span class="refBtn fr" style="margin: 17px 0px 23px;" @click="$router.go(-1)"><i class="el-icon-back" ></i> 返回</span> </a>
</div>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<div style="width:100%;" class="pdf_wrap" v-loading="loading"> <div style="width:100%;" class="pdf_wrap" v-loading="loading">
...@@ -46,9 +49,11 @@ export default { ...@@ -46,9 +49,11 @@ export default {
} }
}, },
mounted() { mounted() {
this.file=this.$route.query.file; this.file=JSON.parse(this.$route.query.file);
this.pdf=this.$route.query.pdf; this.pdf=JSON.parse(this.$route.query.pdf);
console.log(this.file,this.pdf,'00000000000')
this.file.fileName=`${this.domain}${requestPath.file}?fileName=${this.file.fileName}&isOnLine=true`; this.file.fileName=`${this.domain}${requestPath.file}?fileName=${this.file.fileName}&isOnLine=true`;
this.pdf.fileName=`${this.domain}${requestPath.file}?fileName=${this.pdf.fileName}&isOnLine=true`;
}, },
methods: { methods: {
refPage(){ refPage(){
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
<img class="tag_img" v-if="item.userImg" :src="`${uploadUrl}?fileName=${item.userImg}`" alt="头像" > <img class="tag_img" v-if="item.userImg" :src="`${uploadUrl}?fileName=${item.userImg}`" alt="头像" >
<img class="tag_img" v-else :src="`${uploadUrl}?fileName=${item.userImg}`" alt="头像"> <img class="tag_img" v-else :src="`${uploadUrl}?fileName=${item.userImg}`" alt="头像">
<div class="opt_wrap"> <div class="opt_wrap">
<el-button type="primary" plain size="mini" @click="contrastTo(item.fileName,item.name)"><i class="iconfont icon-projectguanlianbijiao"></i> 关联比较</el-button> <el-button type="primary" plain size="mini" @click="contrastTo(item.pdfName,item.name)"><i class="iconfont icon-projectguanlianbijiao"></i> 关联比较</el-button>
<el-button type="success" plain size="mini" icon="el-icon-search" @click="linkSip">查看</el-button> <el-button type="success" plain size="mini" icon="el-icon-search" @click="linkSip">查看</el-button>
</div> </div>
</div> </div>
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="entityVisible = false">取 消</el-button> <el-button @click="entityVisible = false">取 消</el-button>
<el-button type="primary" @click="entitySubmit">确 定</el-button> <el-button type="primary" @click="entitySubmit" v-loading="submitLoad">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 命名实体确认 --> <!-- 命名实体确认 -->
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="personLinkVisible = false">取 消</el-button> <el-button @click="personLinkVisible = false">取 消</el-button>
<!-- <el-button type="primary" @click="personLinkVisible = false">更换义项</el-button> --> <!-- <el-button type="primary" @click="personLinkVisible = false">更换义项</el-button> -->
<el-button type="primary" @click="importPerson">确认实体</el-button> <el-button type="primary" @click="importPerson" v-loading="submitLoad">确认实体</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 地理位置实体确认 --> <!-- 地理位置实体确认 -->
...@@ -574,6 +574,7 @@ export default { ...@@ -574,6 +574,7 @@ export default {
positionLinkVisible:false, positionLinkVisible:false,
organizationLinkVisible:false, organizationLinkVisible:false,
timerLinkVisible:false, timerLinkVisible:false,
submitLoad:false,
backForm:{ backForm:{
state:1, state:1,
keyword:'' keyword:''
...@@ -756,6 +757,7 @@ export default { ...@@ -756,6 +757,7 @@ export default {
entitySubmit(){ entitySubmit(){
this.$refs['entityForm'].validate((valid) => { this.$refs['entityForm'].validate((valid) => {
if (valid) { if (valid) {
this.submitLoad=true;
addEntityAPI(this.entityForm).then(res=>{ addEntityAPI(this.entityForm).then(res=>{
if(res.data.code===0){ if(res.data.code===0){
let tab={ let tab={
...@@ -765,8 +767,10 @@ export default { ...@@ -765,8 +767,10 @@ export default {
this.backForm.state=this.entityForm.state;//显示哪个弹框 this.backForm.state=this.entityForm.state;//显示哪个弹框
this.lookBack(this.entityForm.keyword); this.lookBack(this.entityForm.keyword);
this.entityVisible=false; this.entityVisible=false;
this.submitLoad=false;
}else{ }else{
this.$message.error('新增实体失败') this.$message.error('新增实体失败')
this.submitLoad=false;
} }
}) })
} else { } else {
...@@ -896,6 +900,7 @@ export default { ...@@ -896,6 +900,7 @@ export default {
importPerson(){ importPerson(){
this.$refs['personForm'].validate((valid) => { this.$refs['personForm'].validate((valid) => {
if(valid){ if(valid){
this.submitLoad=true;
this.personForm.keyword=this.backForm.keyword; this.personForm.keyword=this.backForm.keyword;
importPersonAPI(this.personForm).then(res=>{ importPersonAPI(this.personForm).then(res=>{
if(res.data.code == 0){ if(res.data.code == 0){
...@@ -906,8 +911,10 @@ export default { ...@@ -906,8 +911,10 @@ export default {
} }
this.handleInnerClick(tab,event) this.handleInnerClick(tab,event)
this.personLinkVisible = false; this.personLinkVisible = false;
this.submitLoad=false;
}else{ }else{
this.$message.error('确认实体失败'); this.$message.error('确认实体失败');
this.submitLoad=false;
} }
}) })
}else{ }else{
...@@ -1010,15 +1017,17 @@ export default { ...@@ -1010,15 +1017,17 @@ export default {
this.getTimer() this.getTimer()
} }
}, },
contrastTo(fileName,name){ contrastTo(pdfName,name){
let file={
fileName:pdfName,
name:name,
}
let pdf={
fileName:this.pdf.pdfName,
name:this.pdf.name
}
this.$router.push({path:"/draw/metadata_contrast",query:{ this.$router.push({path:"/draw/metadata_contrast",query:{
file:{ file:JSON.stringify(file),pdf:JSON.stringify(pdf)
fileName:fileName,
name:name,
},pdf:{
fileName:this.pdf.fileName,
name:this.pdf.name
}
} }
}) })
}, },
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
.tag{ .tag{
margin: 0 20px; margin: 0 20px;
color:#F56C6C; color:#F56C6C;
} }
.tag_img{ .tag_img{
width: 28px; width: 28px;
...@@ -406,6 +406,10 @@ ...@@ -406,6 +406,10 @@
.ref_btn{ .ref_btn{
cursor: pointer; cursor: pointer;
} }
.refBtn{
font-size:14px;
color:#868BA3;
}
.pdf_wrap{ .pdf_wrap{
background-color: #fff; background-color: #fff;
padding: 20px; padding: 20px;
......
...@@ -312,7 +312,7 @@ export default { ...@@ -312,7 +312,7 @@ export default {
}, },
batchUpdate(){ batchUpdate(){
let data={ let data={
ids:this.allIds, ids:this.multipleSelection,
status: 3,//通过交接 status: 3,//通过交接
remark:this.pdf.remark remark:this.pdf.remark
} }
...@@ -338,7 +338,7 @@ export default { ...@@ -338,7 +338,7 @@ export default {
}, },
batchRefuse(){ batchRefuse(){
let data={ let data={
ids:this.allIds, ids:this.multipleSelection,
status: 4,//通过交接 status: 4,//通过交接
remark:this.pdf.remark remark:this.pdf.remark
} }
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<el-steps :active="activeStatus" finish-status="success" align-center> <el-steps :active="activeStatus" finish-status="success" align-center>
<el-step title="待录入" v-if="pdf.status==0"></el-step> <el-step title="待录入" v-if="pdf.status==0"></el-step>
<el-step title="待挂接" v-if="pdf.status==2"></el-step> <el-step title="待挂接" v-if="pdf.status==2"></el-step>
<el-step title="审交接中"></el-step> <el-step title="审交接中"></el-step>
<el-step title="已交接" v-if="pdf.status!=4"></el-step> <el-step title="已交接" v-if="pdf.status!=4"></el-step>
<el-step title="已入库" v-if='pdf.status!=4'></el-step> <el-step title="已入库" v-if='pdf.status!=4'></el-step>
<el-step title="拒绝交接" v-if="pdf.status==4"></el-step> <el-step title="拒绝交接" v-if="pdf.status==4"></el-step>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论