Commit 0fff5724 by bingobo

修复漏洞扫描问题

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