From 71e821ab5e6b3014fac9b691d6957bcc09704b70 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期三, 29 五月 2024 11:45:04 +0800 Subject: [PATCH] 修改定制封面逻辑 --- CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html | 49 +++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 43 insertions(+), 6 deletions(-) diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html index 20dd5b9..a1cd7ce 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html @@ -122,7 +122,7 @@ </div> </script> - +<script src="/views/liao.js"></script> <script> var indexData; var debug = layui.setter.debug; @@ -190,9 +190,9 @@ { field: 'profession', title: '琛屼笟', sort: false, width: 100 }, // { field: 'qq', title: 'qq鍙�', sort: false, width: 90 }, { field: 'sales', title: '骞磋惀涓氶(鍏�)', sort: false, width: 100 }, - { field: 'storeName', title: '搴楅摵鍚嶇О', sort: false }, + { field: 'storeName', title: '搴楅摵鍚嶇О', sort: false,width: 133 }, - { field: 'storeCoordinate', title: '搴楅摵鍧愭爣', sort: false }, + // { field: 'storeCoordinate', title: '搴楅摵鍧愭爣', sort: false }, // { // field: 'storeLogo', title: 'Logo', sort: false, width: 60, templet: function (d) { // if (d.storeLogo) { @@ -202,6 +202,26 @@ // } // } // }, + { field: 'schoolName', title: '瀛︽牎鍚嶇О', sort: false,width: 133 }, + { + field: 'idCradNumber', title: '韬唤璇�', width: 120, sort: false, + templet: function (d) { + if (d.idCradNumber) { + + var listimg= d.idCradNumber.split(",") + var str=""; + listimg.forEach((value,index)=> + { + str+= '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + value + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + value + '" /></a>' + + }) + + return str; + } else { + return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + setter.noImagePicUrl + '" /></a>'; + } + } + }, { field: 'storeBanner', title: '闂ㄥご鍥剧墖', sort: false, width: 100, templet: function (d) { if (d.storeBanner) { @@ -211,7 +231,11 @@ } } }, - { field: 'distributionAchievementTotals', title: '鍘嗗彶鎺ㄥ箍璐规�诲拰(鍏�)', sort: false, width: 100 }, + { field: 'distributionAchievementTotals', title: '鍘嗗彶鎺ㄥ箍璐规�诲拰(鍏�)', sort: false, width: 133 }, + { field: 'distributionYingLingTotals', title: '搴旈浣i噾(鍏�)', sort: false, width: 133 }, + { field: 'distributionKeLingTotals', title: '鍙浣i噾(鍏�)', sort: false, width: 133 }, + { field: 'distributionYiJieSuanTotals', title: '宸茬粨绠椾剑閲�(鍏�)', sort: false, width: 133 }, + //{ field: 'storeDesc', title: '搴楅摵绠�浠�', sort: false, width: 105 }, { field: 'verifyStatus', title: '瀹℃牳鐘舵��', sort: false, width: 80, templet: function (data) { @@ -222,6 +246,7 @@ } } }, + { field: 'createTime', title: '鍒涘缓鏃堕棿', width: 130, sort: false }, { field: 'updateTime', title: '鏇存柊鏃堕棿', width: 130, sort: false }, { field: 'verifyTime', title: '瀹℃牳鏃堕棿', width: 130, sort: false }, @@ -276,7 +301,7 @@ admin.popup({ shadeClose: false, title: '鍒涘缓鏁版嵁', - area: ['640px', '300px'], + area: ['640px', '500px'], id: 'LAY-popup-CoreCmsDistribution-create', success: function (layero, index) { view(this.id).render('distribution/distributor/create', { data: e.data }).done(function () { @@ -284,7 +309,10 @@ form.on('submit(LAY-app-CoreCmsDistribution-createForm-submit)', function (data) { var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈� - + field.areaCode = GetAreaCodeFormFileid( + field, + "CreatDistrbutorSelAreaCode" + ); if (debug) { console.log(field); } //寮�鍚皟璇曡繑鍥炴暟鎹� //鎻愪氦 Ajax 鎴愬姛鍚庯紝鍏抽棴褰撳墠寮瑰眰骞堕噸杞借〃鏍� coreHelper.Post("Api/CoreCmsDistribution/DoCreate", field, function (e) { @@ -365,6 +393,15 @@ function doDetails(obj) { coreHelper.Post("Api/CoreCmsDistribution/GetDetails", { id: obj.data.id }, function (e) { if (e.code === 0) { + debugger + if(e.data.model.idCradNumber) + { + + lisimg=e.data.model.idCradNumber.split(','); + e.data.lisimg1=lisimg[0]; + + e.data.lisimg2=lisimg[1]; + } admin.popup({ shadeClose: false, title: '鏌ョ湅璇︽儏', -- Gitblit v1.9.1