fix:数据明细筛选发布方式默认为空,基础分析序号改为样本编码

This commit is contained in:
王博冉
2023-05-22 15:03:02 +08:00
parent 9dcce1b0c5
commit fda2546b84
2 changed files with 23 additions and 22 deletions

View File

@@ -717,10 +717,10 @@ const getFilterData = () => {
} }
// 发布方式 // 发布方式
if (!filterData.value?.id) { if (!filterData.value?.id) {
for (let i = 0; i < publish_types.value.length; i++) { // for (let i = 0; i < publish_types.value.length; i++) {
const el = publish_types.value[i] // const el = publish_types.value[i]
fData.publishVal.push(el.value) // fData.publishVal.push(el.value)
} // }
} else { } else {
if (filterData.value?.publish_type) { if (filterData.value?.publish_type) {
console.log('filterData.value?.publish_type', filterData.value) console.log('filterData.value?.publish_type', filterData.value)
@@ -1103,9 +1103,10 @@ const clearInfo = (type) => {
// }) // })
searchData.value.versions = [] searchData.value.versions = []
// 发布方式 // 发布方式
publish_types.value.map((el) => { // publish_types.value.map((el) => {
searchData.value.publishVal.push(el.value) // searchData.value.publishVal.push(el.value)
}) // })
searchData.value.publishVal = []
// 作答状态 // 作答状态
searchData.value.answerStatus = ['1'] searchData.value.answerStatus = ['1']
// 标记状态 // 标记状态
@@ -1254,7 +1255,7 @@ watch (
} }
} }
) )
// 默认全选 // 默认全选版本号
// watch( // watch(
// () => versions.value, // () => versions.value,
// (nval) => { // (nval) => {
@@ -1266,18 +1267,18 @@ watch (
// } // }
// } // }
// ) // )
// 默认全选 // 默认全选发布方式
watch( // watch(
() => publish_types.value, // () => publish_types.value,
(nval) => { // (nval) => {
if (filterData.value?.id) return // if (filterData.value?.id) return
searchData.value.publishVal.length = 0 // searchData.value.publishVal.length = 0
for (let i = 0; i < nval.length; i++) { // for (let i = 0; i < nval.length; i++) {
const el = nval[i] // const el = nval[i]
searchData.value.publishVal.push(el.value) // searchData.value.publishVal.push(el.value)
} // }
} // }
) // )
// 默认全选 // 默认全选
watch( watch(
() => logics.value, () => logics.value,

View File

@@ -89,10 +89,10 @@ export default defineComponent({
const tableSource = ref([]); const tableSource = ref([]);
const columns = ref([ const columns = ref([
{ {
title: "序号", title: "样本编码",
key: "index", key: "index",
dataIndex: "index", dataIndex: "index",
width: 50, width: 100,
// align: "center", // align: "center",
}, },
{ {