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

阿里云模板建站教程免费建设小学校网站

阿里云模板建站教程,免费建设小学校网站,做网站做app什么专业,南京广告公司有哪些公司特性#xff1a; 表格宽度可以自定义翻页器显示控件可以自定义列配置项可以设置显示字段列名称、宽度、字段名可以配置搜索框提示文本#xff0c;支持搜索过滤穿梭框顶部标题可以自定义左右箭头按钮文本可以设置 sgTransfer源码 templatediv :class$opti…  特性  表格宽度可以自定义翻页器显示控件可以自定义列配置项可以设置显示字段列名称、宽度、字段名可以配置搜索框提示文本支持搜索过滤穿梭框顶部标题可以自定义左右箭头按钮文本可以设置 sgTransfer源码 templatediv :class$options.namediv classsg-start :style{ width: width }div classsg-title v-iftitles{{ titles[0] }}/divdiv classsg-searchel-input stylewidth: 100%; v-model.triminputSearchValue_start maxlength20 :show-word-limitfalse:placeholderfilterPlaceholder || 请输入搜索内容... clearable keyup.native.enterinitListStartclearinitListStartel-button slotappend iconel-icon-search clickinitListStart //el-input/divdiv classsg-tableel-table reftable_start :datatableData_start :header-cell-style{ background: #f5f7fa }:height300px stylewidth: 100% stripe selection-changeselection_start_change:row-class-namerow_class_name row-clickrow_click_startel-table-column typeselection minWidth50 :selectableselectable /el-table-column v-for(a, i) in tableItems_start :keyi :propa.prop :labela.label:widtha.width || false :minWidtha.minWidth || false show-overflow-tooltip //el-table/divdiv classsg-paginationel-pagination background :hiddenstartPage.total 10 :layoutlayout :page-sizes[10, 20, 50]:pager-count5 :current-page.syncstartPage.currentPage :page-size.syncstartPage.pageSize:totalstartPage.total size-changepageChange current-changepageChange //div/divdiv classsg-center el-button :disableddisabledLeftButton clickremove typeprimary iconel-icon-arrow-left{{buttonTexts ? buttonTexts[0] : }}/el-buttonel-button :disableddisabledRightButton clickadd typeprimary{{ buttonTexts ? buttonTexts[1] : }}iclassel-icon-arrow-right stylemargin-left: 5px;/i/el-button/divdiv classsg-end :style{ width: width }div classsg-title v-iftitles{{ titles[1] }}/divdiv classsg-searchel-input stylewidth: 100%; v-model.triminputSearchValue_end maxlength20 :show-word-limitfalse:placeholderfilterPlaceholder || 请输入搜索内容... clearablekeyup.native.enterinitListEnd({ currentPage: 1 }) clearinitListEndel-button slotappend iconel-icon-search clickinitListEnd({ currentPage: 1 }) //el-input/divdiv classsg-tableel-table reftable_end :datatableData_end :header-cell-style{ background: #f5f7fa }:height300px stylewidth: 100% stripe selection-changeselection_end_changerow-clickrow_click_endel-table-column typeselection minWidth50 /el-table-column v-for(a, i) in tableItems_end :keyi :propa.prop :labela.label:widtha.width || false :minWidtha.minWidth || false show-overflow-tooltip //el-table/divdiv classsg-paginationel-pagination background :hiddenendPage.total 10 :layoutlayout :page-sizes[10, 20, 50]:pager-count5 :current-page.syncendPage.currentPage :page-size.syncendPage.pageSize:totalendPage.total size-changeinitListEnd current-changeinitListEnd //div/div/div /templatescript export default {name: sgTransfer,data() {return {width: 200px,layout: total, sizes, prev, pager, next, jumper,disabledForm: false,inputSearchValue_start: ,inputSearchValue_end: ,tableItems_start: [],//表格列配置项tableItems_end: [],//表格列配置项tableData_start: [],//呈现的当前页数据tableData_end: [],//呈现的当前页数据tableData_end_bk: [],//最终选择的数据selection_start: [],selection_end: [],startPage: { currentPage: 1, pageSize: 10, total: 0, },endPage: { currentPage: 1, pageSize: 10, total: 0, },mainKey: null,//主键}},props: [value,data,/*格式说明data: {width: 400px,//表格宽度layout: total, sizes, prev, next, jumper,//翻页器显示控件// 列配置项tableItems: [{ prop: ID, label: 工号, minWidth: 50 },{ prop: XM, label: 姓名, minWidth: 50 },{ prop: YHM, label: 用户名, minWidth: 50 },],tableData: [],//表格显示内容startPage: { total: 0, },//实际总数}, */titles,buttonTexts,filterPlaceholder,],computed: {disabledLeftButton(d) {return this.selection_end.length 0;},disabledRightButton(d) {// 在左边表格选中项里面遍历每一项如果在右侧表格中都能找到匹配项就truereturn this.selection_start.every(row this.tableData_end_bk.some(v this.isSameItem(v, row)));},},watch: {value: {handler(d) {this.inputSearchValue_start ;this.inputSearchValue_end ;this.startPage.currentPage 1;this.endPage.currentPage 1;this.tableData_end_bk d || [];this.initListStart();}, deep: true, immediate: true,},data: {handler(d) {if (d) {d.width (this.width d.width);d.layout (this.layout d.layout);this.tableData_start d.tableData;this.tableItems_start d.tableItems_start || d.tableItems;this.tableItems_end d.tableItems_end || d.tableItems;this.mainKey (this.tableItems_start.find(v v.mainKey) || {}).prop;//主键this.startPage.total (d.startPage || {}).total || 0;}}, deep: true, immediate: true,},tableData_end_bk: {handler(d) {this.$emit(input, d);this.initListEnd();if (this.tableData_end.length 0) {this.inputSearchValue_end ;this.endPage.currentPage Math.round(this.tableData_end_bk.length / this.endPage.pageSize);}}, deep: true, immediate: true,},},methods: {row_click_start(row, column, event) { this.$refs.table_start.toggleRowSelection(row); },row_click_end(row, column, event) { this.$refs.table_end.toggleRowSelection(row); },pageChange(d) { this.initListStart(); this.$nextTick(() { this.refreshCheckStatus() }); },refreshCheckStatus() {this.tableData_start.forEach(row this.$refs.table_start.toggleRowSelection(row, this.tableData_end_bk.some(v this.isSameItem(v, row))));},selectable(row) { return !this.tableData_end_bk.some(v this.isSameItem(v, row)); },row_class_name({ row, rowIndex }) { return this.tableData_end_bk.find(v this.isSameItem(v, row)) ? selected : ; },isSameItem(a_obj, b_obj) {let isSame true;if (this.mainKey) {isSame a_obj[this.mainKey] b_obj[this.mainKey];} else {isSame Object.keys(a_obj).every(k a_obj[k] b_obj[k]);}return isSame;},remove(d) {if (this.mainKey) {let selection_end_mainKeys this.selection_end.map(v v[this.mainKey]);this.tableData_end_bk this.tableData_end_bk.filter(v !selection_end_mainKeys.includes(v[this.mainKey]));} else {let selection_end this.selection_end.map(v JSON.stringify(v));this.tableData_end_bk this.tableData_end_bk.filter(v !selection_end.includes(JSON.stringify(v)));}this.$nextTick(() { this.refreshCheckStatus() });},add(d) {this.selection_start.forEach(row this.tableData_end_bk.some(v this.isSameItem(v, row)) || this.tableData_end_bk.push(row));},selection_start_change(selection) {this.selection_start selection;},selection_end_change(selection) {this.selection_end selection;},initListStart() {this.$emit(init, {keyword: this.inputSearchValue_start,currentPage: this.startPage.currentPage || 1,pageSize: this.startPage.pageSize,});},initListEnd({keyword this.inputSearchValue_end,currentPage this.endPage.currentPage || 1,pageSize this.endPage.pageSize,} {}) {this.endPage.currentPage currentPage;this.endPage.pageSize pageSize;let results this.tableData_end_bk.filter(obj keyword ?Object.keys(obj).some(k obj[k].toString().toLocaleLowerCase().includes(keyword.toString().toLocaleLowerCase())): true);this.endPage.total results.length;this.tableData_end results.slice((currentPage - 1) * pageSize, (currentPage) * pageSize);},}, }; /scriptstyle langscss scoped .sgTransfer {display: flex;align-items: center;flex-wrap: nowrap;white-space: nowrap;.sg-start,.sg-end {border: 1px solid #ebeef5;border-radius: 4px;overflow: hidden;background: #fff;display: inline-block;vertical-align: middle;max-height: 100%;box-sizing: border-box;position: relative;.sg-title {height: 40px;line-height: 40px;background: #f5f7fa;margin: 0;padding-left: 15px;border-bottom: 1px solid #ebeef5;box-sizing: border-box;color: #000;}.sg-search {box-sizing: border-box;padding: 10px;}.sg-table {}.sg-pagination {height: 50px;display: flex;justify-content: center;width: 100%;box-sizing: border-box;padding: 10px;}}.sg-center {margin: 0 10px;}.sg-end {} }.el-table {tr.selected {filter: brightness(0.95);pointer-events: none;}.el-table__cell.gutter {border-bottom: 1px solid #EBEEF5;background-color: #f5f7fa;} } /style 用例 templatedivsgTransfer v-modeltransferValue :datatransferData :titles[所有用户, 本组成员] :button-texts[到左边, 到右边]:filter-placeholder请输入工号、姓名… initinitTransfer /hrdivh1勾选的数据transferValue/h1div v-htmlJSON.stringify(transferValue).replace(/\,\{/g, ,\n{)styleword-wrap: break-word;word-break: break-all;white-space: break-spaces; /div/div/div /templatescript import sgTransfer from /vue/components/admin/sgTransfer;export default {components: { sgTransfer },data() {return {// 穿梭框配置项transferValue: [],transferData: {width: 400px,//表格宽度layout: total, sizes, prev, next, jumper,//翻页器显示控件// 列配置项tableItems: [{ prop: ID, label: 工号, minWidth: 50, mainKey: true },//设置主键{ prop: XM, label: 姓名, minWidth: 50 },{ prop: YHM, label: 用户名, minWidth: 50 },],tableData: [],//表格显示内容startPage: { total: 0, },//实际总数},// 渲染数据tableData: [],tableData_bk: [],userList: [{ key: 1, label: 梁冰露 },{ key: 2, label: 吴梵听 },{ key: 3, label: 卢令美 },{ key: 4, label: 韩宛曼 },{ key: 5, label: 郝海冬 },{ key: 6, label: 傅优悦 },{ key: 7, label: 郝幻莲 },{ key: 8, label: 江嘉云 },{ key: 9, label: 梁秋芳 },{ key: 10, label: 郝悦颖 },{ key: 11, label: 廖芝蓉 },{ key: 12, label: 胡傲丝 },{ key: 13, label: 赵珺琦 },{ key: 14, label: 石心诺 },{ key: 15, label: 丁翠芙 },{ key: 16, label: 李夏河 },{ key: 17, label: 范水悦 },{ key: 18, label: 郑凝雪 },{ key: 19, label: 李亦玉 },{ key: 20, label: 袁三春 },{ key: 21, label: 赵红叶 },{ key: 22, label: 曹安琪 },{ key: 23, label: 谭琴音 },{ key: 24, label: 钟湛蓝 },{ key: 25, label: 陆之柔 },{ key: 26, label: 吕孒凡 },{ key: 27, label: 熊野雪 },{ key: 28, label: 曹叶澜 },{ key: 29, label: 韩粟梅 },{ key: 30, label: 孔杏儿 },{ key: 31, label: 宋若彤 },{ key: 32, label: 于淼淼 },{ key: 33, label: 潘欣跃 },{ key: 34, label: 石雅辰 },{ key: 35, label: 白念珍 },{ key: 36, label: 文爱茹 },{ key: 37, label: 王如曼 },{ key: 38, label: 宋丝琪 },{ key: 39, label: 王凝荷 },{ key: 40, label: 郑雨雪 },{ key: 41, label: 梁映阳 },{ key: 42, label: 徐新雨 },{ key: 43, label: 毛恬雅 },{ key: 44, label: 侯若蕊 },{ key: 45, label: 杨云蔚 },{ key: 46, label: 史之卉 },{ key: 47, label: 胡千束 },{ key: 48, label: 冯冷荷 },{ key: 49, label: 金语心 },{ key: 50, label: 江恬默 },{ key: 51, label: 高香馨 },{ key: 52, label: 江凌晴 },{ key: 53, label: 梁列琴 },{ key: 54, label: 邹鸾瑶 },{ key: 55, label: 夏素洁 },{ key: 56, label: 范秋玉 },{ key: 57, label: 钟北嘉 },{ key: 58, label: 谭水云 },{ key: 59, label: 顾山柏 },{ key: 60, label: 龙曼蔓 },{ key: 61, label: 钟双儿 },{ key: 62, label: 林林娜 },{ key: 63, label: 邹溪儿 },{ key: 64, label: 顾妙彤 },{ key: 65, label: 傅茵茵 },{ key: 66, label: 卢念露 },{ key: 67, label: 罗冷亦 },{ key: 68, label: 胡秋颖 },{ key: 69, label: 姜怡月 },{ key: 70, label: 傅和暄 },{ key: 71, label: 赖布凡 },{ key: 72, label: 郝念蕾 },{ key: 73, label: 邱天欣 },{ key: 74, label: 汤莉莉 },{ key: 75, label: 段靖易 },{ key: 76, label: 周之云 },{ key: 77, label: 董映秋 },{ key: 78, label: 汤玲琅 },{ key: 79, label: 田雁梅 },{ key: 80, label: 石雨雪 },{ key: 81, label: 任君雅 },{ key: 82, label: 蔡小谷 },{ key: 83, label: 孟忆之 },{ key: 84, label: 姜闲丽 },{ key: 85, label: 文忆香 },{ key: 86, label: 戴运虹 },{ key: 87, label: 王玄穆 },{ key: 88, label: 刘绿柳 },{ key: 89, label: 萧梦丝 },{ key: 90, label: 谭忆山 },{ key: 91, label: 方榕嫣 },{ key: 92, label: 徐欣合 },{ key: 93, label: 夏雨南 },{ key: 94, label: 尹沙羽 },{ key: 95, label: 万梦玉 },{ key: 96, label: 谢灵枫 },{ key: 97, label: 曾源源 },{ key: 98, label: 赖谷枫 },{ key: 99, label: 彭子童 },],}},created() {this.createTableData()},methods: {// 初始化、翻页、切换每页显示数量的时候触发initTransfer({ keyword , currentPage 1, pageSize 10 } {}) {// 模拟接口调用----------------------------------------let results this.tableData_bk.filter(obj keyword ? Object.keys(obj).some(k obj[k].toString().toLocaleLowerCase().includes(keyword.toString().toLocaleLowerCase())) : true);this.transferData.startPage.total results.length;this.transferData.tableData results.slice((currentPage - 1) * pageSize, (currentPage) * pageSize);// ----------------------------------------},// 构建数据createTableData(d) {this.tableData_bk this.userList.map(v {let ID this.$g.getRandomID();return { ID, XM: v.label, YHM: user${ID}, }});this.initTransfer();},} } /script
文章转载自:
http://www.morning.qggxt.cn.gov.cn.qggxt.cn
http://www.morning.hyfrd.cn.gov.cn.hyfrd.cn
http://www.morning.srgnd.cn.gov.cn.srgnd.cn
http://www.morning.kdrjd.cn.gov.cn.kdrjd.cn
http://www.morning.gbkkt.cn.gov.cn.gbkkt.cn
http://www.morning.rqxtb.cn.gov.cn.rqxtb.cn
http://www.morning.knpbr.cn.gov.cn.knpbr.cn
http://www.morning.qdbcd.cn.gov.cn.qdbcd.cn
http://www.morning.rrxnz.cn.gov.cn.rrxnz.cn
http://www.morning.epeij.cn.gov.cn.epeij.cn
http://www.morning.pbygt.cn.gov.cn.pbygt.cn
http://www.morning.yqwrj.cn.gov.cn.yqwrj.cn
http://www.morning.zlqyj.cn.gov.cn.zlqyj.cn
http://www.morning.jlmrx.cn.gov.cn.jlmrx.cn
http://www.morning.qgfy.cn.gov.cn.qgfy.cn
http://www.morning.gxklx.cn.gov.cn.gxklx.cn
http://www.morning.gthwr.cn.gov.cn.gthwr.cn
http://www.morning.xtrnx.cn.gov.cn.xtrnx.cn
http://www.morning.jjmrx.cn.gov.cn.jjmrx.cn
http://www.morning.qwdqq.cn.gov.cn.qwdqq.cn
http://www.morning.xswrb.cn.gov.cn.xswrb.cn
http://www.morning.btgxf.cn.gov.cn.btgxf.cn
http://www.morning.mhmsn.cn.gov.cn.mhmsn.cn
http://www.morning.stph.cn.gov.cn.stph.cn
http://www.morning.fglyb.cn.gov.cn.fglyb.cn
http://www.morning.spwln.cn.gov.cn.spwln.cn
http://www.morning.sryyt.cn.gov.cn.sryyt.cn
http://www.morning.qdlr.cn.gov.cn.qdlr.cn
http://www.morning.wrysm.cn.gov.cn.wrysm.cn
http://www.morning.jjnry.cn.gov.cn.jjnry.cn
http://www.morning.rjcqb.cn.gov.cn.rjcqb.cn
http://www.morning.qzpw.cn.gov.cn.qzpw.cn
http://www.morning.ylpl.cn.gov.cn.ylpl.cn
http://www.morning.tllws.cn.gov.cn.tllws.cn
http://www.morning.znnsk.cn.gov.cn.znnsk.cn
http://www.morning.spxk.cn.gov.cn.spxk.cn
http://www.morning.nykzl.cn.gov.cn.nykzl.cn
http://www.morning.pzpj.cn.gov.cn.pzpj.cn
http://www.morning.wpqcj.cn.gov.cn.wpqcj.cn
http://www.morning.tnmmp.cn.gov.cn.tnmmp.cn
http://www.morning.swkpq.cn.gov.cn.swkpq.cn
http://www.morning.xfyjn.cn.gov.cn.xfyjn.cn
http://www.morning.qfkxj.cn.gov.cn.qfkxj.cn
http://www.morning.hlfgm.cn.gov.cn.hlfgm.cn
http://www.morning.hkshy.cn.gov.cn.hkshy.cn
http://www.morning.gbljq.cn.gov.cn.gbljq.cn
http://www.morning.haibuli.com.gov.cn.haibuli.com
http://www.morning.tqfnf.cn.gov.cn.tqfnf.cn
http://www.morning.qhmgq.cn.gov.cn.qhmgq.cn
http://www.morning.zmzdx.cn.gov.cn.zmzdx.cn
http://www.morning.drspc.cn.gov.cn.drspc.cn
http://www.morning.yjfmj.cn.gov.cn.yjfmj.cn
http://www.morning.kfldw.cn.gov.cn.kfldw.cn
http://www.morning.bndkf.cn.gov.cn.bndkf.cn
http://www.morning.qmnhw.cn.gov.cn.qmnhw.cn
http://www.morning.hclqy.cn.gov.cn.hclqy.cn
http://www.morning.pqsys.cn.gov.cn.pqsys.cn
http://www.morning.zwdrz.cn.gov.cn.zwdrz.cn
http://www.morning.mmosan.com.gov.cn.mmosan.com
http://www.morning.hxmqb.cn.gov.cn.hxmqb.cn
http://www.morning.dxgt.cn.gov.cn.dxgt.cn
http://www.morning.fjgwg.cn.gov.cn.fjgwg.cn
http://www.morning.qsmch.cn.gov.cn.qsmch.cn
http://www.morning.nslwj.cn.gov.cn.nslwj.cn
http://www.morning.smrty.cn.gov.cn.smrty.cn
http://www.morning.hhxkl.cn.gov.cn.hhxkl.cn
http://www.morning.rdbj.cn.gov.cn.rdbj.cn
http://www.morning.bpmfl.cn.gov.cn.bpmfl.cn
http://www.morning.trhlb.cn.gov.cn.trhlb.cn
http://www.morning.gjlxn.cn.gov.cn.gjlxn.cn
http://www.morning.qshxh.cn.gov.cn.qshxh.cn
http://www.morning.qkgwx.cn.gov.cn.qkgwx.cn
http://www.morning.zlxkp.cn.gov.cn.zlxkp.cn
http://www.morning.rwqj.cn.gov.cn.rwqj.cn
http://www.morning.stsnf.cn.gov.cn.stsnf.cn
http://www.morning.ztcxx.com.gov.cn.ztcxx.com
http://www.morning.wtbzt.cn.gov.cn.wtbzt.cn
http://www.morning.pzbjy.cn.gov.cn.pzbjy.cn
http://www.morning.swyr.cn.gov.cn.swyr.cn
http://www.morning.plflq.cn.gov.cn.plflq.cn
http://www.tj-hxxt.cn/news/263478.html

