|
@@ -584,17 +584,13 @@ export default {
|
|
getUserProfile().then((response) => {
|
|
getUserProfile().then((response) => {
|
|
this.form.deptId = response.data ? response.data.dept.id : "";
|
|
this.form.deptId = response.data ? response.data.dept.id : "";
|
|
this.userType = this.form.deptId;
|
|
this.userType = this.form.deptId;
|
|
- console.log("this.userType", this.userType);
|
|
|
|
getuserinfo(response.data.id)
|
|
getuserinfo(response.data.id)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.streetId = res.data.streetInfo.id;
|
|
this.streetId = res.data.streetInfo.id;
|
|
// this.streetId = res.data.street
|
|
// this.streetId = res.data.street
|
|
- console.log("res=====", res);
|
|
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
- console.log("err", err);
|
|
|
|
});
|
|
});
|
|
- console.log("this.form.response", response);
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//获取所有的部门
|
|
//获取所有的部门
|
|
@@ -602,13 +598,11 @@ export default {
|
|
getDepts().then((response) => {
|
|
getDepts().then((response) => {
|
|
this.listDeptData = response.data;
|
|
this.listDeptData = response.data;
|
|
this.getList();
|
|
this.getList();
|
|
- console.log("response===", response);
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
getList(seeId) {
|
|
getList(seeId) {
|
|
this.list = []
|
|
this.list = []
|
|
- console.log('seeId=====', seeId)
|
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.queryParams.userId = this.$store.state.user.id;
|
|
this.queryParams.userId = this.$store.state.user.id;
|
|
// 执行查询
|
|
// 执行查询
|
|
@@ -642,7 +636,6 @@ export default {
|
|
}
|
|
}
|
|
getRemindBroadPage(this.queryParams).then((response) => {
|
|
getRemindBroadPage(this.queryParams).then((response) => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- console.log("this.listDeptData", this.listDeptData);
|
|
|
|
response.data.records.forEach((key) => {
|
|
response.data.records.forEach((key) => {
|
|
this.listDeptData.forEach((item) => {
|
|
this.listDeptData.forEach((item) => {
|
|
if (item.id == key.sender) {
|
|
if (item.id == key.sender) {
|
|
@@ -658,7 +651,6 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
this.list = response.data.records;
|
|
this.list = response.data.records;
|
|
- console.log("response.data.records", response.data.records);
|
|
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -679,7 +671,8 @@ export default {
|
|
deptId: undefined,
|
|
deptId: undefined,
|
|
pubDate: undefined,
|
|
pubDate: undefined,
|
|
remindZzList: [],
|
|
remindZzList: [],
|
|
- doneDate:undefined
|
|
|
|
|
|
+ doneDate:undefined,
|
|
|
|
+ fileUrls:[]
|
|
};
|
|
};
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
},
|
|
},
|
|
@@ -694,11 +687,6 @@ export default {
|
|
this.queryParams.doneDateStart = this.queryParams.doneDate[0];
|
|
this.queryParams.doneDateStart = this.queryParams.doneDate[0];
|
|
this.queryParams.doneDateEnd = this.queryParams.doneDate[1];
|
|
this.queryParams.doneDateEnd = this.queryParams.doneDate[1];
|
|
}
|
|
}
|
|
- console.log(
|
|
|
|
- "ssssssss",
|
|
|
|
- this.queryParams.pubDate,
|
|
|
|
- this.queryParams.doneDate
|
|
|
|
- );
|
|
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
@@ -725,7 +713,6 @@ export default {
|
|
},
|
|
},
|
|
// 已接受和信息反馈查看按钮
|
|
// 已接受和信息反馈查看按钮
|
|
handleSee2(row) {
|
|
handleSee2(row) {
|
|
- console.log("row", row);
|
|
|
|
const id = row.broad_id;
|
|
const id = row.broad_id;
|
|
|
|
|
|
getRemindBroad(id).then((response) => {
|
|
getRemindBroad(id).then((response) => {
|
|
@@ -744,13 +731,11 @@ export default {
|
|
this.form.broadType = row.broad_type;
|
|
this.form.broadType = row.broad_type;
|
|
},
|
|
},
|
|
submitFormComplete() {
|
|
submitFormComplete() {
|
|
- console.log("this.form222222", this.form);
|
|
|
|
this.form.fileUrls =
|
|
this.form.fileUrls =
|
|
this.form.fileUrls && this.form.fileUrls.length > 0
|
|
this.form.fileUrls && this.form.fileUrls.length > 0
|
|
? this.form.fileUrls.split(",")
|
|
? this.form.fileUrls.split(",")
|
|
: [];
|
|
: [];
|
|
this.form.doneDate = parseTime(new Date(), "{y}-{m}-{d}");
|
|
this.form.doneDate = parseTime(new Date(), "{y}-{m}-{d}");
|
|
- console.log('this.form', this.form)
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
if (!valid) {
|
|
if (!valid) {
|
|
return;
|
|
return;
|
|
@@ -777,7 +762,8 @@ export default {
|
|
submitForm() {
|
|
submitForm() {
|
|
// this.alreadySelectedOrgList = this.$refs["choiceSelect"].confirmMSg()
|
|
// this.alreadySelectedOrgList = this.$refs["choiceSelect"].confirmMSg()
|
|
// this.orgType = this.$refs["choiceSelect"].confirmoOrgTypeMSg()
|
|
// this.orgType = this.$refs["choiceSelect"].confirmoOrgTypeMSg()
|
|
- const alreadyChooseOrg = this.$refs["choiceSelect"].confirmMSg();
|
|
|
|
|
|
+ let alreadyChooseOrg = [];
|
|
|
|
+ alreadyChooseOrg = this.$refs["choiceSelect"].confirmMSg();
|
|
alreadyChooseOrg.forEach((item) => {
|
|
alreadyChooseOrg.forEach((item) => {
|
|
if (item.deptName) {
|
|
if (item.deptName) {
|
|
this.form.remindZzList.push({
|
|
this.form.remindZzList.push({
|
|
@@ -808,10 +794,9 @@ export default {
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
// 添加的提交
|
|
// 添加的提交
|
|
- this.form.fileUrls = this.form.fileUrls
|
|
|
|
|
|
+ this.form.fileUrls = this.form.fileUrls.length>0
|
|
? this.form.fileUrls.split(",")
|
|
? this.form.fileUrls.split(",")
|
|
: [];
|
|
: [];
|
|
- console.log("this.form", this.form);
|
|
|
|
createRemindInfo(this.form).then((response) => {
|
|
createRemindInfo(this.form).then((response) => {
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.open = false;
|
|
this.open = false;
|
|
@@ -852,7 +837,6 @@ export default {
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
clickTab(e) {
|
|
clickTab(e) {
|
|
- console.log(e._props.name, "e._props.name;e._props.name;");
|
|
|
|
const name = e._props.name;
|
|
const name = e._props.name;
|
|
this.queryParams.pageNo = 1;
|
|
this.queryParams.pageNo = 1;
|
|
this.list = [];
|
|
this.list = [];
|