Commit 0fff5724 by bingobo

修复漏洞扫描问题

1 parent 4c84868f
......@@ -40,10 +40,10 @@ axios.interceptors.request.use(config => {
// });
// }
// console.log(1111111111, sessionStorage.getItem('authorCName'));
console.log('url--', config.url);
console.log('userid-sessionsss', sessionStorage.getItem('userid'));
console.log('username-sessionsss', sessionStorage.getItem('username'));
console.log('userloginname-sessionsss', sessionStorage.getItem('userloginname'));
// console.log('url--', config.url);
// console.log('userid-sessionsss', sessionStorage.getItem('userid'));
// console.log('username-sessionsss', sessionStorage.getItem('username'));
// console.log('userloginname-sessionsss', sessionStorage.getItem('userloginname'));
config.headers['X-USER-ID'] = sessionStorage.getItem('userid');
config.headers['X-USER-NAME'] = encodeURIComponent(sessionStorage.getItem('username')); // 请求头中传递中文字符
config.headers['X-USER-LOGINNAME'] = sessionStorage.getItem('userloginname');
......
......@@ -552,15 +552,15 @@ export default {
}
this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, '2222')
// console.log(this.checkedList, '2222')
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSize = val
this.submitForm()
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`)
// console.log(`当前页: ${val}`)
this.currentPage = val
this.submitForm()
},
......@@ -575,7 +575,7 @@ export default {
// 如果文件名不符合白名单要求,使用默认文件名
if (!safePattern.test(fileName)) {
console.warn('文件名包含不安全字符,已替换为默认文件名');
// console.warn('文件名包含不安全字符,已替换为默认文件名');
return 'download';
}
......
......@@ -505,7 +505,7 @@ export default {
},
},
mounted() {
console.log(this.$route.query, 'this.$route.query')
// console.log(this.$route.query, 'this.$route.query')
this.ruleForm.batchName = this.$route.query.batchName
this.submitForm()
},
......@@ -604,13 +604,13 @@ export default {
// 有url拆分调接口换预览
if (urlStr) {
console.log(urlStr, 'urlStr')
// console.log(urlStr, 'urlStr')
if (urlStr.includes(',')) {
arrUrl = item.url.split(',')
} else {
arrUrl.push(urlStr)
}
console.log(arrUrl, 'arrUrlarrUrl')
// console.log(arrUrl, 'arrUrlarrUrl')
arrUrl.forEach(async (showUrl) => {
let paramsUrl = {
url: showUrl,
......@@ -618,7 +618,7 @@ export default {
let resUrl = await presignedUrl(paramsUrl)
showUrlList.push(resUrl.msg)
})
console.log(showUrlList, 'showUrlList')
// console.log(showUrlList, 'showUrlList')
this.$set(item, 'images', showUrlList)
}
......@@ -677,7 +677,7 @@ export default {
}
},
closed() {
console.log('关闭')
// console.log('关闭')
this.handleSelectionChange()
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
......@@ -711,7 +711,7 @@ export default {
},
async savetj() {
this.tableDataQR.forEach((item) => {
console.log(item.rectificationStatus, 'item.rectificationStatus')
// console.log(item.rectificationStatus, 'item.rectificationStatus')
if (!item.rectificationStatus && item.rectificationStatus !== 0) {
this.$message({
message: '请完成所有整改复核后在进行提交',
......@@ -757,7 +757,7 @@ export default {
module: 0,
}
Object.assign(params, this.ruleForm)
console.log(params)
// console.log(params)
let res = await postEvalQuesInfo(params)
if (res.code == '200') {
......@@ -896,7 +896,7 @@ export default {
// 如果文件名不符合白名单要求,使用默认文件名
if (!safePattern.test(fileName)) {
console.warn('文件名包含不安全字符,已替换为默认文件名');
// console.warn('文件名包含不安全字符,已替换为默认文件名');
return 'download';
}
......@@ -964,7 +964,7 @@ export default {
evalQues: '',
}
this.form.projectStage = val
console.log(val, '333344444')
// console.log(val, '333344444')
let params = {
projectStage: val,
hgx: 'hgx',
......
......@@ -747,7 +747,7 @@ export default {
methods: {
routeToResultView(row) {
console.log(66666, row);
// console.log(66666, row);
const params = {
name: 'bingo'
}
......@@ -832,7 +832,7 @@ export default {
pageSize: this.pageSizeXQ,
batchId: this.checkedList[0].batchId,
}
console.log(params, 'params')
// console.log(params, 'params')
let res = await expert(params)
this.XQtableData = res.data.records
......@@ -855,7 +855,7 @@ export default {
this.ruleFormdialog = this.checkedList[0]
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSize = val
this.submitForm()
},
......@@ -932,7 +932,7 @@ export default {
this.addtableData = [];
}
if (this.dialogedit == true) {
console.log('编辑专家')
// console.log('编辑专家')
this.addtableData = []
}
this.addtableData = [...this.addtableData, ...this.addZJList]
......@@ -959,7 +959,7 @@ export default {
pageSize: this.pageSizeZJ,
}
Object.assign(params, this.ruleFormZJ)
console.log('查询专家', params)
// console.log('查询专家', params)
// this.zjtableData = []
let res = await expertInfo(params)
this.zjtableData = res.data.records
......@@ -972,13 +972,13 @@ export default {
saveXZ() {
this.$refs.formName.validate((valid) => {
if (!valid) {
console.log('error submit!!')
// console.log('error submit!!')
return false
} else {
if (this.addtableData.length < 1) {
this.$message('请选择专家')
}
console.log(this.addZJList, 'this.addZJList')
// console.log(this.addZJList, 'this.addZJList')
let expertIdList = []
let expertStr = ''
this.addtableData.forEach((item) => {
......@@ -1089,7 +1089,7 @@ export default {
},
//点击删除
deletes() {
console.log('删除')
// console.log('删除')
if (this.checkedList.length != 1) {
this.$message('请选择')
return
......
......@@ -102,9 +102,9 @@ export default {
methods: {
async init(type) {
let params = type;
console.log(params, "333");
// console.log(params, "333");
let res = await selWtqdpostEvalQuesInfo(params);
console.log(res, "0000");
// console.log(res, "0000");
if (res.code == "200") {
this.tableData = res.data.records;
......@@ -136,13 +136,13 @@ export default {
// 有url拆分调接口换预览
if (urlStr) {
console.log(urlStr, "urlStr");
// console.log(urlStr, "urlStr");
if (urlStr.includes(",")) {
arrUrl = item.url.split(",");
} else {
arrUrl.push(urlStr);
}
console.log(arrUrl, "arrUrlarrUrl");
// console.log(arrUrl, "arrUrlarrUrl");
arrUrl.forEach(async (showUrl) => {
let paramsUrl = {
url: showUrl,
......@@ -150,7 +150,7 @@ export default {
let resUrl = await presignedUrl(paramsUrl);
showUrlList.push(resUrl.msg);
});
console.log(showUrlList, "showUrlList");
// console.log(showUrlList, "showUrlList");
this.$set(item, "images", showUrlList);
}
......@@ -211,7 +211,7 @@ export default {
list: this.tableData,
lastUpdateTime: getCurrentDate(),
};
console.log(params, "this.clqparams");
// console.log(params, "this.clqparams");
// return
// if (type == "add") {
......
......@@ -598,7 +598,7 @@ export default {
},
methods: {
routeToResultView(row) {
console.log(66666, row);
// console.log(66666, row);
this.$router.push({
path: '/mainLayout/auxiliaryInspection',
query: {
......@@ -615,7 +615,7 @@ export default {
}
},
timeChange(time) {
console.log('tttttt', time)
// console.log('tttttt', time)
if (time) {
//给后端的参数
this.ruleForm.createStartTime = time[0]
......@@ -635,7 +635,7 @@ export default {
module: 0,
}
Object.assign(params, this.ruleForm)
console.log(params)
// console.log(params)
let res = await projectInfo(params)
if (res.code == '200') {
this.tableData = res.data.records
......@@ -684,7 +684,7 @@ export default {
this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
})
this.addtotal = res.data.total * 1
console.log(this.addtableData, 'this.addtableData')
// console.log(this.addtableData, 'this.addtableData')
this.dialogXQ = true
}
},
......@@ -739,45 +739,45 @@ export default {
}
this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, '2222')
// console.log(this.checkedList, '2222')
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSize = val
this.submitForm()
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`)
// console.log(`当前页: ${val}`)
this.currentPage = val
this.submitForm()
},
handleSizeChangeZJ(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSizeZJ = val
this.xzExperts()
},
handleCurrentChangeZJ(val) {
console.log(`当前页: ${val}`)
// console.log(`当前页: ${val}`)
this.currentZJ = val
this.xzExperts()
},
handleSizeChangeAdd(val) {
this.pageSizeAdd = val
// this.detailsForm();
console.log(val, this.addcurrentPage, '1111')
// console.log(val, this.addcurrentPage, '1111')
},
handleCurrentChangeAdd(val) {
console.log(val, this.addcurrentPage, '0000')
// console.log(val, this.addcurrentPage, '0000')
this.addcurrentPage = val
// this.detailsForm();
},
handleSizeChangXQ(val) {
this.pageSizeXQ = val
this.detailsForm()
console.log(val, this.addcurrentPage, '1111')
// console.log(val, this.addcurrentPage, '1111')
},
handleCurrentChangeXQ(val) {
console.log(val, this.addcurrentPage, '0000')
// console.log(val, this.addcurrentPage, '0000')
this.currentPageXQ = val
this.detailsForm()
},
......@@ -788,7 +788,7 @@ export default {
this.$message('请选择项目')
return
}
console.log(this.addtableData, this.addZJList, '55555')
// console.log(this.addtableData, this.addZJList, '55555')
this.addtableData = [...this.addtableData, ...this.addZJList]
this.addtableData = this.addtableData.filter((obj, index, self) => {
......@@ -815,20 +815,20 @@ export default {
}
Object.assign(params, this.ruleFormZJ)
let res = await pmProInitiation(params)
console.log(res.data.records, 'res.data.recordsres.data.records')
// console.log(res.data.records, 'res.data.recordsres.data.records')
this.zjtableData = res.data.records
this.zjtableData.forEach((item) => {
this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
})
this.zjtotal = res.data.total * 1
console.log(res, 'xxx')
// console.log(res, 'xxx')
},
saveXZ() {
if (this.addtableData.length < 1) {
this.$message('请选择待评估项目')
}
console.log(this.addZJList, 'this.addZJList')
// console.log(this.addZJList, 'this.addZJList')
// 确认发布入参
let contractId = ''
let expertIdList = ''
......@@ -847,7 +847,7 @@ export default {
}
params.batchId = this.ruleFormdialogBJ.batchId
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, '222')
// console.log(params, '222')
// return
fbProjectInfo(params).then((res) => {
this.dialogAdd = false
......@@ -860,7 +860,7 @@ export default {
// if (this.addtableData.length < 1) {
// this.$message("没有可保存的项目");
// }
console.log(this.addZJList, 'this.addZJList')
// console.log(this.addZJList, 'this.addZJList')
// 确认发布入参
let expertIdList = ''
if (this.addtableData.length > 0) {
......@@ -874,7 +874,7 @@ export default {
}
params.batchId = this.ruleFormdialogBJ.batchId
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, '222')
// console.log(params, '222')
// return
bcProjectInfo(params).then((res) => {
this.$message('保存成功')
......@@ -901,7 +901,7 @@ export default {
},
selectAll(selection) {
this.addZJList = this.$refs.multipleTableZJ.selection
console.log(this.$refs.multipleTableZJ.selection, '2222222')
// console.log(this.$refs.multipleTableZJ.selection, '2222222')
// selection = selection.filter(item=>{
// return item.zcstate!=1&&item.zcstate!=2&&item.zcstate!=3
// });
......@@ -923,23 +923,23 @@ export default {
//选中的项目
handleSelectionChangeZJ(selection, row) {
console.log('来了么', row)
// console.log('来了么', row)
if (selection.length < 1) {
return
}
if (selection.length === this.zjtableData.Length) {
console.log('全选')
// console.log('全选')
}
let info = row.zcstate
if (info == 1 || info == 2 || info == 3) {
this.$refs.multipleTableZJ.toggleRowSelection(selection[selection.length - 1], false)
this.$message('该项目在流程中,请选择其他项目')
console.log('不让点')
// console.log('不让点')
return
}
this.addZJList = this.$refs.multipleTableZJ.selection
console.log(this.$refs.multipleTableZJ.selection, '2222222')
// console.log(this.$refs.multipleTableZJ.selection, '2222222')
},
//点击删除
async handleClick(row, index, rows) {
......
......@@ -110,7 +110,7 @@ export default {
},
watch: {
"ruleForm.type"(n, o) {
console.log("变了", n, o);
// console.log("变了", n, o);
if (n.length > 1) {
this.ruleForm.module = "1,2";
} else {
......@@ -121,7 +121,7 @@ export default {
this.init();
},
"ruleForm.batchYear"(newVal, oldVal) {
console.log("变了1", newVal);
// console.log("变了1", newVal);
this.init();
},
},
......
......@@ -554,15 +554,15 @@ export default {
}
this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, '2222')
// console.log(this.checkedList, '2222')
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSize = val
this.submitForm()
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`)
// console.log(`当前页: ${val}`)
this.currentPage = val
this.submitForm()
},
......@@ -577,7 +577,7 @@ export default {
// 如果文件名不符合白名单要求,使用默认文件名
if (!safePattern.test(fileName)) {
console.warn('文件名包含不安全字符,已替换为默认文件名');
// console.warn('文件名包含不安全字符,已替换为默认文件名');
return 'download';
}
......
......@@ -505,7 +505,7 @@ export default {
},
},
mounted() {
console.log(this.$route.query, 'this.$route.query')
// console.log(this.$route.query, 'this.$route.query')
this.ruleForm.batchName = this.$route.query.batchName
this.submitForm()
},
......@@ -604,13 +604,13 @@ export default {
// 有url拆分调接口换预览
if (urlStr) {
console.log(urlStr, 'urlStr')
// console.log(urlStr, 'urlStr')
if (urlStr.includes(',')) {
arrUrl = item.url.split(',')
} else {
arrUrl.push(urlStr)
}
console.log(arrUrl, 'arrUrlarrUrl')
// console.log(arrUrl, 'arrUrlarrUrl')
arrUrl.forEach(async (showUrl) => {
let paramsUrl = {
url: showUrl,
......@@ -618,7 +618,7 @@ export default {
let resUrl = await presignedUrl(paramsUrl)
showUrlList.push(resUrl.msg)
})
console.log(showUrlList, 'showUrlList')
// console.log(showUrlList, 'showUrlList')
this.$set(item, 'images', showUrlList)
}
......@@ -676,7 +676,7 @@ export default {
}
},
closed() {
console.log('关闭')
// console.log('关闭')
this.handleSelectionChange()
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
......@@ -710,7 +710,7 @@ export default {
},
async savetj() {
this.tableDataQR.forEach((item) => {
console.log(item.rectificationStatus, 'item.rectificationStatus')
// console.log(item.rectificationStatus, 'item.rectificationStatus')
if (!item.rectificationStatus && item.rectificationStatus !== 0) {
this.$message({
message: '请完成所有整改复核后在进行提交',
......@@ -756,7 +756,7 @@ export default {
module: 1,
}
Object.assign(params, this.ruleForm)
console.log(params)
// console.log(params)
let res = await postEvalQuesInfo(params)
if (res.code == '200') {
......@@ -895,7 +895,7 @@ export default {
// 如果文件名不符合白名单要求,使用默认文件名
if (!safePattern.test(fileName)) {
console.warn('文件名包含不安全字符,已替换为默认文件名');
// console.warn('文件名包含不安全字符,已替换为默认文件名');
return 'download';
}
......@@ -963,7 +963,7 @@ export default {
evalQues: '',
}
this.form.projectStage = val
console.log(val, '333344444')
// console.log(val, '333344444')
let params = {
projectStage: val,
hgx: 'hgx',
......
......@@ -895,7 +895,7 @@ export default {
},
},
mounted() {
console.log(888888, this.$route);
// console.log(888888, this.$route);
this.submitForm();
},
filters: {
......@@ -944,7 +944,7 @@ export default {
methods: {
routeToResultView(row) {
console.log(66666, row);
// console.log(66666, row);
const params = {
name: 'bingo'
}
......@@ -1031,7 +1031,7 @@ export default {
pageSize: this.pageSizeXQ,
batchId: this.checkedList[0].batchId,
};
console.log(params, "params");
// console.log(params, "params");
let res = await expert(params);
this.XQtableData = res.data.records;
......@@ -1054,7 +1054,7 @@ export default {
this.ruleFormdialog = this.checkedList[0];
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
......@@ -1141,7 +1141,7 @@ export default {
this.addtableData = [];
}
if (this.dialogedit == true) {
console.log("编辑专家");
// console.log("编辑专家");
this.addtableData = [];
}
this.addtableData = [...this.addtableData, ...this.addZJList];
......@@ -1168,7 +1168,7 @@ export default {
pageSize: this.pageSizeZJ,
};
Object.assign(params, this.ruleFormZJ);
console.log("查询专家", params);
// console.log("查询专家", params);
// this.zjtableData = []
let res = await expertInfo(params);
this.zjtableData = res.data.records;
......@@ -1179,10 +1179,10 @@ export default {
this.dialogedit = false;
},
saveXZ() {
console.log("保存验证", this.$refs);
// console.log("保存验证", this.$refs);
this.$refs.formName.validate((valid) => {
if (!valid) {
console.log("error submit!!");
// console.log("error submit!!");
return false;
} else {
if (this.addtableData.length < 1) {
......@@ -1290,7 +1290,7 @@ export default {
},
//点击删除
deletes() {
console.log("删除");
// console.log("删除");
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
......
......@@ -821,7 +821,7 @@ export default {
pageSize: this.pageSizeXQ,
batchId: this.checkedList[0].batchId,
}
console.log(params, 'params')
// console.log(params, 'params')
let res = await expert(params)
this.XQtableData = res.data.records
......@@ -844,7 +844,7 @@ export default {
this.ruleFormdialog = this.checkedList[0]
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSize = val
this.submitForm()
},
......@@ -912,7 +912,7 @@ export default {
return
}
if (this.dialogedit == true) {
console.log('编辑专家')
// console.log('编辑专家')
this.addtableData = []
}
this.addtableData = [...this.addtableData, ...this.addZJList]
......@@ -939,7 +939,7 @@ export default {
pageSize: this.pageSizeZJ,
}
Object.assign(params, this.ruleFormZJ)
console.log('查询专家', params)
// console.log('查询专家', params)
// this.zjtableData = []
let res = await expertInfo(params)
this.zjtableData = res.data.records
......@@ -950,16 +950,16 @@ export default {
this.dialogedit = false
},
saveXZ() {
console.log('保存验证', this.$refs)
// console.log('保存验证', this.$refs)
this.$refs.formName.validate((valid) => {
if (!valid) {
console.log('error submit!!')
// console.log('error submit!!')
return false
} else {
if (this.addtableData.length < 1) {
this.$message('请选择专家')
}
console.log(this.addZJList, 'this.addZJList')
// console.log(this.addZJList, 'this.addZJList')
let expertIdList = []
let expertStr = ''
this.addtableData.forEach((item) => {
......@@ -1020,12 +1020,12 @@ export default {
},
//选中的专家
handleSelectionChangeZJ() {
console.log('选中的专家-', this.addZJList);
// console.log('选中的专家-', this.addZJList);
this.addZJList = this.$refs.multipleTableZJ.selection
},
// getCurrentRow(row){
// // 获取选中数据 row表示选中这一行的数据,可以从里面提取所需要的值
// console.log('row', row);
// console.log('row', row);
// this.templateSelection = row
// },
convertTimeFormat(isoTime) {
......@@ -1071,7 +1071,7 @@ export default {
},
//点击删除
deletes() {
console.log('删除')
// console.log('删除')
if (this.checkedList.length != 1) {
this.$message('请选择')
return
......
......@@ -102,9 +102,9 @@ export default {
methods: {
async init(type) {
let params = type;
console.log(params, "333");
// console.log(params, "333");
let res = await selWtqdpostEvalQuesInfo(params);
console.log(res, "0000");
// console.log(res, "0000");
if (res.code == "200") {
this.tableData = res.data.records;
......@@ -136,13 +136,13 @@ export default {
// 有url拆分调接口换预览
if (urlStr) {
console.log(urlStr, "urlStr");
// console.log(urlStr, "urlStr");
if (urlStr.includes(",")) {
arrUrl = item.url.split(",");
} else {
arrUrl.push(urlStr);
}
console.log(arrUrl, "arrUrlarrUrl");
// console.log(arrUrl, "arrUrlarrUrl");
arrUrl.forEach(async (showUrl) => {
let paramsUrl = {
url: showUrl,
......@@ -150,7 +150,7 @@ export default {
let resUrl = await presignedUrl(paramsUrl);
showUrlList.push(resUrl.msg);
});
console.log(showUrlList, "showUrlList");
// console.log(showUrlList, "showUrlList");
this.$set(item, "images", showUrlList);
}
......@@ -211,7 +211,7 @@ export default {
list: this.tableData,
lastUpdateTime: getCurrentDate(),
};
console.log(params, "this.clqparams");
// console.log(params, "this.clqparams");
// return
// if (type == "add") {
......
......@@ -848,7 +848,7 @@ export default {
},
methods: {
routeToResultView(row) {
console.log(66666, row);
// console.log(66666, row);
this.$router.push({
path: '/assesszc/auxiliaryInspection',
query: {
......@@ -869,7 +869,7 @@ export default {
}
},
timeChange(time) {
console.log("tttttt", time);
// console.log("tttttt", time);
if (time) {
//给后端的参数
this.ruleForm.createStartTime = time[0];
......@@ -889,7 +889,7 @@ export default {
module: 1,
};
Object.assign(params, this.ruleForm);
console.log(params);
// console.log(params);
let res = await projectInfo(params);
if (res.code == "200") {
this.tableData = res.data.records;
......@@ -942,7 +942,7 @@ export default {
);
});
this.addtotal = res.data.total * 1;
console.log(this.addtableData, "this.addtableData");
// console.log(this.addtableData, "this.addtableData");
this.dialogXQ = true;
}
},
......@@ -1001,45 +1001,45 @@ export default {
}
this.checkedList = this.$refs.multipleTable.selection;
this.ruleFormdialog = this.checkedList[0];
console.log(this.checkedList, "2222");
// console.log(this.checkedList, "2222");
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
handleSizeChangeZJ(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSizeZJ = val;
this.xzExperts();
},
handleCurrentChangeZJ(val) {
console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this.currentZJ = val;
this.xzExperts();
},
handleSizeChangeAdd(val) {
this.pageSizeAdd = val;
// this.detailsForm();
console.log(val, this.addcurrentPage, "1111");
// console.log(val, this.addcurrentPage, "1111");
},
handleCurrentChangeAdd(val) {
console.log(val, this.addcurrentPage, "0000");
// console.log(val, this.addcurrentPage, "0000");
this.addcurrentPage = val;
// this.detailsForm();
},
handleSizeChangXQ(val) {
this.pageSizeXQ = val;
this.detailsForm();
console.log(val, this.addcurrentPage, "1111");
// console.log(val, this.addcurrentPage, "1111");
},
handleCurrentChangeXQ(val) {
console.log(val, this.addcurrentPage, "0000");
// console.log(val, this.addcurrentPage, "0000");
this.currentPageXQ = val;
this.detailsForm();
},
......@@ -1050,7 +1050,7 @@ export default {
this.$message("请选择项目");
return;
}
console.log(this.addtableData, this.addZJList, "55555");
// console.log(this.addtableData, this.addZJList, "55555");
this.addtableData = [...this.addtableData, ...this.addZJList];
this.addtableData = this.addtableData.filter((obj, index, self) => {
......@@ -1079,7 +1079,7 @@ export default {
};
Object.assign(params, this.ruleFormZJ);
let res = await pmProInitiation(params);
console.log(res.data.records, "res.data.recordsres.data.records");
// console.log(res.data.records, "res.data.recordsres.data.records");
this.zjtableData = res.data.records;
this.zjtableData.forEach((item) => {
this.$set(
......@@ -1089,14 +1089,14 @@ export default {
);
});
this.zjtotal = res.data.total * 1;
console.log(res, "xxx");
// console.log(res, "xxx");
},
saveXZ() {
if (this.addtableData.length < 1) {
this.$message("请选择待评估项目");
}
console.log(this.addZJList, "this.addZJList");
// console.log(this.addZJList, "this.addZJList");
// 确认发布入参
let contractId = "";
let expertIdList = "";
......@@ -1115,7 +1115,7 @@ export default {
};
params.batchId = this.ruleFormdialogBJ.batchId;
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222");
// console.log(params, "222");
// return
fbProjectInfo(params).then((res) => {
this.dialogAdd = false;
......@@ -1128,7 +1128,7 @@ export default {
// if (this.addtableData.length < 1) {
// this.$message("没有可保存的项目");
// }
console.log(this.addZJList, "this.addZJList");
// console.log(this.addZJList, "this.addZJList");
// 确认发布入参
let expertIdList = "";
if (this.addtableData.length > 0) {
......@@ -1142,7 +1142,7 @@ export default {
};
params.batchId = this.ruleFormdialogBJ.batchId;
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222");
// console.log(params, "222");
// return
bcProjectInfo(params).then((res) => {
this.$message("保存成功");
......@@ -1169,7 +1169,7 @@ export default {
},
selectAll(selection) {
this.addZJList = this.$refs.multipleTableZJ.selection;
console.log(this.$refs.multipleTableZJ.selection, "2222222");
// console.log(this.$refs.multipleTableZJ.selection, "2222222");
// selection = selection.filter(item=>{
// return item.zcstate!=1&&item.zcstate!=2&&item.zcstate!=3
// });
......@@ -1191,13 +1191,13 @@ export default {
//选中的项目
handleSelectionChangeZJ(selection, row) {
console.log("来了么", row);
// console.log("来了么", row);
if (selection.length < 1) {
return;
}
if (selection.length === this.zjtableData.Length) {
console.log("全选");
// console.log("全选");
}
let info = row.zcstate;
if (info == 1 || info == 2 || info == 3) {
......@@ -1206,11 +1206,11 @@ export default {
false
);
this.$message("该项目在流程中,请选择其他项目");
console.log("不让点");
// console.log("不让点");
return;
}
this.addZJList = this.$refs.multipleTableZJ.selection;
console.log(this.$refs.multipleTableZJ.selection, "2222222");
// console.log(this.$refs.multipleTableZJ.selection, "2222222");
},
//点击删除
async handleClick(row, index, rows) {
......
......@@ -946,7 +946,7 @@ export default {
computed: {
bindTableColumns() {
const aa = this.columns.filter((column) => column.show)
console.log(333, aa);
// console.log(333, aa);
return aa;
},
checkedTableColumns: {
......@@ -964,7 +964,7 @@ export default {
column.show = false;
}
});
console.log(2222, this.columns);
// console.log(2222, this.columns);
},
},
},
......@@ -1119,13 +1119,13 @@ export default {
// 有url拆分调接口换预览
if (urlStr) {
console.log(urlStr, 'urlStr')
// console.log(urlStr, 'urlStr')
if (urlStr.includes(',')) {
arrUrl = item.url.split(',')
} else {
arrUrl.push(urlStr)
}
console.log(arrUrl, 'arrUrlarrUrl')
// console.log(arrUrl, 'arrUrlarrUrl')
arrUrl.forEach(async (showUrl) => {
let paramsUrl = {
url: showUrl,
......@@ -1133,7 +1133,7 @@ export default {
let resUrl = await presignedUrl(paramsUrl)
showUrlList.push(resUrl.msg)
})
console.log(showUrlList, 'showUrlList')
// console.log(showUrlList, 'showUrlList')
this.$set(item, 'images', showUrlList)
}
......@@ -1146,7 +1146,7 @@ export default {
}
},
fileupdate(items, list) {
console.log(items, list, 'list')
// console.log(items, list, 'list')
this.fileList.push(list.file)
this.debounce(this.submitFile, 500, items)
},
......@@ -1161,7 +1161,7 @@ export default {
}, waits)
},
submitFile() {
console.log(arguments[2], 'arguments')
// console.log(arguments[2], 'arguments')
if (this.fileList.length === 0) {
this.$message.success('请上传文件')
return
......@@ -1181,7 +1181,7 @@ export default {
this.fileList = []
this.confirm()
// this.MaterialWarehous(this.upprojectType);
console.log(this.$refs.upload, 'this.$refs.upload')
// console.log(this.$refs.upload, 'this.$refs.upload')
this.$refs.upload.clearFiles()
this.$message('上传成功')
} else {
......@@ -1226,13 +1226,13 @@ export default {
}
},
closed() {
console.log('关闭')
// console.log('关闭')
this.handleSelectionChange()
},
async saveSS() {
const confirmStatusArr = this.tableDataQR.filter(item => item.confirmStatus == 1)
const nullFeedBack = confirmStatusArr.filter(item => !item.feedback?.trim())
console.log('保存--this.tableDataQR', this.tableDataQR, confirmStatusArr, nullFeedBack);
// console.log('保存--this.tableDataQR', this.tableDataQR, confirmStatusArr, nullFeedBack);
if (nullFeedBack.length > 0) {
this.$message.warning('整改说明(申述必填)');
return
......@@ -1249,7 +1249,7 @@ export default {
async saveSubmit() {
const confirmStatusArr = this.tableDataQR.filter(item => item.confirmStatus == 1)
const nullFeedBack = confirmStatusArr.filter(item => !item.feedback?.trim())
console.log('提交--this.tableDataQR', this.tableDataQR, confirmStatusArr, nullFeedBack);
// console.log('提交--this.tableDataQR', this.tableDataQR, confirmStatusArr, nullFeedBack);
if (nullFeedBack.length > 0) {
this.$message.warning('整改说明(申述必填)');
return
......@@ -1288,7 +1288,7 @@ export default {
module: 1,
}
Object.assign(params, this.ruleForm)
console.log(params)
// console.log(params)
let res = await evaluationMaterials(params)
// let res = this.mockData
......@@ -1411,21 +1411,21 @@ export default {
}
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSize = val
this.submitForm()
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`)
// console.log(`当前页: ${val}`)
this.currentPage = val
this.submitForm()
},
handleSizeChangetjcl(val) {
console.log(`每页 ${val} 条`)
// console.log(`每页 ${val} 条`)
this.pageSizetjcl = val
},
handleCurrentChangetjcl(val) {
console.log(`当前页: ${val}`)
// console.log(`当前页: ${val}`)
this.currentPagetjcl = val
},
cancel() {
......@@ -1437,7 +1437,7 @@ export default {
// this.dialogXQ = false;
},
closeDialog() {
console.log('guanbi')
// console.log('guanbi')
this.showButton = true
},
async save(type) {
......@@ -1450,7 +1450,7 @@ export default {
this.resetForm()
},
handleFileUploadZG(event, row, id) {
console.log('来了么')
// console.log('来了么')
this.file = event.target.files[0]
this.submitFileZG(row, id)
},
......@@ -1470,7 +1470,7 @@ export default {
formData.append('bathId', this.checkedList[0].batchId)
ossuploadStr(formData)
.then((response) => {
console.log(response, '试试')
// console.log(response, '试试')
this.fileList = []
let fileId = ''
response.data.list.forEach((item) => {
......@@ -1480,7 +1480,7 @@ export default {
this.$set(row, type, fileId)
})
.catch((error) => {
console.error(error)
// console.error(error)
})
} else {
this.$message('请先选择文件')
......@@ -1488,18 +1488,18 @@ export default {
},
submitFileZG(row, type) {
// return;
console.log(row)
// console.log(row)
if (this.file) {
const formData = new FormData()
formData.append('file', this.file)
ossupload(formData)
.then((response) => {
console.log(response)
// console.log(response)
this.file = []
this.$set(row, type, response.data.fileId)
})
.catch((error) => {
console.error(error)
// console.error(error)
})
} else {
this.$message('请先选择文件')
......@@ -1516,7 +1516,7 @@ export default {
// 如果文件名不符合白名单要求,使用默认文件名
if (!safePattern.test(fileName)) {
console.warn('文件名包含不安全字符,已替换为默认文件名');
// console.warn('文件名包含不安全字符,已替换为默认文件名');
return 'download';
}
......@@ -1543,7 +1543,7 @@ export default {
}
},
handleMouseEnter(msg) {
console.log(this.$refs[msg], 'this.$refs[msg].style')
// console.log(this.$refs[msg], 'this.$refs[msg].style')
// this.$refs[msg].style.whiteSpace = 'normal';
},
handleMouseLeave(msg) {
......
......@@ -535,7 +535,7 @@ export default {
methods: {
beforeUpload(file) {
console.log(file.size / 1024 / 1024, "多大");
// console.log(file.size / 1024 / 1024, "多大");
const isLt500M = file.size / 1024 / 1024 < 500;
if (!isLt500M) {
this.$message.error("上传的文件不能超过500MB!");
......@@ -546,7 +546,7 @@ export default {
this.$forceUpdate();
},
noFullScreen() {
console.log("关闭了");
// console.log("关闭了");
this.dialogFullScreen = false;
},
upload(row) {
......@@ -593,7 +593,7 @@ export default {
}
},
projectType() {
console.log(this.form.projectType, "2222");
// console.log(this.form.projectType, "2222");
this.chpmProInitiation(this.form.projectType);
this.MaterialWarehous(this.form.projectType);
this.showType = false;
......@@ -619,7 +619,7 @@ export default {
this.showFileListDialog = true;
},
deleteFileFunc(row) {
console.log('deleteFileFunc', row);
// console.log('deleteFileFunc', row);
this.$confirm("此操作将删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -698,7 +698,7 @@ export default {
this.mergingPos = 0;
this.mergingRows = [];
this.tableDataQR = [];
console.log("不调接口了");
// console.log("不调接口了");
this.dialog = true;
let params = {
proType: projectType,
......@@ -707,7 +707,7 @@ export default {
};
let res = await MaterialWarehous(params);
this.tableDataQR = res.data.records;
console.log(this.tableDataQR, "this.tableDataQR");
// console.log(this.tableDataQR, "this.tableDataQR");
this.tableDataQR.forEach((item) => {
switch (item.projectStage) {
case "1":
......@@ -785,12 +785,12 @@ export default {
}
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
......@@ -808,12 +808,12 @@ export default {
this.dialog = false;
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
......@@ -851,7 +851,7 @@ export default {
// this.fileList = fileList;
},
fileupdate(items, list) {
console.log(items, "list");
// console.log(items, "list");
this.fileList.push(list.file);
this.debounce(this.submitFile, 500, items);
},
......@@ -866,7 +866,7 @@ export default {
}, waits);
},
submitFile(items) {
console.log(arguments[2], "arguments");
// console.log(arguments[2], "arguments");
if (this.fileList.length === 0) {
this.$message.success("请上传文件");
return;
......@@ -893,12 +893,14 @@ export default {
}
})
.catch((error) => {
console.error("error");
// console.error("error");
this.fileList = [];
this.$refs["upload" + arguments[2].mid].clearFiles();
// this.$message("上传失败");
})
.finally(() => console.log("Request completed"));
.finally(() => {
// console.log("Request completed")
});
},
handleSuccess(response, file, fileList) {
// 提交保存成功后清空已上传的文件
......@@ -907,7 +909,7 @@ export default {
async preview(row) {
this.tabListYL = [];
let array = row.fullName.split(",");
console.log({ ...row }, row.fullName, array, "33333");
// console.log({ ...row }, row.fullName, array, "33333");
array.forEach((item, index) => {
this.tabListYL.push({
name: item,
......@@ -915,11 +917,11 @@ export default {
url: row.fullUrl.split(",")[index],
});
});
console.log(
"this.tabListYL",
JSON.parse(JSON.stringify(this.tabListYL)),
this.tabListYL
);
// console.log(
// "this.tabListYL",
// JSON.parse(JSON.stringify(this.tabListYL)),
// this.tabListYL
// );
this.downloadFileObject("0");
},
......@@ -930,13 +932,13 @@ export default {
text: "文件加载中,请耐心等待...",
});
this.blobType = "";
console.log(
"this.tabListYL",
JSON.parse(JSON.stringify(this.tabListYL)),
this.tabListYL
);
// console.log(
// "this.tabListYL",
// JSON.parse(JSON.stringify(this.tabListYL)),
// this.tabListYL
// );
let resUrl = await downloadObject({ fileId: this.tabListYL[index].id });
console.log("downFileresUrl", resUrl);
// console.log("downFileresUrl", resUrl);
loadingInstance.close();
if (
this.tabListYL[index].url.slice(-3) == "pdf" ||
......@@ -972,12 +974,12 @@ export default {
// let resUrl = await presignedUrl(paramsImg);
// this.imageUrl="http://view.officeapps.live.com/op/view.aspx?src=http://arch-file.oss-cn-beijing.aliyuncs.com/66a83f6f4386f71e7b950b87.doc?Expires=1722907981&OSSAccessKeyId=LTAI5tGjidtvVSCvwGxTp8FH&Signature=4p2boWzux%2FscZHWQz2E4gVRF94w%3D"
}
console.log(this.blobType);
// console.log(this.blobType);
this.dialogVisible = true;
},
changeTab(tab) {
console.log("切换", tab.name, this.tabListYL, this.tabListYL[tab.name].iframeUrl);
// console.log("切换", tab.name, this.tabListYL, this.tabListYL[tab.name].iframeUrl);
// if (!this.tabListYL[tab.name].iframeUrl) {
this.downloadFileObject(tab.name + "");
// }
......
......@@ -12,7 +12,7 @@ export default {
},
mounted() {
this.zjIframe = SystemConfig.VUE_APP_ZJ_IFRAME + "/static/";
console.log(sessionStorage.getItem("authorized-token"), "zi级session");
// console.log(sessionStorage.getItem("authorized-token"), "zi级session");
let auto = sessionStorage.getItem("author");
const iFrame = document.getElementById("iframezj");
iFrame.onload = function () {
......
......@@ -171,7 +171,7 @@ export default {
this.activeIndex = "/mainLayout/materialAcquisition";
} else if (newVal == 99) {
this.menuList = trendsRules(99);
console.log('this.menuList', this.menuList);
// console.log('this.menuList', this.menuList);
this.$router.push({
path: "/mainLayout/auxiliarySelection",
});
......@@ -205,7 +205,7 @@ export default {
methods: {
async getIscInfoAndRoutes() {
console.log('menuList1111', JSON.parse(JSON.stringify(this.menuList)));
// console.log('menuList1111', JSON.parse(JSON.stringify(this.menuList)));
const resMockData = {
"success": true,
"code":200,
......@@ -250,7 +250,7 @@ export default {
// res = await getIscInfo();
const res = resMockData
if (res.code === 200) {
console.log(123123, res.content);
// console.log(123123, res.content);
}
},
handleOpen(e, a) {
......
......@@ -185,7 +185,7 @@ export default {
this.activeIndex = "/mainLayout/materialAcquisition";
} else if (newVal == 99) {
this.menuList = trendsRules(99);
console.log("this.menuList", this.menuList);
// console.log("this.menuList", this.menuList);
this.$router.push({
path: "/mainLayout/auxiliarySelection",
});
......
......@@ -259,7 +259,7 @@ export default {
sessionStorage.setItem("username", res.content.name);
sessionStorage.setItem("userloginname", res.content.loginName);
const resRoutes = res.content.menuList[0].children;
console.log(123123, resRoutes);
// console.log(123123, resRoutes);
const souYeRoute = resRoutes.filter((item) => item.name === "首页");
const restRoutes = resRoutes.filter((item) => item.name !== "首页");
restRoutes.forEach(val => {
......@@ -529,7 +529,7 @@ export default {
sessionStorage.setItem("username", res.content.name);
sessionStorage.setItem("userloginname", res.content.loginName);
const resRoutes = res.content.menuList[0].children;
console.log(123123, resRoutes);
// console.log(123123, resRoutes);
const souYeRoute = resRoutes.filter((item) => item.name === "首页");
const restRoutes = resRoutes.filter((item) => item.name !== "首页");
restRoutes.forEach(val => {
......
......@@ -500,7 +500,7 @@ this.dialog = true;
// 如果文件名不符合白名单要求,使用默认文件名
if (!safePattern.test(fileName)) {
console.warn('文件名包含不安全字符,已替换为默认文件名');
// console.warn('文件名包含不安全字符,已替换为默认文件名');
return 'download';
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!