Z 1 jaar geleden
bovenliggende
commit
0d1922edda
3 gewijzigde bestanden met toevoegingen van 16 en 15 verwijderingen
  1. 8 7
      hybrid/html/a.html
  2. 7 7
      hybrid/html/c.html
  3. 1 1
      pages/internalManagement/apply/index.vue

+ 8 - 7
hybrid/html/a.html

@@ -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,

+ 7 - 7
hybrid/html/c.html

@@ -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 height='100rpx' @click-left="onClickLeft" style="background-color: rgb(21, 122, 44);color: rgb(255, 255, 255);"
 				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.formVariables" ref="generateForm" :edit='false'>
 			</fm-generate-vant-form>
@@ -59,16 +59,16 @@
 						editData: {},
 						form: {},
 						headers: {},
+						APIUrl: '',
 					}
 				},
 				created() {
 					this.headers = this.getQueryParams('headers');
 					let params = this.getQueryParams('params');
-					const APIUrl = this.headers.serverInfo
-					console.log(APIUrl)
+					this.APIUrl = this.headers.serverInfo
 					axios({
 						method: 'get',
-						url: APIUrl + `/bpm/process-instance/get?id=${params.processInstanceId}`,
+						url: this.APIUrl + `/bpm/process-instance/get?id=${params.processInstanceId}`,
 						headers: this.headers,
 					}).then((res) => {
 						console.log(res)
@@ -92,7 +92,7 @@
 								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
 							console.log(this.jsonData)
@@ -115,8 +115,8 @@
 							...this.form.formVariables
 						};
 						if (!this.form.reason) this.form.reason = !!status ? '通过' : '驳回'
-						let API = !!status ? APIUrl + '/bpm/task/approveTaskWithVariables' :
-							APIUrl + '/bpm/task/reject'
+						let API = !!status ? this.APIUrl + '/bpm/task/approveTaskWithVariables' :
+							this.APIUrl + '/bpm/task/reject'
 						axios({
 							method: 'put',
 							url: API,

+ 1 - 1
pages/internalManagement/apply/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="blacklog-container">
-		<uni-nav-bar class="navBarBox" fixed="true" statusBar="true" left-icon="back" :title="title" @clickLeft="back"
+		<uni-nav-bar  height="100rpx" fixed="true" statusBar="true" left-icon="back" :title="title" @clickLeft="back"
 			background-color="#157A2C" color="#fff"></uni-nav-bar>
 		<!-- <div>
 			<u-search placeholder="搜索模板名称" shape="square" v-model="keyword"></u-search>