fix:数据明细筛选发布方式默认为空,基础分析序号改为样本编码
This commit is contained in:
@@ -717,10 +717,10 @@ const getFilterData = () => {
|
||||
}
|
||||
// 发布方式
|
||||
if (!filterData.value?.id) {
|
||||
for (let i = 0; i < publish_types.value.length; i++) {
|
||||
const el = publish_types.value[i]
|
||||
fData.publishVal.push(el.value)
|
||||
}
|
||||
// for (let i = 0; i < publish_types.value.length; i++) {
|
||||
// const el = publish_types.value[i]
|
||||
// fData.publishVal.push(el.value)
|
||||
// }
|
||||
} else {
|
||||
if (filterData.value?.publish_type) {
|
||||
console.log('filterData.value?.publish_type', filterData.value)
|
||||
@@ -1103,9 +1103,10 @@ const clearInfo = (type) => {
|
||||
// })
|
||||
searchData.value.versions = []
|
||||
// 发布方式
|
||||
publish_types.value.map((el) => {
|
||||
searchData.value.publishVal.push(el.value)
|
||||
})
|
||||
// publish_types.value.map((el) => {
|
||||
// searchData.value.publishVal.push(el.value)
|
||||
// })
|
||||
searchData.value.publishVal = []
|
||||
// 作答状态
|
||||
searchData.value.answerStatus = ['1']
|
||||
// 标记状态
|
||||
@@ -1254,7 +1255,7 @@ watch (
|
||||
}
|
||||
}
|
||||
)
|
||||
// 默认全选
|
||||
// 默认全选版本号
|
||||
// watch(
|
||||
// () => versions.value,
|
||||
// (nval) => {
|
||||
@@ -1266,18 +1267,18 @@ watch (
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
// 默认全选
|
||||
watch(
|
||||
() => publish_types.value,
|
||||
(nval) => {
|
||||
if (filterData.value?.id) return
|
||||
searchData.value.publishVal.length = 0
|
||||
for (let i = 0; i < nval.length; i++) {
|
||||
const el = nval[i]
|
||||
searchData.value.publishVal.push(el.value)
|
||||
}
|
||||
}
|
||||
)
|
||||
// 默认全选发布方式
|
||||
// watch(
|
||||
// () => publish_types.value,
|
||||
// (nval) => {
|
||||
// if (filterData.value?.id) return
|
||||
// searchData.value.publishVal.length = 0
|
||||
// for (let i = 0; i < nval.length; i++) {
|
||||
// const el = nval[i]
|
||||
// searchData.value.publishVal.push(el.value)
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
// 默认全选
|
||||
watch(
|
||||
() => logics.value,
|
||||
|
||||
@@ -89,10 +89,10 @@ export default defineComponent({
|
||||
const tableSource = ref([]);
|
||||
const columns = ref([
|
||||
{
|
||||
title: "序号",
|
||||
title: "样本编码",
|
||||
key: "index",
|
||||
dataIndex: "index",
|
||||
width: 50,
|
||||
width: 100,
|
||||
// align: "center",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user