|
@ -40,7 +40,7 @@ |
|
|
<el-col :span="20" style="text-align: center"> |
|
|
<el-col :span="20" style="text-align: center"> |
|
|
<h4 class="form-name-text" contenteditable="true" |
|
|
<h4 class="form-name-text" contenteditable="true" |
|
|
@blur="(event)=>{ |
|
|
@blur="(event)=>{ |
|
|
formConf.title=event.target.innerText; |
|
|
this.formConf.title=event.target.innerText; |
|
|
this.saveProjectInfo()}"> |
|
|
this.saveProjectInfo()}"> |
|
|
{{ formConf.title }}</h4> |
|
|
{{ formConf.title }}</h4> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -113,7 +113,7 @@ import { |
|
|
inputComponents, selectComponents, formConf |
|
|
inputComponents, selectComponents, formConf |
|
|
} from '@/components/generator/config' |
|
|
} from '@/components/generator/config' |
|
|
import { |
|
|
import { |
|
|
exportDefault, beautifierConf, isNumberStr, titleCase, deepClone |
|
|
exportDefault, beautifierConf, isNumberStr, titleCase, deepClone, jsonClone |
|
|
} from '@/utils/index' |
|
|
} from '@/utils/index' |
|
|
import {dbDataConvertForItemJson, formItemConvertData} from '@/utils/convert' |
|
|
import {dbDataConvertForItemJson, formItemConvertData} from '@/utils/convert' |
|
|
import drawingDefalut from '@/components/generator/drawingDefalut' |
|
|
import drawingDefalut from '@/components/generator/drawingDefalut' |
|
@ -141,7 +141,7 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
idGlobal, |
|
|
idGlobal, |
|
|
formConf, |
|
|
formConf: null, |
|
|
editDescription: true, |
|
|
editDescription: true, |
|
|
inputComponents, |
|
|
inputComponents, |
|
|
selectComponents, |
|
|
selectComponents, |
|
@ -204,6 +204,8 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
// 复制对象 避免修改改变原始对象 |
|
|
|
|
|
this.formConf = JSON.parse(JSON.stringify(formConf)) |
|
|
//项目key |
|
|
//项目key |
|
|
let projectKey = this.projectKey |
|
|
let projectKey = this.projectKey |
|
|
//如果是编辑 从服务端读取数据 |
|
|
//如果是编辑 从服务端读取数据 |
|
|