模型管理

Branch_d40a2540
yujialong 2 years ago
parent 747726392c
commit a56305d8a1
  1. 19
      package-lock.json
  2. 1
      package.json
  3. 11
      src/api/index.js
  4. BIN
      src/assets/img/error.png
  5. BIN
      src/assets/img/yes.png
  6. 386
      src/components/codemirror/index.vue
  7. 355
      src/layouts/navbar/index.vue
  8. 1006
      src/pages/achievement/teach/index.vue
  9. 222
      src/pages/expSystem/backstage/addModel.vue
  10. 56
      src/pages/expSystem/backstage/compiler.vue
  11. 73
      src/pages/expSystem/backstage/index.vue
  12. 308
      src/pages/expSystem/backstage/model.vue
  13. 321
      src/pages/expSystem/backstage/modelType.vue
  14. 260
      src/pages/expSystem/backstage/sourceModel.vue
  15. 180
      src/pages/expSystem/backstage/sourceType.vue
  16. 169
      src/pages/expSystem/list/index.vue
  17. 180
      src/pages/match/manage/matchArch.vue
  18. 1245
      src/pages/match/manage/matchRank.vue
  19. 4
      src/pages/product/list/index.vue
  20. 76
      src/pages/product/show/index.vue
  21. 6
      src/pages/station/preview/index.vue
  22. 35
      src/router/modules/expSystem.js
  23. 4
      src/setting.js

19
package-lock.json generated

