master
lion 7 months ago
parent 61a3759fa7
commit 2259d802b5

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

Loading…
Cancel
Save