1 <container-dialog id="SelectEntity" button-text="添加服务推荐地域" >
 2         <form-single name="CreateProductRecommend" transition="createProductCategoryGeo">
 3             <field name="parentGeoId"><default-field title="省份"><drop-down>
 4                 <list-options list="gatdList" key="${toGeoId}" text="${geoNameLocal}"/>
 5             </drop-down></default-field></field>
 6             <field name="geoId"><default-field title="市">
 7                 <drop-down combo-box="true">
 8                     <dynamic-options transition="getCity" value-field="toGeoId" label-field="geoNameLocal">
 9                         <depends-on field="parentGeoId"/>
10                     </dynamic-options>
11                 </drop-down>
12             </default-field></field>
13             <field name="submitButton"><default-field title="提交"><submit confirmation="Really Add?"/></default-field></field>
14         </form-single>
15         </container-dialog>
<transition name="getCity">
        <actions>
            <entity-find entity-name="moqui.basic.GeoAssocAndToDetail" list="paatdList">
                <econdition field-name="geoId" from="parentGeoId"/>
            </entity-find>
            <script>ec.web.sendJsonResponse(paatdList)</script>
        </actions>
        <default-response type="none"/>
    </transition>

 

相关文章:

  • 2021-06-15
  • 2021-11-05
  • 2022-02-16
  • 2022-02-12
  • 2021-06-22
  • 2021-07-04
  • 2021-10-21
  • 2021-04-09
猜你喜欢
  • 2021-11-14
  • 2021-07-11
  • 2021-09-28
  • 2021-12-13
  • 2021-06-16
  • 2021-12-15
  • 2021-09-17
相关资源
相似解决方案