Commit 57fd4017 by liangzhen

区分自查

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