Bladeren bron

Merge branch 'dev-2.19.0' into dev

* dev-2.19.0:
  flx:更改++
wzq 4 maanden geleden
bovenliggende
commit
c079033fc3
2 gewijzigde bestanden met toevoegingen van 7 en 6 verwijderingen
  1. 3 2
      src/views/Grain/template/index.vue
  2. 4 4
      src/views/Grain/template/templateDel.vue

+ 3 - 2
src/views/Grain/template/index.vue

@@ -16,7 +16,6 @@
16 16
 						<!-- 生效状态 0:未生效 1:生效 -->
17 17
 						<a-select-option :value="0">未生效</a-select-option>
18 18
 						<a-select-option :value="1">生效</a-select-option>
19
-
20 19
 					</a-select>
21 20
 				</div>
22 21
 				<div class="btnBox">
@@ -80,7 +79,9 @@
80 79
 	]
81 80
 
82 81
 	const { DEl, change, tableData, onSearch, handlePageChange, pagination, Search, onReset, SearchFormDel } =
83
-		listPagination({ inspectionName: '', effectiveStatus: '' }, Grain.LHJCLISTlist, Grain.LHJCLISTdel, { sortOrder: 'ASCEND' })
82
+		listPagination({ inspectionName: '', effectiveStatus: '' }, Grain.LHJCLISTlist, Grain.LHJCLISTdel, {
83
+			sortOrder: 'ASCEND'
84
+		})
84 85
 
85 86
 	// 查看表单数据
86 87
 	const onView = (record, row) => {

+ 4 - 4
src/views/Grain/template/templateDel.vue

@@ -105,8 +105,8 @@
105 105
 		formState.value = res
106 106
 		tableData.value = []
107 107
 		tableData.value = res.items
108
-		checked1.value = res.effectiveStatus == 0 ? true : false
109
-		checked2.value = res.effectiveStatus == 1 ? true : false
108
+		checked1.value = res.effectiveStatus == 1 ? true : false
109
+		checked2.value = res.effectiveStatus == 0 ? true : false
110 110
 	}
111 111
 	const optionsGender = ref([])
112 112
 	const getGender = async () => {
@@ -208,13 +208,13 @@
208 208
 
209 209
 	// 新增
210 210
 	const pustFrom = async (value) => {
211
-		value.effectiveStatus = checked1.value == true ? 0 : checked2.value == true ? 1 : ''
211
+		value.effectiveStatus = checked1.value == true ? 1 : checked2.value == true ? 0 : ''
212 212
 		const delDate = { ...value, items: tableData.value }
213 213
 		const res = await Grain.LHJCLISTadd(delDate)
214 214
 	}
215 215
 	// 编辑
216 216
 	const pustEdit = async (value) => {
217
-		value.effectiveStatus = checked1.value == true ? 0 : checked2.value == true ? 1 : ''
217
+		value.effectiveStatus = checked1.value == true ? 1 : checked2.value == true ? 0 : ''
218 218
 		const delDate = { ...value, items: tableData.value }
219 219
 		const res = await Grain.LHJCLISTedit(delDate)
220 220
 	}