Compare commits

..

2 Commits

5 changed files with 51 additions and 17 deletions

View File

@ -183,10 +183,10 @@ const clickMenu = ({isOuter, path, disabled, id}) =>{
// ID // ID
const { id, rootid } = sessionStore.get('subject.curNode') const { id, rootid } = sessionStore.get('subject.curNode')
if(fullPath.indexOf('?') == -1){ if(fullPath.indexOf('?') == -1){
fullPath += `?unitId=${id}&bookeId=${rootid}` fullPath += `?unitId=${id}&bookId=${rootid}`
} }
else{ else{
fullPath += `&unitId=${id}&bookeId=${rootid}` fullPath += `&unitId=${id}&bookId=${rootid}`
} }
} }
fullPath = fullPath.replaceAll('//', '/') fullPath = fullPath.replaceAll('//', '/')

View File

@ -86,10 +86,16 @@
<span>布置</span> <span>布置</span>
</el-button> </el-button>
</div> </div>
<div class="item-popover-item">
<el-button text @click="reSetHomeWork(item, index)">
<i class="iconfont icon-bianji"></i>
<span>编辑</span>
</el-button>
</div>
<div class="item-popover-item"> <div class="item-popover-item">
<el-button text @click="deleteHomework(item)"> <el-button text @click="deleteHomework(item)">
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
<span>删除</span> <span style="color: red;">删除</span>
</el-button> </el-button>
</div> </div>
</template> </template>
@ -110,7 +116,7 @@
<div class="item-popover-item" v-if="userInfo.userId === Number(item.createUserId)"> <div class="item-popover-item" v-if="userInfo.userId === Number(item.createUserId)">
<el-button text @click="deleteTalk(item)"> <el-button text @click="deleteTalk(item)">
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
<span>删除</span> <span style="color: red;">删除</span>
</el-button> </el-button>
</div> </div>
<div class="item-popover-item"> <div class="item-popover-item">
@ -168,7 +174,7 @@ export default {
} }
} }
}, },
emits: { 'on-move': null, 'on-delete': null, 'on-set': null, 'on-delhomework': null,'on-filearg': null }, emits: { 'on-move': null, 'on-delete': null, 'on-set': null, 'on-reSet': null, 'on-delhomework': null,'on-filearg': null },
data() { data() {
return { return {
listenList: [], listenList: [],
@ -275,6 +281,10 @@ export default {
setHomeWork(item) { setHomeWork(item) {
this.$emit('on-set', item) this.$emit('on-set', item)
}, },
//
reSetHomeWork(item) {
this.$emit('on-reSet', item)
},
// //
deleteHomework(item){ deleteHomework(item){
this.$emit('on-delhomework', item) this.$emit('on-delhomework', item)

View File

@ -76,7 +76,7 @@
<div class="item-popover-item"> <div class="item-popover-item">
<el-button text @click="deleteTalk(item)"> <el-button text @click="deleteTalk(item)">
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
<span>删除</span> <span style="color: red;">删除</span>
</el-button> </el-button>
</div> </div>
</template> </template>

View File

@ -116,22 +116,20 @@
</el-checkbox-group> </el-checkbox-group>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="作业" name="作业"> <el-tab-pane label="作业" name="作业">
<!-- <div class="prepare-body-header"> <div class="prepare-body-header">
<div> <div>
<label style="font-size: 15px">{{ currentWorkList.length }}个作业</label>&nbsp; <label style="font-size: 15px">{{ currentWorkList.length }}个作业</label>&nbsp;
<el-button size="small" @click="handleOutLink('feedback')">作业反馈</el-button> <el-button size="small" @click="handleOutLink('homeWork')">作业设计</el-button>
<el-button size="small" @click="handleOutLink('homeWork')">布置作业</el-button>
</div> </div>
</div>--> </div>
<div class="prepare-work-wrap"> <div class="prepare-work-wrap">
<file-list-item <file-list-item
v-for="(item, index) in currentWorkList" v-for="(item, index) in currentWorkList"
:key="index" :key="index"
:item="item" :item="item"
:index="index" :index="index"
@on-move="onMoveSingleFile"
@on-delete="deleteTalk"
@on-set="openSet" @on-set="openSet"
@on-reSet="openReSet"
@on-delhomework="delhomework" @on-delhomework="delhomework"
> >
</file-list-item> </file-list-item>
@ -596,6 +594,7 @@ export default {
openReserv() { openReserv() {
this.$refs['reservDialog'].openDialog() this.$refs['reservDialog'].openDialog()
}, },
// //
handleOutLink(key) { handleOutLink(key) {
if (key == 'homeWork') { if (key == 'homeWork') {
@ -609,12 +608,15 @@ export default {
let unitId = this.uploadData.levelSecondId let unitId = this.uploadData.levelSecondId
? this.uploadData.levelSecondId ? this.uploadData.levelSecondId
: this.uploadData.levelFirstId : this.uploadData.levelFirstId
if (key == 'gk') { let bookId = this.uploadData.textbookId;
fullPath += `?unitId=${unitId}` if(fullPath.indexOf('?') == -1){
} else { fullPath += `?unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
fullPath += `&unitId=${unitId}` }
else{
fullPath += `&unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
} }
} }
// //
ipcRenderer.send('openWindow', { ipcRenderer.send('openWindow', {
key, key,
@ -632,6 +634,27 @@ export default {
this.row = row this.row = row
this.setDialog = true this.setDialog = true
}, },
//
openReSet(row) {
//
this.isOpenHomework = true;
// key linkConfig.js
let configObj = outLink()['homeWork']
let fullPath = configObj.fullPath
let unitId = this.uploadData.levelSecondId
? this.uploadData.levelSecondId
: this.uploadData.levelFirstId
let bookId = this.uploadData.textbookId;
fullPath += `&unitId=${unitId}&bookId=${bookId}&courseWorkId=${row.id}`
//
ipcRenderer.send('openWindow', {
key: 'homeWork',
fullPath: fullPath,
cookieData: { ...configObj.data }
})
},
// //
delhomework(item) { delhomework(item) {
this.isLoading = true this.isLoading = true
@ -874,6 +897,7 @@ export default {
width: 100%; width: 100%;
flex: 1; flex: 1;
overflow: auto; overflow: auto;
margin-top: 10px;
} }
.prepare-body-main { .prepare-body-main {
flex: 1; flex: 1;

View File

@ -61,7 +61,7 @@
@click="delRow(item)" @click="delRow(item)"
> >
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
<span>删除</span> <span style="color: red;">删除</span>
</div> </div>
<div class="item-popover-item" @click="downloadFile(item)"> <div class="item-popover-item" @click="downloadFile(item)">
<i class="iconfont icon-xiazai"></i> <i class="iconfont icon-xiazai"></i>