menu load

This commit is contained in:
smallwei 2019-02-15 08:53:40 +08:00
parent 6eb1b006cc
commit 9a84c3b812
17 changed files with 147 additions and 39 deletions

View File

@ -19,6 +19,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -16,6 +16,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -16,6 +16,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -16,6 +16,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -16,6 +16,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -22,6 +22,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -22,6 +22,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -25,6 +25,9 @@ export const remove = (ids) => {
method: 'post', method: 'post',
data: { data: {
ids, ids,
},
meta: {
isSerialize: true,
} }
}) })
} }

View File

@ -43,9 +43,9 @@ import tags from "./tags";
import top from "./top/"; import top from "./top/";
import sidebar from "./sidebar/"; import sidebar from "./sidebar/";
import admin from "@/util/admin"; import admin from "@/util/admin";
import { validatenull } from "@/util/validate"; // import { validatenull } from "@/util/validate";
import { calcDate } from "@/util/date.js"; // import { calcDate } from "@/util/date.js";
import { getStore } from "@/util/store.js"; // import { getStore } from "@/util/store.js";
export default { export default {
components: { components: {
top, top,

View File

@ -92,6 +92,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -101,6 +102,7 @@ export default {
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -108,7 +110,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -129,6 +140,7 @@ export default {
return remove(this.ids); return remove(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -95,6 +95,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -104,6 +105,7 @@ export default {
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -111,7 +113,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -135,6 +146,7 @@ export default {
return remove(this.ids); return remove(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -118,6 +118,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -127,6 +128,7 @@ export default {
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -134,7 +136,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -158,6 +169,7 @@ export default {
return remove(this.ids); return remove(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -79,6 +79,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -88,6 +89,7 @@ export default {
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -95,7 +97,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -115,6 +115,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -123,6 +124,7 @@ export default {
}, },
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
this.onLoad(this.page);
loading(); loading();
this.$message({ this.$message({
type: "success", type: "success",
@ -131,7 +133,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -170,6 +181,7 @@ export default {
return remove(this.ids); return remove(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -129,6 +129,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -138,6 +139,7 @@ export default {
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -145,7 +147,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -169,6 +180,7 @@ export default {
return remove(this.ids); return remove(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -111,6 +111,7 @@ export default {
rowSave(row, loading) { rowSave(row, loading) {
add(row).then(() => { add(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -120,6 +121,7 @@ export default {
rowUpdate(row, index, loading) { rowUpdate(row, index, loading) {
update(row).then(() => { update(row).then(() => {
loading(); loading();
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -127,7 +129,16 @@ export default {
}); });
}, },
rowDel(row) { rowDel(row) {
remove(row.id).then(() => { this.$confirm("确定将选删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
return remove(row.id);
})
.then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -151,6 +162,7 @@ export default {
return remove(this.ids); return remove(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"
@ -173,6 +185,7 @@ export default {
return build(this.ids); return build(this.ids);
}) })
.then(() => { .then(() => {
this.onLoad(this.page);
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!" message: "操作成功!"

View File

@ -1,6 +1,6 @@
// 基础路径 注意发布之前要先修改这里 // 基础路径 注意发布之前要先修改这里
let baseUrl = './' let baseUrl = './'
let url = 'http://localhost' let url = 'http://118.24.148.246:8800'
module.exports = { module.exports = {
baseUrl: baseUrl, // 根据你的实际情况更改这里 baseUrl: baseUrl, // 根据你的实际情况更改这里
lintOnSave: true, lintOnSave: true,