Esse commit está contido em:
lb 2023-02-22 14:14:32 +08:00
commit 921506bd78
2 arquivos alterados com 23 adições e 23 exclusões

Ver arquivo

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

Ver arquivo

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