@ -2793,6 +2793,11 @@
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
}, },
"codemirror": {
"version": "5.65.13",
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.13.tgz",
"integrity": "sha512-SVWEzKXmbHmTQQWaz03Shrh4nybG0wXx2MEu3FO4ezbPW8IbnZEd5iGHGEffSUaitKYa3i+pHpBsSvw8sPHtzg=="
},
"collection-visit": { "collection-visit": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
@ -3852,6 +3857,11 @@
"integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
"dev": true "dev": true
}, },
"diff-match-patch": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz",
"integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw=="
},
"diffie-hellman": { "diffie-hellman": {
"version": "5.0.3", "version": "5.0.3",
"resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
@ -12618,6 +12628,15 @@
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz", "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz",
"integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==" "integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ=="
}, },
"vue-codemirror": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/vue-codemirror/-/vue-codemirror-4.0.6.tgz",
"integrity": "sha512-ilU7Uf0mqBNSSV3KT7FNEeRIxH4s1fmpG4TfHlzvXn0QiQAbkXS9lLfwuZpaBVEnpP5CSE62iGJjoliTuA8poQ==",
"requires": {
"codemirror": "^5.41.0",
"diff-match-patch": "^1.0.0"
}
},
"vue-cropperjs": { "vue-cropperjs": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/vue-cropperjs/-/vue-cropperjs-3.0.0.tgz", "resolved": "https://registry.npmjs.org/vue-cropperjs/-/vue-cropperjs-3.0.0.tgz",

@ -20,6 +20,7 @@
"px2rem-loader": "^0.1.9", "px2rem-loader": "^0.1.9",
"sortablejs": "^1.14.0", "sortablejs": "^1.14.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-codemirror": "^4.0.6",
"vue-cropperjs": "^3.0.0", "vue-cropperjs": "^3.0.0",
"vue-i18n": "^8.10.0", "vue-i18n": "^8.10.0",
"vue-pdf": "^4.2.0", "vue-pdf": "^4.2.0",

@ -388,6 +388,17 @@ export default {
// 营销推广 // 营销推广
listMarketing: `nakadai/nakadai/mall/marketing/promotion/pagingQueryList`, listMarketing: `nakadai/nakadai/mall/marketing/promotion/pagingQueryList`,
// 实验系统管理
getAllService: `nakadai/nakadai/serviceConfiguration/getAllService`,
schoolModelClassification: `nakadai/nakadai/model/reference/schoolModelClassification`,
saveAcademyModelDemo: `nakadai/nakadai/model/reference/demo/saveAcademyModelDemo`,
referenceFindById: `nakadai/nakadai/model/reference/demo/findById`,
modelFindById: `nakadai/nakadai/model/demo/findById`,
queryTheModelOfOurSchool: `nakadai/nakadai/model/reference/demo/queryTheModelOfOurSchool`,
sourceModelClassification: `nakadai/nakadai/model/category/sourceModelClassification`,
getAllModelListBySys: `nakadai/nakadai/model/demo/getAllModelListBySys`,
runPythonCode: `nakadai/nakadai/model/demo/runPythonCode`,
// 教师评语 // 教师评语
addComment: `evaluation/cevaluation/comment/addComment`, addComment: `evaluation/cevaluation/comment/addComment`,
queryComment: `evaluation/evaluation/ccomment/queryComment`, queryComment: `evaluation/evaluation/ccomment/queryComment`,

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

@ -0,0 +1,386 @@
<template>
<div class="wrap">
<div class="left">
<codemirror
v-model="codeVal"
:options="cmOption"
class="code-mirror"
@ready="ready"
ref="codemirror"
></codemirror>
<el-button
class="run btn"
type="primary"
@click="runCode"
>运行</el-button>
</div>
<div class="code-right answer">
<p class="text-wrapper">{{ runResult }}</p>
<div class="pic-wrap" v-if="picSrcList.length">
<div class="pic-item" v-for="(img, i) in picSrcList" :key="i">
<el-image
class="pic"
:src="img"
:preview-src-list="picSrcList">
</el-image>
<el-button class="download-btn btn" type="primary" size="mini" @click="downloadPic(i)">下载图片</el-button>
<a :ref="'picLink' + i" style="display: none;" download="运行结果.png" :href="img">下载图片</a>
</div>
</div>
<div class="result-right t-color" v-show="isError">
<img src="@/assets/img/yes.png" alt />运行成功
</div>
<div class="result-wrong" v-show="isError === 0">
<img src="@/assets/img/error.png" alt />
{{errLine}}行出现错误
</div>
</div>
</div>
</template>
<script>
import { codemirror } from "vue-codemirror";
import "codemirror/theme/ambiance.css"; //
import "codemirror/mode/javascript/javascript.js";
import "codemirror/mode/python/python.js";
import "codemirror/lib/codemirror.css";
// require active-line.js
import "codemirror/addon/selection/active-line.js";
// styleSelectedText
import "codemirror/addon/selection/mark-selection.js";
// hint
import "codemirror/addon/hint/show-hint.js";
import "codemirror/addon/hint/sql-hint.js";
import "codemirror/addon/hint/show-hint.css";
import "codemirror/addon/hint/javascript-hint.js";
// highlightSelectionMatches
import "codemirror/addon/scroll/annotatescrollbar.js";
import "codemirror/addon/search/matchesonscrollbar.js";
import "codemirror/addon/search/match-highlighter.js";
// keyMap
import "codemirror/mode/clike/clike.js";
import "codemirror/mode/sql/sql.js";
import "codemirror/addon/edit/matchbrackets.js";
import "codemirror/addon/comment/comment.js";
import "codemirror/addon/dialog/dialog.js";
import "codemirror/addon/dialog/dialog.css";
import "codemirror/addon/search/searchcursor.js";
import "codemirror/addon/search/search.js";
import "codemirror/keymap/sublime.js";
// foldGutter
import "codemirror/addon/fold/foldgutter.css";
import "codemirror/addon/fold/brace-fold.js";
import "codemirror/addon/fold/comment-fold.js";
import "codemirror/addon/fold/foldcode.js";
import "codemirror/addon/fold/foldgutter.js";
import "codemirror/addon/fold/indent-fold.js";
import "codemirror/addon/fold/markdown-fold.js";
import "codemirror/addon/fold/xml-fold.js";
//
import "codemirror/theme/monokai.css";
import "codemirror/theme/base16-light.css";
import { Loading } from 'element-ui';
export default {
props: ['code', 'codeId', 'projectId', 'retResult', 'readOnly'],
data() {
return {
codeVal: this.code,
runResult: '', //
isError: false, //
errLine: '', //
picSrcList: [],
loadIns: null, // loading
cmOption: {
readOnly: this.readOnly,
scrollbarStyle: "native",
tabSize: 2, // tab
styleActiveLine: true, //
lineNumbers: true, //
styleSelectedText: true,
line: true,
foldGutter: true, //
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
highlightSelectionMatches: { showToken: /\w/, annotateScrollbar: true }, //
mode: 'python',
lineWrapping: true, //
autoCloseTags: true,//
autoCloseBrackets: true,//
// hint.js options
hintOptions: {
//
completeSingle: false
},
// sublimeemacsvim
keyMap: "sublime",
matchBrackets: true,
showCursorWhenSelecting: true,
theme: "monokai" //
}
};
},
components: {
codemirror
},
watch: {
codeVal(val) {
this.$emit("update:code", val)
}
},
mounted() {
},
methods: {
//
ready() {
const code = this.$refs.codemirror.codemirror
code.setSize("auto", "calc(100vh - 370px)");
code.on('keypress', function() {
//
code.showHint()
});
},
//
runCode() {
let code = this.codeVal
if (!code) {
this.$message({
message: "警告哦,内容为空不可运行",
type: "warning"
})
} else {
this.loadIns = Loading.service({
background: 'transparent'
})
code = code.replace(/\.savefig\(([\u4e00-\u9fa5\w]*?['"])/mg, str => {
return str + Date.now()
})
// Python
this.$post(this.api.runPythonCode, {
code
}).then(res => {
const data = res.code
const photo = data.photoUrl
const result = data.runResult
this.$emit('cache') //
this.loadIns.close()
this.picSrcList = []
if (photo) this.picSrcList = photo.split(',')
let imgList = ''
let firtImg = ''
try {
imgList = eval(result)
} catch (error) {}
if (imgList && imgList.length) firtImg = imgList[0]
//
if (photo) {
this.isError = '' //
const text = result.replace(photo, '') //
this.runResult = text
this.picSrcList = photo.split(',')
} else if (imgList instanceof Array && imgList.length && typeof firtImg === 'string' && (firtImg.includes('.jpg') || firtImg.includes('.png') || firtImg.includes('img'))) {
/**
* 这段是为要下载图片的项目案例写的后端会返回图片名称的数组前端负责循环这个数组然后下载下来
* 只有该系统有这段代码因为其他7个系统没有下载图片的项目后续如果加了直接把这段代码复制过去即可
*/
imgList.map((n,i) => {
// util.downloadFile(`${i+1}.jpg`,n)
})
this.isError = 0
this.runResult = '下载完成'
} else {
this.isError = data.retResult
this.runResult = result
this.errLine = parseInt(result.substring(result.indexOf("line") + 4, result.length))
}
}).catch(res => {
this.isError = false
this.runResult = ''
this.picSrcList = []
this.loadIns.close()
res.status == 500 && this.$message.error('检测到代码里有非法代码,请检查是否有调用系统命令。')
})
}
},
//
downloadPic(i) {
this.$refs['picLink' + i][0].click()
}
}
};
</script>
<style lang="scss" scoped>
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
width: 5px;
border-radius: 6px;
background: rgba(173,173,173,.7);
}
.wrap {
display: flex;
}
.left{
position: relative;
width: calc(100% - 400px);
}
.text-wrapper {
white-space: pre-wrap;
}
/deep/.answer {
.el-tab-pane {
padding: 0 10px;
height: 340px;
overflow: hidden;
overflow-y: auto;
white-space: pre-wrap;
}
.el-dialog--center {
width: 500px;
height: 500px;
}
.el-dialog__title {
font-size: 22px;
font-weight: 500;
}
.el-tabs__nav-wrap::after {
background-color: #333;
}
.el-tabs__active-bar {
height: 0;
background-color: #fff;
}
.el-tabs__header {
background-color: #333;
}
.el-dialog--center .el-dialog__body {
padding: 0;
}
.el-tabs__item {
width: 80px;
color: #fff;
}
.el-tabs--top .el-tabs__item.is-top:nth-child(2) {
padding-left: 20px;
}
.el-tabs__item.is-active {
color: #fff !important;
background-color: #333 !important;
}
.tips-btn {
margin-top: 10px;
height: 40px;
width: 90px;
border: none;
position: absolute;
right: 0;
background: rgba(255, 49, 49, 1);
color: rgba(255, 255, 255, 1);
&:hover,
&:focus,
&:active {
background: rgba(255, 49, 49, 1);
color: rgba(255, 255, 255, 1);
}
}
}
/deep/.CodeMirror-wrap pre.CodeMirror-line,
.CodeMirror-wrap pre.CodeMirror-line-like {
height: 30px;
line-height: 30px;
}
.result-right {
background-color: rgba(43, 40, 22, 1);
}
.result-wrong {
background-color: rgba(43, 22, 22, 1);
color: #f00;
}
.result-wrong,
.result-right {
position: absolute;
left: 20px;
right: 20px;
display: flex;
align-items: center;
bottom: 10px;
padding: 5px 10px;
img {
width: 40px;
height: 40px;
margin-top: 5px;
margin-right: 10px;
}
}
.code-right {
width: 500px;
color: #fff;
background: #1b1b1b;
display: inline-block;
position: relative;
overflow-x: auto;
p {
font-size: 18px;
margin: 10px;
position: absolute;
width: calc(100% - 14px);
top: 0;
bottom: -8px;
overflow: auto;
}
}
.pic-wrap {
position: absolute;
left: 0;
right: 0;
bottom: 5px;
display: flex;
max-width: calc(100% - 50px);
margin: 0 auto;
text-align: center;
overflow: auto;
.pic-item {
margin: 0 5px 5px;
&:only-child {
.pic {
width: 80%;
}
}
}
.pic {
display: block;
width: 100px;
margin: 0 auto 10px;
}
}
.code-mask{
z-index: 2;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.run{
z-index:99;
position:absolute;
right: 50px;
bottom:15px;
width:100px;
color:#fff;
}
.download-btn{
color:#fff;
}
/deep/.answer-wrap{
pre{
width: 100%;
white-space: pre-wrap;
}
img{
max-width: 100%;
}
}
</style>

@ -1,31 +1,47 @@
<template> <template>
<div> <div>
<el-menu v-if="menuRefresh" class="sidebar-el-menu" :default-active="active" background-color="#324157" text-color="#bfcbd9" active-text-color="#9278FF" unique-opened mode="horizontal" @select="menuSelect"> <el-menu v-if="menuRefresh"
<template v-for="item in menus"> class="sidebar-el-menu"
<template v-if="item.subs"> :default-active="active"
<el-submenu :index="item.index" :key="item.index"> background-color="#324157"
<template slot="title"> text-color="#bfcbd9"
<i :class="item.icon"></i> active-text-color="#9278FF"
<span slot="title">{{ item.title }}</span> unique-opened
</template> mode="horizontal"
<template v-for="subItem in item.subs"> @select="menuSelect">
<el-submenu v-if="subItem.subs" :index="subItem.index" :key="subItem.index"> <template v-for="item in menus">
<template slot="title">{{ subItem.title }}</template> <template v-if="item.subs">
<el-menu-item v-for="(threeItem,i) in subItem.subs" :key="i" :index="threeItem.index">{{ threeItem.title }}</el-menu-item> <el-submenu :index="item.index"
</el-submenu> :key="item.index">
<el-menu-item v-else :index="subItem.index" :key="subItem.index">{{ subItem.title }}</el-menu-item> <template slot="title">
</template> <i :class="item.icon"></i>
</el-submenu> <span slot="title">{{ item.title }}</span>
</template>
<template v-else>
<el-menu-item :index="item.index" :key="item.index">
<i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span>
</el-menu-item>
</template>
</template> </template>
</el-menu> <template v-for="subItem in item.subs">
</div> <el-submenu v-if="subItem.subs"
:index="subItem.index"
:key="subItem.index">
<template slot="title">{{ subItem.title }}</template>
<el-menu-item v-for="(threeItem,i) in subItem.subs"
:key="i"
:index="threeItem.index">{{ threeItem.title }}</el-menu-item>
</el-submenu>
<el-menu-item v-else
:index="subItem.index"
:key="subItem.index">{{ subItem.title }}</el-menu-item>
</template>
</el-submenu>
</template>
<template v-else>
<el-menu-item :index="item.index"
:key="item.index">
<i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span>
</el-menu-item>
</template>
</template>
</el-menu>
</div>
</template> </template>
<script> <script>
@ -33,151 +49,156 @@ import { mapState, mapActions } from "vuex";
import Setting from '@/setting' import Setting from '@/setting'
import addRoutes from '@/libs/route/addRoutes' import addRoutes from '@/libs/route/addRoutes'
export default { export default {
data() { data () {
return { return {
active: this.$route.path, active: this.$route.path,
defaultMenus: [ defaultMenus: [
{ {
icon: "el-icon-s-platform", icon: "el-icon-s-platform",
index: "/product/list", index: "/product/list",
title: "产品中心" title: "产品中心"
}, },
{ {
icon: "el-icon-s-platform", icon: "el-icon-s-platform",
index: "/station/list", index: "/station/list",
title: "实验台" title: "实验台"
}, },
{ {
icon: "el-icon-user", icon: "el-icon-user",
index: "/student/list", index: "/student/list",
title: "学生管理" title: "学生管理"
}, },
{ {
icon: "el-icon-receiving", icon: "el-icon-receiving",
index: "/evaluation/list", index: "/evaluation/list",
title: "测评管理" title: "测评管理"
}, },
{ {
icon: "el-icon-takeaway-box", icon: "el-icon-takeaway-box",
index: "/assessment/list", index: "/assessment/list",
title: "考核管理" title: "考核管理"
},
{
icon: "el-icon-collection",
index: "/achievement/list",
title: "成绩管理",
},
{
icon: "el-icon-news",
index: "/course/list",
title: "理论课程管理"
},
{
icon: "el-icon-document",
index: "/information/list",
title: "资讯管理"
},
{
icon: "el-icon-school",
index: "/match/list",
title: "赛事管理"
},
{
icon: "el-icon-school",
index: "/activity/list",
title: "创业活动"
},
{
icon: "el-icon-postcard",
index: "/project/list",
title: "实验项目管理"
},
{
icon: "el-icon-setting",
index: "/system/list",
title: "系统设置"
},
{
icon: "el-icon-pie-chart",
index: "/screen",
title: "数据看板"
}
],
menus: [],
actives: {
dashboard: ["add"],
achievement: ["experiment", "experimentVir", "experimentTeach", "addexperiment", "addexperimentoptions", "showExperiment", "showExperimentoption", "showExperimentoptions"],
project: ["addproject", "program", "programOption", "programOptions"],
backstage: ["report"]
},
menuRefresh: 1
};
},
computed: {
...mapState('auth', [
'routes'
])
},
watch: {
"$route"(to, from) {
let actives = this.actives;
for (let i in this.actives) {
if (actives[i].includes(this.$route.name)) this.active = `/${i}/list`;
}
let arr=this.$route.path.split("/");
let name = `/${arr[1]}/list`
this.active = name;
}
},
created() {
this.getPer()
},
methods: {
...mapActions('user', [
'logout'
]),
...mapActions("info", [
"setTabsName", "setColumnId"
]),
//
getPer() {
this.$get(`${this.api.getUserRolesPermissionMenu}?platformId=${Setting.platformId}`).then(res => {
const routes = res.permissionMenu[0].children
addRoutes(routes)
this.initMenu()
}).catch(({ status }) => {
status === 500 && this.logout()
})
}, },
initMenu() { {
// store icon: "el-icon-collection",
if (Setting.dynamicRoute) { index: "/achievement/list",
const { routes } = this title: "成绩管理",
const menus = []
this.defaultMenus.map(e => {
routes.find(n => n.path === e.index) && menus.push(e)
});
this.menus = menus
} else {
this.menus = this.defaultMenus
}
}, },
// {
menuSelect(path) { icon: "el-icon-news",
this.setTabsName('1') index: "/course/list",
this.setColumnId('') title: "理论课程管理"
this.$store.commit('match/setCache', null) },
if (path === '/screen') { {
let arr=this.$route.path.split("/"); icon: "el-icon-document",
let name = `/${arr[1]}/list` index: "/information/list",
this.active = name; title: "资讯管理"
window.open(this.$router.resolve(path).href) },
location.reload() {
} else { icon: "el-icon-school",
this.$router.push(path) index: "/match/list",
} title: "赛事管理"
},
{
icon: "el-icon-school",
index: "/activity/list",
title: "创业活动"
},
{
icon: "el-icon-c-scale-to-original",
index: "/expSystem/list",
title: "实验系统管理"
},
{
icon: "el-icon-postcard",
index: "/project/list",
title: "实验项目管理"
},
{
icon: "el-icon-setting",
index: "/system/list",
title: "系统设置"
},
{
icon: "el-icon-pie-chart",
index: "/screen",
title: "数据看板"
} }
],
menus: [],
actives: {
dashboard: ["add"],
achievement: ["experiment", "experimentVir", "experimentTeach", "addexperiment", "addexperimentoptions", "showExperiment", "showExperimentoption", "showExperimentoptions"],
project: ["addproject", "program", "programOption", "programOptions"],
backstage: ["report"]
},
menuRefresh: 1
};
},
computed: {
...mapState('auth', [
'routes'
])
},
watch: {
"$route" (to, from) {
let actives = this.actives;
for (let i in this.actives) {
if (actives[i].includes(this.$route.name)) this.active = `/${i}/list`;
}
let arr = this.$route.path.split("/");
let name = `/${arr[1]}/list`
this.active = name;
}
},
created () {
this.getPer()
},
methods: {
...mapActions('user', [
'logout'
]),
...mapActions("info", [
"setTabsName", "setColumnId"
]),
//
getPer () {
this.$get(`${this.api.getUserRolesPermissionMenu}?platformId=${Setting.platformId}`).then(res => {
const routes = res.permissionMenu[0].children
addRoutes(routes)
this.initMenu()
}).catch(({ status }) => {
status === 500 && this.logout()
})
},
initMenu () {
// store
if (Setting.dynamicRoute) {
const { routes } = this
const menus = []
this.defaultMenus.map(e => {
routes.find(n => n.path === e.index) && menus.push(e)
});
this.menus = menus
} else {
this.menus = this.defaultMenus
}
},
//
menuSelect (path) {
this.setTabsName('1')
this.setColumnId('')
this.$store.commit('match/setCache', null)
if (path === '/screen') {
let arr = this.$route.path.split("/");
let name = `/${arr[1]}/list`
this.active = name;
window.open(this.$router.resolve(path).href)
location.reload()
} else {
this.$router.push(path)
}
} }
}
}; };
</script> </script>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,222 @@
<template>
<div class="wrap">
<el-card shadow="hover"
class="m-b-20">
<div class="flex-between">
<el-page-header @back="back"
:content="isDetail ? '查看源模型' : (id ? '编辑源模型' : '新增源模型')"></el-page-header>
<div v-if="!isDetail">
<el-button type="primary"
round
v-preventReClick
@click="submit(1)">发布</el-button>
<el-button v-if="!postStatus"
type="primary"
round
v-preventReClick
@click="submit(0)">草稿</el-button>
</div>
</div>
</el-card>
<el-card shadow="hover">
<el-form label-width="80px"
:disabled="isDetail">
<div class="item name">
<label>模型名称</label>
<el-input placeholder="请输入模型名称"
v-model="form.modelName"
maxlength="25"
style="width: 400px"></el-input>
</div>
<div class="item name">
<label>模型分类</label>
<el-cascader :options="categoryList"
v-model="categoryIdCus"
:props="categoryProps"
clearable>
</el-cascader>
</div>
<div class="item code">
<label>模型代码</label>
<codemirror :key="codeKey"
:code.sync="form.modelDemo"
:readOnly="isDetail"></codemirror>
</div>
</el-form>
</el-card>
</div>
</template>
<script>
import codemirror from '@/components/codemirror'
export default {
components: { codemirror },
data () {
return {
systemId: +this.$route.query.systemId,
categoryId: +this.$route.query.categoryId,
id: +this.$route.query.id,
postStatus: +this.$route.query.postStatus,
isDetail: Boolean(this.$route.query.show), //
isModel: Boolean(this.$route.query.model), //
categoryIdCus: [],
form: {
modelName: '',
modelDemo: ''
},
categoryList: [],
categoryProps: {
checkStrictly: true,
label: 'categoryName',
value: 'id'
},
codeKey: 1,
submiting: false,
updateTime: 0
};
},
watch: {
// ,
form: {
handler () {
this.updateTime++
},
deep: true
},
},
mounted () {
this.getType()
},
methods: {
//
async getData () {
// /
const res = await this.$post(`${this.api[this.isModel ? 'referenceFindById' : 'modelFindById']}?id=${this.id}`)
const { data } = res
const { modelName, categoryId, modelDemo } = data
this.form = {
modelName,
modelDemo
}
this.handleId(this.categoryList, categoryId)
this.codeKey++
},
// id
handleId (list, id, parentId = []) {
list.map(e => {
// idid
if (id === e.id) {
parentId.shift() // id
this.categoryIdCus = [...parentId, e.id]
} else {
e.children && this.handleId(e.children, id, [...parentId, e.id])
}
})
},
//
getType () {
this.$post(this.api.sourceModelClassification).then(res => {
const { data } = res
// children
const handleLeaf = list => {
list.map(e => {
if (e.children.length) {
handleLeaf(e.children)
} else {
delete e.children
}
})
}
handleLeaf(data)
this.categoryList = data[0].children
if (this.id) {
this.getData()
} else {
this.handleId(data, this.categoryId)
}
}).catch(res => { })
},
//
submit (postStatus, fromBack) {
if (this.submiting) return false
const { modelName, categoryId, modelDemo } = this.form
const categoryIdCus = this.categoryIdCus
const id = this.id
if (!modelName) return this.$message.error('请输入模型名称')
if (categoryIdCus[0] === 1) return this.$message.error('请选择模型分类')
if (postStatus) {
if (!modelDemo) return this.$message.error('请输入模型代码')
}
this.submiting = true
const data = {
categoryId: categoryIdCus[categoryIdCus.length - 1],
modelName,
modelDemo,
postStatus,
systemId: this.systemId
}
if (id) {
data.id = id
this.$post(this.api.updateSysModelDemo, data).then(res => {
this.$message.success('编辑成功')
fromBack || this.$router.back()
}).catch(res => {
this.submiting = false
})
} else {
this.$post(this.api.saveAcademyModelDemo, data).then(res => {
this.$message.success('新增成功')
fromBack || this.$router.back()
}).catch(res => {
this.submiting = false
})
}
},
//
backPage () {
this.$router.back()
},
//
back () {
const id = this.id
const updateTime = this.updateTime
//
if ((id && updateTime > 1) || (!id && updateTime)) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', {
type: 'warning'
}).then(() => {
this.submit(this.postStatus ? 1 : 0, 1)
this.backPage()
}).catch(() => {
this.backPage()
})
} else {
this.backPage()
}
}
}
};
</script>
<style lang="scss" scoped>
.item {
display: flex;
margin-bottom: 20px;
label {
padding: 0 15px 0 20px;
}
&.name {
align-items: center;
label {
text-align: right;
}
}
&.code {
flex-direction: column;
label {
margin-bottom: 15px;
}
}
}
</style>

