-
- 新增
-
+
+
+
+ 新增
+
-
-
-
- {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.status ? '已发布' : '草稿' }}
-
-
-
-
- 编辑
- 删除
-
-
-
-
-
+
+
+
+ {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.status ? '已发布' : '草稿' }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/assessment/add/index.vue b/src/pages/assessment/add/index.vue
index 7422587..a4a4cd4 100644
--- a/src/pages/assessment/add/index.vue
+++ b/src/pages/assessment/add/index.vue
@@ -313,7 +313,8 @@ export default {
beforeRouteLeave (to, from, next) {
if (!this.isToProject && this.updateTime) {
this.$confirm(`您所更改的内容未更新,是否更新?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save(next)
}).catch(() => {
@@ -623,7 +624,8 @@ export default {
// 更改了信息才需要提示
if (this.updateTime) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save()
}).catch(() => {
diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue
index 1ee6a36..d4efe8b 100644
--- a/src/pages/assessment/list/index.vue
+++ b/src/pages/assessment/list/index.vue
@@ -470,7 +470,8 @@ export default {
},
finish (row) {
this.$confirm("确定要提前结束吗?", "提示", {
- type: "warning"
+ type: "warning",
+ closeOnClickModal: false
}).then(() => {
let data = {
id: row.id,
diff --git a/src/pages/course/add/index.vue b/src/pages/course/add/index.vue
index 69e7b2c..09858ff 100644
--- a/src/pages/course/add/index.vue
+++ b/src/pages/course/add/index.vue
@@ -264,7 +264,8 @@ export default {
beforeRouteLeave (to, from, next) {
if (this.updateTime) {
this.$confirm(`您所更改的内容未更新,是否更新?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save(next)
}).catch(() => {
@@ -388,7 +389,8 @@ export default {
this.$confirm("课程创建成功,是否马上进行课程内容设置?", "提示", {
type: "success",
confirmButtonText: "马上设置",
- cancelButtonText: "稍后操作"
+ cancelButtonText: "稍后操作",
+ closeOnClickModal: false
}).then(() => {
this.$router.replace(`/course/contentSettings?id=${courseId}`);
}).catch(() => {
@@ -410,7 +412,8 @@ export default {
// 更改了信息才需要提示
if (updateTime) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save()
}).catch(() => {
diff --git a/src/pages/course/contentSettings/index.vue b/src/pages/course/contentSettings/index.vue
index a2ca798..c542941 100644
--- a/src/pages/course/contentSettings/index.vue
+++ b/src/pages/course/contentSettings/index.vue
@@ -449,7 +449,8 @@ export default {
// 已经移动了顺序
if (this.moved) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.saveSort()
this.moved = false
diff --git a/src/pages/expSystem/backstage/addModel.vue b/src/pages/expSystem/backstage/addModel.vue
index 4ba4b5d..6cdd08b 100644
--- a/src/pages/expSystem/backstage/addModel.vue
+++ b/src/pages/expSystem/backstage/addModel.vue
@@ -184,7 +184,8 @@ export default {
// 更改了信息才需要提示
if ((id && updateTime > 1) || (!id && updateTime)) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.submit(this.postStatus ? 1 : 0, 1)
this.backPage()
diff --git a/src/pages/expSystem/backstage/sourceModel.vue b/src/pages/expSystem/backstage/sourceModel.vue
index 7f5e157..bd7c112 100644
--- a/src/pages/expSystem/backstage/sourceModel.vue
+++ b/src/pages/expSystem/backstage/sourceModel.vue
@@ -253,7 +253,8 @@ export default {
}
})
this.$confirm(`确定要${off ? '启用' : '禁用'}吗?`, "提示", {
- type: "warning"
+ type: "warning",
+ closeOnClickModal: false
}).then(() => {
// 本校跟系统的禁用接口不一样,系统的禁用启用接口分为两个
this.$post(this.api[isSystem ? (off ? 'demoHiddenOpen' : 'demoHiddenClose') : 'disableModelDemo'], list).then(async res => {
diff --git a/src/pages/information/addarticle/index.vue b/src/pages/information/addarticle/index.vue
index 54211f7..04153e3 100644
--- a/src/pages/information/addarticle/index.vue
+++ b/src/pages/information/addarticle/index.vue
@@ -145,7 +145,8 @@ export default {
beforeRouteLeave (to, from, next) {
if (this.updateTime) {
this.$confirm(`您所更改的内容未更新,是否更新?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save(next)
}).catch(() => {
@@ -248,7 +249,8 @@ export default {
// 更改了信息才需要提示
if (this.updateTime) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save()
}).catch(() => {
diff --git a/src/pages/information/contentManage/index.vue b/src/pages/information/contentManage/index.vue
index 083bc53..bcda3b1 100644
--- a/src/pages/information/contentManage/index.vue
+++ b/src/pages/information/contentManage/index.vue
@@ -2,10 +2,19 @@
@@ -16,96 +25,97 @@ import ContentList from "./contentList";
import Setting from '@/setting'
import { mapActions } from "vuex";
export default {
- name: "contentManage",
- components: {
- menuTree,
- ContentList
- },
- data() {
- return {
- menuList: [],
- columnId: "",
- ids: []
- };
- },
- mounted() {
- this.getMenuData();
- },
- methods: {
- ...mapActions("info", [
- "setColumnId"
- ]),
- getMenuData() {
- this.$get(this.api.queryAllColumns, {
- platformId: Setting.platformId,
- page: 1,
- size: 1000
- }).then(res => {
- this.menuList = res.columnTree
- const storeId = this.$store.state.info.columnId
- console.log("🚀 ~ file: index.vue ~ line 46 ~ getMenuData ~ storeId", storeId)
- if (this.menuList.length) {
- this.getId(this.menuList)
- this.columnId = this.menuList[0].id
- if (!storeId) {
- this.setColumnId(this.columnId)
- } else {
- this.columnId = storeId
- }
- }
- this.$nextTick(() => {
- this.$refs.column.setCurrentKey(this.columnId)
- })
- }).catch(err => {
- });
- },
- // 递归获取所有栏目id,以方便全部展开
- getId(data) {
- data.map(e => {
- this.ids.push(e.id)
- e.children.length && this.getId(e.children)
- })
- },
- setColumn(id) {
- this.columnId = id
- this.setColumnId(id)
- },
- handleSelect(key) {
- const { content } = this.$refs
- const { list, originList } = content
- // 更改了信息才需要提示
- if (JSON.stringify(list) !== JSON.stringify(originList)) {
- this.$confirm(`您已更改了文章排序,是否保存更改?`, '提示', {
- type: 'warning'
- }).then(() => {
- content.sortSubmit()
- this.setColumn(key.id)
- }).catch(() => {
- this.setColumn(key.id)
- })
+ name: "contentManage",
+ components: {
+ menuTree,
+ ContentList
+ },
+ data () {
+ return {
+ menuList: [],
+ columnId: "",
+ ids: []
+ };
+ },
+ mounted () {
+ this.getMenuData();
+ },
+ methods: {
+ ...mapActions("info", [
+ "setColumnId"
+ ]),
+ getMenuData () {
+ this.$get(this.api.queryAllColumns, {
+ platformId: Setting.platformId,
+ page: 1,
+ size: 1000
+ }).then(res => {
+ this.menuList = res.columnTree
+ const storeId = this.$store.state.info.columnId
+ console.log("🚀 ~ file: index.vue ~ line 46 ~ getMenuData ~ storeId", storeId)
+ if (this.menuList.length) {
+ this.getId(this.menuList)
+ this.columnId = this.menuList[0].id
+ if (!storeId) {
+ this.setColumnId(this.columnId)
} else {
- this.setColumn(key.id)
+ this.columnId = storeId
}
}
+ this.$nextTick(() => {
+ this.$refs.column.setCurrentKey(this.columnId)
+ })
+ }).catch(err => {
+ });
+ },
+ // 递归获取所有栏目id,以方便全部展开
+ getId (data) {
+ data.map(e => {
+ this.ids.push(e.id)
+ e.children.length && this.getId(e.children)
+ })
+ },
+ setColumn (id) {
+ this.columnId = id
+ this.setColumnId(id)
+ },
+ handleSelect (key) {
+ const { content } = this.$refs
+ const { list, originList } = content
+ // 更改了信息才需要提示
+ if (JSON.stringify(list) !== JSON.stringify(originList)) {
+ this.$confirm(`您已更改了文章排序,是否保存更改?`, '提示', {
+ type: 'warning',
+ closeOnClickModal: false
+ }).then(() => {
+ content.sortSubmit()
+ this.setColumn(key.id)
+ }).catch(() => {
+ this.setColumn(key.id)
+ })
+ } else {
+ this.setColumn(key.id)
+ }
}
+ }
};
\ No newline at end of file
diff --git a/src/pages/information/list/index.vue b/src/pages/information/list/index.vue
index fa76230..073ccd7 100644
--- a/src/pages/information/list/index.vue
+++ b/src/pages/information/list/index.vue
@@ -1,13 +1,19 @@
-
-
+
+
\ No newline at end of file
diff --git a/src/pages/match/add/index.vue b/src/pages/match/add/index.vue
index de0f19d..aa9b240 100644
--- a/src/pages/match/add/index.vue
+++ b/src/pages/match/add/index.vue
@@ -208,7 +208,8 @@ export default {
const { updateTime } = this.$refs['step' + this.step]
if (this.$refs['step' + this.step] && updateTime) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save(0, 1)
}).catch(() => {
@@ -257,7 +258,8 @@ export default {
const { updateTime } = this.$refs['step' + this.step]
if (this.step < 4 && this.$refs['step' + this.step] && updateTime) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save(0, 3)
}).catch(() => {
@@ -275,7 +277,8 @@ export default {
const { updateTime } = this.$refs['step' + this.step]
if (this.step < 4 && this.$refs['step' + this.step] && updateTime) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.save(0)
}).catch(() => {
diff --git a/src/pages/match/manage/index.vue b/src/pages/match/manage/index.vue
index 78df934..925c99c 100644
--- a/src/pages/match/manage/index.vue
+++ b/src/pages/match/manage/index.vue
@@ -134,7 +134,8 @@ export default {
const step = detail.$refs['step' + detail.step]
if (detail.step < 4 && step && step.updateTime) {
this.$confirm(`编辑的内容未保存,是否保存并且发布?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
detail.save(1, 1)
this.backOrTab(i)
diff --git a/src/pages/match/manage/matchInfo.vue b/src/pages/match/manage/matchInfo.vue
index ccddd58..e419083 100644
--- a/src/pages/match/manage/matchInfo.vue
+++ b/src/pages/match/manage/matchInfo.vue
@@ -539,7 +539,8 @@ export default {
}
}
this.$confirm(include ? `该成员已被指定参加${include},踢出后需重新指定成员参加,是否确认踢出团队?` : '确定要踢出该成员吗?', '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.$post(`${this.api.removeTheLine}?teamId=${this.info.teamId}&competitionId=${this.id}&accountId=${row.accountId}`).then(res => {
util.successMsg('移除成功')
diff --git a/src/pages/match/manage/matchProgress.vue b/src/pages/match/manage/matchProgress.vue
index 5adc7eb..030a633 100644
--- a/src/pages/match/manage/matchProgress.vue
+++ b/src/pages/match/manage/matchProgress.vue
@@ -1,223 +1,260 @@
-
-
-
-
-
- {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
- 保存
- 删除
-
-
-
-
-
-
+
+
+
+
+
+ {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 保存
+ 删除
+
+
+
+
+
+
diff --git a/src/pages/match/manage/matchRank.vue b/src/pages/match/manage/matchRank.vue
index 876c7cd..a23658c 100644
--- a/src/pages/match/manage/matchRank.vue
+++ b/src/pages/match/manage/matchRank.vue
@@ -604,7 +604,8 @@ export default {
this.$post(`${this.api.whetherToPublish}?competitionId=${this.id}&stageId=${this.active || this.stageId}&isOverallRanking=${this.active ? 0 : 1}&publicationType=${this.type}`).then(({ whetherToPublish }) => {
whetherToPublish ?
this.$confirm('排名已经发布,是否直接覆盖?', '提示', {
- type: 'success'
+ type: 'success',
+ closeOnClickModal: false
}).then(() => {
this.publishSubmit()
}).catch(() => { }) :
diff --git a/src/pages/match/manage/notice.vue b/src/pages/match/manage/notice.vue
index fac2f4f..6d79de0 100644
--- a/src/pages/match/manage/notice.vue
+++ b/src/pages/match/manage/notice.vue
@@ -1,48 +1,74 @@
-
-
-
- 新增
-
+
+
+
+ 新增
+
-
-
-
- {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.status ? '已发布' : '草稿' }}
-
-
-
-
- 编辑
- 删除
-
-
-
-
-
+
+
+
+ {{ scope.$index + (pageNo - 1) * pageSize + 1 }}
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.status ? '已发布' : '草稿' }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/project/add/index.vue b/src/pages/project/add/index.vue
index 9da6606..ab012a1 100644
--- a/src/pages/project/add/index.vue
+++ b/src/pages/project/add/index.vue
@@ -388,7 +388,8 @@ export default {
if (this.updateTime) {
if (!this.backType) {
this.$confirm(`您所更改的内容未更新,是否更新?`, '提示', {
- type: 'warning'
+ type: 'warning',
+ closeOnClickModal: false
}).then(() => {
this.next = next
this.save(this.projectManage.state)
@@ -494,7 +495,8 @@ export default {
systemChange () { // 切换系统
if (this.projectJudgmentData.length) {
this.$confirm("更换系统会清空实验任务,确认更换?", "提示", {
- type: "warning"
+ type: "warning",
+ closeOnClickModal: false
}).then(() => {
this.projectJudgmentData = [];
this.setSystemId(this.projectManage.systemId);
@@ -846,7 +848,8 @@ export default {
// 更改了信息才需要提示
if (this.updateTime) {
this.$confirm('编辑的内容未保存,是否保存?', "提示", {
- type: "warning"
+ type: "warning",
+ closeOnClickModal: false
}).then(() => {
this.save(this.projectManage.state)
}).catch(() => {
diff --git a/src/pages/setting/list/index.vue b/src/pages/setting/list/index.vue
index d0b3b65..dee0384 100644
--- a/src/pages/setting/list/index.vue
+++ b/src/pages/setting/list/index.vue
@@ -1,128 +1,140 @@
-
-
-
-
-
-
-
- 点击更换头像
-
-
+
+
+
+
+
+
+
+ 点击更换头像
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue
index 9408131..b43706d 100644
--- a/src/pages/station/preview/index.vue
+++ b/src/pages/station/preview/index.vue
@@ -933,7 +933,8 @@ export default {
this.$confirm('是否要继续上次的实验?', '提示', {
confirmButtonText: '是',
cancelButtonText: '否',
- type: 'success'
+ type: 'success',
+ closeOnClickModal: false
}).then(() => {
this.curProject = projectId
this.toSub()
diff --git a/vue.config.js b/vue.config.js
index e9d6080..79a5e4d 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -15,5 +15,6 @@ module.exports = {
assetsDir: Setting.assetsDir,
devServer: {
port: 8081 // 固定端口
- }
+ },
+ productionSourceMap: false,
}
\ No newline at end of file