teamDesignerManage.zml 9.4 KB

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