|
@@ -12,7 +12,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
//使用基础 Vue 构造器,创建一个“子类”。参数是一个包含组件选项的对象
|
|
|
var specComponent = Vue.extend({
|
|
|
template: '<div>' +
|
|
|
- ' <div class="form-group">\n' +
|
|
|
+ ' <div class="form-group" style="display: none">\n' +
|
|
|
' <label class="control-label col-xs-12 col-sm-2">' + __('use_spec') + '</label>\n' +
|
|
|
' <div class="col-xs-12 col-sm-8">\n' +
|
|
|
' <input type="radio" name="row[use_spec]" value="0" v-model="use_spec"/>否\n' +
|
|
@@ -548,10 +548,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
index_url: 'unishop/product/index' + location.search,
|
|
|
add_url: 'unishop/product/add',
|
|
|
edit_url: 'unishop/product/edit',
|
|
|
- del_url: 'unishop/product/del',
|
|
|
+// del_url: 'unishop/product/del',
|
|
|
multi_url: 'unishop/product/multi',
|
|
|
- evaluate_url: 'unishop/evaluate/index',
|
|
|
- copy_url: 'unishop/product/copy',
|
|
|
+// evaluate_url: 'unishop/evaluate/index',
|
|
|
+// copy_url: 'unishop/product/copy',
|
|
|
table: 'unishop_product',
|
|
|
}
|
|
|
});
|
|
@@ -602,8 +602,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
- {field: 'category_id', title: __('Category_id'), visible: false},
|
|
|
- {
|
|
|
+// {field: 'category_id', title: __('Category_id'), visible: false},
|
|
|
+ /*{
|
|
|
field: 'category', title: __('Category name'), formatter: function (value, row, index) {
|
|
|
if (value) {
|
|
|
if (value.parent) {
|
|
@@ -614,7 +614,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
- },
|
|
|
+ },*/
|
|
|
{field: 'title', title: __('Title')},
|
|
|
{
|
|
|
field: 'image',
|
|
@@ -634,7 +634,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
{field: 'look', title: __('Look')},
|
|
|
{field: 'sales', title: __('Sales')},
|
|
|
{field: 'real_sales', title: __('Real sales')},
|
|
|
- {field: 'no_buy_yet', title: __('No buy yet')},
|
|
|
+// {field: 'no_buy_yet', title: __('No buy yet')},
|
|
|
{field: 'real_look', title: __('Real look')},
|
|
|
{field: 'delivery_id', title: __('Delivery_id'), visible: false},
|
|
|
{field: 'delivery.name', title: __('Delivery_id'), visible: false},
|
|
@@ -662,7 +662,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
events: Table.api.events.operate,
|
|
|
formatter: Table.api.formatter.operate,
|
|
|
buttons:[
|
|
|
- {
|
|
|
+ /*{
|
|
|
name: 'evaluate',
|
|
|
text: __('Evaluate'),
|
|
|
classname: 'btn btn-xs btn-info btn-evaluate',
|
|
@@ -675,7 +675,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload', 'vue'], fun
|
|
|
classname: 'btn btn-xs btn-info btn-copy',
|
|
|
extend: 'data-toggle="tooltip"',
|
|
|
icon: 'fa fa-copy'
|
|
|
- }
|
|
|
+ }*/
|
|
|
]
|
|
|
}
|
|
|
]
|