Sfoglia il codice sorgente

Merge branch 'dev-2.19.0' of http://101.36.160.140:21044/province-vue-qh/province-vue-all into dev-2.19.0

chenghanbin 5 mesi fa
parent
commit
a97a06ac25

+ 2 - 2
package.json

@@ -15,8 +15,8 @@
15 15
 		"preview": "vite preview",
16 16
 		"build": "vite build --mode production",
17 17
 		"prod": "vite  --mode production",
18
-		"build:prod": "vite build --mode production",
19
-    "build:test": "vite build --mode test"
18
+		"build:prod": "node --max_old_space_size=8192 node_modules/vite/bin/vite.js build --mode production",
19
+    "build:test": "node --max_old_space_size=8192 node_modules/vite/bin/vite.js build --mode test"
20 20
 	},
21 21
 	"dependencies": {
22 22
 		"@amap/amap-jsapi-loader": "1.0.1",

+ 49 - 9
src/views/business/personnel/personnelDel.vue

@@ -146,10 +146,28 @@
146 146
 					<a-form-item class="form-item" label="专业" name="major" :label-col="{ span: 10 }">
147 147
 						<a-input placeholder="请输入专业" :disabled="code" v-model:value="formState.major" />
148 148
 					</a-form-item>
149
+					<a-form-item class="form-item" label="个人简介" :label-col="{ span: 10 }">
150
+						<a-textarea
151
+							style="width: 620px"
152
+							placeholder="请输入个人简介"
153
+							v-model:value="formState.personalProfile"
154
+							:disabled="code"
155
+							allow-clear
156
+						/>
157
+					</a-form-item>
158
+				</div>
149 159
 
150
-					<a-form-item class="form-item" label="" name="username" :label-col="{ span: 10 }"> </a-form-item>
151
-
152
-					<!--  -->
160
+				<div class="attachment">
161
+					<a-form-item ref="uploadDataList" class="form-item" label="附件" name="certificate" :label-col="{ span: 3 }">
162
+						<DIYUPLoad
163
+							:beforeUpload="beforeUpload"
164
+							multiple
165
+							:disabled="code"
166
+							:change="changeUpload"
167
+							listType="picture-card"
168
+							v-model:urls="formState.certificate"
169
+						></DIYUPLoad>
170
+					</a-form-item>
153 171
 				</div>
154 172
 
155 173
 				<a-form-item>
@@ -191,6 +209,7 @@
191 209
 	import { defineComponent } from 'vue'
192 210
 	import business from '@/api/business/dictionary.js'
193 211
 	import businessDel from '@/api/business/personnelApi.js'
212
+	import global from '@/api/basic.info/global'
194 213
 	export default {
195 214
 		name: 'ApplicationExtension',
196 215
 		components: {},
@@ -212,7 +231,9 @@
212 231
 				positionNature: '',
213 232
 				onDutyStatus: '',
214 233
 				staffCategory: '',
215
-				major: ''
234
+				major: '',
235
+				personalProfile: '',
236
+				certificate: ''
216 237
 			})
217 238
 
218 239
 			watch(
@@ -243,8 +264,8 @@
243 264
 			const huiXian = async () => {
244 265
 				if (code.value) {
245 266
 					const res = await businessDel.EmPersonInfoDetail({ id: route.query.id })
246
-					console.log(res)
247 267
 					formState.value = res
268
+					formState.value.certificate = (res.certificate || '').split(',').filter((v) => v)
248 269
 				}
249 270
 			}
250 271
 
@@ -295,11 +316,14 @@
295 316
 			}
296 317
 
297 318
 			// 回显示
