众筹系统等

master
yujialong 2 years ago
parent 0580a92061
commit 11dbcaa2cd
  1. 14
      src/views/Home.vue
  2. 1
      src/views/ProgramOptions.vue
  3. 5
      src/views/Transaction.vue

@ -100,6 +100,7 @@ export default {
currentPage: 1, currentPage: 1,
systemId: this.$route.query.systemId, systemId: this.$route.query.systemId,
systemName: this.$route.query.systemName, systemName: this.$route.query.systemName,
isProcess: false, //
multipleSelection:[], multipleSelection:[],
}; };
}, },
@ -117,6 +118,7 @@ export default {
console.log('当前地址=', location.host); console.log('当前地址=', location.host);
console.log("token=", this.$route.query.token) console.log("token=", this.$route.query.token)
console.log("systemId=", this.$route.query.systemId) console.log("systemId=", this.$route.query.systemId)
this.isProcess = this.systemId == 11 || this.systemId == 12
// sessionStorage.setItem('token',this.$route.query.token) // sessionStorage.setItem('token',this.$route.query.token)
this.$route.query.token && this.$store.commit('setParam', { this.$route.query.token && this.$store.commit('setParam', {
token: atob(decodeURI(this.$route.query.token)), token: atob(decodeURI(this.$route.query.token)),
@ -140,7 +142,7 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
systemId: this.systemId systemId: this.systemId
}; };
if (this.systemId == 11) { if (this.isProcess) {
// () // ()
this.getProcessClassData(params); this.getProcessClassData(params);
} else { } else {
@ -186,7 +188,7 @@ export default {
type: "warning", type: "warning",
center: true center: true
}).then(() => { }).then(() => {
if (this.systemId == 11) { if (this.isProcess) {
// //
this.$post(`${this.api.deleteJudgmentPoint}?ids=${lcIdList}`).then(res => { this.$post(`${this.api.deleteJudgmentPoint}?ids=${lcIdList}`).then(res => {
if (res.status === 200) { if (res.status === 200) {
@ -248,7 +250,7 @@ export default {
}); });
}, },
HomepageJump() { // HomepageJump() { //
if (this.systemId == 11) { if (this.isProcess) {
// //
this.$router.push(`Transaction?isAdd=true&systemId=${this.systemId}`); this.$router.push(`Transaction?isAdd=true&systemId=${this.systemId}`);
} else { } else {
@ -257,7 +259,7 @@ export default {
} }
}, },
handleEdit(row) { // handleEdit(row) { //
if (this.systemId == 11) { if (this.isProcess) {
// //
this.$router.push(`Transaction?isEdit=true&systemId=${this.systemId}&lcId=${row.lcId}`); this.$router.push(`Transaction?isEdit=true&systemId=${this.systemId}&lcId=${row.lcId}`);
} else { } else {
@ -272,7 +274,7 @@ export default {
type: "warning", type: "warning",
center: true center: true
}).then(() => { }).then(() => {
if (this.systemId == 11) { if (this.isProcess) {
// //
this.$post(`${this.api.deleteJudgmentPoint}?ids=${row.lcId}`).then(res => { this.$post(`${this.api.deleteJudgmentPoint}?ids=${row.lcId}`).then(res => {
if (res.status === 200) { if (res.status === 200) {
@ -302,7 +304,7 @@ export default {
}); });
}, },
changeSwitch(row) { // changeSwitch(row) { //
if (this.systemId == 11) { if (this.isProcess) {
// //
this.$get(`${this.api.updateIsOpen}?isOpen=${row.isOpen}&lcId=${row.lcId}`).then(res => { this.$get(`${this.api.updateIsOpen}?isOpen=${row.isOpen}&lcId=${row.lcId}`).then(res => {
if (res.status === 200) { if (res.status === 200) {

@ -531,7 +531,6 @@ export default {
row.reqDes = '' row.reqDes = ''
} }
row.isFirst = false row.isFirst = false
console.log(11,row)
}).catch((err) => {}) }).catch((err) => {})
}, },
Savejump(formName) { Savejump(formName) {

@ -407,6 +407,7 @@ export default {
components: {quill, MyTree}, components: {quill, MyTree},
data() { data() {
return { return {
systemId: this.$route.query.systemId,
count: 0, count: 0,
fromChange: -999, fromChange: -999,
fromCountIndex: -999, fromCountIndex: -999,
@ -515,7 +516,7 @@ export default {
}, },
// //
getBusiness() { getBusiness() {
this.$post(this.api.getAllBusiness).then(({ lcRecords }) => { this.$post(`${this.api.getAllBusiness}?systemId=${this.systemId}`).then(({ lcRecords }) => {
this.businessList = lcRecords this.businessList = lcRecords
}).catch(res => {}) }).catch(res => {})
}, },
@ -755,7 +756,7 @@ export default {
// } // }
// this.loading = false // this.loading = false
// }else { // }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 (status == 200) {
if (process.length) { if (process.length) {
this.$store.commit('setTreeDataStore', { treeDataStore: process}) this.$store.commit('setTreeDataStore', { treeDataStore: process})

Loading…
Cancel
Save