@ -0,0 +1,56 @@
<template>
<div class="wrap">
<div class="line">
<span class="field">功能</span>
<span class="field">操作</span>
</div>
<div class="line">
<span class="field">粘贴代码</span>
<div class="field">
<el-switch v-model="isOpen"
:active-text="isOpen ? '关闭' : '启用'"
:active-value="0"
:inactive-value="1"
style="margin: 0 10px 0 10px"
@change="switchOff(scope.row)"></el-switch>
</div>
</div>
</div>
</template>
<script>
export default {
data () {
return {
systemId: this.$route.query.systemId,
isOpen: 0
};
},
mounted () { },
methods: {
switchOff (row) {
// this.$get(`${this.api.updateIsOpen}?isOpen=${row.ccupationlabOpen}&projectId=${row.projectId}&platformId=${this.queryData.platformId}`).then(res => {
// util.successMsg("");
// this.getData();
// }).catch(err => {
// console.log(err);
// });
},
}
};
</script>
<style lang="scss" scoped>
.wrap {
padding: 30px;
}
.line {
display: flex;
align-items: center;
margin-bottom: 20px;
text-align: center;
.field {
width: 100px;
}
}
</style>

@ -0,0 +1,73 @@
<template>
<div>
<el-card shadow="hover"
class="m-b-20">
<el-page-header :content="'系统后台 / '+ $route.query.name"
@back="back"></el-page-header>
</el-card>
<div class="page"
style="padding: 0">
<div class="tabs">
<a class="item"
v-for="(item,index) in tabs"
:key="index"
:class="{active: index == active}"
@click="tabChange(index)">{{ item }}</a>
</div>
<model v-if="active == 'model'"></model>
<sourceModel v-else-if="active == 'sourceModel'"></sourceModel>
<compiler v-else-if="active == 'compiler'"></compiler>
</div>
</div>
</template>
<script>
import model from "./model";
import sourceModel from "./sourceModel";
import compiler from "./compiler";
export default {
data () {
return {
active: this.$route.query.type || 'model',
tabs: {
model: "模型列表管理",
sourceModel: "源模型管理",
compiler: '编译器管理'
}
};
},
computed: {
},
components: {
model,
sourceModel,
compiler
},
created () { },
methods: {
tabChange (index) {
this.active = index
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
page: 1,
type: index,
categoryId: ''
}
})
},
back () {
this.$router.push('list')
}
}
};
</script>
<style lang="scss" scoped>
.page {
min-height: calc(100vh - 250px);
}
</style>

