提交代码

20240205
e 3 years ago
parent 680097ab93
commit 52e4ea767d
  1. 4
      src/pages/manage/list/business/transfer.vue
  2. 8
      src/pages/manage/list/business/withdrawal.vue
  3. 8
      src/utils/utilFunction.js

@ -158,13 +158,9 @@ export default {
second:[//
],
options:[],
visible:false,
options:[],
activeIndex:'1',
second:[//
],
myTable: {
// transoutNum: '', //
// certificateNum: '', //

@ -142,11 +142,7 @@ export default {
],
options:[],
visible:false,
options:[],
activeIndex:'1',
second:[//
],
myTable: {
247: {
prop: 'username',
@ -223,13 +219,11 @@ export default {
autoPlay2(parentId, this.form, this.myTable2, this.myTable)
},
submitForm() {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
this.$refs.form.validate(myValidate(() => {
//
this.visible = true;
const parentId = '0,5,27,226'
autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime)
autoPlay(parentId, this.form, this.myTable2, this.myTable)
// let tmpIndex = 100;
// for(const key in this.myTable2) {
// const { prop, type } = this.myTable2[key]

@ -116,7 +116,9 @@ const myValidate = (callback, refs) => {
}
}
const autoPlay = (parentId, form, myTable2, myTable, projectId, startTime) => {
const autoPlay = (parentId, form, myTable2, myTable) => {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
// const parentId = '0,5,27,226'
// 因为没说emptyOne是多少
@ -124,14 +126,14 @@ const autoPlay = (parentId, form, myTable2, myTable, projectId, startTime) => {
for(const key in myTable2) {
const { prop, type } = myTable2[key]
if(form[prop]){
formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, type })
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type })
}
}
for(const key in myTable) {
console.log(myTable[key])
const { prop, type } = myTable[key]
formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, type })
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type })
}
let params= {
parentId,

Loading…
Cancel
Save