Compare commits
No commits in common. "9c21458c5759e9a6de001f4a248c2c9fdc766793" and "8bddb166a3950f57240668af31ab8865e3d7f0f7" have entirely different histories.
9c21458c57
...
8bddb166a3
|
@ -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}&bookId=${rootid}`
|
fullPath += `?unitId=${id}&bookeId=${rootid}`
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
fullPath += `&unitId=${id}&bookId=${rootid}`
|
fullPath += `&unitId=${id}&bookeId=${rootid}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fullPath = fullPath.replaceAll('//', '/')
|
fullPath = fullPath.replaceAll('//', '/')
|
||||||
|
|
|
@ -86,16 +86,10 @@
|
||||||
<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 style="color: red;">删除</span>
|
<span>删除</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -116,7 +110,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 style="color: red;">删除</span>
|
<span>删除</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-popover-item">
|
<div class="item-popover-item">
|
||||||
|
@ -174,7 +168,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: { 'on-move': null, 'on-delete': null, 'on-set': null, 'on-reSet': null, 'on-delhomework': null,'on-filearg': null },
|
emits: { 'on-move': null, 'on-delete': null, 'on-set': null, 'on-delhomework': null,'on-filearg': null },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
listenList: [],
|
listenList: [],
|
||||||
|
@ -281,10 +275,6 @@ 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)
|
||||||
|
|
|
@ -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 style="color: red;">删除</span>
|
<span>删除</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -116,20 +116,22 @@
|
||||||
</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>
|
<label style="font-size: 15px">共{{ currentWorkList.length }}个作业</label>
|
||||||
<el-button size="small" @click="handleOutLink('homeWork')">作业设计</el-button>
|
<el-button size="small" @click="handleOutLink('feedback')">作业反馈</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>
|
||||||
|
@ -594,7 +596,6 @@ export default {
|
||||||
openReserv() {
|
openReserv() {
|
||||||
this.$refs['reservDialog'].openDialog()
|
this.$refs['reservDialog'].openDialog()
|
||||||
},
|
},
|
||||||
|
|
||||||
// 打开外部链接
|
// 打开外部链接
|
||||||
handleOutLink(key) {
|
handleOutLink(key) {
|
||||||
if (key == 'homeWork') {
|
if (key == 'homeWork') {
|
||||||
|
@ -608,15 +609,12 @@ export default {
|
||||||
let unitId = this.uploadData.levelSecondId
|
let unitId = this.uploadData.levelSecondId
|
||||||
? this.uploadData.levelSecondId
|
? this.uploadData.levelSecondId
|
||||||
: this.uploadData.levelFirstId
|
: this.uploadData.levelFirstId
|
||||||
let bookId = this.uploadData.textbookId;
|
if (key == 'gk') {
|
||||||
if(fullPath.indexOf('?') == -1){
|
fullPath += `?unitId=${unitId}`
|
||||||
fullPath += `?unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
|
} else {
|
||||||
}
|
fullPath += `&unitId=${unitId}`
|
||||||
else{
|
|
||||||
fullPath += `&unitId=${unitId}&bookId=${bookId}&openDialog=newClassTask`
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 通知主进程
|
// 通知主进程
|
||||||
ipcRenderer.send('openWindow', {
|
ipcRenderer.send('openWindow', {
|
||||||
key,
|
key,
|
||||||
|
@ -634,27 +632,6 @@ 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
|
||||||
|
@ -897,7 +874,6 @@ 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;
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
@click="delRow(item)"
|
@click="delRow(item)"
|
||||||
>
|
>
|
||||||
<i class="iconfont icon-shanchu"></i>
|
<i class="iconfont icon-shanchu"></i>
|
||||||
<span style="color: red;">删除</span>
|
<span>删除</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>
|
||||||
|
|
Loading…
Reference in New Issue