Browse Source

Merge remote-tracking branch 'origin/master'

ningsy 3 years ago
parent
commit
6b8a08bdcc
1 changed files with 30 additions and 1 deletions
  1. 30 1
      suishenbang-admin/src/main/resources/templates/system/user/edit.html

+ 30 - 1
suishenbang-admin/src/main/resources/templates/system/user/edit.html

@@ -194,9 +194,38 @@
                 </div>
                 <div class="col-sm-6">
                     <div class="form-group">
-                        <label class="col-sm-4 control-label">是否是经理:</label>
+                        <!--<label class="col-sm-4 control-label">是否是经理:</label>
                         <div class="col-sm-8">
                             <input class="form-control" type="text" readonly="true" th:field="*{sysUserExt.isCustomerManager}" />
+                        </div>-->
+                        <label class="col-sm-4 control-label">经销商职位:</label>
+                        <!--<div class="col-sm-8">
+                            <div th:if="${user.sysUserExt.isCustomerManager eq '0'}">
+                                <input class="form-control" type="text" readonly="true" value="导购" />
+                            </div>
+                            <div th:if="${user.sysUserExt.isCustomerManager eq '1'}">
+                                <input class="form-control" type="text" readonly="true" value="经理" />
+                            </div>
+                            <div th:if="${user.sysUserExt.isCustomerManager eq '2'}">
+                                <input class="form-control" type="text" readonly="true" value="财务" />
+                            </div>
+                            <div th:if="${user.sysUserExt.isCustomerManager eq '3'}">
+                                <input class="form-control" type="text" readonly="true" value="仓管" />
+                            </div>
+                        </div>-->
+                        <div class="col-sm-8" th:switch="${user.sysUserExt.isCustomerManager}">
+                            <div th:case="0">
+                                <input class="form-control" type="text" readonly="true" value="导购" />
+                            </div>
+                            <div th:case="1">
+                                <input class="form-control" type="text" readonly="true" value="经理" />
+                            </div>
+                            <div th:case="2">
+                                <input class="form-control" type="text" readonly="true" value="财务" />
+                            </div>
+                            <div th:case="3">
+                                <input class="form-control" type="text" readonly="true" value="仓管" />
+                            </div>
                         </div>
                     </div>
                 </div>