|
|
@@ -19,47 +19,46 @@ |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </div>--> |
|
|
|
<div class="list_main"> |
|
|
|
<van-list |
|
|
|
v-model="loading" |
|
|
|
:finished="finished" |
|
|
|
finished-text="没有更多了" |
|
|
|
@load="getList" |
|
|
|
> |
|
|
|
<!----1--> |
|
|
|
<div class="item" v-for="(item,index) in 5" :key="index"> |
|
|
|
<div class="item"> |
|
|
|
<div class="info"> |
|
|
|
<div class="title"> |
|
|
|
<i class="icon_box"></i> |
|
|
|
<p class="news_title">居委会公章</p> |
|
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_07.png" width="30" alt="" style="margin-left: auto;"> |
|
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_08.png" width="30" alt="" style="margin-left: 5px;"> |
|
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_09.png" width="30" alt="" style="margin-left: 5px;"> |
|
|
|
<img @click="deleteSeal" src="../../assets/images/sunVillage_info/signature_icon_07.png" width="30" alt="" style="margin-left: auto;display: block;"> |
|
|
|
<!-- <img src="../../assets/images/sunVillage_info/signature_icon_08.png" width="30" alt="" style="margin-left: 5px;">--> |
|
|
|
<van-uploader :after-read="addSeal"> |
|
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_09.png" width="30" alt="" style="margin-left: 5px;display: block;"> |
|
|
|
</van-uploader> |
|
|
|
</div> |
|
|
|
<div class="time"> |
|
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_06.png" alt="" width="60%"> |
|
|
|
<img :src="seal" alt="" width="60%"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!----1--> |
|
|
|
<div class="item"> |
|
|
|
<div class="info"> |
|
|
|
<div class="title"> |
|
|
|
<i class="icon_box"></i> |
|
|
|
<p class="news_title">经济组织公章</p> |
|
|
|
<img @click="deleteSeal2" src="../../assets/images/sunVillage_info/signature_icon_07.png" width="30" alt="" style="margin-left: auto;display: block;"> |
|
|
|
<!-- <img src="../../assets/images/sunVillage_info/signature_icon_08.png" width="30" alt="" style="margin-left: 5px;">--> |
|
|
|
<van-uploader :after-read="addSeal2"> |
|
|
|
<img src="../../assets/images/sunVillage_info/signature_icon_09.png" width="30" alt="" style="margin-left: 5px;display: block;"> |
|
|
|
</van-uploader> |
|
|
|
</div> |
|
|
|
<div class="time"> |
|
|
|
<img :src="seal2" alt="" width="60%"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="operation">--> |
|
|
|
<!-- <!– delete 删除 edit编辑 view查看 list榜单 –>--> |
|
|
|
<!-- <div class="opera_btn edit">--> |
|
|
|
<!-- <i class="icon "></i>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- <div class="opera_btn delete">--> |
|
|
|
<!-- <i class="icon"></i>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </div>--> |
|
|
|
|
|
|
|
</van-list> |
|
|
|
</div> |
|
|
|
<!-- <div class="bottom_tips">--> |
|
|
|
<!-- <span class="xs">已经到底啦</span>--> |
|
|
|
<!-- </div>--> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { otherPublicList , otherRemove } from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
import {commonUpload, current, updateSeal, updateSeal2} from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
import Cookies from "js-cookie"; |
|
|
|
import request from '@/utils/request' |
|
|
|
export default { |
|
|
@@ -76,111 +75,72 @@ |
|
|
|
show: false, |
|
|
|
showTab: false, |
|
|
|
fileList:[], |
|
|
|
listLength:'0', |
|
|
|
searchInput:'', |
|
|
|
queryParams:{ |
|
|
|
pageNum:1, |
|
|
|
pageSize:10, |
|
|
|
orderByColumn:'openAt', |
|
|
|
isAsc:'desc', |
|
|
|
translate_dict:1, |
|
|
|
otherType:'' |
|
|
|
}, |
|
|
|
uploadFiles1:[], |
|
|
|
projectId:'', |
|
|
|
projectIndex:'', |
|
|
|
showBtn:true, |
|
|
|
nowYear:new Date().getFullYear(), |
|
|
|
yearList:[] |
|
|
|
yearList:[], |
|
|
|
seal:'', |
|
|
|
seal2:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.houseGetDicts("other_gk_type").then((response) => { |
|
|
|
this.otherGkTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.queryParams.bookId = Cookies.get('bookId'); |
|
|
|
this.queryParams.deptId = Cookies.get('deptId'); |
|
|
|
this.queryParams.otherType = this.$route.query.typeX; |
|
|
|
if (this.$route.query.type == 'code'){ |
|
|
|
this.showBtn = false; |
|
|
|
} |
|
|
|
document.title = this.$route.query.typeX=='1'?'合同公开':this.$route.query.typeX=='2'?'党务公开':this.$route.query.typeX=='3'?'政务公开':''; |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getList(){ |
|
|
|
var _this = this; |
|
|
|
console.log(_this.queryParams) |
|
|
|
otherPublicList(_this.queryParams).then(response => { |
|
|
|
_this.listLength = response.total; |
|
|
|
response.rows.map(res=>{ |
|
|
|
// res.pictureType = this.selectDictLabel(this.pictureTypeOptions, res.pictureType); |
|
|
|
_this.applicationList.push(res); |
|
|
|
}) |
|
|
|
|
|
|
|
if(_this.applicationList.length >= response.total){ |
|
|
|
_this.finished = true; |
|
|
|
return; |
|
|
|
}else{ |
|
|
|
_this.loading = false; |
|
|
|
_this.queryParams.pageNum += 1 ; |
|
|
|
} |
|
|
|
current().then(response => { |
|
|
|
this.seal = '/api'+response.data.seal; |
|
|
|
this.seal2 = '/api'+response.data.seal2; |
|
|
|
}); |
|
|
|
}, |
|
|
|
tabClick(year){ |
|
|
|
this.queryParams.year = year ; |
|
|
|
this.applicationList = []; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
tabShow(){ |
|
|
|
this.showTab = !this.showTab; |
|
|
|
}, |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row,index) { |
|
|
|
let assetStatus = row.assetStatus ? row.assetStatus : data[0].assetStatus; |
|
|
|
if (assetStatus === '2' || assetStatus === '3') { |
|
|
|
this.$notify({ |
|
|
|
message: "不允许删除已出售或已报废的资产", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
let useType = row.useType; |
|
|
|
if(useType == 3) { |
|
|
|
this.$notify({ |
|
|
|
message: "出租或出借的资产不允许删除", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return ; |
|
|
|
} |
|
|
|
const ids = row.id || this.ids; |
|
|
|
|
|
|
|
this.$dialog.alert( |
|
|
|
{ |
|
|
|
message:'是否确认删除固定资产?', |
|
|
|
title:"警告", |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
} |
|
|
|
) |
|
|
|
.then(function () { |
|
|
|
return delPermanent(ids); |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.applicationList.splice(index, 1); |
|
|
|
deleteSeal(){ |
|
|
|
this.$dialog.alert({ |
|
|
|
title: '提示', |
|
|
|
message: '确认删除?', |
|
|
|
showCancelButton:true, |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
updateSeal().then(response => { |
|
|
|
this.seal = ''; |
|
|
|
this.$notify({ type: 'success', message: '删除成功' }); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
// on cancel |
|
|
|
}); |
|
|
|
}, |
|
|
|
goAdd(){ |
|
|
|
this.$router.push({path: '/sunVillage_info/list_contract_add', query: {type: this.$route.query.typeX}}) |
|
|
|
}, |
|
|
|
goDetail(id){ |
|
|
|
this.$router.push({path:'/sunVillage_info/list_contract_detail',query: {id:id,type:this.$route.query.typeX,showBtn:this.showBtn}}) |
|
|
|
addSeal(file){ |
|
|
|
let params1 = new FormData(); |
|
|
|
params1.append("file", file.file); |
|
|
|
updateSeal(params1).then(response => { |
|
|
|
this.seal = response.url; |
|
|
|
}); |
|
|
|
}, |
|
|
|
goEdit(id){ |
|
|
|
this.$router.push({path:'/sunVillage_info/list_contract_edit',query: {id:id,type:this.$route.query.typeX}}) |
|
|
|
deleteSeal2(){ |
|
|
|
this.$dialog.alert({ |
|
|
|
title: '提示', |
|
|
|
message: '确认删除?', |
|
|
|
showCancelButton:true, |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
updateSeal2().then(response => { |
|
|
|
this.seal2 = ''; |
|
|
|
this.$notify({ type: 'success', message: '删除成功' }); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
// on cancel |
|
|
|
}); |
|
|
|
}, |
|
|
|
goRanking(id,time){ |
|
|
|
this.$router.push({path:'/sunVillage_info/list_tourists_ranking',query: {id:id,time:time}}) |
|
|
|
addSeal2(file){ |
|
|
|
let params1 = new FormData(); |
|
|
|
params1.append("file", file.file); |
|
|
|
updateSeal2(params1).then(response => { |
|
|
|
this.seal2 = response.url; |
|
|
|
}); |
|
|
|
}, |
|
|
|
goRemove(id,index){ |
|
|
|
this.$dialog.alert({ |
|
|
|