docs: update wg-basic/page-unit

This commit is contained in:
Administrator 2021-10-21 12:07:29 +00:00 committed by John Smith
parent c5171cd02c
commit e759aee779

View File

@ -2,7 +2,7 @@
title: 页面组件
description: 页面上使用的组件
published: true
date: 2021-10-21T12:05:14.835Z
date: 2021-10-21T12:07:28.001Z
tags: wg-basic
editor: markdown
dateCreated: 2021-09-08T06:41:19.351Z
@ -494,7 +494,7 @@ layui.config({
var selectType = top.restAjax.params(window.location.href).selectType;
selectType = selectType ? selectType : 'radio'
var tableUrl = 'api/user/listpageusersimple';
var oldSelectedUserList = top.dialog.dialogData.oldSelectedUserList;
var oldSelectedUserList = top.dialog.dialogData.oldSelectedUserList ? top.dialog.dialogData.oldSelectedGridList : [];
// 清空上次选择
top.dialog.dialogData.newSelectedUserList = [];
var newSelectedUserList = [];
@ -502,9 +502,6 @@ layui.config({
// 初始化选择列表
function initNewSelectedUserList() {
if(oldSelectedUserList.length == 0) {
return;
}
for(var i = 0, item; item = oldSelectedUserList[i++];) {
newSelectedUserList.push(item);
}