|
|
@@ -16,7 +16,7 @@
|
|
|
}
|
|
|
</style>
|
|
|
<div id="app">
|
|
|
- <van-nav-bar @click-left="onClickLeft" style="background-color: rgb(21, 122, 44);color: rgb(255, 255, 255);"
|
|
|
+ <van-nav-bar @click-left="onClickLeft" style="background-color: rgb(21, 122, 44);color: rgb(255, 255, 255);height:140rpx"
|
|
|
:title="title" left-arrow :safe-area-inset-top='true' :placeholder='true' :fixed='true'></van-nav-bar>
|
|
|
<fm-generate-vant-form v-if='isFlag' :data="jsonData" :value="form.valueJson" ref="generateForm"
|
|
|
:edit='isEdit'>
|
|
|
@@ -60,15 +60,16 @@
|
|
|
editData: {},
|
|
|
form: {},
|
|
|
headers: {},
|
|
|
+ APIUrl: '',
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.headers = this.getQueryParams('headers');
|
|
|
let params = this.getQueryParams('params');
|
|
|
- const APIUrl = this.headers.serverInfo
|
|
|
+ this.APIUrl = this.headers.serverInfo
|
|
|
axios({
|
|
|
method: 'get',
|
|
|
- url: APIUrl + `/flowable/bpmcustomform/getById/${params.id}`,
|
|
|
+ url: this.APIUrl + `/flowable/bpmcustomform/getById/${params.id}`,
|
|
|
headers: this.headers,
|
|
|
}).then((res) => {
|
|
|
if (res.data.code != '-1') {
|
|
|
@@ -81,7 +82,7 @@
|
|
|
value: this.headers.Authorization
|
|
|
}]
|
|
|
item.options.action = item.options.action && item.options.action.replace(
|
|
|
- '/api', APIUrl)
|
|
|
+ '/api', this.APIUrl)
|
|
|
if (item.type == "deptAndUserCascader") {
|
|
|
item.type = 'cascader'
|
|
|
}
|
|
|
@@ -96,14 +97,14 @@
|
|
|
item.headers = {
|
|
|
Authorization: this.headers.Authorization
|
|
|
}
|
|
|
- item.url = item.url && item.url.replace('/api', APIUrl)
|
|
|
+ item.url = item.url && item.url.replace('/api', this.APIUrl)
|
|
|
})
|
|
|
this.isFlag = true
|
|
|
}
|
|
|
});
|
|
|
axios({
|
|
|
method: 'get',
|
|
|
- url: APIUrl + `/bpm/task/list-by-process-instance-id?processInstanceId=${params.id}`,
|
|
|
+ url: this.APIUrl + `/bpm/task/list-by-process-instance-id?processInstanceId=${params.id}`,
|
|
|
headers: this.headers,
|
|
|
}).then((res) => {
|
|
|
console.log(res)
|
|
|
@@ -129,7 +130,7 @@
|
|
|
this.form.valueJson = await this.generateFormValid();
|
|
|
console.log(this.form.valueJson)
|
|
|
this.form.processType = '1';
|
|
|
- let API = APIUrl + '/bpm/process-instance/create'
|
|
|
+ let API = this.APIUrl + '/bpm/process-instance/create'
|
|
|
axios({
|
|
|
method: 'post',
|
|
|
url: API,
|