This commit is contained in:
2019-04-08 10:11:47 +08:00
parent b67e616340
commit abc220eb35
10 changed files with 93 additions and 49 deletions

View File

@@ -56,7 +56,7 @@
<th>附加属性</th>
<th>备注</th>
</tr>
<tr v-for="(item, index) in meta.items">
<tr v-for="(item, index) in meta.items" class="item">
<td v-show="status==3"><input type="checkbox" v-model="meta.exports" :value="item.name" class="form-control"></td>
<td v-show="status==4"><input type="checkbox" v-model="meta.imports" :value="item.name" class="form-control"></td>
<td v-show="status==5"><input type="checkbox" v-model="meta.shows" :value="item.name" class="form-control"></td>
@@ -395,7 +395,7 @@
setMove: function () {
if (this.status == 1) {
$('#sortableList,table>tbody').sortable({
selector: '.list-group-item, tr',
selector: '.item', // '.list-group-item, tr',
finish: function (e) {
var rows = e.list;
vm.itemSort = [];
@@ -487,15 +487,17 @@
*
*/
save: function () {
console.log(this.itemSort)
if (vm.status == 1 && vm.itemSort.length > 0) {
red.post("/meta/itemsort", {
console.log(this.itemSort)
red.postX("/meta/itemsort", {
serviceKey: vm.table,
items: JSON.stringify(vm.itemSort)
});
}
else if (vm.status == 2 && vm.itemEdit.length > 0) {
red.post("/meta/itemupdate", {
red.postX("/meta/itemupdate", {
serviceKey: vm.table,
items: JSON.stringify(vm.itemEdit)
});
@@ -528,7 +530,7 @@
else if (vm.status == 7) {
console.log(vm.row);
red.post("/meta/dbplatupdate", {metaTable: JSON.stringify(vm.row)})
red.postX("/meta/dbplatupdate", {metaTable: JSON.stringify(vm.row)})
}
else {