浏览代码

宅基地bug修改

wulanhaote
zhao 3 年前
父节点
当前提交
f43ff42ded
共有 3 个文件被更改,包括 33 次插入6 次删除
  1. +29
    -2
      src/views/onlineHome/homestead/circulation/circulationList.vue
  2. +1
    -1
      src/views/onlineHome/homestead/paidUtilize/paidUtilizeDteail.vue
  3. +3
    -3
      src/views/onlineHome/homestead/utilization/utilizationAdd.vue

+ 29
- 2
src/views/onlineHome/homestead/circulation/circulationList.vue 查看文件

@@ -34,6 +34,9 @@
<van-col>
<van-button square text="修改" type="info" v-if="item.auditStatus=='草稿'" class="delete-button" :to="{name:'circulationModify', query: {id:item.id}}" />
</van-col>
<van-col>
<van-button square text="提交" type="primary" v-if="item.auditStatus=='草稿'" class="delete-button" @click="submit(item)" />
</van-col>
<van-col>
<van-button square text="删除" type="danger" v-if="item.auditStatus=='草稿'" @click="deleteList(item.id,index)" class="delete-button" />
</van-col>
@@ -45,7 +48,7 @@
</template>

<script>
import { getList , removeList } from "@/api/onlineHome/homestead/circulation";
import { getList , removeList, goApply } from "@/api/onlineHome/homestead/circulation";
export default {
name: "circulationList",
data() {
@@ -107,13 +110,37 @@ export default {
removeList(id).then(res => {
if(res.code = 200){
this.$toast.success('删除成功');
//this.refresh();
}
});
})
.catch(() => {
// on cancel
});
},
submit(item) {
this.$dialog.confirm({
message: '确认提交该草稿?',
})
.then(() => {
// on confirm
goApply(item.id).then(res => {
if(res.code = 200){
this.$toast.success('提交成功');
this.refresh();
}
});
})
.catch(() => {
// on cancel
});
}
},
refresh() {
this.finished = false;
this.queryParams.pageNum = 1;
this.applicationList = [];
this.getList();
},
},
}
</script>


+ 1
- 1
src/views/onlineHome/homestead/paidUtilize/paidUtilizeDteail.vue 查看文件

@@ -7,7 +7,7 @@
@click-left="$router.back(-1)"
>
<template #title>
<p style="font-weight: bold;">查看有偿使用</p>
<p style="font-weight: bold;">有偿使用</p>
</template>
</van-nav-bar>
<div class="main_box">


+ 3
- 3
src/views/onlineHome/homestead/utilization/utilizationAdd.vue 查看文件

@@ -323,11 +323,11 @@ export default {
this.showfwzt = false;
},
onConfirmFwxzqssj(data){
this.circulation.fwxzqssj = this.getNowFormatDate(data).substr(0,10);;
this.circulation.fwxzqssj = this.getNowFormatDate(data).substr(0,10);
this.showfwxzqssj = false;
},
onConfirmDcsj(data){
this.circulation.dcsj = this.getNowFormatDate(data).substr(0,10);;
this.circulation.dcsj = this.getNowFormatDate(data).substr(0,10);
this.showdcsj = false;
},
goSubmit(){
@@ -336,7 +336,7 @@ export default {
nmfwlyAdd(this.circulation).then(response => {
if(response.code = 200){
this.$toast.success('保存成功');
this.$router.back();
setTimeout(() => this.$router.back(), 1000);
}
});
}).catch((e) => {


正在加载...
取消
保存