8
0
Dieser Commit ist enthalten in:
lb 2023-02-22 14:14:32 +08:00
Ursprung 0f0226eaa1
Commit 921506bd78
2 geänderte Dateien mit 23 neuen und 23 gelöschten Zeilen

Datei anzeigen

@ -759,7 +759,7 @@ export default {
switch (type) { switch (type) {
case "delete": { case "delete": {
// //
return this.$confirm(`是否删除条目: ${data}`, "提示", { return this.$confirm(`是否删除条目: ${data.name ?? data.material ? data.material : data.id}`, "提示", {
confirmButtonText: "确认", confirmButtonText: "确认",
cancelButtonText: "我再想想", cancelButtonText: "我再想想",
type: "warning", type: "warning",
@ -769,7 +769,7 @@ export default {
this.$http({ this.$http({
url: this.urls.subase, url: this.urls.subase,
method: "DELETE", method: "DELETE",
data: [`${data}`], data: [`${data.id}`],
}).then(({ data: res }) => { }).then(({ data: res }) => {
if (res.code === 0) { if (res.code === 0) {
this.$message.success({ this.$message.success({

Datei anzeigen

@ -171,27 +171,27 @@ export default function () {
rules: { required: true, message: "必填项不能为空", trigger: "blur" }, rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: { placeholder: "请选择物料", filterable: true }, elparams: { placeholder: "请选择物料", filterable: true },
options: [], options: [],
// fetchData: () => this.$http.get('/pms/material/page', { params: { limit: 999, page: 1 } }) fetchData: () => this.$http.get('/pms/material/page', { params: { limit: 999, page: 1 } })
fetchData: () => new Promise((resolve) => { // fetchData: () => new Promise((resolve) => {
setTimeout(() => { // setTimeout(() => {
resolve({ // resolve({
data: { // data: {
code: 0, // code: 0,
data: { // data: {
total: 0, // total: 0,
list: // list:
[ // [
{ id: 10001, name: 'mock物料1' }, // { id: 10001, name: 'mock物料1' },
{ id: 10002, name: 'mock物料2' }, // { id: 10002, name: 'mock物料2' },
{ id: 10003, name: 'mock物料3' }, // { id: 10003, name: 'mock物料3' },
{ id: 10004, name: 'mock物料4' }, // { id: 10004, name: 'mock物料4' },
{ id: 10005, name: 'mock物料5' }, // { id: 10005, name: 'mock物料5' },
] // ]
} // }
} // }
}) // })
}, 800) // }, 800)
}) // })
}, },
{ {
input: true, input: true,