Преглед изворни кода

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

chenghanbin пре 5 месеци
родитељ
комит
8d07cbb66f

+ 47 - 29
src/style/projectManage/index.less

@@ -1,59 +1,75 @@
1
-.mainPage{
2
-	.queryBox{
3
-          padding: 24px;
4
-		  background: #fff;
5
-		  .ant-form{
6
-			.ant-row{
7
-				.ant-col{
1
+.mainPage {
2
+	height: calc(100vh - 160px);
3
+
4
+	.queryBox {
5
+		padding: 20px 0 0 0;
6
+		background: #fff;
7
+
8
+		.ant-form {
9
+			.ant-row {
10
+				.ant-col {
8 11
 					margin-left: 10px;
9
-					.addBtn{
12
+
13
+					.addBtn {
10 14
 						color: #fff;
11 15
 						background: #67C23A;
12 16
 					}
13 17
 				}
14 18
 			}
15
-		  }
19
+		}
16 20
 	}
17
-	.tableBox{
21
+
22
+	.tableBox {
18 23
 		margin-top: 20px;
19 24
 		background: #fff;
20
-		.ant-table-wrapper{
25
+
26
+		.ant-table-wrapper {
21 27
 			padding: 20px;
28
+
22 29
 			::v-deep(.ant-table) {
23
-				height: calc(100vh - 460px);
30
+				height: calc(100vh - 350px);
31
+
24 32
 				.ant-table-content {
25 33
 					overflow: auto;
26
-                 height: calc(100vh - 470px);
34
+					height: calc(100vh - 470px);
35
+
27 36
 					.ant-table-tbody {
28
-						.ant-empty{
29
-							height:calc(100vh - 600px);
37
+						.ant-empty {
38
+							height: calc(100vh - 600px);
30 39
 						}
31
-						.ant-table-cell{
32
-							.ant-btn{
40
+
41
+						.ant-table-cell {
42
+							.ant-btn {
33 43
 								color: #fff;
34 44
 								margin: 0 5px;
35 45
 							}
36
-							.editBtn{
46
+
47
+							.editBtn {
37 48
 								background: #E6A23C;
38 49
 							}
39
-							.addBtn,.approveBtn{
50
+
51
+							.addBtn,
52
+							.approveBtn {
40 53
 								background: #67C23A;
41 54
 							}
42
-							.deleteBtn{
55
+
56
+							.deleteBtn {
43 57
 								background: #F56C6C;
44 58
 							}
45
-							.saveStatus{
46 59
 
60
+							.saveStatus {}
61
+
62
+							.submitStatus {
63
+								font-weight: bold;
64
+								color: #409EFF;
47 65
 							}
48
-							.submitStatus{
49
-							   font-weight: bold;
50
-                               color: #409EFF;
51
-							}
52
-							.rejectStatus{
66
+
67
+							.rejectStatus {
53 68
 								color: #F56C6C;
54 69
 								font-weight: bold;
55 70
 							}
56
-							.passStatus{
71
+
72
+							.passStatus {
57 73
 								color: #67C23A;
58 74
 								font-weight: bold;
59 75
 							}
@@ -64,12 +80,14 @@
64 80
 			}
65 81
 		}
66 82
 	}
67
-	.paginationBox{
83
+
84
+	.paginationBox {
68 85
 		width: 100%;
69 86
 		height: 52px;
70 87
 		padding: 10px 10px;
71 88
 		background: #fff;
72
-		.ant-pagination{
89
+
90
+		.ant-pagination {
73 91
 			float: right;
74 92
 		}
75 93
 	}

+ 4 - 3
src/style/queryPage.less

@@ -1,6 +1,7 @@
1 1
 .mainPage{
2
+	height: calc(100vh - 160px);
2 3
 	.queryBox{
3
-          padding: 24px;
4
+          padding:20px 0 0 0;
4 5
 		  background: #fff;
5 6
 		  .ant-form{
6 7
 			.ant-row{
@@ -20,10 +21,10 @@
20 21
 		.ant-table-wrapper{
21 22
 			padding: 20px;
22 23
 			::v-deep(.ant-table) {
23
-				height: calc(100vh - 460px);
24
+				height: calc(100vh - 350px);
24 25
 				.ant-table-content {
25 26
 					overflow: auto;
26
-                 height: calc(100vh - 470px);
27
+                    height: calc(100vh - 470px);
27 28
 					.ant-table-tbody {
28 29
 						.ant-empty{
29 30
 							height:calc(100vh - 600px);

+ 24 - 15
src/views/RLGI/comonents/drawerModule/inventory.vue

@@ -1,9 +1,9 @@
1 1
 <template>
2 2
 	<a-drawer
3 3
 		width="100%"
4
+		placement="right"
4 5
 		:closable="false"
5 6
 		:style="drawerStyle"
6
-		placement="right"
7 7
 		:get-container="false"
8 8
 		:title="props.drawerInfo.title"
9 9
 		v-model:visible="props.drawerInfo.showDrawer"
@@ -49,9 +49,15 @@
49 49
 				</a-col>
50 50
 			</a-row>
51 51
 		</a-form>
52
-		<!-- :scroll="{ x: 'calc(700px + 50%)', y: true }" -->
53 52
 		<div class="statisticsTableAll">
54
-			<a-table size="small" bordered :dataSource="tableData" :columns="tableColumns" :pagination="false">
53
+			<a-table
54
+				bordered
55
+				size="small"
56
+				:pagination="false"
57
+				:dataSource="tableData"
58
+				:columns="tableColumns"
59
+				:scroll="{ x: 1500, y: 450 }"
60
+			>
55 61
 				<template #bodyCell="{ column, record, index }">
56 62
 					<template v-if="column.key === 'INDEX'">{{ index + 1 }}</template>
57 63
 					<template v-else>{{ record[column.key] }}</template>
@@ -85,7 +91,7 @@
85 91
 		]
86 92
 	})
87 93
 	const emit = defineEmits(['closeDrawer'])
88
-	const drawerStyle = ref({ position: 'absolute' })
94
+	const drawerStyle = ref({ position: 'absolute', height: 'calc(100vh - 160px)' })
89 95
 	const dicList = JSON.parse(localStorage.getItem('DICT_TYPE_TREE_DATA'))
90 96
 
91 97
 	const props = defineProps({
@@ -95,8 +101,8 @@
95 101
 		}
96 102
 	})
97 103
 	const tableColumns = [
98
-		{ title: '序号', width: 60, key: 'INDEX', align: 'center' },
99
-		{ title: '承储企业', align: 'center', ellipsis: true, width: 250, key: 'orgName' },
104
+		{ title: '序号', width: 60, key: 'INDEX', align: 'center', fixed: true },
105
+		{ title: '承储企业', align: 'center', ellipsis: true, width: 250, key: 'orgName', ellipsis: true, fixed: true },
100 106
 		{ title: '地方储备', align: 'center', children: getTableChildren('_地方储备', 'df') },
101 107
 		{ title: '省级储备', align: 'center', children: getTableChildren('_省级储备', 'sj') },
102 108
 		{ title: '市(州)级储备', align: 'center', children: getTableChildren('_市级储备', 'cj') },
@@ -105,29 +111,29 @@
105 111
 
106 112
 	function getTableChildren(key, prefix, width = 70) {
107 113
 		return [
108
-			{ title: '粮油合计', width, key: `${prefix}cbLyhj`, align: 'center', dataIndex: `${key}.a` },
109
-			{ title: '原粮合计', width, key: `${prefix}cbYyhj`, align: 'center', dataIndex: `${key}.a` },
114
+			{ title: '粮油合计', width, key: `${prefix}cbLyhj`, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
115
+			{ title: '原粮合计', width, key: `${prefix}cbYyhj`, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
110 116
 			{
111 117
 				title: '粮食分品种',
112 118
 				align: 'center',
113 119
 				children: [
114
-					{ title: '小麦', key: `${prefix}cbXmhj`, width, align: 'center', dataIndex: `${key}.a` },
120
+					{ title: '小麦', key: `${prefix}cbXmhj`, width, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
115 121
 					{
116 122
 						title: '面折粮',
117 123
 						align: 'center',
118 124
 						children: [
119
-							{ title: '', width, key: `${prefix}cbXmMzl`, align: 'center', dataIndex: `${key}.a` },
120
-							{ title: '面粉', width, key: `${prefix}cbXmToMf`, align: 'center', dataIndex: `${key}.a` }
125
+							{ title: '', width, key: `${prefix}cbXmMzl`, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
126
+							{ title: '面粉', width, key: `${prefix}cbXmToMf`, align: 'center', dataIndex: `${key}.a`, ellipsis: true }
121 127
 						]
122 128
 					},
123
-					{ title: '青稞', width, key: `${prefix}cbQkhj`, align: 'center', dataIndex: `${key}.a` },
124
-					{ title: '稻谷', width, key: `${prefix}cbDghj`, align: 'center', dataIndex: `${key}.a` },
129
+					{ title: '青稞', width, key: `${prefix}cbQkhj`, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
130
+					{ title: '稻谷', width, key: `${prefix}cbDghj`, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
125 131
 					{
126 132
 						title: '米折粮',
127 133
 						align: 'center',
128 134
 						children: [
129
-							{ title: '', width, key: `${prefix}cbDgMzl`, align: 'center', dataIndex: `${key}.a` },
130
-							{ title: '大米', width, key: `${prefix}cbDgToDm`, align: 'center', dataIndex: `${key}.a` }
135
+							{ title: '', width, key: `${prefix}cbDgMzl`, align: 'center', dataIndex: `${key}.a`, ellipsis: true },
136
+							{ title: '大米', width, key: `${prefix}cbDgToDm`, align: 'center', dataIndex: `${key}.a`, ellipsis: true }
131 137
 						]
132 138
 					}
133 139
 				]
@@ -181,4 +187,7 @@
181 187
 	.ant-btn {
182 188
 		margin: 0 15px;
183 189
 	}
190
+	.statisticsTableAll {
191
+		overflow: auto;
192
+	}
184 193
 </style>

+ 30 - 7
src/views/RLGI/comonents/grainCondition/gatherAndShow.vue

@@ -6,10 +6,10 @@
6 6
 				<a-form-item>
7 7
 					<a-button @click="detection('')"><tool-outlined />粮温检测</a-button>
8 8
 				</a-form-item>
9
-				<a-form-item label="仓房名称" name="ckmc">
9
+				<a-form-item label="仓房名称" name="storehouseName">
10 10
 					<a-input v-model:value="pagination.storehouseName" placeholder="请输入仓房名称" />
11 11
 				</a-form-item>
12
-				<a-form-item label="检测时间" name="jcsj">
12
+				<a-form-item label="检测时间" name="gatherTime">
13 13
 					<a-date-picker
14 14
 						show-time
15 15
 						v-model:value="pagination.gatherTime"
@@ -19,12 +19,12 @@
19 19
 				</a-form-item>
20 20
 				<a-form-item>
21 21
 					<a-button type="primary" @click="getTableData">查询</a-button>
22
-					<a-button @click="resetForm">清空</a-button>
22
+					<a-button @click="resetForm">重置</a-button>
23 23
 				</a-form-item>
24 24
 			</a-form>
25 25
 		</div>
26 26
 		<div class="tableBox">
27
-			<a-table :dataSource="tableData" :columns="columns" :pagination="pagination" @change="handleTableChange">
27
+			<a-table :dataSource="tableData" :columns="columns" :pagination="false">
28 28
 				<template #bodyCell="{ column, record, index }">
29 29
 					<template v-if="column.key === 'index'">{{
30 30
 						pagination.size * (pagination.current - 1) + index + 1
@@ -43,6 +43,15 @@
43 43
 				</template>
44 44
 			</a-table>
45 45
 		</div>
46
+		<div class="paginationBox">
47
+			<a-pagination
48
+				@change="changePage"
49
+				:total="pagination.total"
50
+				:pageSize="pagination.size"
51
+				:current="pagination.current"
52
+				:show-total="(total) => `共 ${total} 条`"
53
+			/>
54
+		</div>
46 55
 		<grainCondition v-if="drawerData.showDetails" :drawerData="drawerData" @closeDrawer="closeDrawer" />
47 56
 	</div>
48 57
 </template>
@@ -71,9 +80,7 @@
71 80
 		current: 1,
72 81
 		size: 10,
73 82
 		endJysj: '',
74
-		orgId: orgId,
75
-		showTotal: (total) => `共 ${total} 条数据`, // 展示总共有几条数据
76
-		'show-quick-jumper': true
83
+		orgId: orgId
77 84
 	})
78 85
 
79 86
 	onMounted(() => {
@@ -101,6 +108,7 @@
101 108
 	// 清空搜索条件
102 109
 	function resetForm() {
103 110
 		formRef.value.resetFields()
111
+		getTableData()
104 112
 	}
105 113
 
106 114
 	// 检测温度
@@ -115,6 +123,12 @@
115 123
 			getTableData()
116 124
 		})
117 125
 	}
126
+	// 分页事件
127
+	function changePage(current, size) {
128
+		pagination.value.size = size
129
+		pagination.current = current
130
+		getTableData()
131
+	}
118 132
 
119 133
 	// 关闭抽屉
120 134
 	function closeDrawer() {
@@ -177,4 +191,13 @@
177 191
 			}
178 192
 		}
179 193
 	}
194
+	.paginationBox {
195
+		width: 100%;
196
+		height: 52px;
197
+		padding: 10px 10px;
198
+		background: #fff;
199
+		.ant-pagination {
200
+			float: right;
201
+		}
202
+	}
180 203
 </style>

+ 57 - 43
src/views/emergencySupport/yjccqytj.vue

@@ -1,37 +1,41 @@
1 1
 <!-- 校验查询 -->
2 2
 <template>
3 3
 	<div class="pageBox">
4
-		<a-form ref="formRef" :model="pageData">
5
-			<a-form-item label="查询市州" name="city">
6
-				<a-select allowClear placeholder="请选择市州" v-model:value="pageData.city" @change="selectCity">
7
-					<a-select-option v-for="dic in dictList.cityList" :value="dic.id" :key="dic.name">{{
8
-						dic.dictLabel
9
-					}}</a-select-option>
10
-				</a-select>
11
-			</a-form-item>
12
-			<a-form-item label="查询区县" name="county">
13
-				<a-select placeholder="请选择区县" v-model:value="pageData.county" :disabled="!pageData.city">
14
-					<a-select-option v-for="dic in dictList.countyList" :value="dic.id" :key="dic.name">{{
15
-						dic.dictLabel
16
-					}}</a-select-option>
17
-				</a-select>
18
-			</a-form-item>
19
-			<a-form-item>
20
-				<a-button type="primary" @click="getTableData">查询</a-button>
21
-				<a-button class="reset" @click="resetForm">重置</a-button>
22
-			</a-form-item>
23
-		</a-form>
24
-		<a-table :columns="columns" :pagination="false" :data-source="tableData" :scroll="{ x: 1500, y: 550 }">
25
-			<template #bodyCell="{ column, record, index }">
26
-				<template v-if="column.key === 'INDEX'">{{ index + 1 }}</template>
27
-				<template v-if="column.key === 'dqmc'">
28
-					<span v-if="record.qymc">{{ record.dqmc }}</span>
29
-					<a-button v-else-if="record.city || record.county" type="link" @click="getNextData(record)">{{
30
-						record.dqmc
31
-					}}</a-button>
4
+		<div class="queryBox">
5
+			<a-form ref="formRef" :model="pageData">
6
+				<a-form-item label="查询市州" name="city">
7
+					<a-select allowClear placeholder="请选择市州" v-model:value="pageData.city" @change="selectCity">
8
+						<a-select-option v-for="dic in dictList.cityList" :value="dic.id" :key="dic.name">{{
9
+							dic.dictLabel
10
+						}}</a-select-option>
11
+					</a-select>
12
+				</a-form-item>
13
+				<a-form-item label="查询区县" name="county">
14
+					<a-select placeholder="请选择区县" v-model:value="pageData.county" :disabled="!pageData.city">
15
+						<a-select-option v-for="dic in dictList.countyList" :value="dic.id" :key="dic.name">{{
16
+							dic.dictLabel
17
+						}}</a-select-option>
18
+					</a-select>
19
+				</a-form-item>
20
+				<a-form-item>
21
+					<a-button type="primary" @click="getTableData">查询</a-button>
22
+					<a-button class="reset" @click="resetForm">重置</a-button>
23
+				</a-form-item>
24
+			</a-form>
25
+		</div>
26
+		<div class="tableBox">
27
+			<a-table :columns="columns" :pagination="false" :data-source="tableData" :scroll="{ x: 1500, y: 550 }">
28
+				<template #bodyCell="{ column, record, index }">
29
+					<template v-if="column.key === 'INDEX'">{{ index + 1 }}</template>
30
+					<template v-if="column.key === 'dqmc'">
31
+						<span v-if="record.qymc">{{ record.dqmc }}</span>
32
+						<a-button v-else-if="record.city || record.county" type="link" @click="getNextData(record)">{{
33
+							record.dqmc
34
+						}}</a-button>
35
+					</template>
32 36
 				</template>
33
-			</template>
34
-		</a-table>
37
+			</a-table>
38
+		</div>
35 39
 	</div>
36 40
 </template>
37 41
 <script setup name="credit">
@@ -115,21 +119,31 @@
115 119
 </script>
116 120
 <style lang="less" scoped>
117 121
 	.pageBox {
118
-		margin: 30px 0;
119
-		.ant-form {
120
-			padding: 15px 30px 0 30px;
121
-			overflow: hidden;
122
-			.ant-form-item {
123
-				width: 20%;
124
-				float: left;
125
-				margin-right: 2%;
126
-				.ant-btn {
127
-					margin-right: 15px;
128
-				}
129
-				.ant-btn-text {
130
-					cursor: hand;
122
+		.queryBox {
123
+			padding: 20px 0 0 0;
124
+			background: #fff;
125
+			.ant-form {
126
+				padding: 15px 30px 0 30px;
127
+				overflow: hidden;
128
+				.ant-form-item {
129
+					width: 20%;
130
+					float: left;
131
+					margin-right: 2%;
132
+					.ant-btn {
133
+						margin-right: 15px;
134
+					}
135
+					.ant-btn-text {
136
+						cursor: hand;
137
+					}
131 138
 				}
132 139
 			}
133 140
 		}
141
+		.tableBox {
142
+			margin-top: 20px;
143
+			background: #fff;
144
+			::v-deep(.ant-table) {
145
+				height: calc(100vh - 280px);
146
+			}
147
+		}
134 148
 	}
135 149
 </style>

+ 2 - 3
src/views/projectManage/approve.vue

@@ -28,7 +28,7 @@
28 28
 			</a-form>
29 29
 		</div>
30 30
 		<div class="tableBox">
31
-			<a-table :columns="columns" :data-source="tableData" :pagination="false">
31
+			<a-table :columns="columns" :data-source="tableData" :pagination="false" :scroll="{ x: 1500, y: 520 }">
32 32
 				<template #bodyCell="{ column, record, index }">
33 33
 					<template v-if="column.dataIndex === 'index'">
34 34
 						{{ index + 1 }}
@@ -77,8 +77,7 @@
77 77
 		total: 0,
78 78
 		size: 10,
79 79
 		current: 1,
80
-		projectName: '',
81
-		showTotal: (total) => `共 ${total} 条数据` // 展示总共有几条数据
80
+		projectName: ''
82 81
 	})
83 82
 
84 83
 	const modalData = reactive({

+ 2 - 3
src/views/projectManage/declare.vue

@@ -29,7 +29,7 @@
29 29
 			</a-form>
30 30
 		</div>
31 31
 		<div class="tableBox">
32
-			<a-table :columns="columns" :data-source="tableData" :pagination="false">
32
+			<a-table :columns="columns" :data-source="tableData" :pagination="false" :scroll="{ x: 1500, y: 520 }">
33 33
 				<template #bodyCell="{ column, record, index }">
34 34
 					<template v-if="column.dataIndex === 'index'">
35 35
 						{{ index + 1 }}
@@ -92,8 +92,7 @@
92 92
 		total: 0,
93 93
 		size: 10,
94 94
 		current: 1,
95
-		projectName: '',
96
-		showTotal: (total) => `共 ${total} 条数据` // 展示总共有几条数据
95
+		projectName: ''
97 96
 	})
98 97
 
99 98
 	const modalData = reactive({

+ 2 - 3
src/views/projectManage/information.vue

@@ -29,7 +29,7 @@
29 29
 			</a-form>
30 30
 		</div>
31 31
 		<div class="tableBox">
32
-			<a-table :columns="columns" :data-source="tableData" :pagination="false">
32
+			<a-table :columns="columns" :data-source="tableData" :pagination="false" :scroll="{ x: 1500, y: 520 }">
33 33
 				<template #bodyCell="{ column, record, index }">
34 34
 					<template v-if="column.dataIndex === 'index'">
35 35
 						{{ index + 1 }}
@@ -82,8 +82,7 @@
82 82
 		total: 0,
83 83
 		current: 1,
84 84
 		size: 10,
85
-		projectName: '',
86
-		showTotal: (total) => `共 ${total} 条数据` // 展示总共有几条数据
85
+		projectName: ''
87 86
 	})
88 87
 
89 88
 	const columns = [

+ 2 - 3
src/views/projectManage/supervision.vue

@@ -19,7 +19,7 @@
19 19
 			</a-form>
20 20
 		</div>
21 21
 		<div class="tableBox">
22
-			<a-table :columns="columns" :data-source="tableData" :pagination="false">
22
+			<a-table :columns="columns" :data-source="tableData" :pagination="false" :scroll="{ x: 1500, y: 520 }">
23 23
 				<template #bodyCell="{ column, record, index }">
24 24
 					<template v-if="column.dataIndex === 'index'">
25 25
 						{{ index + 1 }}
@@ -66,8 +66,7 @@
66 66
 		total: 0,
67 67
 		current: 1,
68 68
 		size: 10,
69
-		projectName: '',
70
-		showTotal: (total) => `共 ${total} 条数据` // 展示总共有几条数据
69
+		projectName: ''
71 70
 	})
72 71
 
73 72
 	const columns = [