我爱编程

2018-01-16

2018-01-16  本文已影响0人  NOTEBOOK2

1

SourceTree 2.7 - Major Release [9 January 2018]

Note: this resets your column layout and is a one-time change for the 2.7 release

Changes

Bug Fixes

Known Issues

2 仓库的税率选择和参考码部分


屏幕快照 2018-01-16 10.31.01.png 屏幕快照 2018-01-16 10.32.53.png 屏幕快照 2018-01-16 10.32.39.png

tax option

<div className={editing ? classes.editContainer : classes.container}>
  {listing.taxOptionIds.length ? (
    <Multiple name="taxOptionIds">
         <Tag
             getter={(taxOptionId) => {
             const option = taxOptions.find(({id}) => taxOptionId === id )
             return option && option.name
         }}
      />
    </Multiple>
  ) : <div className={classes.multipleEmpty}>No data to display</div>}
</div>

reference code

            <div className={classes.multipleBox}>
              <div className={editing ? classes.editContainer : classes.container}>
                {listing.listingReferenceCodes.length ? (
                  <Multiple name="listingReferenceCodes">
                    <Tag
                      getter={(listingReferenceCodes) => {
                        return listingReferenceCodes.code
                      }}
                    />
                  </Multiple>
                ) : <div className={classes.multipleEmpty}>No Reference Code</div>}
              </div>
            </div>
屏幕快照 2018-01-16 11.02.35.png 屏幕快照 2018-01-16 11.02.24.png
            <div className={classes.fieldHeader}>
              <div className={classes.fieldTitle}>Reference Code</div>
              {editing && (
                <ButtonInput
                  placeholder="Please input"
                  onClick={(e) => this.handleAddRefCode(e)}
                />
              )}
            </div>

全部删除不生效,查看新旧两版本的请求问题.问题是新版缺少一二个update请求。

3 增加API

 var updateReferenceCodes = function (id, store_id, codes) {
   return $http.put($rootScope.api + '/api/v2/stores/' + store_id 
     + '/listings/' + id + '/reference_codes', { codes }
   );
 };
上一篇下一篇

猜你喜欢

热点阅读