禅道bug
This commit is contained in:
		| @@ -26,7 +26,7 @@ | |||||||
|         <template slot="right"> |         <template slot="right"> | ||||||
|           <ai-download |           <ai-download | ||||||
|               :instance="instance" |               :instance="instance" | ||||||
|               url="/app/appvillagerintegraldetail/export" |               url="/app/appvillagerintegraldetail/sysUserExport" | ||||||
|               :disabled="!Boolean(tableData.length)" |               :disabled="!Boolean(tableData.length)" | ||||||
|               :params="{familyId:detailInfo.id,type}" |               :params="{familyId:detailInfo.id,type}" | ||||||
|               fileName="余额变动明细"> |               fileName="余额变动明细"> | ||||||
| @@ -89,7 +89,7 @@ export default { | |||||||
|   methods: { |   methods: { | ||||||
|     getList() { |     getList() { | ||||||
|       this.instance.post('/app/appvillagerintegraldetail/list', null, { |       this.instance.post('/app/appvillagerintegraldetail/list', null, { | ||||||
|         params: {...this.page, familyId: this.detailInfo.id} |         params: {...this.page, familyId: this.detailInfo.id, type: this.type} | ||||||
|       }).then(res => { |       }).then(res => { | ||||||
|         if (res?.data) { |         if (res?.data) { | ||||||
|           this.tableData = res.data.records |           this.tableData = res.data.records | ||||||
|   | |||||||
| @@ -198,9 +198,9 @@ | |||||||
|                 <el-button v-if="row.orderCode" type="text" @click="goDetail(row)" title="详情" |                 <el-button v-if="row.orderCode" type="text" @click="goDetail(row)" title="详情" | ||||||
|                            :disabled="!$permissions('app_appvillagerintegralshoporder_detail')">详情 |                            :disabled="!$permissions('app_appvillagerintegralshoporder_detail')">详情 | ||||||
|                 </el-button> |                 </el-button> | ||||||
|                 <template v-if="row.orderStatus==0"> |                 <template v-if="row.orderStatus==0 || row.orderStatus==3"> | ||||||
|                   <el-button type="text" @click="handlePendingOrder(row.id,1)">确认兑换</el-button> |                   <el-button type="text" v-if="row.orderStatus==0" @click="handlePendingOrder(row.id,1)">确认兑换</el-button> | ||||||
|                   <el-button type="text" @click="handlePendingOrder(row.id,0)">取消订单</el-button> |                   <el-button type="text" v-if="row.orderStatus==0 || row.orderStatus==3" @click="handlePendingOrder(row.id,0)">取消订单</el-button> | ||||||
|                 </template> |                 </template> | ||||||
|               </div> |               </div> | ||||||
|             </template> |             </template> | ||||||
|   | |||||||
| @@ -89,7 +89,8 @@ export default { | |||||||
|         integral: {required: true, message: "请输入赠送分值,最多保留一位小数", pattern: /^\d*[.\d]\d?$/}, |         integral: {required: true, message: "请输入赠送分值,最多保留一位小数", pattern: /^\d*[.\d]\d?$/}, | ||||||
|         objectType: {required: true, message: "请选择对象"}, |         objectType: {required: true, message: "请选择对象"}, | ||||||
|         userId: {required: true, message: "请选择人员"}, |         userId: {required: true, message: "请选择人员"}, | ||||||
|       } |       }, | ||||||
|  |       flag: false | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   created() { |   created() { | ||||||
| @@ -121,12 +122,15 @@ export default { | |||||||
|           this.detail = res.data |           this.detail = res.data | ||||||
|           this.tableData = res.data.details?.records || [] |           this.tableData = res.data.details?.records || [] | ||||||
|           this.page.total = res.data.details?.total || 0 |           this.page.total = res.data.details?.total || 0 | ||||||
|  |           this.flag = false | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|     }, |     }, | ||||||
|     handleGiveScore() { |     handleGiveScore() { | ||||||
|  |       if(this.flag) return | ||||||
|       this.$refs.DialogForm.validate(v => { |       this.$refs.DialogForm.validate(v => { | ||||||
|         if (v) { |         if (v) { | ||||||
|  |           this.flag = true | ||||||
|           this.instance.post("/admin/user/giveIntegral", null, { |           this.instance.post("/admin/user/giveIntegral", null, { | ||||||
|             params: {...this.form} |             params: {...this.form} | ||||||
|           }).then(res => { |           }).then(res => { | ||||||
| @@ -134,7 +138,11 @@ export default { | |||||||
|               this.$message.success("提交成功!") |               this.$message.success("提交成功!") | ||||||
|               this.dialog = false |               this.dialog = false | ||||||
|               this.getDetail() |               this.getDetail() | ||||||
|  |             }else{ | ||||||
|  |               this.flag = false | ||||||
|             } |             } | ||||||
|  |           }).catch(() => { | ||||||
|  |             this.flag = false | ||||||
|           }) |           }) | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|   | |||||||
| @@ -316,5 +316,9 @@ export default { | |||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |   ::v-deep .is-current>.el-tree-node__content{ | ||||||
|  |     width: 100%!important; | ||||||
|  |     padding-right: 16px!important; | ||||||
|  |   } | ||||||
| } | } | ||||||
| </style> | </style> | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ | |||||||
|             </el-button> |             </el-button> | ||||||
|           </template> |           </template> | ||||||
|           <template #right> |           <template #right> | ||||||
|             <el-input size="small" placeholder="搜索户主姓名" v-model="search.name" clearable |             <el-input size="small" placeholder="搜索户主姓名" v-model="search.residentName" clearable | ||||||
|                       @change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/> |                       @change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/> | ||||||
|           </template> |           </template> | ||||||
|         </ai-search-bar> |         </ai-search-bar> | ||||||
| @@ -92,7 +92,7 @@ export default { | |||||||
|   }, |   }, | ||||||
|   data() { |   data() { | ||||||
|     return { |     return { | ||||||
|       search: {name: "", ids: ""}, |       search: {residentName: "", ids: ""}, | ||||||
|       page: {current: 1, size: 10, total: 0}, |       page: {current: 1, size: 10, total: 0}, | ||||||
|       tableData: [], |       tableData: [], | ||||||
|       dialog: false, |       dialog: false, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user