|
@@ -64,6 +64,9 @@ function getSubject() {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
getSubject()
|
|
getSubject()
|
|
|
|
+
|
|
|
|
+const showSubList = $ref({})
|
|
|
|
+
|
|
function getListData() {
|
|
function getListData() {
|
|
const data = {
|
|
const data = {
|
|
page: cur_page,
|
|
page: cur_page,
|
|
@@ -78,10 +81,12 @@ function getListData() {
|
|
if (res.code === '1') {
|
|
if (res.code === '1') {
|
|
listData = res.data.page_data
|
|
listData = res.data.page_data
|
|
for (const i in listData) {
|
|
for (const i in listData) {
|
|
- if (i == 0)
|
|
|
|
- listData[i].showSub = true
|
|
|
|
- else
|
|
|
|
- listData[i].showSub = false
|
|
|
|
|
|
+ // if (i == 0)
|
|
|
|
+ // listData[i].showSub = true
|
|
|
|
+ // else
|
|
|
|
+ // listData[i].showSub = false
|
|
|
|
+ const item = listData[i]
|
|
|
|
+ showSubList[item.ykj_id] = showSubList[item.ykj_id] ?? false
|
|
|
|
|
|
let total = 0
|
|
let total = 0
|
|
for (const j in listData[i].lc) {
|
|
for (const j in listData[i].lc) {
|
|
@@ -172,11 +177,12 @@ function del_sub(ykj_id, ykl_id) {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-function toggleDown(index) {
|
|
|
|
- if (listData[index].showSub)
|
|
|
|
- listData[index].showSub = false
|
|
|
|
- else
|
|
|
|
- listData[index].showSub = true
|
|
|
|
|
|
+function toggleDown(item) {
|
|
|
|
+ // if (listData[index].showSub)
|
|
|
|
+ // listData[index].showSub = false
|
|
|
|
+ // else
|
|
|
|
+ // listData[index].showSub = true
|
|
|
|
+ showSubList[item.ykj_id] = !showSubList[item.ykj_id]
|
|
}
|
|
}
|
|
function delProject(item) {
|
|
function delProject(item) {
|
|
ElMessageBox.confirm('删除考试计划将会清除考试计划下的所有数据,是否继续', '', {
|
|
ElMessageBox.confirm('删除考试计划将会清除考试计划下的所有数据,是否继续', '', {
|
|
@@ -339,37 +345,7 @@ function jfgzSub() {
|
|
>
|
|
>
|
|
详情
|
|
详情
|
|
</button>
|
|
</button>
|
|
- <!-- <div class="ml-10px relative op-btn cursor-pointer">
|
|
|
|
- <span class="inline-block align-middle leading-28px">更多</span>
|
|
|
|
- <div class="more-list">
|
|
|
|
- <ul>
|
|
|
|
- <li
|
|
|
|
- :class="item.btn_check.btn_jyysz != '1' ? 'disabled' : ''"
|
|
|
|
- @click="linkTo({ name: 'process-jyysz-ykj_id', params: { ykj_id: item.ykj_id } })"
|
|
|
|
- >
|
|
|
|
- 教研员设置
|
|
|
|
- </li>
|
|
|
|
- <li :class="item.btn_check.btn_jsgzsz != '1' ? 'disabled' : ''" @click="editJfgz(item)">
|
|
|
|
- 分数计算规则设置
|
|
|
|
- </li>
|
|
|
|
- <li
|
|
|
|
- :class="item.btn_check.btn_smpyjd != '1' ? 'disabled' : ''"
|
|
|
|
- @click="linkTo({ name: 'process-smpyjd-ykj_id', params: { ykj_id: item.ykj_id } })"
|
|
|
|
- >
|
|
|
|
- 扫描批阅进度
|
|
|
|
- </li>
|
|
|
|
- <li
|
|
|
|
- :class="item.btn_check.btn_ksfx != '1' ? 'disabled' : ''"
|
|
|
|
- @click="linkTo({ name: 'ksfx-cjfx_cjd-ykj_id', params: { ykj_id: item.ykj_id } })"
|
|
|
|
- >
|
|
|
|
- 考试分析
|
|
|
|
- </li>
|
|
|
|
- <li :class="item.btn_check.btn_sc != '1' ? 'disabled' : ''" @click="delProject(item)">
|
|
|
|
- 删除
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- </div>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+
|
|
<el-dropdown trigger="click">
|
|
<el-dropdown trigger="click">
|
|
<div class="ml-10px op-btn cursor-pointer inline-block align-middle leading-28px">
|
|
<div class="ml-10px op-btn cursor-pointer inline-block align-middle leading-28px">
|
|
更多
|
|
更多
|
|
@@ -406,11 +382,11 @@ function jfgzSub() {
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
<button
|
|
<button
|
|
type="button" class="ml-10px inline-block align-middle arrow-btn"
|
|
type="button" class="ml-10px inline-block align-middle arrow-btn"
|
|
- :class="item.showSub ? 'up' : 'down'" @click="toggleDown(index)"
|
|
|
|
|
|
+ :class="showSubList[item.ykj_id] ? 'up' : 'down'" @click="toggleDown(item)"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div v-if="item.showSub" class="down pt-15px pl-35px">
|
|
|
|
|
|
+ <div v-if="showSubList[item.ykj_id]" class="down pt-15px pl-35px">
|
|
<ul class="subject-list">
|
|
<ul class="subject-list">
|
|
<li v-for="items in item.lc" :key="items.ykl_id">
|
|
<li v-for="items in item.lc" :key="items.ykl_id">
|
|
<span class="sub-del cursor-pointer" @click="del_sub(item.ykj_id, items.ykl_id)" />
|
|
<span class="sub-del cursor-pointer" @click="del_sub(item.ykj_id, items.ykl_id)" />
|