增加创建来源

master
lion 5 months ago
parent d3da35e925
commit 4b4f964d1e

@ -284,6 +284,7 @@ export default {
// urldefault_json
handleDefaultJSON() {
console.log("123")
this.form['form_canal'] = 'oa'
try {
if(!this.$route.query?.default_json) return
const res = JSON.parse(this.$route.query?.default_json)
@ -294,6 +295,9 @@ export default {
if(/^borrow_id/.test(key)) {
this.form[key] = this.$route.query[key]
}
if(/^form_canal/.test(key)){
this.form[key] = this.$route.query[key]
}
}
for (let key in res) {
try {
@ -301,6 +305,7 @@ export default {
if (this.form.hasOwnProperty(key)) {
this.form[key] = jsonObj;
}
} catch (err) {
if (this.form.hasOwnProperty(key)) {
this.form[key] = res[key];

Loading…
Cancel
Save