Commit 75d3172d3ac9845e633ffc7e25ee5895dfe817b4
1 parent
69173829
样式优化
Showing
4 changed files
with
17 additions
and
2 deletions
components/thorui/tui-searchbar/tui-searchbar.vue
subPackages/treePage/addTree.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="container"> |
| 3 | + | |
| 3 | 4 | <tui-form ref="form" :show-message="false" :model="formData"> |
| 4 | 5 | <tui-form-item asterisk label="名称" prop="treetype"> |
| 5 | 6 | <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" |
| ... | ... | @@ -385,6 +386,7 @@ export default { |
| 385 | 386 | this.formData.treeleveltext = e.dictLabel |
| 386 | 387 | }, |
| 387 | 388 | submit() { |
| 389 | + | |
| 388 | 390 | // 3. 打印提交时的数据 |
| 389 | 391 | console.log("提交时treeImgList:", this.formData.treeImgList); |
| 390 | 392 | // 手动校验图片 |
| ... | ... | @@ -397,6 +399,8 @@ export default { |
| 397 | 399 | if (res.isPass) { |
| 398 | 400 | console.log(this.formData) |
| 399 | 401 | console.log('校验通过!') |
| 402 | + | |
| 403 | + this.formData.maintainunit = this.userInfo.belongCompanyId | |
| 400 | 404 | // addTree() |
| 401 | 405 | addTree({data: {...this.formData}}).then(res => { |
| 402 | 406 | console.log(res) | ... | ... |
subPackages/treePage/editTreeIfo.vue
| ... | ... | @@ -424,6 +424,7 @@ export default { |
| 424 | 424 | console.log('校验通过!') |
| 425 | 425 | updateTree({data:this.formData}).then(res => { |
| 426 | 426 | console.log(res) |
| 427 | + this.formData.maintainunit = this.userInfo.belongCompanyId | |
| 427 | 428 | if (res.code == '200') { |
| 428 | 429 | uni.showToast({title: "修改成功", icon: "none"}); |
| 429 | 430 | // uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${this.formData.road}`) | ... | ... |
subPackages/treePage/treeFiles.vue
| ... | ... | @@ -165,7 +165,7 @@ export default { |
| 165 | 165 | }, |
| 166 | 166 | pickerChange(e) { |
| 167 | 167 | console.log(e) |
| 168 | - this.formData.companyId = e.text | |
| 168 | + this.formData.companyId = e.dictLabel | |
| 169 | 169 | }, |
| 170 | 170 | } |
| 171 | 171 | } |
| ... | ... | @@ -244,7 +244,16 @@ export default { |
| 244 | 244 | min-width: 70px; |
| 245 | 245 | text-align: right; |
| 246 | 246 | } |
| 247 | +::v-deep tui-search-bar__labe{ | |
| 248 | + justify-content: left!important; | |
| 249 | + padding-left: 15px!important; | |
| 247 | 250 | |
| 251 | +} | |
| 252 | +.custom-searchbar ::v-deep .tui-searchbar__input { | |
| 253 | + text-align: left !important; | |
| 254 | + justify-content: left; | |
| 255 | + padding-left: 15px; | |
| 256 | +} | |
| 248 | 257 | </style> |
| 249 | 258 | |
| 250 | 259 | <style> | ... | ... |