Commit b6eafabd by bingobo

增加isc接口

1 parent 4818dc49
......@@ -17,6 +17,7 @@
"el-table-horizontal-scroll": "^1.2.5",
"element-ui": "^2.15.14",
"jquery": "^3.7.1",
"js-cookie": "^3.0.5",
"jszip": "^3.10.1",
"mammoth": "^1.8.0",
"moment": "^2.30.1",
......@@ -9032,6 +9033,14 @@
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
},
"node_modules/js-cookie": {
"version": "3.0.5",
"resolved": "https://registry.npmmirror.com/js-cookie/-/js-cookie-3.0.5.tgz",
"integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==",
"engines": {
"node": ">=14"
}
},
"node_modules/js-message": {
"version": "1.0.7",
"resolved": "https://registry.npmmirror.com/js-message/-/js-message-1.0.7.tgz",
......@@ -23538,6 +23547,11 @@
"resolved": "https://registry.npmmirror.com/jquery/-/jquery-3.7.1.tgz",
"integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
},
"js-cookie": {
"version": "3.0.5",
"resolved": "https://registry.npmmirror.com/js-cookie/-/js-cookie-3.0.5.tgz",
"integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw=="
},
"js-message": {
"version": "1.0.7",
"resolved": "https://registry.npmmirror.com/js-message/-/js-message-1.0.7.tgz",
......@@ -16,6 +16,7 @@
"el-table-horizontal-scroll": "^1.2.5",
"element-ui": "^2.15.14",
"jquery": "^3.7.1",
"js-cookie": "^3.0.5",
"jszip": "^3.10.1",
"mammoth": "^1.8.0",
"moment": "^2.30.1",
......
......@@ -5,7 +5,7 @@ const SystemConfig = {
PUBLIC_PATH: '/api',
//TODO VUE_APP_BASE_URL: "http://25.66.210.41/tools",
VUE_APP_BASE_URL: "http://192.168.0.104:18088/tools",
VUE_APP_BASE_URL: "http://192.168.0.114:18088/tools",
//TODO VUE_APP_ZJ_IFRAME: "http://25.66.210.41/arch"
// VUE_APP_ZJ_IFRAME: "http://192.168.0.113/arch"
VUE_APP_ZJ_IFRAME: "http://localhost:30478/arch"
......
/**
* @license BSD-3-Clause
* @copyright 2014-2023 hizzgdev@163.com
*
*
* Project Home:
* https://github.com/hizzgdev/jsmind/
*/
......
......@@ -9,6 +9,8 @@
</template>
<script>
// import './assets/bootstrap/bootstrap.min.css'
// document.cookie = "joker=dwwq12";
</script>
......
......@@ -6,6 +6,17 @@ import { ARCH_EVALUATION } from '@/config/micromodule'
import { get, post, download } from '@/utils/http'
//获取isc用户信息
export function getIscInfo() {
return post(`${ARCH_EVALUATION}/gateway/getUse/`)
}
// 获取流程列表
export function evalBatchInfo(params) {
return post(`${ARCH_EVALUATION}/postEvalBatchInfo/`, params)
......
......@@ -21,7 +21,6 @@ export function milestonesGetList(params) {
// 获取流程列表
export function getMessageListApi(params) {
// messageReminder/getIPageList
return post(`${ARCH_EVALUATION}/messageReminder/getIPageList`, params)
}
// 一键已读 已读单条msg
......@@ -464,9 +463,9 @@ export function bcevalQuesInfo(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/bc`, params)
}
//首页
export function projectInfoSy(params) {
return post(`${ARCH_EVALUATION}/projectInfo/sy`, params)
}
// export function projectInfoSy(params) {
// return post(`${ARCH_EVALUATION}/projectInfo/sy`, params)
// }
//项目列表页面
export function pmProInitiation(params) {
return post(`${ARCH_EVALUATION}/projectInfoZc/getProjectInfo`, params)
......
......@@ -7,6 +7,7 @@ import { SM4Util } from "./sm4";
axios.defaults.timeout = 300000;
axios.defaults.baseURL = SystemConfig.VUE_APP_BASE_URL;
axios.defaults.withCredentials = true
function encryptStringBySM4_CBC(str) {//使用sm4-cbc算法给字符串加密
......@@ -39,10 +40,17 @@ axios.interceptors.request.use(config => {
// });
// }
// console.log(1111111111, sessionStorage.getItem('authorCName'));
config.headers['X-USER'] = sessionStorage.getItem('author');
config.headers['X-USER-NAME'] = sessionStorage.getItem('authorName')
// 请求头中传递中文字符
config.headers['X-USER-CNAME'] = encodeURIComponent(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'));
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');
// config.headers['X-USER'] = sessionStorage.getItem('author');
// config.headers['X-USER-NAME'] = sessionStorage.getItem('authorName')
// config.headers['X-USER-CNAME'] = encodeURIComponent(sessionStorage.getItem('authorCName')) // 请求头中传递中文字符
if (config.url.indexOf('oss/downloadObject') != '-1') {
config.headers["Content-Type"] = 'application/x-www-form-urlencoded'
config.headers['responseType'] = 'blob'
......
......@@ -434,6 +434,7 @@
</div>
</div>
<p class="midBtn">
<span @click="goToMicroServe">跳转微应用</span>
<span @click="cancelSS()">取消</span><span @click="saveSS()">保存</span
><span @click="saveSubmit()">提交</span>
</p>
......@@ -547,6 +548,19 @@ export default {
})
},
methods: {
goToMicroServe() {
// const params = {
// id: 123,
// name: 'test',
// token: 'abc123'
// }
// 将参数拼接到 URL
// const queryString = Object.keys(params)
// .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
// .join('&')
// window.open(`https://www.bilibili.com?${queryString}`, '_blank')
window.open(`http://10.4.34.182/isc_sso/login?service=http%3A%2F%2F20.1.39.51%3A20888%2Fpmp_irs%2F%23%2F`, '_blank')
},
timeChange(time) {
if (time) {
//给后端的参数
......
......@@ -3,7 +3,12 @@
<div class="mainhome">
<div class="querytj">
年份:
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable class="inputnf">
<el-select
v-model="ruleForm.batchYear"
placeholder="请选择"
clearable
class="inputnf"
>
<el-option
v-for="(item, index) in yearsList"
:key="index"
......@@ -87,9 +92,9 @@
</div>
</div>
</template>
<script>
import { projectInfoSy } from "@/api/index";
<script>
import { projectInfoSy, getIscInfo, evaluationMaterials } from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
export default {
data() {
......@@ -97,26 +102,26 @@ export default {
yearsList: generateYearOptions(),
info: {},
ruleForm: {
type: ['0', '1'],
batchYear:"2024",
module:'1,2'
type: ["0", "1"],
batchYear: "2024",
module: "1,2",
},
};
},
watch: {
"ruleForm.type"(n,o) {
console.log("变了",n,o);
if(n.length>1){
this.ruleForm.module="1,2"
}else{
this.ruleForm.module=n.join(',')
"ruleForm.type"(n, o) {
console.log("变了", n, o);
if (n.length > 1) {
this.ruleForm.module = "1,2";
} else {
this.ruleForm.module = n.join(",");
}
// if(n.length>)
this.init();
},
"ruleForm.batchYear"(newVal, oldVal) {
console.log("变了1",newVal);
console.log("变了1", newVal);
this.init();
},
},
......@@ -125,13 +130,53 @@ export default {
this.init();
},
methods: {
async getIscInfoAndRoutes() {
// const userInfo = Cookies.get('joker');
// console.log('userInfo', userInfo);
// let res = await evaluationMaterials({
// current: 1,
// pageSize: 10,
// module: 0,
// })
try {
let res = await getIscInfo();
if (res.code === 200) {
sessionStorage.setItem("userid", res.content.id);
sessionStorage.setItem("username", res.content.name);
sessionStorage.setItem("userloginname", res.content.loginName);
}
} catch (error) {
const res = {
success: true,
code: 200,
message: "OK",
content: {
id: "FA84A11538656BBCE0430100007F9766",
loginName: "lhb",
name: "实物ID运维",
password: "403B8BB4B09",
mobile: "1111111111",
email: "lhb@In.sgcc,com.cn",
department: "数据运营中心",
departmentId: "8a20318c948334c201951824f892660e",
funcList: [],
},
};
if (res.code === 200) {
sessionStorage.setItem("userid", res.content.id);
sessionStorage.setItem("username", res.content.name);
sessionStorage.setItem("userloginname", res.content.loginName);
}
}
},
async init() {
let params={
if(!sessionStorage.getItem('userloginname')) {
// 如果没有session, 先调用该接口获取用户信息
await this.getIscInfoAndRoutes()
}
let params = {};
Object.assign(params, this.ruleForm);
let res = await projectInfoSy(params);
this.info = res.data;
// if(this.ruleForm.batchYear==2024){
......@@ -171,8 +216,8 @@ export default {
},
};
</script>
<style lang="scss" scoped>
<style lang="scss" scoped>
.main {
font-size: 14px;
position: relative;
......@@ -312,4 +357,4 @@ h2 {
::v-deep.el-checkbox__input.is-checked .el-checkbox__inner {
background: blue;
}
</style>
\ No newline at end of file
</style>
......@@ -381,6 +381,7 @@
</div>
</div>
<p class="midBtn">
<span @click="goToMicroServe">跳转微应用</span>
<span @click="cancelSS()">取消</span><span @click="saveSS()">保存</span><span @click="saveSubmit()">提交</span>
</p>
</el-dialog>
......@@ -993,8 +994,25 @@ export default {
this.$nextTick(() => {
this.$refs.multipleTable.doLayout()
})
// setTimeout(() => {
// this.goToMicroServe()
// }, 3000)
},
methods: {
goToMicroServe() {
// const params = {
// id: 123,
// name: 'test',
// token: 'abc123'
// }
// 将参数拼接到 URL
// const queryString = Object.keys(params)
// .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
// .join('&')
// window.open(`https://www.bilibili.com?${queryString}`, '_blank')
window.open(`http://10.4.34.182/isc_sso/login?service=http%3A%2F%2F20.1.39.51%3A20888%2Fpmp_irs%2F%23%2F`, '_blank')
},
timeChange(time) {
if (time) {
//给后端的参数
......
......@@ -324,7 +324,7 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
// console.log(params);
let res = await auditTasksResults(params);
if (res.code == "200") {
......@@ -377,7 +377,7 @@ export default {
// this.checkedList[0].auditEndTime,
// ];
this.XQtableData = res.data.records;
console.log(this.XQtableData, "XQtableDataXQtableData");
// console.log(this.XQtableData, "XQtableDataXQtableData");
this.dialog = true;
}
},
......@@ -397,25 +397,25 @@ 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();
},
handleSizeChangeXQ(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSizeXQ = val;
this.detailsForm();
},
handleCurrentChangeXQ(val) {
console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this.currentPageXQ = val;
this.detailsForm();
},
......
......@@ -480,8 +480,8 @@ export default {
this.$forceUpdate();
},
handleRowClickSelf(row, column, event) {
console.log('点击了')
console.log(row,'2222')
// console.log('点击了')
// console.log(row,'2222')
if (row.contractNumber && row.projectCode) {
this.$refs['multipleTableZJ'].toggleRowSelection(row)
this.addZJList = this.$refs.multipleTableZJ.selection
......@@ -513,7 +513,7 @@ export default {
}
// if (this.addtableData.length > 0) {
// this.addtableData.forEach((item) => {
// console.log(item, "item");
// console.log(item, "item");
// ruleList = ruleList.concat(item.id + ",");
// });
// }
......@@ -529,7 +529,7 @@ export default {
};
Object.assign(params, this.ruleFormdialogAdd);
console.log(params, "222");
// console.log(params, "222");
addauditTasks(params).then((res) => {
if (res.code == 200) {
this.$message({
......@@ -551,7 +551,7 @@ export default {
},
//选择项目
saveZJ() {
console.log(this.addZJListXM,this.addtableDataXM,'选择了')
// console.log(this.addZJListXM,this.addtableDataXM,'选择了')
if (this.addZJListXM.length < 1) {
this.$message.error("请选择项目");
return;
......@@ -589,7 +589,7 @@ export default {
// index === self.findIndex((t) => t.id === obj.id)
// );
this.addtableData = this.addZJList
console.log(this.addtableData, "选完是什么");
// console.log(this.addtableData, "选完是什么");
this.addtotal = this.addtableData.length;
this.dialogRule = false;
},
......@@ -627,7 +627,7 @@ export default {
ruleStatus: 0,
};
Object.assign(params, this.ruleFormRule);
console.log(params);
// console.log(params);
let res = await ruleFormulation(params);
if (res.code == "200") {
this.dialogRule = true;
......@@ -656,14 +656,14 @@ export default {
},
handleSelectionChangeXM(selection) {
console.log('点击了')
// console.log('点击了')
// this.addZJListXM = this.$refs.multipleTableXM.selection;
if (selection.length < 1) {
return
}
if (selection.length === this.zjtableData.Length) {
console.log('全选')
// console.log('全选')
}
this.addZJListXM = this.$refs.multipleTableXM.selection;
......@@ -701,14 +701,14 @@ export default {
},
//点击删除规则
handleClickADGZ(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.addtableData = rows;
this.addtotal = rows.length;
},
//点击删除
handleClickAD(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.addtableDataXM = rows;
this.addtotalXM = rows.length;
......
......@@ -648,12 +648,12 @@ export default {
},
methods: {
handleClick(row) {
console.log(row, "下发");
// console.log(row, "下发");
},
async saveXZ() {
this.$refs.formNameAD.validate((valid) => {
if (!valid) {
console.log("error submit!!");
// console.log("error submit!!");
return false;
} else {
let params = {
......@@ -661,11 +661,11 @@ export default {
creator: sessionStorage.getItem("author"),
};
let quesStr = "";
console.log( this.tableDataQR,'22')
// console.log( this.tableDataQR,'22')
this.tableDataQR.forEach((item) => {
console.log(item.showFlag==0,this.showbzArr.includes(item.questionId + ''),!item.configValue,'3345554')
// console.log(item.showFlag==0,this.showbzArr.includes(item.questionId + ''),!item.configValue,'3345554')
if(item.showFlag==0&&this.showbzArr.includes(item.questionId + '')&&!item.configValue){
console.log('开启了有编制的并且没填')
// console.log('开启了有编制的并且没填')
this.$message.error("请编制检查规则或关闭状态");
throw new Error()
}
......@@ -719,7 +719,7 @@ export default {
let quesStr = "";
this.tableDataEdit.forEach((item) => {
if(item.showFlag==0&&this.showbzArr.includes(item.questionId + '')&&!item.configValue){
console.log('开启了有编制的并且没填')
// console.log('开启了有编制的并且没填')
this.$message.error("请编制检查规则或关闭该检查项");
throw new Error()
}
......@@ -772,7 +772,7 @@ export default {
this.editIndex = index;
this.dialogedit = true;
this.questionId = info.questionId;
console.log(this.checkList, "3333");
// console.log(this.checkList, "3333");
},
//详情里的编制
editxq(info, index) {
......@@ -818,9 +818,9 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params, "入参");
// console.log(params, "入参");
let res = await ruleFormulation(params);
console.log(res, "reslll11");
// console.log(res, "reslll11");
if (res.code == "200") {
this.tableData = res.data.records;
this.total = res.data.total * 1;
......@@ -851,7 +851,7 @@ export default {
},
//编辑
async etailsEdit(row) {
console.log(row,'row');
// console.log(row,'row');
this.bjId=row.id
this.checkedList[0] = row;
this.ruleFormdialogEdit = row;
......@@ -884,15 +884,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();
},
......
......@@ -1100,7 +1100,7 @@ export default {
},
methods: {
cancelBJxx() {
console.log('关闭')
// console.log('关闭')
this.dialogedit = false;
this.checkList = [];
},
......@@ -1148,7 +1148,7 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
// console.log(params);
let res = await auditTasks(params);
if (res.code == "200") {
......@@ -1325,7 +1325,7 @@ export default {
let resZX = await qidongZx(row);
if(resZX.code==200){
row.auditStatusText='执行中'
console.log('执行中',row.auditStatusText)
// console.log('执行中',row.auditStatusText)
}
let res = await qidongTasks(row);
if (res.code == 200) {
......@@ -1348,7 +1348,7 @@ export default {
let resZX = await qidongZx(row);
if(resZX.code==200){
row.auditStatusText='执行中'
console.log('执行中',row.auditStatusText)
// console.log('执行中',row.auditStatusText)
}
let res = await qidongTasks(row);
if (res.code == 200) {
......@@ -1373,7 +1373,7 @@ export default {
// ruleStatus: 0,
};
Object.assign(params, this.ruleFormRule);
console.log(params);
// console.log(params);
let res = await ruleFormulation(params);
if (res.code == "200") {
this.dialogRule = true;
......@@ -1494,7 +1494,7 @@ export default {
}
if (selection.length === this.zjtableData.Length) {
console.log("全选");
// console.log("全选");
}
this.addZJListXM = this.$refs.multipleTableXM.selection;
......@@ -1653,36 +1653,36 @@ export default {
},
//点击删除
handleClickAD(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.addtableDataXM = rows;
this.addtotalXM = rows.length;
},
async handleClickBJ(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.addtableData = rows;
let params = {
ruleId: row.id,
auditId: this.checkedList[0].auditId,
};
console.log(params, "222233");
// console.log(params, "222233");
let res = await delRule(params);
},
async handleClickbjxm(row, index, rows) {
console.log("删除编辑项目", row);
// console.log("删除编辑项目", row);
rows.splice(index, 1);
this.addtableDataXM = rows;
let params = {
projectId: row.projectCode,
auditId: this.checkedList[0].auditId,
};
console.log(params, "2222");
// console.log(params, "2222");
let res = await delProject(params);
},
//点击删除规则
handleClickADGZ(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.addtableData = rows;
this.addtotal = rows.length;
......@@ -1714,7 +1714,7 @@ export default {
let ruleList = "";
if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => {
console.log(item, "item");
// console.log(item, "item");
ruleList = ruleList.concat(item.id + ",");
});
}
......@@ -1724,7 +1724,7 @@ export default {
ruleStr: ruleList,
};
Object.assign(params, this.ruleFormdialogAdd);
console.log(params, "222");
// console.log(params, "222");
addauditTasks(params).then((res) => {
if (res.code == 200) {
this.$message({
......
......@@ -234,6 +234,7 @@
<script>
import MainLayout from "./mainLayout";
import { getIscInfo, evaluationMaterials } from "@/api/index";
import { getMessageListApi, updateMessageApi, readWholwMsg } from "@/api/indexzc";
// import tableMixin from '@/mixins/table.mixin.js'
export default {
......@@ -382,7 +383,7 @@ export default {
});
},
handleRowClick(row, column, event, ref) {
console.log("column", column);
// console.log("column", column);
if (column.label == "操作") {
return;
// this.showMessage = false
......@@ -394,12 +395,57 @@ export default {
this.$refs[ref].toggleRowSelection(row);
}
},
async getIscInfoAndRoutes() {
// const userInfo = Cookies.get('joker');
// console.log('userInfo', userInfo);
// let res = await evaluationMaterials({
// current: 1,
// pageSize: 10,
// module: 0,
// })
try {
let res = await getIscInfo();
if (res.code === 200) {
sessionStorage.setItem("userid", res.content.id);
sessionStorage.setItem("username", res.content.name);
sessionStorage.setItem("userloginname", res.content.loginName);
}
} catch (error) {
const res = {
success: true,
code: 200,
message: "OK",
content: {
id: "FA84A11538656BBCE0430100007F9766",
loginName: "lhb",
name: "实物ID运维",
password: "403B8BB4B09",
mobile: "1111111111",
email: "lhb@In.sgcc,com.cn",
department: "数据运营中心",
departmentId: "8a20318c948334c201951824f892660e",
funcList: [],
},
};
if (res.code === 200) {
sessionStorage.setItem("userid", res.content.id);
sessionStorage.setItem("username", res.content.name);
sessionStorage.setItem("userloginname", res.content.loginName);
}
}
},
async getMessageList() {
if(!sessionStorage.getItem('userloginname')) {
// 如果没有session, 先调用该接口获取用户信息
await this.getIscInfoAndRoutes()
}
let params = {
current: this.currentPage,
pageSize: this.pageSize,
};
console.log(params);
// console.log(params);
let res = await getMessageListApi(params);
if (res.code == "200") {
this.tableData = res.data.records;
......@@ -416,7 +462,7 @@ export default {
this.getMessageList();
},
handleSelectionChange(selection) {
console.log("hand", selection);
// console.log("hand", selection);
},
async showMessageDialog() {
this.currentPage = 1;
......@@ -428,7 +474,7 @@ export default {
},
changeUser(val) {
const { label } = this.userMockList.find((item) => item.id === val);
console.log("changeUser", val, label);
// console.log("changeUser", val, label);
},
navigateToChild(num, pushUrl) {
this.active = num;
......
......@@ -215,7 +215,7 @@ export default {
methods: {
timeChange(time) {
console.log('tttttt', time)
// console.log('tttttt', time)
if (time) {
//给后端的参数
this.ruleForm.createStartTime = time[0]
......@@ -231,7 +231,7 @@ export default {
pageSize: this.pageSize,
}
Object.assign(params, this.ruleForm)
console.log(params)
// console.log(params)
let res = await projectInspectionIssues(params)
if (res.code == '200') {
......@@ -311,15 +311,15 @@ export default {
}
this.checkedList = this.$refs.multipleTable.selection
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()
},
......
......@@ -243,7 +243,7 @@ export default {
pageSize: this.pageSize,
}
Object.assign(params, this.ruleForm)
console.log(params)
// console.log(params)
let res = await RectificationFeedbackQuery(params)
if (res.code == '200') {
......@@ -330,15 +330,15 @@ export default {
this.$refs.multipleTable.toggleRowSelection(selection[1], true)
}
this.checkedList = this.$refs.multipleTable.selection
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()
},
......
......@@ -326,7 +326,7 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
// console.log(params);
let res = await auditTasksResults(params);
if (res.code == "200") {
......@@ -380,7 +380,7 @@ export default {
// this.checkedList[0].auditEndTime,
// ];
this.XQtableData = res.data.records;
console.log(this.XQtableData,'XQtableDataXQtableData')
// console.log(this.XQtableData,'XQtableDataXQtableData')
this.dialog = true;
}
},
......@@ -396,25 +396,25 @@ export default {
handleSelectionChange(selection) {
this.checkedList = this.$refs.multipleTable.selection;
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();
},
handleSizeChangeXQ(val) {
console.log(`每页 ${val} 条`);
// console.log(`每页 ${val} 条`);
this.pageSizeXQ = val;
this.detailsForm();
},
handleCurrentChangeXQ(val) {
console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this.currentPageXQ = val;
this.detailsForm();
},
......
......@@ -354,7 +354,7 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
// console.log(params);
let res = await auditTasksResultsNew(params);
if (res.code == "200") {
......@@ -406,7 +406,7 @@ export default {
this.checkedList[0].auditEndTime,
];
this.XQtableData = res.data.records;
console.log(this.XQtableData, "XQtableDataXQtableData");
// console.log(this.XQtableData, "XQtableDataXQtableData");
if (type == "xq") {
this.dialog = true;
} else {
......@@ -435,15 +435,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();
},
......@@ -452,7 +452,7 @@ export default {
this.dialogXF = false;
},
async handleClick(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.XQtableData = rows;
let params = {
......
......@@ -465,7 +465,7 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
// console.log(params);
let res = await auditTasksRuleProjectLink(params);
if (res.code == "200") {
......@@ -523,7 +523,7 @@ export default {
if (res.code == 200) {
this.XQtableData = res.data.records;
console.log(this.XQtableData,'XQtableDataXQtableData')
// console.log(this.XQtableData,'XQtableDataXQtableData')
this.dialog = true;
}
},
......@@ -550,15 +550,15 @@ export default {
}
}
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();
},
......@@ -567,7 +567,7 @@ export default {
this.dialogXF = false;
},
async handleClick(row, index, rows) {
console.log("删除", row);
// console.log("删除", row);
rows.splice(index, 1);
this.XQtableData = rows;
let params = {
......@@ -579,7 +579,7 @@ export default {
},
//结果确认
async saveXF() {
console.log(this.XQtableData,'this.XQtableData')
// console.log(this.XQtableData,'this.XQtableData')
let res = await savaauditRuleProjectLink(this.XQtableData);
if(res.code==200){
this.$message('保存完成')
......@@ -595,7 +595,7 @@ export default {
}
},
handleFileUpload(event, row,type) {
console.log("来了么");
// console.log("来了么");
this.file = event.target.files[0];
this.submitFile(row,type);
},
......@@ -608,10 +608,10 @@ export default {
ossupload(formData)
.then((response) => {
this.$message("上传成功")
console.log(response);
// console.log(response);
this.file = [];
this.$set(row, type, response.data.fileId);
console.log(this.XQtableData,'XQtableDataXQtableData')
// console.log(this.XQtableData,'XQtableDataXQtableData')
})
.catch((error) => {
console.error(error);
......@@ -622,10 +622,9 @@ export default {
},
//问题确认开关
controlSwitch(val, row) {
console.log("333", val, row);
// console.log("333", val, row);
},
async handleClickXZ(fileId, fileName) {
console.log(fileId);
let response = await downloadObject({
fileId: fileId * 1,
});
......
......@@ -431,7 +431,6 @@ export default {
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
let res = await auditTasksResultsNew(params);
if (res.code == "200") {
......@@ -472,7 +471,6 @@ this.$message.error("请选择");
return;
}
console.log(this.checkedList[0],'22222334')
this.ruleFormdialogXQ = this.checkedList[0];
let params = {
auditId: this.checkedList[0].auditId,
......@@ -484,7 +482,6 @@ let res = await xqauditTasksResults(params);
if (res.code == 200) {
this.XQtableData = res.data.records;
console.log(this.XQtableData,'XQtableDataXQtableData')
this.dialog = true;
}
},
......@@ -497,7 +494,6 @@ this.dialog = true;
return "";
},
async handleClickXZ(fileId, fileName) {
console.log(fileId);
let response = await downloadObject({
fileId: fileId * 1,
});
......@@ -532,15 +528,12 @@ this.dialog = true;
}
}
this.ruleFormdialog = this.checkedList[0];
console.log(this.checkedList, "2222");
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
......@@ -549,7 +542,6 @@ this.dialog = true;
this.dialogXF = false;
},
async handleClick(row, index, rows) {
console.log("删除", row);
rows.splice(index, 1);
this.XQtableData = rows;
let params = {
......@@ -561,8 +553,7 @@ this.dialog = true;
},
//结果确认
async saveXF() {
console.log(this.XQtableData, "this.XQtableData");
let res = await savaRuleProjectLink(this.XQtableData);
// let res = await savaRuleProjectLink(this.XQtableData);
},
//结果下发
async resaultXF() {
......@@ -622,7 +613,6 @@ this.dialog = true;
.catch((action) => {});
},
handleFileUpload(event, row, type) {
console.log("来了么");
this.file = event.target.files[0];
this.submitFile(row, type);
},
......@@ -632,7 +622,6 @@ this.dialog = true;
formData.append("file", this.file);
ossupload(formData)
.then((response) => {
console.log(response);
this.file = [];
this.$set(row, type, response.data.fileId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!