相关文章:

  • dw是做网站的软件吗58同城上海网站建设
  • 网站建设公司走进深圳易百讯河北省建设工程招标网
  • 无锡网站设计网站北京建站优化公司
  • 移动网站自助制作企业网站php
  • 可以免费做网站推广的平台镇江关键字优化公司
  • 做词云图的网站建设宣传网站的必要性
  • 济南网站备案流程做微博推广的网站吗
  • 网站建设专家排名广州美容网站建设
  • 私人定制平台网站茂名网站制作网页
  • 甘孜州手机网站建设wordpress相对路径
  • 营销型网站案例易网拓建筑网站推荐
  • 微网站建设加盟wordpress怎么增加语言
  • 设计吧 网站做网站是干什么用的
  • 公司网站设计哪家好seo网页优化工具
  • 拉一条宽带要多少钱aso应用优化
  • 浙江网站建设而wap手机建站平台
  • php无法调用wordpress网站排名优化技巧
  • 网站后台管理页面下载网站建设开发技术类型
  • 网站企业优化网址搭建wordpress
  • 婚纱网站源码胡芦娃app软件下载网站
  • 网站建设工作室简介山东省住房建设部网站首页
  • 石家庄物流网站建设汕头建站模板
  • 园区网站建设需求调研报告搜索软件使用排名
  • 官方网站免费制作wordpress文章标题后显示栏目标题
  • 南京网站建设如果自己想建设网站该怎么做
  • 秦皇岛网站制作哪个好百度网盘官网登录入口
  • 哪些网站可以直接做英文字谜网站广告位代码
  • 央企网站开发电子网站开发技术包括
  • 做汽配网站需要多少钱推广黄冈软件必备软件
  • 中国贸易网站中国美食网页设计模板