|
|
|
@ -45,6 +45,11 @@
|
|
|
|
<el-divider></el-divider>
|
|
|
|
<el-divider></el-divider>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="margin-bottom: 10px;">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="execScript('write')">执行编辑js</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="execScript('read')">执行查看js</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-container" id="print-content">
|
|
|
|
<div class="form-container" id="print-content">
|
|
|
|
<el-form :model="flowLinkForm" label-position="right" label-width="130px">
|
|
|
|
<el-form :model="flowLinkForm" label-position="right" label-width="130px">
|
|
|
|
<el-form-item label="out_pay_id">
|
|
|
|
<el-form-item label="out_pay_id">
|
|
|
|
@ -69,6 +74,7 @@
|
|
|
|
:writeable="writeableFields"
|
|
|
|
:writeable="writeableFields"
|
|
|
|
:rules="{}"
|
|
|
|
:rules="{}"
|
|
|
|
:sub-rules="{}"
|
|
|
|
:sub-rules="{}"
|
|
|
|
|
|
|
|
:script-content="scriptContent"
|
|
|
|
:logs="config.logs"
|
|
|
|
:logs="config.logs"
|
|
|
|
></DesktopForm>
|
|
|
|
></DesktopForm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -250,9 +256,17 @@ export default {
|
|
|
|
subRules: {},
|
|
|
|
subRules: {},
|
|
|
|
flows: [],
|
|
|
|
flows: [],
|
|
|
|
csrf_token: '',
|
|
|
|
csrf_token: '',
|
|
|
|
|
|
|
|
scriptContent: '',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
execScript(mode='write') {
|
|
|
|
|
|
|
|
if (mode === 'write') {
|
|
|
|
|
|
|
|
this.scriptContent = this.writeScriptContent
|
|
|
|
|
|
|
|
} else if (mode === 'read') {
|
|
|
|
|
|
|
|
this.scriptContent = this.readScriptContent
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
// 处理url中default_json
|
|
|
|
// 处理url中default_json
|
|
|
|
handleDefaultJSON() {
|
|
|
|
handleDefaultJSON() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
@ -650,12 +664,11 @@ export default {
|
|
|
|
node() {
|
|
|
|
node() {
|
|
|
|
return this.config?.currentNode || {};
|
|
|
|
return this.config?.currentNode || {};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scriptContent() {
|
|
|
|
writeScriptContent() {
|
|
|
|
if (this.config?.customModel?.view_js && this.$route.query.flow_id && /\/detail/.test(this.$route.path)) {
|
|
|
|
|
|
|
|
return this.config?.customModel?.view_js;
|
|
|
|
|
|
|
|
} else if (this.config?.customModel?.js && !/\/detail/.test(this.$route.path)) {
|
|
|
|
|
|
|
|
return this.config?.customModel?.js;
|
|
|
|
return this.config?.customModel?.js;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
readScriptContent() {
|
|
|
|
|
|
|
|
return this.config?.customModel?.view_js;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
diffTime() {
|
|
|
|
diffTime() {
|
|
|
|
return function (end, start) {
|
|
|
|
return function (end, start) {
|
|
|
|
|