diff --git a/src/pages/quesBank/list/globalQuesBank.vue b/src/pages/quesBank/list/globalQuesBank.vue
index 9b1f2a3..0e1b332 100644
--- a/src/pages/quesBank/list/globalQuesBank.vue
+++ b/src/pages/quesBank/list/globalQuesBank.vue
@@ -35,8 +35,7 @@
题目列表
-
- 批量删除
+ 批量取消共享
@@ -53,7 +52,7 @@
查看
- 删除
+ 取消共享
@@ -139,12 +138,12 @@ export default {
this.multipleSelection = val
},
delData(row) {
- this.$confirm('确定要删除吗?', '提示', {
+ this.$confirm('确定要取消共享吗?', '提示', {
type: 'warning'
})
.then(() => {
this.$post(`${this.api.deleteByMeSubjectBySharing}?identification=1&ids=${row.sid}`).then(res => {
- this.$message.success('删除成功')
+ this.$message.success('取消共享成功')
this.getData()
}).catch(res => {});
})
@@ -157,13 +156,13 @@ export default {
return item.sid
})
- this.$confirm('确定要删除吗?', '提示', {
+ this.$confirm('确定要取消共享吗?', '提示', {
type: 'warning'
})
.then(() => {
this.$post(`${this.api.deleteByMeSubjectBySharing}?identification=1&ids=${delList.join()}`).then(res => {
this.multipleSelection = [];
- this.$message.success('删除成功')
+ this.$message.success('取消共享成功')
this.getData()
this.$refs.table.clearSelection()
}).catch(res => {})
diff --git a/src/pages/quesBank/list/myQuesBank.vue b/src/pages/quesBank/list/myQuesBank.vue
index c9bc02a..048c779 100644
--- a/src/pages/quesBank/list/myQuesBank.vue
+++ b/src/pages/quesBank/list/myQuesBank.vue
@@ -89,7 +89,7 @@
-
+
查看
修改
diff --git a/src/pages/quesBank/list/quesBankType.vue b/src/pages/quesBank/list/quesBankType.vue
index 75fdd7b..d2cdf59 100644
--- a/src/pages/quesBank/list/quesBankType.vue
+++ b/src/pages/quesBank/list/quesBankType.vue
@@ -20,9 +20,12 @@
添加一级分类
-
-
-
+
+
+
+ {{scope.row.typeName}}
+
+
添加
@@ -88,7 +91,7 @@ export default {
},
computed: {
...mapState('user', [
- 'userId'
+ 'userId','clientId'
])
},
mounted() {
@@ -106,24 +109,20 @@ export default {
getData() {
let data = {
pageNum: this.page,
- pageSize: this.pageSize
+ pageSize: this.pageSize,
+ keyword: this.keyword,
+ schoolId: this.clientId,
+ source: 1
}
this.$post(this.api.listByPage,data)
.then(res => {
- let list = res.data.list.list
- // list.map((n,i) => {
- // n.index = i + 1
- // n.secondColumn.map((j,i) => {
- // j.index = i + 1
- // })
- // })
- this.listData = list
+ this.listData = res.data.list.list
this.total = res.data.list.totalCount
}).catch(err => {})
},
handleCurrentChange(val) {
- this.page = val;
- this.getData();
+ this.page = val
+ this.getData()
},
handleDelete(row) {
this.$confirm('确定要删除吗?', '提示', {
@@ -135,7 +134,7 @@ export default {
this.getData()
}).catch(res => {})
})
- .catch(() => {});
+ .catch(() => {})
},
addFirst(){
this.isAddFirst = true
@@ -145,7 +144,9 @@ export default {
if(!this.firstName) return this.$message.warning('请填写题库分类名称')
let data = {
userId: this.userId,
- typeName: this.firstName
+ typeName: this.firstName,
+ schoolId: this.clientId,
+ source: 1
}
if(this.curRow.cid){
data.cid = this.curRow.cid
@@ -197,6 +198,8 @@ export default {
let data = {
typeName: this.secondName,
userId: this.userId,
+ schoolId: this.clientId,
+ source: 1
}
if(this.curRow.parentId == 0){
data.parentId = this.curRow.cid
diff --git a/src/pages/quesBank/list/quesDialog.vue b/src/pages/quesBank/list/quesDialog.vue
index 47c55a8..6727112 100644
--- a/src/pages/quesBank/list/quesDialog.vue
+++ b/src/pages/quesBank/list/quesDialog.vue
@@ -11,7 +11,12 @@
>
-
+
+
+
+
+
+
@@ -51,44 +56,44 @@
-