Browse Source

Merge branch 'dev-2.19.0' into dev

* dev-2.19.0:
  flx:更改++
wzq 4 months ago
parent
commit
c079033fc3
2 changed files with 7 additions and 6 deletions
  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
 						<!-- 生效状态 0:未生效 1:生效 -->
16
 						<!-- 生效状态 0:未生效 1:生效 -->
17
 						<a-select-option :value="0">未生效</a-select-option>
17
 						<a-select-option :value="0">未生效</a-select-option>
18
 						<a-select-option :value="1">生效</a-select-option>
18
 						<a-select-option :value="1">生效</a-select-option>
19
-
20
 					</a-select>
19
 					</a-select>
21
 				</div>
20
 				</div>
22
 				<div class="btnBox">
21
 				<div class="btnBox">
@@ -80,7 +79,9 @@
80
 	]
79
 	]
81
 
80
 
82
 	const { DEl, change, tableData, onSearch, handlePageChange, pagination, Search, onReset, SearchFormDel } =
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
 	const onView = (record, row) => {
87
 	const onView = (record, row) => {

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

@@ -105,8 +105,8 @@
105
 		formState.value = res
105
 		formState.value = res
106
 		tableData.value = []
106
 		tableData.value = []
107
 		tableData.value = res.items
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
 	const optionsGender = ref([])
111
 	const optionsGender = ref([])
112
 	const getGender = async () => {
112
 	const getGender = async () => {
@@ -208,13 +208,13 @@
208
 
208
 
209
 	// 新增
209
 	// 新增
210
 	const pustFrom = async (value) => {
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
 		const delDate = { ...value, items: tableData.value }
212
 		const delDate = { ...value, items: tableData.value }
213
 		const res = await Grain.LHJCLISTadd(delDate)
213
 		const res = await Grain.LHJCLISTadd(delDate)
214
 	}
214
 	}
215
 	// 编辑
215
 	// 编辑
216
 	const pustEdit = async (value) => {
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
 		const delDate = { ...value, items: tableData.value }
218
 		const delDate = { ...value, items: tableData.value }
219
 		const res = await Grain.LHJCLISTedit(delDate)
219
 		const res = await Grain.LHJCLISTedit(delDate)
220
 	}
220
 	}