diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 78ece49..eeed6d9 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -14,21 +14,20 @@ body, } body { - font-family: 'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif; + font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'microsoft yahei', arial, STHeiTi, sans-serif; font-size: 14px; } a { - text-decoration: none + text-decoration: none; } -i{ +i { font-style: normal; } li { - list-style-type:none; + list-style-type: none; } - ::-webkit-scrollbar { width: 8px; height: 8px; @@ -40,23 +39,23 @@ li { background: #d7d7d7; } .flex { - display: flex; + display: flex; } .j-between { - justify-content: space-between; + justify-content: space-between; } .a-center { - align-items: center; + align-items: center; } .m-b-10 { - margin-bottom: 10px; + margin-bottom: 10px; } -.el-table th>.cell { - font-size: 14px; +.el-table th > .cell { + font-size: 14px; } .content-box { - -webkit-transition: left .3s ease-in-out; - transition: left .3s ease-in-out; + -webkit-transition: left 0.3s ease-in-out; + transition: left 0.3s ease-in-out; background: #f0f0f0; flex: 1; } @@ -86,9 +85,9 @@ li { color: #585858; border-left: 3px solid #9278ff; } -.el-upload-list{ - width: 100%; - max-width: 400px; +.el-upload-list { + width: 100%; + max-width: 400px; } .page { position: relative; @@ -115,7 +114,7 @@ li { margin-right: 6px; font-size: 14px; line-height: 14px; - color: rgba(0, 0, 0, .65); + color: rgba(0, 0, 0, 0.65); white-space: nowrap; } @@ -123,7 +122,7 @@ li { display: flex; align-items: center; padding: 0 24px; - border-bottom: 1px solid rgba(0, 0, 0, .06); + border-bottom: 1px solid rgba(0, 0, 0, 0.06); } .tabs .item { position: relative; @@ -169,7 +168,7 @@ li { margin-bottom: 20px; } -.el-button+.el-tooltip { +.el-button + .el-tooltip { margin-left: 10px; } @@ -177,14 +176,14 @@ li { background: #f6faff; } -.orderTable td .el-input{ +.orderTable td .el-input { width: 60%; } -.orderTable td .normal{ +.orderTable td .normal { width: 90%; } -.orderTable .el-select>.el-input{ +.orderTable .el-select > .el-input { display: inline-block; } @@ -198,7 +197,7 @@ li { .move-enter-active, .move-leave-active { - transition: opacity .5s; + transition: opacity 0.5s; } .move-enter, @@ -294,159 +293,157 @@ li { min-height: 500px; } -.ms-login .el-tabs__nav-wrap::after{ +.ms-login .el-tabs__nav-wrap::after { background-color: #fff; opacity: 0; } -.ms-login .el-tabs__item{ +.ms-login .el-tabs__item { padding: 0 90px; color: #999; } -.ms-login .el-tabs__item:hover{ +.ms-login .el-tabs__item:hover { color: #000; } -.ms-login .el-tabs__item.is-active{ +.ms-login .el-tabs__item.is-active { color: #333; font-weight: bold; } -.ms-login .el-tabs__active-bar{ +.ms-login .el-tabs__active-bar { background-color: #000; - border-radius:2px; + border-radius: 2px; } -.ms-login .el-tabs__nav-scroll{ +.ms-login .el-tabs__nav-scroll { display: flex; justify-content: center; } -.ms-login .el-input__inner{ +.ms-login .el-input__inner { height: 80px; line-height: 80px; - border:1px solid rgba(220,220,220,1); - border-radius:2px; + border: 1px solid rgba(220, 220, 220, 1); + border-radius: 2px; } .el-row { margin-bottom: 20px; } -#app .el-table thead{ +#app .el-table thead { color: #fff; } -#app .el-table th{ - background-color: #9278FF!important; +#app .el-table th { + background-color: #9278ff !important; font-size: 16px; font-weight: normal; } -.el-input__inner[type=number] { - padding-right: 0; +.el-input__inner[type='number'] { + padding-right: 0; } /*flex*/ -.flex-center{ +.flex-center { display: flex; align-items: center; } -.flex-c-c{ +.flex-c-c { display: flex; align-items: center; justify-content: center; } -.flex-between{ +.flex-between { display: flex; align-items: center; justify-content: space-between; } -.flex-around{ +.flex-around { display: flex; align-items: center; justify-content: space-around; } -.flex-start-around{ +.flex-start-around { display: flex; align-items: flex-start; justify-content: center; } -.flex-end-around{ +.flex-end-around { display: flex; align-items: flex-end; justify-content: center; } -.flex-column{ +.flex-column { display: flex; align-items: center; flex-direction: column; } -.flex-start{ +.flex-start { display: flex; align-items: flex-start; } -.hr_tag{ - background-color: #9278FF; +.hr_tag { + background-color: #9278ff; width: 3px; height: 15px; margin-right: 5px; } -.user_header{ +.user_header { padding: 20px 0; border-bottom: 1px dashed #eee; } -.border-b-dashed{ +.border-b-dashed { border-bottom: 1px dashed #e3e3e3; width: 100%; height: 1px; margin-bottom: 20px; } -.shadow{ - border: 0.0625rem solid #EBEEF5; - background-color: #FFF; +.shadow { + border: 0.0625rem solid #ebeef5; + background-color: #fff; color: #303133; - -webkit-transition: .3s; - transition: .3s; + -webkit-transition: 0.3s; + transition: 0.3s; } -.shadow :hover{ +.shadow :hover { box-shadow: 0 0.125rem 0.75rem 0 rgb(0 0 0 / 10%); - } -.flex-col{ +.flex-col { display: flex; flex-direction: column; - } -.addhr_tag{ +.addhr_tag { background-color: #666; width: 6px; height: 17px; margin-right: 5px; } -.per_title span{ +.per_title span { font-size: 16px; font-weight: bold; } -.per_back{ +.per_back { margin-left: 5px; } -.per_school{ +.per_school { margin-left: 30px; } -.per_title:hover{ - cursor:pointer; +.per_title:hover { + cursor: pointer; } /* 溢出省略号 */ -.ellipsis{ +.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.userRadio .el-radio{ - margin-right: 10px!important; +.userRadio .el-radio { + margin-right: 10px !important; } -.userRadio .el-radio__input{ - display: none!important; +.userRadio .el-radio__input { + display: none !important; } .cursor { cursor: pointer; @@ -455,39 +452,39 @@ li { font-size: 12px; } .m-b-20 { - margin-bottom: 20px; + margin-bottom: 20px; } .m-r-10 { - margin-right: 10px; + margin-right: 10px; } @media (max-width: 720px) { - .el-message { - min-width: auto !important; - width: 85%; - } + .el-message { + min-width: auto !important; + width: 85%; + } } .el-tooltip__popper { - max-width: 500px !important; + max-width: 500px !important; } -.no-atTheMoment > .el-picker-panel__footer > .el-button--text:first-child{ - display: none; +.no-atTheMoment > .el-picker-panel__footer > .el-button--text:first-child { + display: none; } .tox-notifications-container { - display: none; + display: none; } -.mce-content-body:not([dir=rtl]) blockquote { - border-left: 0; - background-color: #ccc; +.mce-content-body:not([dir='rtl']) blockquote { + border-left: 0; + background-color: #ccc; } .search-wrap { - display: flex; + display: flex; } .search-wrap .el-select { - width: 140px; + width: 140px; } .search-wrap .keyword .el-input__inner { - border-left: 0; + border-left: 0; } .search-wrap .el-input__inner { - border-radius: 0; -} \ No newline at end of file + border-radius: 0; +} diff --git a/src/setting.js b/src/setting.js index 15826f8..322f4fa 100644 --- a/src/setting.js +++ b/src/setting.js @@ -11,8 +11,8 @@ if (isDev) { jumpPath = 'http://192.168.31.125:8087/' // 本地调试-需要启动本地判分点系统 host = 'http://121.37.12.51/' // host = 'https://huorantech.cn/' - // host = 'http://192.168.31.151:9000/'// 榕 - host = 'http://192.168.31.53:9000/'// 赓 + host = 'http://192.168.31.152:9000/'// 榕 + // host = 'http://192.168.31.53:9000/'// 赓 } else if (isPro) { jumpPath = 'https://www.huorantech.cn/judgmentPoint/' } diff --git a/src/utils/api.js b/src/utils/api.js index 6df6f67..8a4d64b 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -125,6 +125,7 @@ export default { updateSysModelDemo: `nakadai/nakadai/model/demo/updateSysModelDemo`, runPythonCode: `nakadai/nakadai/model/demo/runPythonCode`, getAllModelListBySys: `nakadai/nakadai/model/demo/getAllModelListBySys`, + InstitutionSourceModel: `nakadai/nakadai/model/demo/InstitutionSourceModel`, // 课程管理三级联查 courseDiscipline: `nakadai/nakadai/subject/courseDiscipline`, //课程学科类别 diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index c1ddb19..9fdd12f 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -1666,8 +1666,14 @@ + - 取消 + +
+ 产品链接 +
+ 取消 确定 @@ -1903,6 +1921,7 @@ export default { rate: '', shipVisible: false, shipContent: '', + shipInfo: '', curRow: {}, // 用于区分栏目 1实训课程 2理论课程 3职站增值应用 4实训课程(非集成)5数据前瞻 6实验工具 classificationId: 0, @@ -2569,6 +2588,7 @@ export default { options: 1, settlementPrice: orderType === 2 ? 0 : '', // 结算价 settlementPriceUnit: e.settlementPrice || 0, // 结算单价 + mallNonAssociatedLinks: e.mallNonAssociatedLinks // 产品链接 }) }; const productId = [] @@ -2830,9 +2850,27 @@ export default { // 打开填写发货信息弹框 showShip (row) { this.curRow = row - this.shipContent = row.shipContent + let val = '' + row.mallNonAssociatedLinks.forEach(e => { + val += e.urlName + ':' + e.url + '\n' + }) + this.shipInfo = val + this.shipContent = row.shipContent || val this.shipVisible = true }, + copyLink () { + // const oInput = document.createElement('input') + // oInput.value = this.shipInfo + // document.body.appendChild(oInput) + // oInput.select() + // document.execCommand('Copy') + // this.$message({ + // message: '复制成功', + // type: 'success' + // }) + // oInput.remove() + this.shipContent += this.shipInfo + }, // 发货信息弹框提交 submitShip () { this.curRow.shipContent = this.shipContent @@ -3109,4 +3147,12 @@ export default { text-overflow: ellipsis; white-space: nowrap; } +/deep/.ship-dia { + .el-dialog__body { + padding: 0 20px; + } + .ship { + cursor: pointer; + } +} diff --git a/src/views/serve/addModel.vue b/src/views/serve/addModel.vue index d7c34da..aa0d5b6 100644 --- a/src/views/serve/addModel.vue +++ b/src/views/serve/addModel.vue @@ -1,194 +1,208 @@ diff --git a/src/views/serve/backstage/model.vue b/src/views/serve/backstage/model.vue index 6ff578b..dd7119f 100644 --- a/src/views/serve/backstage/model.vue +++ b/src/views/serve/backstage/model.vue @@ -1,281 +1,325 @@ \ No newline at end of file diff --git a/src/views/serve/backstage/modelType.vue b/src/views/serve/backstage/modelType.vue index 255d7c1..1c7e74d 100644 --- a/src/views/serve/backstage/modelType.vue +++ b/src/views/serve/backstage/modelType.vue @@ -1,15 +1,21 @@ diff --git a/src/views/serve/backstage/sourceModel.vue b/src/views/serve/backstage/sourceModel.vue index 4f66dd7..c85d7d6 100644 --- a/src/views/serve/backstage/sourceModel.vue +++ b/src/views/serve/backstage/sourceModel.vue @@ -1,189 +1,234 @@ \ No newline at end of file diff --git a/src/views/serve/backstage/sourceType.vue b/src/views/serve/backstage/sourceType.vue index 381970a..f51cad9 100644 --- a/src/views/serve/backstage/sourceType.vue +++ b/src/views/serve/backstage/sourceType.vue @@ -1,175 +1,206 @@ diff --git a/src/views/shop/addProduct/index.vue b/src/views/shop/addProduct/index.vue index 11c9a95..9530a76 100644 --- a/src/views/shop/addProduct/index.vue +++ b/src/views/shop/addProduct/index.vue @@ -107,7 +107,7 @@ :key="i" :label="item.classificationName" :value="item.classificationId" - :disabled="form.mall.isAssociatedProduct && (item.classificationId !== 4 && item.classificationId !== 6)"> + :disabled="!!(form.mall.isAssociatedProduct && (item.classificationId !== 4 && item.classificationId !== 6))"> - 操作 + draggable + :allow-drop="allowDrop" + @node-drag-end="handleDrop">
    -
  • {{ data.index + 1 }}
  • +
  • + + {{ data.index + 1 }} + +
  • { + e.index = i + }) + }, // 分类标签排序 sortLabel () { const list = this.labels @@ -1345,7 +1358,7 @@ export default { uploadSuccessMini (res) { this.form.mall.appletIcon = res.data.filesResult.fileUrl; }, - beforeMiniRemove () { + handleMiniRemove () { this.form.mall.appletIcon = '' }, uploadSuccessInterface (res) { // 文件上传成功时的钩子 @@ -1353,15 +1366,18 @@ export default { }, uploadSuccessFile (res) { // 文件上传成功时的钩子 const e = res.filesResult - this.form.mallAnnex = [{ + this.form.mallAnnex.push({ mallId: this.id, filePath: e.fileUrl, fileName: e.originalFileName, name: e.originalFileName, - }] + }) + }, + beforeRemove (file, fileList) { + return this.$confirm(`确定移除 ${file.name}?`); }, - beforeFileRemove () { - this.form.mallAnnex = [] + handleFileRemove (file, fileList) { + this.form.mallAnnex = fileList }, // 界面图上传前回调 beforeUpload () { @@ -1668,7 +1684,7 @@ $avatar-width: 104px; &:nth-child(2) { position: absolute; width: 280px; - left: 100px; + left: 105px; } &:last-child { position: absolute;