@ -0,0 +1,308 @@
<template>
<div class="wrap">
<div class="side">
<org ref="tree" @initData="initData" @getData="getData"></org>
</div>
<div class="right">
<h6 class="p-title">筛选</h6>
<div class="tool">
<ul class="filter">
<li>
<el-input placeholder="请输入模型名称" prefix-icon="el-icon-search" v-model.trim="keyword" clearable></el-input>
</li>
</ul>
<div>
<el-button type="primary" round @click="add">导入模型</el-button>
<el-button type="primary" round @click="batchDel">批量移除</el-button>
</div>
</div>
<el-table :data="listData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"></el-table-column>
<el-table-column type="index" label="序号" width="55" align="center"></el-table-column>
<el-table-column prop="modelName" label="模型名称" align="center"></el-table-column>
<el-table-column v-if="isTopLevel" prop="categoryName" label="分类" width="150" align="center"></el-table-column>
<el-table-column prop="createTime" label="导入时间" align="center"></el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
{{ scope.row.isOpen ? '禁用' : '启用' }}
</template>
</el-table-column>
<el-table-column label="操作" width="200" align="center">
<template slot-scope="scope">
<el-button type="text" @click="show(scope.row)">查看</el-button>
<el-button type="text" @click="del(scope.row)">移除</el-button>
</template>
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background layout="total, prev, pager, next" :current-page="page" @current-change="handleCurrentChange" :total="total"></el-pagination>
</div>
</div>
<el-dialog title="请选择需要导入的模型" :visible.sync="modelVisible" width="500px" class="dialog" :close-on-click-modal="false">
<div class="model-wrap">
<el-tree
v-if="modelData.length"
:data="modelData" v-loading="modelLoading"
ref="model"
default-expand-all
show-checkbox
node-key="id"
:props="{children: 'children', label: 'categoryName', isLeaf: 'leaf'}">
</el-tree>
<div class="none" v-else>暂无可导入的模型</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="modelVisible = false"> </el-button>
<el-button type="primary" @click="submit"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import org from "./modelType"
export default {
data() {
return {
systemId: this.$route.query.systemId,
isTopLevel: true, //
listData: [],
keyword: '',
page: +this.$route.query.page || 1,
pageSize: 10,
total: 0,
multipleSelection: [],
modelVisible: false,
modelLoading: false,
modelData: [],
submiting: false
};
},
components: {
org
},
watch: {
keyword: function(val) {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
this.initData()
}, 500)
}
},
mounted() {},
methods: {
getData() {
const curNode = this.$refs.tree.$refs.tree.getCurrentNode() //
this.isTopLevel = !curNode.level && curNode.categoryName === '全部'
//
if (this.isTopLevel) {
this.$post(this.api.getAllModelList, {
modelName: this.keyword,
pageNum: this.page,
pageSize: this.pageSize,
systemId: this.systemId
}).then(res => {
this.listData = res.data.records
this.total = res.data.total
}).catch(res => {})
} else {
this.$post(this.api.referenceDemoList, {
modelName: this.keyword,
pageNum: this.page,
pageSize: this.pageSize,
categoryId: curNode.id
}).then(res => {
this.listData = res.data.records
this.total = res.data.total
}).catch(res => {})
}
},
initData() {
this.$refs.table.clearSelection()
this.page = 1
this.getData()
},
//
add() {
if (!this.$refs.tree.orgList.length) return this.$message.error('请先添加模型分类')
if (this.isTopLevel) return this.$message.error('请选择子分类进入导入模型')
this.modelVisible = true
this.modelLoading = true
//
this.$post(this.api.getAllModelList, {
pageNum: 1,
pageSize: 10000,
systemId: this.systemId
}).then(res => {
const modelList = res.data.records
//
this.$post(this.api.sourceModelClassification).then(res => {
let { data } = res
const promises = []
const addType = list => {
list.map((e, i) => {
// promise
promises.push(new Promise((resolve,reject) => {
//
this.$post(this.api.sysModelDemoList, {
pageNum: 1,
pageSize: 10000,
categoryId: e.id
}).then(res => {
const { records } = res.data
const modelChildren = []
// copyIdid
records.map(n => {
if (!modelList.find(e => e.copyId === n.id)) {
n.categoryName = n.modelName
modelChildren.push(n)
}
})
// disabled
if (modelChildren.length) {
e.children = [...e.children, ...modelChildren]
} else if (records.length) {
e.disabled = true
}
resolve()
}).catch(res => {
reject()
})
}))
e.children && e.children.length && addType(e.children)
})
}
addType(data)
// disabledtrue
const handleType = list => {
return list.filter((e, i) => {
return !e.disabled
}).map(e => {
if (e.children) {
e.children = handleType(e.children)
}
return e
})
}
Promise.all(promises).then(_ => {
data = handleType(data)
this.modelData = (data.length && data[0].children && data[0].children.length) ? data : []
this.modelLoading = false
}).catch(res => {})
}).catch(res => {})
}).catch(res => {})
},
//
//
show(row) {
this.$router.push(`/addModel?categoryId=${this.$refs.tree.$refs.tree.getCurrentKey()}&id=${row.id}&show=1&model=1`)
},
//
del(row) {
this.$confirm("确定要删除吗?", "提示", {
type: "warning"
}).then(() => {
this.$post(this.api.deleteReferenceDemo, [row.id]).then(res => {
this.$message.success("删除成功")
this.getData()
}).catch(res => {})
}).catch(() => {})
},
handleSelectionChange(val) {
this.multipleSelection = val
},
//
batchDel() {
if (this.multipleSelection.length) {
this.$confirm("确定要删除吗?", "提示", {
type: "warning"
}).then(() => {
let ids = this.multipleSelection.map(e => e.id)
this.$post(this.api.deleteReferenceDemo, ids).then(res => {
this.$refs.table.clearSelection()
this.$message.success("删除成功")
this.getData()
}).catch(res => {})
}).catch(() => {})
} else {
this.$message.error("请先选择模型 !")
}
},
handleCurrentChange(val) {
this.page = val
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
page: val
}
})
this.getData()
},
//
submit() {
if (this.submiting) return false
const data = []
const systemId = this.systemId
if (this.$refs.model) {
const list = this.$refs.model.getCheckedNodes() //
const categoryId = this.$refs.tree.$refs.tree.getCurrentKey() //
if (!list.length) return this.$message.error('请选择模型')
this.submiting = true
list.map(e => {
// categoryId
e.categoryId && data.push({
systemId,
categoryId,
copyId: e.id
})
})
this.$post(this.api.saveReferenceDemo, data).then(res => {
this.modelVisible = false
this.initData()
setTimeout(() => {
this.submiting = false
}, 2000)
}).catch(res => {
this.submiting = false
})
} else {
this.submiting = false
this.modelVisible = false
}
}
}
};
</script>
<style lang="scss" scoped>
.wrap {
display: flex;
min-height: calc(100vh - 310px);
padding: 0 24px;
.side {
width: 300px;
padding: 24px 10px 24px 0;
margin-right: 24px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.right {
width: calc(100% - 374px);
padding: 24px;
}
}
.el-input__inner{
height: 32px;
}
.model-wrap {
max-height: 400px;
overflow: auto;
.none {
text-align: center;
color: #8b8b8b;
}
}
</style>

@ -0,0 +1,321 @@
<template>
<div>
<div>
<div class="front-switch">
<el-switch v-model="modelIsShow"
:active-value="0"
:inactive-value="1"
active-text="内置模型按钮前台展示"
@change="changeModelStatus"></el-switch>
</div>
<div class="flex-between m-b-20">
<el-button type="text"
icon="el-icon-refresh"
@click="syncModel">同步原始模型列表</el-button>
<el-button type="text"
@click="addType(0)">添加</el-button>
</div>
<org-tree v-if="orgList.length"
:data="orgList"
default-expand-all
ref="tree"
node-key="id"
highlight-current
:expand-on-click-node="false"
@node-click="getSingle"
:props="{children: 'children', label: 'categoryName', isLeaf: 'leaf'}">
<span class="custom-tree-node"
slot-scope="{ node, data }">
<span style="display: inline-block; margin-right: 20px">{{ node.label }}</span>
<span>
<el-button type="text"
icon="el-icon-edit-outline"
@click="editType(data)">
</el-button>
<el-button type="text"
icon="el-icon-circle-plus-outline"
@click="addType(node, data)">
</el-button>
<el-button type="text"
icon="el-icon-delete"
@click="delType(data)">
</el-button>
</span>
</span>
</org-tree>
<div class="none"
v-else>暂无数据请点击添加按钮添加模型分类</div>
</div>
<el-dialog :title="Form.id ? '编辑分类' : '新增分类'"
:visible.sync="typeVisible"
width="24%"
center
@close="closeDia"
:close-on-click-modal="false">
<el-form ref="Form"
:model="Form"
:rules="rules">
<el-form-item prop="categoryName">
<el-input placeholder="请输入分类名称"
v-model="Form.categoryName"></el-input>
</el-form-item>
</el-form>
<span slot="footer"
class="dialog-footer">
<el-button @click="typeVisible = false"> </el-button>
<el-button type="primary"
@click="submit"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import OrgTree from "@/components/org-tree/src/tree";
export default {
props: ["Data"],
data () {
return {
systemId: this.$route.query.systemId,
modelIsShow: false,
orgList: [],
typeVisible: false,
Form: {
id: '',
parentId: '',
categoryName: '',
level: ''
},
rules: {
categoryName: [
{ required: true, message: "请输入分类名称", trigger: "blur" }
]
}
};
},
components: {
OrgTree
},
mounted () {
this.getType()
this.getModelStatus()
},
methods: {
//
getType () {
this.$post(`${this.api.modelClassList}?systemId=${this.systemId}`).then(res => {
const { data } = res
this.orgList = data
data.length && this.$nextTick(() => {
const categoryId = this.$route.query.categoryId
this.$refs.tree.setCurrentKey(categoryId || data[0].id)
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
categoryId: this.$refs.tree.getCurrentKey()
}
}).catch(err => { })
this.$emit('getData')
})
}).catch(res => { })
},
//
getModelStatus () {
this.$post(`${this.api.checkIsShowBySystemId}?systemId=${this.systemId}`).then(res => {
this.modelIsShow = res.isShow // 0 1
}).catch(res => { })
},
//
changeModelStatus (val) {
this.$post(`${this.api.modifyIsShowState}?systemId=${this.systemId}&isShow=${val}`).then(res => { }).catch(res => { })
},
getSingle () {
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
categoryId: this.$refs.tree.getCurrentKey()
}
}).catch(err => { })
this.$emit('initData')
},
syncModelData () {
//
this.$post(`${this.api.delModelInfoBySystemId}?systemId=${this.systemId}`).then(res => {
this.$post(`${this.api.synchronizationMdel}?systemId=${this.systemId}`).then(res => {
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
categoryId: ''
}
})
this.getType()
})
}).catch(() => { })
},
syncModel () {
if (this.orgList.length) {
this.$confirm('同步后当前的组织架构将会被删除,是否继续?', '提示', {
type: 'warning'
}).then(() => {
this.syncModelData()
}).catch(() => { })
} else {
this.syncModelData()
}
},
//
async addData (id) {
//
this.$post(this.api.sourceModelClassification).then(res => {
const { data } = res
const systemId = this.systemId
const promises = []
//
const addType = async (list, refId) => {
for (const e of list) {
// promise
// promises.push(new Promise(async (resolve, reject) => {
//
await this.$post(this.api.saveReferenceCategory, {
id: '',
categoryName: e.categoryName,
systemId,
level: e.level,
parentId: refId || id,
founder: 1
}).then(async res => {
const referenceCategoryId = res.referenceCategoryId // idparentId
//
promises.push(new Promise((resolve1, reject1) => {
this.$post(this.api.sysModelDemoList, {
pageNum: 1,
pageSize: 10000,
categoryId: e.id
}).then(res => {
let { records } = res.data
records = records.filter(e => e.postStatus && !e.isOpen) //
if (records.length) {
const modelData = []
//
records.map(e => {
modelData.push({
systemId,
categoryId: referenceCategoryId,
copyId: e.id
})
})
//
this.$post(this.api.saveReferenceDemo, modelData).then(res => {
// resolve()
resolve1()
}).catch(res => {
// reject()
reject1()
})
} else {
// resolve()
}
e.children = [...e.children, ...records]
}).catch(res => {
// reject()
})
}))
//
this.$nextTick(() => {
e.children && e.children.length && addType(e.children, res.referenceCategoryId)
})
}).catch(res => {
// reject()
})
// }))
}
}
addType(data[0].children, id)
Promise.all(promises).then(_ => {
setTimeout(this.getType, 500)
})
}).catch(res => { })
},
//
addType (node, data) {
this.typeVisible = true
this.Form.parentId = data ? data.id : 0
this.Form.level = node ? node.level : 0
},
//
editType (data) {
this.Form.id = data.id
this.Form.parentId = data ? data.parentId : 0
this.Form.categoryName = data.categoryName
this.typeVisible = true
},
//
submit () {
this.$refs['Form'].validate((valid) => {
if (valid) {
const form = this.Form
const data = {
id: form.id,
parentId: form.parentId,
categoryName: form.categoryName,
systemId: this.systemId,
founder: 1
}
if (data.id) {
this.$post(this.api.updateModelClass, data).then(res => {
this.$message.success("编辑成功")
this.typeVisible = false
this.getType()
}).catch(res => { })
} else {
data.level = form.level
this.$post(this.api.saveReferenceCategory, data).then(res => {
this.$message.success("添加成功")
this.typeVisible = false
this.getType()
}).catch(res => { })
}
}
})
},
closeDia () {
this.$refs.Form.resetFields()
this.Form = {
id: '',
parentId: '',
categoryName: ''
}
},
//
delType (item) {
this.$confirm("确定要删除分类吗?", "提示", {
type: "warning"
}).then(() => {
this.$post(`${this.api.deleteModelClass}?categoryId=${item.id}`).then(res => {
this.$message.success("删除成功")
this.$emit('initData')
this.getType()
}).catch(res => { })
}).catch(() => { })
}
}
};
</script>
<style lang="scss" scoped>
.front-switch {
padding-bottom: 10px;
margin-bottom: 5px;
border-bottom: 1px solid #f0f0f0;
}
.none {
margin-top: 20px;
text-align: center;
color: #909399;
font-size: 12px;
}
</style>

