Commit b6eafabd by bingobo

增加isc接口

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