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