@ -0,0 +1,260 @@
<template>
<div class="wrap">
<div class="side">
<org ref="tree"
@initData="initData"
@getData="getData"></org>
</div>
<div class="right">
<h6 class="p-title">筛选</h6>
<div class="tool">
<ul class="filter">
<li>
<el-input placeholder="请输入模型名称"
prefix-icon="el-icon-search"
v-model.trim="keyword"
clearable></el-input>
</li>
</ul>
<div>
<el-button type="primary"
round
@click="add">新增模型</el-button>
<el-button type="primary"
round
@click="batchDel">批量删除</el-button>
<el-button type="primary"
round
@click="batchOff(1)">批量禁用</el-button>
<el-button type="primary"
round
@click="batchOff(0)">批量开启</el-button>
</div>
</div>
<el-table :data="listData"
class="table"
ref="table"
stripe
header-align="center"
@selection-change="handleSelectionChange">
<el-table-column type="selection"
width="55"
align="center"></el-table-column>
<el-table-column type="index"
label="序号"
width="55"
align="center"></el-table-column>
<el-table-column prop="modelName"
label="模型名称"
align="center"></el-table-column>
<el-table-column v-if="isTopLevel"
prop="categoryName"
label="分类"
width="150"
align="center"></el-table-column>
<el-table-column prop="modifyName"
label="编辑人"
align="center"></el-table-column>
<el-table-column prop="updateTime"
label="最新编辑时间"
width="150"
align="center"></el-table-column>
<el-table-column prop="workNumber"
label="状态"
width="100"
align="center">
<template slot-scope="scope">
{{ scope.row.postStatus ? '已发布' : '草稿' }}
</template>
</el-table-column>
<el-table-column label="操作"
width="230">
<template slot-scope="scope">
<el-button type="text"
@click="show(scope.row)">查看</el-button>
<el-button type="text"
@click="edit(scope.row)">编辑</el-button>
<el-button type="text"
@click="del(scope.row)">删除</el-button>
<el-switch v-if="scope.row.postStatus"
v-model="scope.row.isOpen"
:active-value="0"
:inactive-value="1"
style="margin: 0 10px 0 5px"
:active-text="scope.row.isOpen ? '禁用' : '启用'"
@change="switchOff($event,scope.row,scope.$index)"></el-switch>
</template>
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background
layout="total, prev, pager, next"
:current-page="page"
@current-change="handleCurrentChange"
:total="total"></el-pagination>
</div>
</div>
</div>
</template>
<script>
import org from "./sourceType"
export default {
data () {
return {
systemId: this.$route.query.systemId,
isTopLevel: true, //
listData: [],
keyword: "",
page: +this.$route.query.page || 1,
pageSize: 10,
total: 0,
multipleSelection: []
};
},
components: {
org
},
watch: {
keyword: function (val) {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
this.initData()
}, 500)
}
},
mounted () {
},
methods: {
//
getData () {
const curNode = this.$refs.tree.$refs.tree.getCurrentNode() //
this.isTopLevel = !curNode.level
//
if (!curNode.level) {
this.$post(this.api.getAllModelListBySys, {
modelName: this.keyword,
pageNum: this.page,
pageSize: this.pageSize
}).then(res => {
this.listData = res.data.records
this.total = res.data.total
}).catch(res => { })
} else {
this.$post(this.api.queryTheModelOfOurSchool, {
modelName: this.keyword,
pageNum: this.page,
pageSize: this.pageSize,
categoryId: curNode.id,
systemId: this.systemId
}).then(res => {
this.listData = res.data.records
this.total = res.data.total
}).catch(res => { })
}
},
initData () {
this.$refs.table.clearSelection()
this.page = 1
this.getData()
},
//
add () {
this.$router.push(`addModel?categoryId=${this.$refs.tree.$refs.tree.getCurrentKey()}&systemId=${this.systemId}`)
},
//
batchDel () {
if (this.multipleSelection.length) {
//
let ids = this.multipleSelection.map(e => e.id)
this.$confirm("确定要删除吗?", "提示", {
type: "warning"
}).then(() => {
this.$post(this.api.deleteSysModelDemo, ids).then(res => {
this.$message.success('删除成功')
this.getData()
}).catch(res => { })
}).catch(() => { })
} else {
this.$message.error("请先选择模型 !")
}
},
//
batchOff (isOpen) {
const off = isOpen === 0
if (this.multipleSelection.length) {
//
let ids = this.multipleSelection.map(e => e.id)
this.$confirm(`确定要${off ? '启用' : '禁用'}吗?`, "提示", {
type: "warning"
}).then(() => {
this.$post(`${this.api.bulkDisable}?isOpen=${isOpen}`, ids).then(res => {
this.$message.success(`${off ? '启用' : '禁用'}成功`)
this.getData()
}).catch(res => { })
}).catch(() => { })
} else {
this.$message.error("请先选择模型 !")
}
},
//
show (row) {
this.$router.push(`/addModel?categoryId=${this.$refs.tree.$refs.tree.getCurrentKey()}&id=${row.id}&show=1`)
},
//
edit (row) {
this.$router.push(`/addModel?categoryId=${this.$refs.tree.$refs.tree.getCurrentKey()}&id=${row.id}&postStatus=${row.postStatus}`)
},
del (row) {
this.$confirm("确定要删除吗?", "提示", {
type: "warning"
}).then(() => {
this.$post(this.api.deleteSysModelDemo, [row.id]).then(res => {
this.$message.success('删除成功')
this.getData()
}).catch(res => { })
}).catch(() => { })
},
switchOff (val, row, index) {
this.$post(`${this.api.bulkDisable}?isOpen=${val}`, [row.id]).then(res => {
this.$message.success(val ? '禁用成功' : '启用成功')
}).catch(res => { })
},
handleSelectionChange (val) {
this.multipleSelection = val
},
handleCurrentChange (val) {
this.page = val
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
page: val
}
})
this.getData()
}
}
};
</script>
<style lang="scss" scoped>
.wrap {
display: flex;
padding: 0 24px;
.side {
width: 300px;
padding: 24px 10px 24px 0;
margin-right: 24px;
border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.right {
width: calc(100% - 374px);
padding: 24px;
}
}
.el-input__inner {
height: 32px;
}
</style>

@ -0,0 +1,180 @@
<template>
<div>
<div>
<org-tree :data="orgList"
default-expand-all
ref="tree"
node-key="id"
highlight-current
:expand-on-click-node="false"
@node-click="getSingle"
:props="{children: 'children', label: 'categoryName', isLeaf: 'leaf'}">
<span class="custom-tree-node"
slot-scope="{ node, data }">
<span style="display: inline-block; margin-right: 20px">{{ node.label }}</span>
<span>
<el-button v-if="node.level > 1"
type="text"
icon="el-icon-edit-outline"
@click="editType(data)">
</el-button>
<el-button type="text"
icon="el-icon-circle-plus-outline"
@click="addType(node, data)">
</el-button>
<el-button v-if="node.level > 1"
type="text"
icon="el-icon-delete"
@click="delType(data)">
</el-button>
</span>
</span>
</org-tree>
</div>
<el-dialog :title="Form.id ? '编辑分类' : '新增分类'"
:visible.sync="typeVisible"
width="24%"
center
@close="closeDia"
:close-on-click-modal="false">
<el-form ref="Form"
:model="Form"
:rules="rules">
<el-form-item prop="categoryName">
<el-input placeholder="请输入分类名称"
v-model="Form.categoryName"></el-input>
</el-form-item>
</el-form>
<span slot="footer"
class="dialog-footer">
<el-button @click="typeVisible = false"> </el-button>
<el-button type="primary"
@click="submit"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import OrgTree from "@/components/org-tree/src/tree";
export default {
props: ["Data"],
data () {
return {
systemId: this.$route.query.systemId,
orgList: [],
typeVisible: false,
Form: {
id: '',
parentId: '',
categoryName: '',
level: ''
},
rules: {
categoryName: [
{ required: true, message: "请输入分类名称", trigger: "blur" }
]
}
};
},
components: {
OrgTree
},
mounted () {
this.getType()
},
methods: {
getType () {
this.$post(`${this.api.schoolModelClassification}?systemId=${this.systemId}&type=1`).then(res => {
const { data } = res
this.orgList = data
data.length && this.$nextTick(() => {
const categoryId = this.$route.query.categoryId
this.$refs.tree.setCurrentKey(categoryId || data[0].id)
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
categoryId: this.$refs.tree.getCurrentKey()
}
}).catch(err => { })
this.$emit('getData')
})
}).catch(res => { })
},
getSingle () {
this.$router.push({
path: 'backstage',
query: {
...this.$route.query,
categoryId: this.$refs.tree.getCurrentKey()
}
}).catch(err => { })
this.$emit('initData')
},
//
addType (node, data) {
this.typeVisible = true
this.Form.parentId = data ? data.id : 0
this.Form.level = node ? node.level : 0
},
//
editType (data) {
this.Form.id = data.id
this.Form.parentId = data ? data.parentId : 0
this.Form.categoryName = data.categoryName
this.typeVisible = true
},
//
submit () {
this.$refs['Form'].validate((valid) => {
if (valid) {
const form = this.Form
const data = {
id: form.id,
parentId: form.parentId,
categoryName: form.categoryName,
systemId: this.systemId
}
if (data.id) {
this.$post(this.api.updateSourceModelCategory, data).then(res => {
this.$message.success("编辑成功")
this.typeVisible = false
this.getType()
}).catch(res => { })
} else {
data.level = form.level
this.$post(this.api.categorySave, data).then(res => {
this.$message.success("添加成功")
this.typeVisible = false
this.getType()
}).catch(res => { })
}
}
})
},
closeDia () {
this.$refs.Form.resetFields()
this.Form = {
id: '',
parentId: '',
categoryName: ''
}
},
//
delType (item) {
this.$confirm("确定要删除分类吗?", "提示", {
type: "warning"
}).then(() => {
this.$post(`${this.api.deleteSourceModelCategory}?categoryId=${item.id}`).then(res => {
this.$message.success("删除成功")
this.$emit('initData')
this.getType()
}).catch(res => { })
}).catch(() => { })
}
}
};
</script>
<style lang="scss" scoped>
</style>

