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