作业推送:row改为rows组件模式
This commit is contained in:
parent
f3d59ca8ee
commit
2b25924213
|
@ -47,7 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button color="#349d44" @click="sendHomework(item)">推送</el-button>
|
<el-button color="#349d44" @click="sendHomework(item,'item')">推送</el-button>
|
||||||
</li>
|
</li>
|
||||||
<div class="no-data flex" v-if="!dataList.length && !resourceList.length">
|
<div class="no-data flex" v-if="!dataList.length && !resourceList.length">
|
||||||
<i class="iconfont icon-zanwushuju"></i>
|
<i class="iconfont icon-zanwushuju"></i>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
<SetHomework v-model="setDialog" :title="'推送作业'" :entpcourseid="entpcourseid" :row="curRow"
|
<SetHomework v-model="setDialog" :title="'推送作业'" :entpcourseid="entpcourseid" :rows="curRow"
|
||||||
@on-close="closeHomework" @on-success="successHomework"/>
|
@on-close="closeHomework" @on-success="successHomework"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="homework flex" v-else>
|
<div class="homework flex" v-else>
|
||||||
|
@ -110,8 +110,11 @@ const curNode = reactive({
|
||||||
data: {}
|
data: {}
|
||||||
})
|
})
|
||||||
|
|
||||||
const sendHomework = (row) => {
|
const sendHomework = (row,type) => {
|
||||||
curRow.value = row
|
if(type == 'item'){
|
||||||
|
// 布置推送单个作业
|
||||||
|
curRow.value = [row]
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
ipcMsgSend('tool-sphere:set:ignore', false)
|
ipcMsgSend('tool-sphere:set:ignore', false)
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|
Loading…
Reference in New Issue