Commit 57fd4017 by liangzhen

区分自查

1 parent 18e9d0b8
......@@ -908,7 +908,7 @@ export default {
let params = {
current: this.currentPage,
pageSize: this.pageSize,
module:0,
module: 0,
};
Object.assign(params, this.ruleForm);
......@@ -1048,6 +1048,10 @@ export default {
this.$message("请选择专家");
return;
}
if(this.dialogedit ==true){
console.log('编辑专家')
this.addtableData=[]
}
this.addtableData = [...this.addtableData, ...this.addZJList];
this.addtableData = this.addtableData.filter(
(obj, index, self) => index === self.findIndex((t) => t.id === obj.id)
......@@ -1102,7 +1106,7 @@ export default {
expertStr: expertStr,
creator: sessionStorage.getItem("author"),
createTime: getCurrentDate(),
module:0,
module: 0,
};
Object.assign(params, this.ruleFormdialogAdd);
this.xfParams = JSON.parse(JSON.stringify(params));
......@@ -1154,6 +1158,16 @@ export default {
handleSelectionChangeZJ() {
this.addZJList = this.$refs.multipleTableZJ.selection;
},
convertTimeFormat(isoTime) {
const date = new Date(isoTime);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, "0");
const day = date.getDate().toString().padStart(2, "0");
const hours = date.getHours().toString().padStart(2, "0");
const minutes = date.getMinutes().toString().padStart(2, "0");
const seconds = date.getSeconds().toString().padStart(2, "0");
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
//点击编辑
async edit() {
//只能选择编辑未发起 待增加
......@@ -1166,9 +1180,9 @@ export default {
return;
}
this.addtableData = [];
this.checkedList[0].planReviewDate = new Date(
this.checkedList[0].planReviewDate
);
this.checkedList[0].planReviewDate =this.convertTimeFormat(this.checkedList[0].planReviewDate)
// this.checkedList[0].planReviewDate =
// new Date(this.checkedList[0].planReviewDate) + "";
this.ruleFormdialogBJ = this.checkedList[0];
this.dialogedit = true;
let params = {
......
......@@ -357,7 +357,7 @@ import {
presignedUrl,
downloadObject,
downloadObjectAll
} from "@/api/index";
} from "@/api/indexzc";
import { generateYearOptions, constructionFormText } from "@/utils/cache";
export default {
data() {
......
......@@ -413,7 +413,7 @@ import {
tjrectificationVerification,
MaterialWarehous,
downloadObjectStr,
} from "@/api/index";
} from "@/api/indexzc";
import { generateYearOptions, constructionFormText } from "@/utils/cache";
export default {
data() {
......
......@@ -746,7 +746,7 @@ import {
evalBatchInfo,
delEvalBatchInfo,
chEvalBatchInfo,
} from "@/api/index";
} from "@/api/indexzc";
import { getCurrentDate } from "@/utils/format";
import { generateYearOptions } from "@/utils/cache";
export default {
......@@ -1048,6 +1048,10 @@ export default {
this.$message("请选择专家");
return;
}
if(this.dialogedit ==true){
console.log('编辑专家')
this.addtableData=[]
}
this.addtableData = [...this.addtableData, ...this.addZJList];
this.addtableData = this.addtableData.filter(
(obj, index, self) => index === self.findIndex((t) => t.id === obj.id)
......@@ -1073,6 +1077,7 @@ export default {
};
Object.assign(params, this.ruleFormZJ);
console.log("查询专家", params);
// this.zjtableData = []
let res = await expertInfo(params);
this.zjtableData = res.data.records;
this.zjtotal = res.data.total * 1;
......@@ -1154,6 +1159,16 @@ export default {
handleSelectionChangeZJ() {
this.addZJList = this.$refs.multipleTableZJ.selection;
},
convertTimeFormat(isoTime) {
const date = new Date(isoTime);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, "0");
const day = date.getDate().toString().padStart(2, "0");
const hours = date.getHours().toString().padStart(2, "0");
const minutes = date.getMinutes().toString().padStart(2, "0");
const seconds = date.getSeconds().toString().padStart(2, "0");
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
//点击编辑
async edit() {
//只能选择编辑未发起 待增加
......@@ -1166,9 +1181,7 @@ export default {
return;
}
this.addtableData = [];
this.checkedList[0].planReviewDate = new Date(
this.checkedList[0].planReviewDate
);
this.checkedList[0].planReviewDate =this.convertTimeFormat(this.checkedList[0].planReviewDate)
this.ruleFormdialogBJ = this.checkedList[0];
this.dialogedit = true;
let params = {
......
......@@ -215,7 +215,7 @@ import {
ossupload,
presignedUrl,
selFileList
} from "@/api/index";
} from "@/api/indexzc";
import { MaterialsListKY } from "@/utils/cache";
export default {
data() {
......
......@@ -62,10 +62,9 @@
<script>
import {
selWtqdpostEvalQuesInfo,
bcpostEvalQuesInfo,
tjpostEvalQuesInfo,
presignedUrl,
} from "@/api/index";
} from "@/api/indexzc";
import { getCurrentDate } from "@/utils/format";
export default {
data() {
......
......@@ -448,7 +448,7 @@ import {
wtzgxfProblemRectification,
ossuploadStr,
MaterialWarehous,
} from "@/api/index";
} from "@/api/indexzc";
import { generateYearOptions, constructionFormText } from "@/utils/cache";
export default {
data() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!