Commit 75d3172d3ac9845e633ffc7e25ee5895dfe817b4
1 parent
69173829
样式优化
Showing
4 changed files
with
17 additions
and
2 deletions
components/thorui/tui-searchbar/tui-searchbar.vue
@@ -263,7 +263,8 @@ | @@ -263,7 +263,8 @@ | ||
263 | font-size: 0; | 263 | font-size: 0; |
264 | display: flex; | 264 | display: flex; |
265 | align-items: center; | 265 | align-items: center; |
266 | - justify-content: center; | 266 | + justify-content: left; |
267 | + text-indent: 20rpx; | ||
267 | /* #ifdef H5 */ | 268 | /* #ifdef H5 */ |
268 | cursor: pointer; | 269 | cursor: pointer; |
269 | /* #endif */ | 270 | /* #endif */ |
subPackages/treePage/addTree.vue
1 | <template> | 1 | <template> |
2 | <view class="container"> | 2 | <view class="container"> |
3 | + | ||
3 | <tui-form ref="form" :show-message="false" :model="formData"> | 4 | <tui-form ref="form" :show-message="false" :model="formData"> |
4 | <tui-form-item asterisk label="名称" prop="treetype"> | 5 | <tui-form-item asterisk label="名称" prop="treetype"> |
5 | <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" | 6 | <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" |
@@ -385,6 +386,7 @@ export default { | @@ -385,6 +386,7 @@ export default { | ||
385 | this.formData.treeleveltext = e.dictLabel | 386 | this.formData.treeleveltext = e.dictLabel |
386 | }, | 387 | }, |
387 | submit() { | 388 | submit() { |
389 | + | ||
388 | // 3. 打印提交时的数据 | 390 | // 3. 打印提交时的数据 |
389 | console.log("提交时treeImgList:", this.formData.treeImgList); | 391 | console.log("提交时treeImgList:", this.formData.treeImgList); |
390 | // 手动校验图片 | 392 | // 手动校验图片 |
@@ -397,6 +399,8 @@ export default { | @@ -397,6 +399,8 @@ export default { | ||
397 | if (res.isPass) { | 399 | if (res.isPass) { |
398 | console.log(this.formData) | 400 | console.log(this.formData) |
399 | console.log('校验通过!') | 401 | console.log('校验通过!') |
402 | + | ||
403 | + this.formData.maintainunit = this.userInfo.belongCompanyId | ||
400 | // addTree() | 404 | // addTree() |
401 | addTree({data: {...this.formData}}).then(res => { | 405 | addTree({data: {...this.formData}}).then(res => { |
402 | console.log(res) | 406 | console.log(res) |
subPackages/treePage/editTreeIfo.vue
@@ -424,6 +424,7 @@ export default { | @@ -424,6 +424,7 @@ export default { | ||
424 | console.log('校验通过!') | 424 | console.log('校验通过!') |
425 | updateTree({data:this.formData}).then(res => { | 425 | updateTree({data:this.formData}).then(res => { |
426 | console.log(res) | 426 | console.log(res) |
427 | + this.formData.maintainunit = this.userInfo.belongCompanyId | ||
427 | if (res.code == '200') { | 428 | if (res.code == '200') { |
428 | uni.showToast({title: "修改成功", icon: "none"}); | 429 | uni.showToast({title: "修改成功", icon: "none"}); |
429 | // uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${this.formData.road}`) | 430 | // uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${this.formData.road}`) |
subPackages/treePage/treeFiles.vue
@@ -165,7 +165,7 @@ export default { | @@ -165,7 +165,7 @@ export default { | ||
165 | }, | 165 | }, |
166 | pickerChange(e) { | 166 | pickerChange(e) { |
167 | console.log(e) | 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,7 +244,16 @@ export default { | ||
244 | min-width: 70px; | 244 | min-width: 70px; |
245 | text-align: right; | 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 | </style> | 257 | </style> |
249 | 258 | ||
250 | <style> | 259 | <style> |