|
@@ -55,6 +55,7 @@
|
|
|
type="danger"
|
|
type="danger"
|
|
|
@click="onDelete"
|
|
@click="onDelete"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
|
|
+ :loading="deleteLoading"
|
|
|
>{{ $t(`移 除`) }}</el-button
|
|
>{{ $t(`移 除`) }}</el-button
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
@@ -83,6 +84,7 @@ export default {
|
|
|
mainAreaData: {},
|
|
mainAreaData: {},
|
|
|
detailInfo: "",
|
|
detailInfo: "",
|
|
|
btnLoading: false,
|
|
btnLoading: false,
|
|
|
|
|
+ deleteLoading: false,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
components: { Edit, BaseInfo, saleClass },
|
|
components: { Edit, BaseInfo, saleClass },
|
|
@@ -252,12 +254,14 @@ export default {
|
|
|
beforeClose: async (action, instance, done) => {
|
|
beforeClose: async (action, instance, done) => {
|
|
|
if (action === "confirm") {
|
|
if (action === "confirm") {
|
|
|
instance.confirmButtonLoading = true;
|
|
instance.confirmButtonLoading = true;
|
|
|
|
|
+ this.btnLoading = true;
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
id: id,
|
|
id: id,
|
|
|
content: {
|
|
content: {
|
|
|
sc_item_localids: this.$route.query.id,
|
|
sc_item_localids: this.$route.query.id,
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
+ this.btnLoading = false;
|
|
|
this.tool.showMessage(res, () => {
|
|
this.tool.showMessage(res, () => {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
instance.confirmButtonLoading = false;
|
|
instance.confirmButtonLoading = false;
|
|
@@ -283,12 +287,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
.then(async () => {
|
|
.then(async () => {
|
|
|
|
|
+ this.deleteLoading = true;
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
id: "2026051510000004",
|
|
id: "2026051510000004",
|
|
|
content: {
|
|
content: {
|
|
|
sc_item_localid: this.$route.query.id,
|
|
sc_item_localid: this.$route.query.id,
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
+ this.deleteLoading = false;
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
this.$message.error(res.data[0].errmsg);
|
|
this.$message.error(res.data[0].errmsg);
|
|
|
} else {
|
|
} else {
|