网格
This commit is contained in:
		| @@ -334,8 +334,8 @@ export default { | |||||||
|               this.dialog = false; |               this.dialog = false; | ||||||
|               this.getList(); |               this.getList(); | ||||||
|               this.closed(); |               this.closed(); | ||||||
|  |  | ||||||
|               this.girdInfoList = [] |               this.girdInfoList = [] | ||||||
|  |               this.girdNameList = [] | ||||||
|             } |             } | ||||||
|           }); |           }); | ||||||
|         } else { |         } else { | ||||||
|   | |||||||
| @@ -86,8 +86,9 @@ | |||||||
|           </el-table-column> |           </el-table-column> | ||||||
|           <el-table-column slot="changeIntegral" label="积分变动" align="center"> |           <el-table-column slot="changeIntegral" label="积分变动" align="center"> | ||||||
|             <template slot-scope="{ row }"> |             <template slot-scope="{ row }"> | ||||||
|               <!-- {{ row.changeIntegral > 0 ? '+' : '-' }}{{ row.changeIntegral }} --> |               <!-- <span></span> --> | ||||||
|               <span>{{ row.changeIntegral | format }}</span> |               <span v-if="row.integralType == 3">{{ row.changeIntegral | format }}</span> | ||||||
|  |               <span v-if="row.integralType == 0">{{ row.changeIntegral > 0 ? '-' : '+' }}{{ row.changeIntegral }}</span> | ||||||
|             </template> |             </template> | ||||||
|           </el-table-column> |           </el-table-column> | ||||||
|           <el-table-column slot="options" label="操作"  align="center"> |           <el-table-column slot="options" label="操作"  align="center"> | ||||||
| @@ -413,7 +414,7 @@ export default { | |||||||
|     // 所有网格 |     // 所有网格 | ||||||
|     getGridList() { |     getGridList() { | ||||||
|       this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => { |       this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => { | ||||||
|         if (res.code == 0) { |         if (res?.code == 0) { | ||||||
|           this.girdOptions = this.toTree(res.data) |           this.girdOptions = this.toTree(res.data) | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
| @@ -490,8 +491,11 @@ export default { | |||||||
|  |  | ||||||
|   filters: { |   filters: { | ||||||
|     formatTime(num) { |     formatTime(num) { | ||||||
|       let numType = Number(num) |       if(num > 0) { | ||||||
|       console.log(numType); |         return '+' + num | ||||||
|  |       } else { | ||||||
|  |         return num | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user