298
-			const onFinish = (values) => {
319
+			const onFinish = () => {
320
+				if (Array.isArray(formState.value.certificate)) {
321
+					formState.value.certificate = formState.value.certificate.join(',')
322
+				}
299 323
 				if (route.query.id) {
300
-					pustEdit({ id: route.query.id, ...values })
324
+					pustEdit({ id: route.query.id, ...formState.value })
301 325
 				} else {
302
-					pustFrom(values)
326
+					pustFrom(formState.value)
303 327
 					formState.value = {
304 328
 						name: '',
305 329
 						gender: '',
@@ -315,7 +339,9 @@
315 339
 						positionNature: '',
316 340
 						onDutyStatus: '',
317 341
 						staffCategory: '',
318
-						major: ''
342
+						major: '',
343
+						personalProfile: '',
344
+						certificate: ''
319 345
 					}
320 346
 				}
321 347
 				router.back()
@@ -328,7 +354,21 @@
328 354
 				console.log(val)
329 355
 			}
330 356
 
357
+			function changeUpload(fd) {
358
+				return global.uploadFile(fd).then((reg) => {
359
+					uploadDataList.value.clearValidate()
360
+					return reg
361
+				})
362
+			}
363
+			const uploadDataList = ref(null)
364
+			function beforeUpload() {
365
+				uploadDataList.value.clearValidate()
366
+			}
367
+
331 368
 			return {
369
+				beforeUpload,
370
+				uploadDataList,
371
+				changeUpload,
332 372
 				isEmail,
333 373
 				validateIdCard,
334 374
 				isMobileData,

+ 1 - 1
src/views/emergencyExercise/templateManagementEdit.vue

@@ -147,7 +147,7 @@
147 147
 			</a-row>
148 148
 			<a-row :gutter="42">
149 149
 				<a-col :span="24">
150
-					<a-form-item label="附件上传" name="fileList">
150
+					<a-form-item label="附件上传" name="attachment">
151 151
 						<common-update
152 152
 							:action="uploadAction"
153 153
 							:file-list="formData.fileList"

+ 27 - 6
src/views/emergencySupport/analysis.vue

@@ -2,6 +2,7 @@
2 2
 	import { count, getAllChildrenData } from '@/api/emergencySupport'
3 3
 	import { approveState2Name2 } from '@/views/emergencySupport/emergencySupportCommon'
4 4
 	import { dictItem } from '@/utils/systemUtils'
5
+	import {message} from "ant-design-vue";
5 6
 	const columns = [
6 7
 		{
7 8
 			title: '序号',
@@ -92,18 +93,18 @@
92 93
 		})
93 94
 	}
94 95
 	const load = (areaCode) => {
95
-		if (level == 0) {
96
+		if (level.value === 0) {
96 97
 			return count({}).then((list) => {
97 98
 				dataSource.value = list
98 99
 			})
99
-		} else if (level === 1) {
100
+		} else if (level.value === 1) {
100 101
 			const q = {
101 102
 				managementAreaCity: areaCode
102 103
 			}
103 104
 			return count(q).then((list) => {
104 105
 				dataSource.value = list
105 106
 			})
106
-		} else if (level === 2) {
107
+		} else if (level.value === 2) {
107 108
 			const q = {
108 109
 				managementAreaCounty: areaCode
109 110
 			}
@@ -116,10 +117,11 @@
116 117
 	}
117 118
 	const tableRef = ref()
118 119
 	const refresh = () => {
119
-		level = 0
120
+		level.value = 0
120 121
 		lastArea.value = null
121 122
 		areaTableShow.value = true
122 123
 		siteTableShow.value = false
124
+		stack.value = []
123 125
 		load()
124 126
 	}
125 127
 	const searchForm = ref({
@@ -145,17 +147,36 @@
145 147
 	onMounted(() => {
146 148
 		refresh()
147 149
 	})
148
-	let level = 0
150
+	const level = ref(0)
149 151
 	const lastArea = ref(null)
152
+	const stack = ref([])
150 153
 	const queryNext = (data) => {
151
-		level++
154
+		level.value = level.value + 1
152 155
 		lastArea.value = data.area
156
+		stack.value.push(data.area)
153 157
 		load(data.area)
154 158
 	}
159
+	const back = () => {
160
+		level.value = level.value - 1
161
+		stack.value.pop()
162
+		areaTableShow.value = true
163
+		siteTableShow.value = false
164
+		if(stack.value.length <= 0) {
165
+			level.value = 0
166
+			lastArea.value = null
167
+			refresh()
168
+		}else {
169
+			const code = stack.value[stack.value.length - 1]
170
+			lastArea.value = code
171
+			load(code)
172
+		}
173
+
174
+	}
155 175
 </script>
156 176
 
157 177
 <template>
158 178
 	<a-card :bordered="false">
179
+		<a-button v-if="stack.length > 0" class="mb-2" @click="back">上一层</a-button>
159 180
 		<a-table v-show="areaTableShow" :columns="columns" :data-source="dataSource" bordered :pagination="false">
160 181
 			<template #bodyCell="{ column, text, record }">
161 182
 				<a

+ 20 - 0
src/views/emergencySupport/emergencyDeliveryCompanyAnalysis.vue

@@ -109,12 +109,31 @@
109 109
 
110 110
 	let level = 0
111 111
 	let lastArea = ref(null)
112
+	const stack = ref([])
112 113
 	const queryNext = (data) => {
113 114
 		level++
114 115
 		lastArea.value = data.area
116
+		stack.value.push(data.area)
115 117
 		load(data.area)
116 118
 	}
117 119
 
120
+	const back = () => {
121
+		level --
122
+		stack.value.pop()
123
+		areaTableShow.value = true
124
+		companyTableShow.value = false
125
+		if(stack.value.length <= 0) {
126
+			level = 0
127
+			lastArea.value = null
128
+			refresh()
129
+		}else {
130
+			const code = stack.value[stack.value.length - 1]
131
+			lastArea.value = code
132
+			load(code)
133
+		}
134
+
135
+	}
136
+
118 137
 	onMounted(() => {
119 138
 		refresh()
120 139
 	})
@@ -122,6 +141,7 @@
122 141
 
123 142
 <template>
124 143
 	<a-card :bordered="false">
144
+		<a-button v-if="stack.length > 0" class="mb-2" @click="back">上一层</a-button>
125 145
 		<a-table v-show="areaTableShow" :columns="columns" :data-source="dataSource" bordered :pagination="false">
126 146
 			<template #bodyCell="{ column, text, record }">
127 147
 				<a

+ 20 - 0
src/views/emergencySupport/emergencyProcessingCompanyAnalysis.vue

@@ -117,12 +117,31 @@
117 117
 
118 118
 	let level = 0
119 119
 	let lastArea = ref(null)
120
+	const stack = ref([])
120 121
 	const queryNext = (data) => {
121 122
 		level++
122 123
 		lastArea.value = data.area
124
+		stack.value.push(data.area)
123 125
 		load(data.area)
124 126
 	}
125 127
 
128
+	const back = () => {
129
+		level --
130
+		stack.value.pop()
131
+		areaTableShow.value = true
132
+		companyTableShow.value = false
133
+		if(stack.value.length <= 0) {
134
+			level = 0
135
+			lastArea.value = null
136
+			refresh()
137
+		}else {
138
+			const code = stack.value[stack.value.length - 1]
139
+			lastArea.value = code
140
+			load(code)
141
+		}
142
+
143
+	}
144
+
126 145
 	onMounted(() => {
127 146
 		refresh()
128 147
 	})
@@ -130,6 +149,7 @@
130 149
 
131 150
 <template>
132 151
 	<a-card :bordered="false">
152
+		<a-button v-if="stack.length > 0" class="mb-2" @click="back">上一层</a-button>
133 153
 		<a-table v-show="areaTableShow" :columns="columns" :data-source="dataSource" bordered :pagination="false">
134 154
 			<template #bodyCell="{ column, text, record }">
135 155
 				<a