designerManage.zml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <script>
  2. function remark(){
  3. var designer = Z.FM.getChecked("designer");
  4. Z.prompt("请输入标签内容", Z("#remark"+designer).val(), function(value){
  5. var ajax = new Z.Ajax();
  6. ajax.setContextPath("${context.getContextPath()}");
  7. ajax.setClassName("DesignerPresenter");
  8. ajax.setMethodName("doUpdateCourseRemark");
  9. ajax.addParam("designer",designer);
  10. ajax.addParam("remark",value);
  11. ajax.setFailureAlert();
  12. ajax.setSuccess(function(){
  13. Z.success("操作成功",function(){
  14. document.getElementById("designerManage").submit();
  15. });
  16. });
  17. ajax.execute();
  18. });
  19. }
  20. function queryDetail(){
  21. var designer = Z.FM.getChecked("designer");
  22. var dialog = new parent.Z.Dialog();
  23. dialog.title = "设计师详情";
  24. dialog.url = "/designerCourseDetail.htm?designer="+designer;
  25. dialog.width = 700;
  26. dialog.height = 520;
  27. dialog.execute();
  28. }
  29. function exportData(){
  30. var form = document.designerManage;
  31. form.action= "/designerManageExport.htm"
  32. form.submit();
  33. setTimeout(form.action= "/designerManage.htm",300);
  34. }
  35. //指定组织
  36. function doAssignOrg()
  37. {
  38. var designer = Z.FM.getChecked("designer");
  39. if (Z.V.isEmpty(designer))
  40. {
  41. Z.alert("请选择设计师");
  42. return;
  43. }
  44. var dialog = new Z.Dialog();
  45. dialog.title = "指定组织";
  46. dialog.url = "/assignOrg.htm?designer=" + designer;
  47. dialog.width = 400;
  48. dialog.height = 250;
  49. dialog.execute();
  50. }
  51. function mobileDelete(){
  52. var designer = Z.FM.getChecked("designer");
  53. if(Z.V.isEmpty(designer)){
  54. Z.alert("请选择一条订单");
  55. return;
  56. }
  57. Z.confirm("是否确认删除手机号", function()
  58. {
  59. var ajax = new Z.Ajax();
  60. ajax.setClassName("OrderPresenter");
  61. ajax.setMethodName("mobileDelete");
  62. ajax.addParam(designer);
  63. ajax.setFailureAlert();
  64. ajax.setSuccess(function(){
  65. Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
  66. });
  67. ajax.setLoading("returnTk", '正在提交', {disabled:true});
  68. ajax.execute();
  69. }, {width:320});
  70. }
  71. </script>
  72. ${zhiqim_manager_breadcrumb("设计师管理")}
  73. ${zhiqim_manager_content()}
  74. <#-- 导航 -->
  75. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  76. <nav>
  77. <ul>
  78. <li class="z-active">设计师管理</li>
  79. <li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
  80. <li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
  81. <li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
  82. <li onclick="Z.L.href('designerReg.htm');">注册审核</li>
  83. <li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
  84. <li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
  85. </ul>
  86. </nav>
  87. </div>
  88. <#-- 查询条件 -->
  89. ${zhiqim_manager_title("查询条件")}
  90. <form name="designerManage" action="/designerManage.htm" method="post" id="designerManage">
  91. <table class="z-table z-bordered z-pd6 z-bg-white">
  92. <tr>
  93. <td>&nbsp;设&nbsp;计&nbsp;师&nbsp;
  94. <input type="text" name="designer" class="z-input z-w180 ${zmr_color_class}" value="${designer}">
  95. </td>
  96. <td>&nbsp;手&nbsp;机&nbsp;号&nbsp;
  97. <input type="text" name="operatorMobile" class="z-input z-w180 ${zmr_color_class}" value="${operatorMobile}">
  98. </td>
  99. <td>&nbsp;组&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;织&nbsp;
  100. <select name="orgId" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  101. <option value="">请选择</option>
  102. <#for item : orgList>
  103. <option value="${item.getOrgId()}" <#if orgId == item.getOrgId()>selected</#if>>${item.getOrgName()}</option>
  104. </#for>
  105. </select>
  106. </td>
  107. <td>工作年限&nbsp;<select name="workDuration" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  108. <option value="">请选择</option>
  109. <option value="应届" <#if workDuration == "应届">selected</#if>>应届</option>
  110. <option value="1年以内" <#if workDuration == "1年以内">selected</#if>>1年以内</option>
  111. <option value="1-2年" <#if workDuration == "1-2年">selected</#if>>1-2年</option>
  112. <option value="2-3年" <#if workDuration == "2-3年">selected</#if>>2-3年</option>
  113. <option value="3年以上" <#if workDuration == "3年以上">selected</#if>>3年以上</option>
  114. <option value="5年以上" <#if workDuration == "5年以上">selected</#if>>5年以上</option>
  115. <option value="10年以上" <#if workDuration == "10年以上">selected</#if>>10年以上</option>
  116. </select>
  117. </td>
  118. <td>工作经历&nbsp;<select name="workExperience" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  119. <option value="">请选择</option>
  120. <option value="初入设计行业" <#if workExperience == "初入设计行业">selected</#if>>初入设计行业</option>
  121. <option value="图文广告点" <#if workExperience == "图文广告点">selected</#if>>图文广告点</option>
  122. <option value="淘宝等线上设计" <#if workExperience == "淘宝等线上设计">selected</#if>>淘宝等线上设计</option>
  123. <option value="品牌设计公司" <#if workExperience == "品牌设计公司">selected</#if>>品牌设计公司</option>
  124. <option value="综合广告公司" <#if workExperience == "综合广告公司">selected</#if>>综合广告公司</option>
  125. <option value="企业设计岗位" <#if workExperience == "企业设计岗位">selected</#if>>企业设计岗位</option>
  126. </select>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>擅长设计&nbsp;<select name="designType" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  131. <option value="">请选择</option>
  132. <option value="名片类" <#if designType == "名片类">selected</#if>>名片类</option>
  133. <option value="海报类" <#if designType == "海报类">selected</#if>>海报类</option>
  134. <option value="包装类" <#if designType == "包装类">selected</#if>>包装类</option>
  135. <option value="logo设计" <#if designType == "logo设计">selected</#if>>logo设计</option>
  136. <option value="画册设计" <#if designType == "画册设计">selected</#if>>画册设计</option>
  137. <option value="UI设计" <#if designType == "UI设计">selected</#if>>UI设计</option>
  138. <option value="网页设计" <#if designType == "网页设计">selected</#if>>网页设计</option>
  139. </select>
  140. </td>
  141. <td>软件能力&nbsp;<select name="skillScope" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  142. <option value="">请选择</option>
  143. <option value="CDR" <#if skillScope == "CDR">selected</#if>>CDR</option>
  144. <option value="PS" <#if skillScope == "PS">selected</#if>>PS</option>
  145. <option value="AI" <#if skillScope == "AI">selected</#if>>AI</option>
  146. <option value="3Dmax" <#if skillScope == "3Dmax">selected</#if>>3Dmax</option>
  147. <option value="C4D" <#if skillScope == "C4D">selected</#if>>C4D</option>
  148. <option value="CAD" <#if skillScope == "CAD">selected</#if>>CAD</option>
  149. </select>
  150. </td>
  151. <td>在职情况&nbsp;<select name="workStatus" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  152. <option value="">请选择</option>
  153. <option value="在职" <#if workStatus == "在职">selected</#if>>在职</option>
  154. <option value="待业" <#if workStatus == "待业">selected</#if>>待业</option>
  155. <option value="自由职业" <#if workStatus == "自由职业">selected</#if>>自由职业</option>
  156. <option value="自有工作室" <#if workStatus == "自有工作室">selected</#if>>自有工作室</option>
  157. </select>
  158. </td>
  159. <td>标签备注&nbsp;<input type="text" name="designerRemark" class="z-input z-w180 ${zmr_color_class}" value="${designerRemark}" placeholder="备注模糊匹配">
  160. </td>
  161. <td><button class="z-button z-w80 z-large z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
  162. </tr>
  163. </table>
  164. </form>
  165. <#-- 操作功能 -->
  166. <div class="z-w100p z-mg-t10 z-mg-b3">
  167. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="doAssignOrg();"><i class="z-font z-modify"></i>切换组织</button>
  168. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="remark();"><i class="z-font z-modify"></i>标签备注</button>
  169. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="queryDetail();"><i class="z-font z-query"></i>查看详情</button>
  170. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="exportData();"><i class="z-font z-download"></i>数据导出</button>
  171. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="mobileDelete();"><i class="z-font z-delete"></i>删除手机</button>
  172. </div>
  173. <#-- 列表 -->
  174. <table class="z-table z-bordered z-pd5 z-bg-white z-text-center">
  175. <tr bgcolor="${zmr_thead_bgcolor}" class="z-h40">
  176. <td width="40">选择</td>
  177. <td width="130">设计师</td>
  178. <td width="130">手机号</td>
  179. <td width="130">组织</td>
  180. <td width="170">注册时间</td>
  181. <td width="170">最后接单时间</td>
  182. <td width="100">同时接单量</td>
  183. <td width="220">标签备注</td>
  184. <td width="180">提现账号</td>
  185. <td width="100">提现方式</td>
  186. </tr>
  187. ${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有设计师信息")}
  188. <#for item : pageResult.list()>
  189. <input type="hidden" id="remark${item.getDesigner()}" value="${item.getDesignerRemark()}">
  190. <tr class="z-pointer z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  191. <td><input name="designer" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesigner()}"></td>
  192. <td>${item.getDesigner()}</td>
  193. <td>${item.getOperatorMobile()}</td>
  194. <td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
  195. <td>${item.getOperatorCreated()}</td>
  196. <td>${Sqls.toDateTimeString(item.getLastOnlimeTime())}</td>
  197. <td>${item.getOperatorParam()}</td>
  198. <td>${item.getDesignerRemark()}</td>
  199. <td>${item.getReceiveAccount()}</td>
  200. <td>${item.getReceiveType()}</td>
  201. </tr>
  202. </#for>
  203. </table>
  204. ${zhiqim_manager_paging(pageResult, "/designerManage.htm")}
  205. ${zhiqim_manager_content_end()}