diff --git a/src/views/Home.vue b/src/views/Home.vue index 38d85c8..7ddeab5 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -100,6 +100,7 @@ export default { currentPage: 1, systemId: this.$route.query.systemId, systemName: this.$route.query.systemName, + isProcess: false, // 是否是流程类 multipleSelection:[], }; }, @@ -117,6 +118,7 @@ export default { console.log('当前地址=', location.host); console.log("token=", this.$route.query.token) console.log("systemId=", this.$route.query.systemId) + this.isProcess = this.systemId == 11 || this.systemId == 12 // sessionStorage.setItem('token',this.$route.query.token) this.$route.query.token && this.$store.commit('setParam', { token: atob(decodeURI(this.$route.query.token)), @@ -140,7 +142,7 @@ export default { pageSize: this.pageSize, systemId: this.systemId }; - if (this.systemId == 11) { + if (this.isProcess) { // (流程)交易类 this.getProcessClassData(params); } else { @@ -186,7 +188,7 @@ export default { type: "warning", center: true }).then(() => { - if (this.systemId == 11) { + if (this.isProcess) { // 交易类 this.$post(`${this.api.deleteJudgmentPoint}?ids=${lcIdList}`).then(res => { if (res.status === 200) { @@ -248,7 +250,7 @@ export default { }); }, HomepageJump() { //新增 - if (this.systemId == 11) { + if (this.isProcess) { // 交易类 this.$router.push(`Transaction?isAdd=true&systemId=${this.systemId}`); } else { @@ -257,7 +259,7 @@ export default { } }, handleEdit(row) { // 编辑 - if (this.systemId == 11) { + if (this.isProcess) { // 交易类 this.$router.push(`Transaction?isEdit=true&systemId=${this.systemId}&lcId=${row.lcId}`); } else { @@ -272,7 +274,7 @@ export default { type: "warning", center: true }).then(() => { - if (this.systemId == 11) { + if (this.isProcess) { // 交易类 this.$post(`${this.api.deleteJudgmentPoint}?ids=${row.lcId}`).then(res => { if (res.status === 200) { @@ -302,7 +304,7 @@ export default { }); }, changeSwitch(row) { // 更新是否启用 - if (this.systemId == 11) { + if (this.isProcess) { // 交易类 this.$get(`${this.api.updateIsOpen}?isOpen=${row.isOpen}&lcId=${row.lcId}`).then(res => { if (res.status === 200) { diff --git a/src/views/ProgramOptions.vue b/src/views/ProgramOptions.vue index b8d3061..6419e0a 100644 --- a/src/views/ProgramOptions.vue +++ b/src/views/ProgramOptions.vue @@ -531,7 +531,6 @@ export default { row.reqDes = '' } row.isFirst = false - console.log(11,row) }).catch((err) => {}) }, Savejump(formName) { diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index ae0378c..6a5cbd8 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -407,6 +407,7 @@ export default { components: {quill, MyTree}, data() { return { + systemId: this.$route.query.systemId, count: 0, fromChange: -999, fromCountIndex: -999, @@ -515,7 +516,7 @@ export default { }, // 获取业务 getBusiness() { - this.$post(this.api.getAllBusiness).then(({ lcRecords }) => { + this.$post(`${this.api.getAllBusiness}?systemId=${this.systemId}`).then(({ lcRecords }) => { this.businessList = lcRecords }).catch(res => {}) }, @@ -755,7 +756,7 @@ export default { // } // this.loading = false // }else { - this.$post(this.api.getProcess).then(({ process, status, message }) => { + this.$post(`${this.api.getProcess}?systemId=${this.systemId}`).then(({ process, status, message }) => { if (status == 200) { if (process.length) { this.$store.commit('setTreeDataStore', { treeDataStore: process})