mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update form.html
This commit is contained in:
parent
d32a65888f
commit
a69fb28614
@ -214,11 +214,11 @@
|
|||||||
// 表格交叉
|
// 表格交叉
|
||||||
data.forEach(function (rows) {
|
data.forEach(function (rows) {
|
||||||
var temp = [];
|
var temp = [];
|
||||||
rows.forEach(function (item) {
|
|
||||||
table.forEach(function (line) {
|
table.forEach(function (line) {
|
||||||
temp.push(line.concat(item))
|
rows.forEach(function (item) {
|
||||||
|
temp.push(line.concat(item));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
})
|
|
||||||
table = temp;
|
table = temp;
|
||||||
});
|
});
|
||||||
// 表格合并
|
// 表格合并
|
||||||
@ -247,7 +247,7 @@
|
|||||||
};
|
};
|
||||||
// 增加整行规格分组
|
// 增加整行规格分组
|
||||||
$rootScope.addSpecRow = function (data) {
|
$rootScope.addSpecRow = function (data) {
|
||||||
data.push({name: '规格分组', list: [{name: '规格属性', check: true}]})
|
data.push({name: '规格分组' + data.length, list: [{name: '规格属性', check: true}]})
|
||||||
};
|
};
|
||||||
// 下移整行规格分组
|
// 下移整行规格分组
|
||||||
$rootScope.dnSpecRow = function (data, $index) {
|
$rootScope.dnSpecRow = function (data, $index) {
|
||||||
@ -278,8 +278,8 @@
|
|||||||
return $rootScope.specs = temp;
|
return $rootScope.specs = temp;
|
||||||
};
|
};
|
||||||
// 增加分组的属性
|
// 增加分组的属性
|
||||||
$rootScope.addSpecVal = function (list) {
|
$rootScope.addSpecVal = function (data) {
|
||||||
list.push({name: '规格属性', check: true});
|
data.push({name: '规格属性' + data.length, check: true});
|
||||||
};
|
};
|
||||||
// 移除分组的属性
|
// 移除分组的属性
|
||||||
$rootScope.delSpecVal = function (data, $index) {
|
$rootScope.delSpecVal = function (data, $index) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user