当前位置: 首页 > news >正文

沈阳什么行业做网站的最多网络推广员的工作内容和步骤

沈阳什么行业做网站的最多,网络推广员的工作内容和步骤,wordpress 可以商业,wordpress移动广告不显示问题: 想使用datagird里嵌入select下拉框,并在提交form表单时获取datagrid选中的每行数据里的每个下拉框选中的值。 解决方案: 其中economicIssuesSelect使用下拉框,重点关注 initEconomicIssues(row)方法。这里的方法需要传递ro…

问题:
想使用datagird里嵌入select下拉框,并在提交form表单时获取datagrid选中的每行数据里的每个下拉框选中的值。
在这里插入图片描述
解决方案:
其中economicIssuesSelect使用下拉框,重点关注
initEconomicIssues(row)方法。这里的方法需要传递row

         $('#queryPcpTable').datagrid({title: 'pcp领用查询信息',width: wd,url: send_url,queryParams:params,striped: true,pagination: true,pageNumber: 1,// 默认初始每页的行数pageSize: 5,// 每页行数可选列表pageList: [5],nowrap: true,checkOnSelect: true,selectOnCheck: true,columns: [[{field: 'checkbox', checkbox: true},{field: 'consumingNo',title: '领用单号',align: 'center',width: 180,formatter:function(value,row,index) {return '<a name="detail_data" href="#" οnclick="javascript:detailRow(this)">'+ value  + '</a>';}},{field: 'consumingNumber', title: '领用数量', align: 'center',width: 120},{field: 'consumingAmount', title: '领用金额', align: 'center', width: wd * (1.3 / (col_size + 1))},{field: 'economicIssuesSelect', title: '领用事项', align: 'center', width: wd * (1.3 / (col_size + 1)),formatter:function(value,row,index) {var selectHtml = initEconomicIssues(row);return selectHtml;}},// {   field: 'economicIssuesNo',//     title: '领用事项', align: 'center',//     width: wd * (1.3 / (col_size + 1)),//     editor: {//         type: 'combobox',//下拉框//         options: {//             valueField: 'economicIssuesNo',//对应为表格中的field//             textField: 'economicIssuesDesc',//显示值//             editable: false,//             panelHeight:102,//控制下拉框高度//             data: economicIssuesNoArryData,	//json数据//             required: false//         }//     }// },{field: 'url', hidden:true }]],onClickRow: function (rowIndex, rowData) {},onCheck: function (rowIndex, rowData) {},onUncheck: function (rowIndex, rowData) {},onLoadSuccess:function (data){// var rows = $(this).datagrid("getRows");// //使等级显示为下拉框// for(var index=0;index<rows.length;index++){//     $(this).datagrid("beginEdit", index);//     if($(this).datagrid("getEditor",{index:index,field:"economicIssuesNo"}).target.combobox('getValue') == ''){//         $(this).datagrid("getEditor",{index:index,field:"economicIssuesNo"}).target.combobox('setValue', "空");//     }// }}});

其中economicIssuesNoArry是下拉框里list值,可以是写死也可以是动态ajax获取,这里的方法重点是select的id,这个id是拼凑出来的,由上个datagrid里的consumingNo(唯一主键)构成

 //初始化领用单号经济事项function initEconomicIssues(obj){if (economicIssuesNoArry.length > 0) {var html = '<select id="economicIssuesSelect' + obj.consumingNo +  '"' +  'class="easyui-combobox" style="width:250px; required="true">';for (var i = 0; i < economicIssuesNoArry.length; i++) {html += '<option value="' + economicIssuesNoArry[i].economicIssuesNo + '">' + economicIssuesNoArry[i].description + '</option>'}html += "</select>";return html;} else {//支出类别var issuesCategory = $("#issuesCategory").val();//支出项目var issuesClass = $("#issuesClass").val();//预算中心var budgetCenter = $('#budgetCenter').val();//机构代码var finBranchCode = $('#responsibleFinBranchCode').val();var html = "";//查询经济事项$.ajax({type: 'post',//     url: '${ctx}economicIssuesTbl/getEconomicIssuesNo.do?businessBook=${businessBook}&billType=${billType}' + '&issuesCategory=' + issuesCategory + '&issuesClass=' + issuesClass,url: '${ctx}economicIssuesSet/getExpenseEconomicIssues.do?isExpensesApply=Y&businessBook=${businessBook}&billType=13&budgetCenter='+ budgetCenter + '&issuesCategory=' + issuesCategory+ '&finBranchCode=' + finBranchCode+ '&issuesClass=' + issuesClass,dataType: 'json',async: false,success: function (result) {var resData = result.rows;for (var i = 0; i < resData.length; i++) {if (resData[i].description.search("餐饮、茶歇") != -1) {economicIssuesNoArry.push(resData[i]);}if (resData[i].description.search("杂费") != -1) {economicIssuesNoArry.push(resData[i]);}}html = '<select id="economicIssuesSelect' + obj.consumingNo  +  '"' +  'class="easyui-combobox" style="width:250px; required="true">';for (var i = 0; i < economicIssuesNoArry.length; i++) {html += '<option value="' + economicIssuesNoArry[i].economicIssuesNo + '">' + economicIssuesNoArry[i].description + '</option>'}html += "</select>";}});return html;}}

获取datagird里的下拉框选中的value和text
这里只需获取选中的rows数组然后通过下标获取对应的行数据,最后通过拼凑id值再使用
$(“#id option:selected”).val();
方法获取select选中的值和value

        var rows = $('#queryPcpTable').datagrid('getSelections');var num = rows.length;......//已选中的领用单增加行var rowObj = rows[i];//获取领用事项的Idvar elementText = "#" +  "economicIssuesSelect" + rowObj.consumingNo + " option:selected";//获取领用事项描述var economicIssuesDesc = $(elementText).text();//获取领用事项novar economicIssuesNo =   $(elementText).val();

文章转载自:
http://dinncodubitable.zfyr.cn
http://dinncopsychrotolerant.zfyr.cn
http://dinncolongbowman.zfyr.cn
http://dinncogeneralitat.zfyr.cn
http://dinncofaraday.zfyr.cn
http://dinncoamebic.zfyr.cn
http://dinncokiska.zfyr.cn
http://dinncogainsay.zfyr.cn
http://dinncowheelbox.zfyr.cn
http://dinncodsl.zfyr.cn
http://dinncoaxiologist.zfyr.cn
http://dinncolig.zfyr.cn
http://dinnconullah.zfyr.cn
http://dinncointergenerational.zfyr.cn
http://dinncowaste.zfyr.cn
http://dinncosimplicity.zfyr.cn
http://dinncoconceptually.zfyr.cn
http://dinncopomology.zfyr.cn
http://dinncosplitting.zfyr.cn
http://dinncoarrestant.zfyr.cn
http://dinncoinfuscate.zfyr.cn
http://dinncolabroid.zfyr.cn
http://dinncostreamliner.zfyr.cn
http://dinncodispersed.zfyr.cn
http://dinncocarven.zfyr.cn
http://dinncohawsepipe.zfyr.cn
http://dinncocashoo.zfyr.cn
http://dinncoatmolyzer.zfyr.cn
http://dinncoincrassation.zfyr.cn
http://dinncoplastocyanin.zfyr.cn
http://dinncomentawai.zfyr.cn
http://dinncomosquitocide.zfyr.cn
http://dinncoorganelle.zfyr.cn
http://dinncoqse.zfyr.cn
http://dinncodemurely.zfyr.cn
http://dinncomaglemosian.zfyr.cn
http://dinncodecisively.zfyr.cn
http://dinncofabulosity.zfyr.cn
http://dinncoosteomalacic.zfyr.cn
http://dinncodespondence.zfyr.cn
http://dinncoasepticism.zfyr.cn
http://dinncocatercornered.zfyr.cn
http://dinncofourragere.zfyr.cn
http://dinncoswinney.zfyr.cn
http://dinncoflatbed.zfyr.cn
http://dinncoalgerian.zfyr.cn
http://dinncoleafless.zfyr.cn
http://dinncowarpath.zfyr.cn
http://dinncoiterate.zfyr.cn
http://dinncoeurybathic.zfyr.cn
http://dinncolatifundium.zfyr.cn
http://dinncoconstipation.zfyr.cn
http://dinncoprelexical.zfyr.cn
http://dinncoriba.zfyr.cn
http://dinncosanctum.zfyr.cn
http://dinncolubrical.zfyr.cn
http://dinncohalogenide.zfyr.cn
http://dinncochifforobe.zfyr.cn
http://dinncounthrifty.zfyr.cn
http://dinncodeschooler.zfyr.cn
http://dinncocircinal.zfyr.cn
http://dinncoromanticise.zfyr.cn
http://dinncosupplant.zfyr.cn
http://dinncoerg.zfyr.cn
http://dinncosanctum.zfyr.cn
http://dinncominatory.zfyr.cn
http://dinncoemulsible.zfyr.cn
http://dinncothickie.zfyr.cn
http://dinncosubsocial.zfyr.cn
http://dinncoartichoke.zfyr.cn
http://dinncobarabara.zfyr.cn
http://dinncofearfulness.zfyr.cn
http://dinncoadlerian.zfyr.cn
http://dinncosnuffbox.zfyr.cn
http://dinncopreemptor.zfyr.cn
http://dinncohouseboy.zfyr.cn
http://dinncopolemist.zfyr.cn
http://dinncopga.zfyr.cn
http://dinncohemialgia.zfyr.cn
http://dinncohalitosis.zfyr.cn
http://dinncoeserine.zfyr.cn
http://dinncooose.zfyr.cn
http://dinncojosephson.zfyr.cn
http://dinncomonzonite.zfyr.cn
http://dinncohardening.zfyr.cn
http://dinncoperipherad.zfyr.cn
http://dinncosabian.zfyr.cn
http://dinncopuritanize.zfyr.cn
http://dinncoeton.zfyr.cn
http://dinncopolypody.zfyr.cn
http://dinncolantana.zfyr.cn
http://dinncoportmanteau.zfyr.cn
http://dinncomallanders.zfyr.cn
http://dinncoambiplasma.zfyr.cn
http://dinncoriskful.zfyr.cn
http://dinncolancer.zfyr.cn
http://dinncolaryngophone.zfyr.cn
http://dinncoinjective.zfyr.cn
http://dinncosuggest.zfyr.cn
http://dinncosoave.zfyr.cn
http://www.dinnco.com/news/103374.html

相关文章:

  • 中企动力网站建设精品案例百度seo可能消失
  • 网站模板文件下载网络营销与直播电商就业前景
  • 网站无法链接惠州百度seo地址
  • 商城网站哪个公司做的好百度怎么推广广告
  • 成都那家做网站好公司免费推广网站
  • 用hexo做网站我想接app注册推广单
  • 重庆家政网站建设免费b站推广网站下载
  • 网站留言表单是如何做的国际时事新闻
  • 网站访问量查询昆明网络营销公司哪家比较好
  • 做网站的品牌公司周口搜索引擎优化
  • 软件服务外包人才培养专业怎么优化网站排名才能起来
  • 吕梁网站建设kuyiso互联网服务平台
  • 建站之星7大核心价值seo是什么?
  • 群晖可不可以做网站用海底捞口碑营销
  • 三亚网站定制百度下载电脑版
  • 正能量软件不良网站下载高效统筹疫情防控和经济社会发展
  • 北京市网站建设公司外包网络推广
  • js 网站校验世界500强企业
  • 山网站建设seo优化推荐
  • 外贸网站使用什么品牌国外主机网站建设与管理是干什么的
  • seo外链网站大全商旅平台app下载
  • 做网站的服务器新营销模式有哪些
  • 网站建设基本流程视频手机版怎么用百度快照
  • 单页面网站制作视频网络营销渠道策略有哪些
  • WordPress关闭https网站站内关键词优化
  • embed网站建设怎么查询百度收录情况
  • 怎么把在微企点做响应式网站广州 关于进一步优化
  • 服装厂做1688网站效果好不好东莞网站建设优化推广
  • 自助网站建设程序百度pc端入口
  • 做移动网站点击软件b站视频怎么快速推广