master
lion 7 months ago
parent 61a3759fa7
commit 2259d802b5

@ -283,14 +283,17 @@ export default {
methods: {
// urldefault_json
handleDefaultJSON() {
console.log("123")
try {
if(!this.$route.query?.default_json) return
const res = JSON.parse(this.$route.query?.default_json)
console.log('default_json', res)
for (let key in this.$route.query) {
if(/^out_(.*)_id/.test(key)) {
this.form[key] = this.$route.query[key]
}
if(/^borrow_id/.test(key)) {
this.form[key] = this.$route.query[key]
}
}
for (let key in res) {
try {
@ -714,6 +717,7 @@ export default {
this.$message.warning('数据校验失败')
return
}
copyForm = deepCopy(this.$refs["desktopForm"].form);
const uploadHandler = (form, fields) => {
let keys = Object.keys(form)
@ -742,13 +746,17 @@ export default {
}
})
}
console.log("copyForm",copyForm,this.fields)
console.log("this.writeableFields",this.writeableFields)
uploadHandler(copyForm, this.fields)
for (let key in copyForm) {
let myField = this.fields.find(i => i.name === key)
if (myField && this.writeableFields.indexOf(myField.id) === -1) {
delete copyForm[key]
}
}
copyForm["current_node_id"] = this.config.currentNode.id;
try {
let callback = () => {};
@ -766,7 +774,8 @@ export default {
callback = () => (this.isShowAssign = true);
break;
}
console.log("copyForm",copyForm,this.$refs["desktopForm"].form)
// return
if (this.$route.query.flow_id) {
copyForm.id = this.$route.query.flow_id;
const { flow, is_last_handled_log } = await deal(

Loading…
Cancel
Save