@ -0,0 +1,169 @@
<template>
<div>
<div class="page">
<h6 class="p-title">筛选</h6>
<div class="tool mul">
<ul class="filter">
<li>
<label>系统类型</label>
<el-select v-model="systemType"
clearable
placeholder="请选择系统类型"
@change="initData">
<el-option v-for="(item,index) in systemTypeList"
:key="index"
:label="item.label"
:value="item.value"></el-option>
</el-select>
</li>
<li>
<el-input placeholder="请输入系统名称"
prefix-icon="el-icon-search"
v-model.trim="systemSearch"
clearable></el-input>
</li>
</ul>
</div>
<el-table :data="systemData"
class="table"
stripe
header-align="center">
<el-table-column type="index"
width="100"
label="序号"
align="center">
</el-table-column>
<el-table-column prop="systemName"
label="系统名称"
align="center"></el-table-column>
<el-table-column prop="type"
label="系统类型"
align="center">
<template slot-scope="scope">
{{ systemTypeKeys[scope.row.type] }}
</template>
</el-table-column>
<el-table-column prop="state"
label="系统状态"
align="center">
<template slot-scope="scope">
{{ systemStatusKeys[scope.row.state] }}
</template>
</el-table-column>
<el-table-column prop="payamount"
label="系统后台"
align="center">
<template slot-scope="scope">
<el-button type="text"
@click="toBackstage(scope.row)"
v-if="scope.row.systemId !== '11'"
v-auth="'/configure:系统后台进入'">进入</el-button>
</template>
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background
@current-change="handleCurrentChange"
layout="total, prev, pager, next"
:total="totals">
</el-pagination>
</div>
</div>
</div>
</template>
<script>
import Setting from "@/setting";
export default {
data () {
return {
systemAttribution: "",
systemType: "",
systemSearch: "",
searchTimer: null,
systemData: [{}],
totals: 0,
systemBelongKeys: {
1: '外部产品',
0: '内部系统'
},
systemTypeList: [
{
label: "编程类",
value: 0
},
{
label: "流程类",
value: 1
}
],
systemTypeKeys: {
0: '编程类',
1: '流程类'
},
systemStatusKeys: {
0: '运行中',
1: '默认'
},
pageNo: +this.$route.query.page || 1,
pageSize: 10
};
},
watch: {
systemSearch: function (val) {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
this.initData();
}, 500);
}
},
mounted () {
this.getData();
},
methods: {
initData () {
this.pageNum = 1;
this.getData();
},
getData () {
let data = {
belong: this.systemAttribution,
type: this.systemType,
systemName: this.systemSearch,
pageNum: this.pageNo,
pageSize: this.pageSize,
supplierId: ''
};
this.$post(this.api.getAllService, data).then(res => {
this.systemData = res.serviceList.records;
this.totals = res.serviceList.total;
}).catch(res => {
});
},
handleCurrentChange (val) {
this.pageNo = val;
this.$router.push(`list?page=${val}`)
this.getData();
},
edit (row) {
this.$router.push('configure');
},
//
toBackstage (row) {
this.$router.push(`backstage?systemId=${row.systemId}&show=1&name=${row.systemName}`)
},
}
};
</script>
<style lang="scss" scoped>
.card {
min-height: calc(100vh - 300px);
}
.mag {
margin-right: 20px;
}
</style>

