修改计划更改

lijinlong^2
吕天方 1 year ago
parent 1db1e2532e
commit 7544ea4993

@ -592,6 +592,9 @@ export default {
},
//
Close(item) {
this.pages.pageNum = 1;
this.pages.pageSize = 10;
this.$refs.mypagination.defaultPages();
this.dialogVisible = false;
this.tableData = [];
this.multipleSelection = [];
@ -601,9 +604,6 @@ export default {
Object.keys(this.form).forEach((key) => (this.form[key] = ""));
Object.keys(this.form2).forEach((key) => (this.form2[key] = ""));
// this.unCount = 0;
this.pages.pageNum = 1;
this.pages.pageSize = 10;
this.$refs.mypagination.defaultPages();
this.selected = 0;
// this.unselected = 0;
// this.count = 0;

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-28 11:25:48
* @LastEditors: JC9527
* @LastEditTime: 2023-09-30 13:40:17
* @LastEditTime: 2023-09-30 14:01:06
-->
<template>
<el-dialog
@ -160,7 +160,7 @@ export default {
.then(async() => {
try {
let downloadLoadingInstance = Loading.service({
text: "正在删除计划,请稍候",
text: "正在修改计划,请稍候",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
});
@ -172,6 +172,11 @@ export default {
console.log(data)
if(data.code == 200){
downloadLoadingInstance.close();
this.$message({
showClose: true,
message: '修改成功',
type: 'success'
});
this.Close("newsuccess")
}
} catch (error) {

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527
* @LastEditTime: 2023-09-30 13:44:10
* @LastEditTime: 2023-09-30 13:57:47
-->
<template>
<div class="plan-management">
@ -262,12 +262,10 @@
this.pages.pageSize = 10;
this.$refs.mypagination.defaultPages();
let obj
// console.log(newForm,'newForm')
console.log(newForm,'newForm')
//
if(!this.disabled) {
console.log('123')
if(Array.isArray(newForm.district)){
console.log('456')
if(newForm.district.length == 2) {
let district = this.form.district[1].slice(1, 11);
obj = { ...this.pages, ...this.form,district };
@ -390,12 +388,39 @@
},
// dialog
padlock(){
let { district} = this.form;
// let { district} = this.form;
this.pages.pageNum = 1;
this.pages.pageSize = 10;
this.$refs.mypagination.defaultPages();
let obj = {...this.pages,district}
console.log('123')
let obj
if(!this.disabled) {
if(Array.isArray(this.form.district)){
if(this.form.district.length == 2) {
let district = this.form.district[1].slice(1, 11);
obj = { ...this.pages, ...this.form,district };
} else if(this.form.district.length == 1) {
let district = this.form.district[0].slice(1, 8);
obj = { ...this.pages, ...this.form,district };
} else {
obj = { ...this.pages, ...this.form};
}
//
} else {
//
if(this.county){
let district = this.form.district.slice(1, 8);
obj = { ...this.pages, ...this.form,district };
} else {
let district = this.form.district.slice(1, 11);
obj = { ...this.pages, ...this.form,district };
}
}
} else {
//
let district = this.form.district;
obj = { ...this.pages, ...this.form,district };
}
// console.log('obj',obj)
this.getList(obj);
},
//

Loading…
Cancel
Save