@ -1,108 +1,114 @@
<template> <template>
<!-- 报名人员 --> <!-- 报名人员 -->
<div class="page-content" style="padding: 24px"> <div class="page-content"
<el-collapse v-model="curStep"> style="padding: 24px">
<el-collapse-item v-for="(item, i) in list" :key="i" :title="item.stageName" :name="item.stageId"> <el-collapse v-if="list.length"
<div class="line"> v-model="curStep">
<span>比赛方式{{ item.methodName }}</span> <el-collapse-item v-for="(item, i) in list"
<span>比赛形式{{ item.competitionType ? '团队赛' : '个人赛' }}</span> :key="i"
<span>赛制{{ item.ruleName }}</span> :title="item.stageName"
<span>状态{{ item.status }}</span> :name="item.stageId">
<span>竞赛起止时间{{ item.startTime + ' ~ ' + item.endTime }}</span> <div class="line">
<div> <span>比赛方式{{ item.methodName }}</span>
<el-button type="primary" @click="toRank(item, i)">排名</el-button> <span>比赛形式{{ item.competitionType ? '团队赛' : '个人赛' }}</span>
<el-button @click="toArch(item)">成绩管理</el-button> <span>赛制{{ item.ruleName }}</span>
</div> <span>状态{{ item.status }}</span>
<span>竞赛起止时间{{ item.startTime + ' ~ ' + item.endTime }}</span>
<div>
<el-button type="primary"
@click="toRank(item, i)">排名</el-button>
<el-button @click="toArch(item)">成绩管理</el-button>
</div> </div>
</el-collapse-item> </div>
</el-collapse> </el-collapse-item>
</div> </el-collapse>
</div>
</template> </template>
<script> <script>
import util from "@/libs/util"; import util from "@/libs/util";
import Const from '@/const/match' import Const from '@/const/match'
export default { export default {
name: "matchArch", name: "matchArch",
data() { data () {
return { return {
id: +this.$route.query.id, id: +this.$route.query.id,
list: [], list: [],
form: {}, form: {},
timer: null, timer: null,
curStep: [] curStep: []
}; };
},
mounted () {
this.$once('hook:beforeDestroy', function () {
clearInterval(this.timer)
})
this.getData()
},
methods: {
getData () {
this.$post(`${this.api.getCompetition}?competitionId=${this.id}`).then(({ competition }) => {
this.form = competition
this.timer = setInterval(this.handleStatus, 1000)
this.getArch()
}).catch(err => { })
}, },
mounted() { getArch () {
this.$once('hook:beforeDestroy', function() { this.$post(this.api.detailsOfCompetitionStage, {
clearInterval(this.timer) pageNum: 1,
}) pageSize: 100,
this.getData() contestId: this.id,
}).then(({ page }) => {
const list = page.records
list.map(e => {
e.methodName = Const.methods.find(n => n.id === e.method).name
e.ruleName = Const.rules.find(n => n.id === e.rule).name
})
this.curStep = list.map(e => e.stageId)
this.list = list
}).catch(res => { });
}, },
methods: { //
getData() { handleStatus () {
this.$post(`${this.api.getCompetition}?competitionId=${this.id}`).then(({ competition }) => { const now = new Date()
this.form = competition this.form.competitionStage.map(e => {
this.timer = setInterval(this.handleStatus, 1000) const startTime = new Date(e.startTime)
this.getArch() const endTime = new Date(e.endTime)
}).catch(err => {}) const item = this.list.find(n => n.stageId == e.stageId)
}, if (item) {
getArch() { if (now < startTime) {
this.$post(this.api.detailsOfCompetitionStage, { this.$set(item, 'status', '未开始')
pageNum: 1, } else if (now >= startTime && now <= endTime) {
pageSize: 100, this.$set(item, 'status', '比赛中')
contestId: this.id, } else if (now > endTime) {
}).then(({ page }) => { this.$set(item, 'status', '已完成')
const list = page.records
list.map(e => {
e.methodName = Const.methods.find(n => n.id === e.method).name
e.ruleName = Const.rules.find(n => n.id === e.rule).name
})
this.curStep = list.map(e => e.stageId)
this.list = list
}).catch(res => {});
},
//
handleStatus() {
const now = new Date()
this.form.competitionStage.map(e => {
const startTime = new Date(e.startTime)
const endTime = new Date(e.endTime)
const item = this.list.find(n => n.stageId == e.stageId)
if (item) {
if (now < startTime) {
this.$set(item, 'status', '未开始')
} else if (now >= startTime && now <= endTime) {
this.$set(item, 'status', '比赛中')
} else if (now > endTime) {
this.$set(item, 'status', '已完成')
}
} }
}) }
}, })
// },
toRank(row, i) { //
this.$router.push(`rank?id=${this.id}&stageId=${row.stageId}&index=${i}&method=${row.method}&competitionType=${row.competitionType}&rule=${row.rule}`) toRank (row, i) {
}, this.$router.push(`rank?id=${this.id}&stageId=${row.stageId}&index=${i}&method=${row.method}&competitionType=${row.competitionType}&rule=${row.rule}`)
// },
toArch(row) { //
this.$router.push(`archList?id=${this.id}&stageId=${row.stageId}&method=${row.method}&competitionType=${row.competitionType}`) toArch (row) {
} this.$router.push(`archList?id=${this.id}&stageId=${row.stageId}&method=${row.method}&competitionType=${row.competitionType}`)
} }
}
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/.el-collapse-item__header { /deep/.el-collapse-item__header {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
} }
.line { .line {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
span { span {
margin-right: 30px; margin-right: 30px;
} }
} }
</style> </style>

File diff suppressed because it is too large Load Diff

@ -163,7 +163,7 @@ export default {
data () { data () {
const that = this const that = this
return { return {
carouselHeight: '350px', carouselHeight: '533px',
banners: [], banners: [],
timer: null, timer: null,
curTab: '', curTab: '',
@ -304,7 +304,7 @@ export default {
} }
}, },
mounted () { mounted () {
this.carouselHeight = parseInt(window.innerWidth / 5.48) + 'px' this.carouselHeight = parseInt(window.innerWidth / 3.6) + 'px'
this.getBanner() this.getBanner()
this.getSubject() this.getSubject()
this.getLabel() this.getLabel()

@ -9,15 +9,22 @@
</el-card> </el-card>
<div class="inner"> <div class="inner">
<div class="top"> <div class="top">
<div v-if="form.interfaceDiagrams && height" <div class="pics"
class="pics" v-if="form.mall.coverDrawing">
:style="{height: form.interfaceDiagrams.length === 1 ? height: 'auto'}"> <el-image :class="['cover', {full: !form.interfaceDiagrams}]"
<el-image class="pic" :src="form.mall.coverDrawing"
v-for="(pic, i) in form.interfaceDiagrams" :preview-src-list="form.pics">
:key="i"
:src="pic"
:preview-src-list="form.interfaceDiagrams">
</el-image> </el-image>
<div v-if="form.interfaceDiagrams"
class="interface">
<div class="pic"
v-for="(pic, i) in form.interfaceDiagrams"
:key="i">
<el-image :src="pic"
:preview-src-list="form.pics">
</el-image>
</div>
</div>
</div> </div>
<div class="right" <div class="right"
id="fields"> id="fields">
@ -184,7 +191,9 @@ export default {
], ],
form: { form: {
classificationIds: [], classificationIds: [],
mall: {}, mall: {
coverDrawing: ''
},
goodsRes: {} goodsRes: {}
}, },
chapterList: [], chapterList: [],
@ -229,9 +238,12 @@ export default {
getData () { getData () {
this.$get(`${this.api.detailsOfGoods}?mallId=${this.id}`).then(res => { this.$get(`${this.api.detailsOfGoods}?mallId=${this.id}`).then(res => {
const e = res.orderDetails const e = res.orderDetails
// + e.pics = [e.mall.coverDrawing]
e.interfaceDiagrams = [e.mall.coverDrawing] if (e.mall.interfaceDiagram) {
if (e.mall.interfaceDiagram) e.interfaceDiagrams.push(...e.mall.interfaceDiagram.split(',').slice(0, 3)) const pics = e.mall.interfaceDiagram.split(',').slice(0, 3)
e.pics.push(...pics)
e.interfaceDiagrams = pics
}
this.form = e this.form = e
this.chapterList = '' this.chapterList = ''
e.mall.associatedProduct && this.getChapter() e.mall.associatedProduct && this.getChapter()
@ -316,7 +328,7 @@ export default {
.wrap { .wrap {
background: #f3f6fa; background: #f3f6fa;
.inner { .inner {
width: 1154px; width: 1146px;
margin: 0 auto; margin: 0 auto;
} }
.top { .top {
@ -325,31 +337,37 @@ export default {
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
.pics { .pics {
width: 436px; display: flex;
margin-right: 24px; flex-wrap: wrap;
width: 502px;
margin-right: 20px;
.cover {
width: 370px;
height: 278px;
margin-right: 10px;
border-radius: 8px;
overflow: hidden;
&.full {
width: 100%;
}
}
.pic { .pic {
width: 140px; width: 114px;
height: 62px; height: 86px;
margin-right: 8px; margin-bottom: 10px;
border-radius: 8px; border-radius: 8px;
&:first-child { overflow: hidden;
.el-image {
width: 100%; width: 100%;
height: 192px; height: 100%;
margin-bottom: 12px;
} }
&:last-child { &:last-child {
margin-right: 0; margin-bottom: 0;
}
&:only-child {
// max-height: 266px;
// height: auto;
height: 100%;
margin: 0;
} }
} }
} }
.right { .right {
width: 646px; width: 592px;
overflow: hidden; overflow: hidden;
} }
h6 { h6 {

@ -176,6 +176,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="text-right"> <div class="text-right">
<el-button @click="showNoteAdd = false">取消</el-button>
<el-button type="primary" <el-button type="primary"
@click="submitNote">保存</el-button> @click="submitNote">保存</el-button>
</div> </div>
@ -875,7 +876,7 @@ $height: 700px;
margin-right: 10px; margin-right: 10px;
} }
&:hover { &:hover {
background-color: #528adf; background-color: #ac89fd;
} }
&.active { &.active {
background-color: $main-color; background-color: $main-color;
@ -911,7 +912,6 @@ $height: 700px;
} }
.list { .list {
height: calc(700px - 70px); height: calc(700px - 70px);
overflow-y: auto;
padding: 24px 16px; padding: 24px 16px;
background: #fff; background: #fff;
.title { .title {
@ -966,7 +966,7 @@ $height: 700px;
} }
.chapters { .chapters {
margin-top: 16px; margin-top: 16px;
max-height: calc(100% - 53px); max-height: calc(100% - 138px);
overflow: auto; overflow: auto;
} }
.chapter { .chapter {

@ -0,0 +1,35 @@
import BasicLayout from "@/layouts/home";
const meta = {};
const pre = "expSystem-";
export default {
path: "/expSystem",
name: "expSystem",
redirect: {
name: `${pre}list`
},
meta,
component: BasicLayout,
children: [
{
name: `${pre}list`,
path: `list`,
component: () => import("@/pages/expSystem/list"),
meta: { title: "实验系统管理" }
},
{
name: `${pre}backstage`,
path: `backstage`,
component: () => import("@/pages/expSystem/backstage"),
meta: { title: "系统后台" }
},
{
name: `${pre}addModel`,
path: `addModel`,
component: () => import("@/pages/expSystem/backstage/addModel"),
meta: { title: "新增源模型" }
}
]
};

@ -26,7 +26,7 @@ if (isPro) {
uploadURL = `http://121.37.12.51/` uploadURL = `http://121.37.12.51/`
host = "http://121.37.12.51/"; // 中台测试服 host = "http://121.37.12.51/"; // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服 // host = 'https://www.occupationlab.com/' // 正式服
// host = "http://192.168.31.151:9000/"; // 榕 host = "http://192.168.31.152:9000/"; // 榕
// host = 'http://192.168.31.52:9000/'; // 赓 // host = 'http://192.168.31.52:9000/'; // 赓
} }
@ -87,7 +87,7 @@ const Setting = {
// 相同路由,不同参数间进行切换,是否强力更新 // 相同路由,不同参数间进行切换,是否强力更新
sameRouteForceUpdate: false, sameRouteForceUpdate: false,
// 是否使用动态路由(即角色权限,开启了的话就会取后端返回的权限树来显示头部导肮和页面按钮) // 是否使用动态路由(即角色权限,开启了的话就会取后端返回的权限树来显示头部导肮和页面按钮)
dynamicRoute: true, dynamicRoute: false,
// 文件上传 // 文件上传
upload: { upload: {
apiURL: uploadURL, apiURL: uploadURL,

Loading…
Cancel
Save