样式优化

master
yujialong 6 months ago
parent dae24e7cf7
commit eb85cf815f
  1. 7
      src/App.vue
  2. BIN
      src/assets/logo.png
  3. 2
      src/main.js
  4. 41
      src/styles/index.scss
  5. 0
      src/util/local.js
  6. 16
      src/util/rem.js
  7. 300
      src/views/Home.vue
  8. 239
      src/views/Program.vue
  9. 140
      src/views/Transaction.vue

@ -1,9 +1,5 @@
<template>
<div id="app">
<!-- <div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div> -->
<router-view />
</div>
</template>
@ -32,13 +28,16 @@ export default {
/* background-color: #f8f7f7; */
height: 100%;
}
body {
margin: 0;
background-color: #f8f7f7;
}
/deep/.el-tree-node__content {
height: 20px !important;
}
#nav {
padding: 30px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

@ -12,7 +12,7 @@ import {
put
} from './utils/http';
import api from './utils/api';
import './util/rem'
import '@/styles/index.scss'
Vue.use(ElementUI);

@ -0,0 +1,41 @@
.pagination {
margin: 20px 0;
text-align: right;
button,
.number {
color: rgba(0, 0, 0, 0.65) !important;
background-color: transparent !important;
border: 1px solid rgba(0, 0, 0, 0.15) !important;
border-radius: 4px !important;
}
button i {
color: #333;
}
.active {
color: #fff !important;
background-color: #9278ff !important;
}
}
.p-title {
padding-left: 5px;
margin: 0 0 24px;
line-height: 1;
font-size: 14px;
color: #585858;
border-left: 3px solid #9278ff;
}
::-webkit-scrollbar {
width: 12px;
height: 8px;
}
::-webkit-scrollbar-thumb {
width: 5px;
border-radius: 6px;
background: #d7d7d7;
}

@ -1,16 +0,0 @@
// rem等比适配配置文件
// 基准大小
const baseSize = 16
// 设置 rem 函数
function setRem () {
// 当前页面宽度相对于 1920宽的缩放比例,可根据自己需要修改。
const scale = document.documentElement.clientWidth / 1920
// 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整)
document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px'
}
// 初始化
setRem()
// 改变窗口大小时重新设置 rem
window.onresize = function () {
setRem()
}

@ -1,35 +1,18 @@
<template>
<div class="content">
<div class="header flex">
<i class="el-icon-arrow-left" @click="back" style="cursor:pointer">
<span>Back</span>
</i>
<p>{{ systemName }} 判分点设置</p>
</div>
<div class="footer">
<div class="footer_h">
<div class="black" style="float: left"></div>
<p style="float: left">判分点列表</p>
</div>
<div class="flex footer_h">
<div style="width: 300px;float: left">
<el-input placeholder="请输入判分点名称" style="height: 33px;width:100%" prefix-icon="el-icon-search"
<div class="wrap">
<el-card shadow="hover">
<el-page-header content="判分点设置" @back="back"></el-page-header>
<div class="tools">
<el-input placeholder="请输入判分点名称" prefix-icon="el-icon-search" size="small" style="width: 300px;"
v-model="keyword" clearable></el-input>
</div>
<div style="float: right">
<el-button class="button" style="height: 33px;line-height: 0px" @click="HomepageJump()">新增</el-button>
<el-button class="button" style="height: 33px;line-height: 0px" @click="deletes()">批量删除</el-button>
<el-button v-if="systemId == 19" class="button" style="height: 33px;line-height: 0px"
@click="batchCopy">批量复制</el-button>
<div>
<el-button type="primary" size="small" round @click="toAdd">新增</el-button>
<el-button type="primary" size="small" round @click="batchDel">批量删除</el-button>
<el-button v-if="systemId == 19" type="primary" size="small" round @click="batchCopy">批量复制</el-button>
</div>
</div>
<div>
<el-row>
<el-col :span="24">
<el-card shadow="hover">
<el-table :data="tableData" :cell-style="rowClass" :header-cell-style="headClass" :stripe="true"
header-align="center" @selection-change="handleSelectionChange">
<el-table ref="table" class="list" :data="tableData" :cell-style="rowClass" :header-cell-style="headClass"
size="small" :stripe="true" header-align="center" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column type="index" label="序号" width="80" align="center">
@ -43,7 +26,6 @@
</div>
</template>
</el-table-column>
<el-table-column prop="operate" label="操作" align="center">
<template slot-scope="scope">
<el-button v-if="systemId == 19" @click="copy(scope.row)" type="text" size="small">复制</el-button>
@ -58,25 +40,20 @@
</template>
</el-table-column>
</el-table>
</el-card>
</el-col>
</el-row>
<!-- 分页 -->
<div class="block">
<div class="pagination">
<el-pagination background @current-change="handleCurrentChange" :current-page="pageNum" :page-size="10"
layout="total,prev, pager, next, jumper" :total="dataTotal"></el-pagination>
</div>
</div>
</div>
</el-card>
<el-dialog title="复制" :visible.sync="copyVisible" width="500px" center :close-on-click-modal="false">
<el-form label-width="90px" v-loading="beforeCopying">
<el-form-item v-if="curRow" prop="name" label="判分点名称">
<el-input size="small" placeholder="请输入判分点名称" v-model="form.name"></el-input>
</el-form-item>
<el-form-item prop="checkpointId" label="关联关卡">
<el-select size="small" v-model="form.checkpointId" placeholder="请选择关联关卡">
<el-form-item prop="checkpointId" label="复制至关卡">
<el-select size="small" v-model="form.checkpointId" placeholder="请选择要复制至的关卡">
<el-option v-for="(item, i) in checkpoints" :key="i" :label="item.customsPassName"
:value="item.checkpointId">
</el-option>
@ -100,7 +77,7 @@ export default {
keyword: '',
searchTimer: null,
tableData: [],
dataTotal: 0, // ()
dataTotal: 0,
pageNum: 1,
pageSize: 10,
currentPage: 1,
@ -124,7 +101,8 @@ export default {
keyword: function (val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
this.pageNum = 1;
this.$refs.table.clearSelection()
this.pageNum = 1
this.initData()
}, 500)
},
@ -142,6 +120,7 @@ export default {
},
methods: {
handleCurrentChange (val) { //
this.$refs.table.clearSelection()
this.pageNum = val;
this.initData();
},
@ -172,17 +151,14 @@ export default {
} else {
this.$message.error(res.message);
}
}).catch(err => {
console.log(err);
});
}).catch(err => { });
},
//
handleSelectionChange (val) {
console.log(val)
this.multipleSelection = val;
},
//
deletes () {
batchDel () {
let bcIdList = [];
let nameList = [];
let lcIdList = [];
@ -226,16 +202,9 @@ export default {
if (this.nameList.length === this.tableData.length && this.pageNum > 1) {
this.handleCurrentChange(this.pageNum - 1)
}
}).catch(() => {
this.$message.info("已取消删除");
});
}).catch(() => { });
} else {
this.$alert('请选择需要删除的判分点', '提示', {
confirmButtonText: '好的',
callback: action => {
}
});
this.$message.error('请选择数据')
}
},
getProgrammingClassData (params) { //
@ -246,31 +215,20 @@ export default {
});
},
getCHProgrammingClassData () {
let systemId = this.$route.query.systemId
let userId = this.$route.query.userId
let pageNum = this.$route.query.pageNum
let pageSize = this.$route.query.pageSize
let queryName = this.$route.query.queryName
let userIdList = this.$route.query.userIdList
this.$post(`${this.api.QueryPointOfJudgement}?systemId=${systemId}&userId=${userId}&pageNum=${pageNum}&pageSize=${pageSize}&queryName=${queryName}&userIdList=${userIdList}`).then(res => {
const { query } = this.$route
this.$post(`${this.api.QueryPointOfJudgement}?systemId=${query.systemId}&userId=${query.userId}&pageNum=${query.pageNum}&pageSize=${query.pageSize}&queryName=${query.queryName}&userIdList=${query.userIdList}`).then(res => {
this.tableData = res.message.records;
this.dataTotal = res.message.total;
}).catch(err => {
console.log(err);
});
}).catch(err => { });
},
HomepageJump () { //
if (this.isProcess) {
//
this.$router.push(`Transaction?isAdd=true&systemId=${this.systemId}`);
} else {
//
this.$router.push(`program?isAdd=true&systemId=${this.systemId}`);
}
//
toAdd () {
this.$router.push(`${this.isProcess ? 'Transaction' : 'program'}?isAdd=true&systemId=${this.systemId}`)
},
//
batchCopy () {
if (this.multipleSelection.length) {
//
this.form = {
name: '',
checkpointId: '',
@ -278,7 +236,21 @@ export default {
this.curRow = null
this.copyVisible = true
} else {
this.$message.warning("请先选择数据 !");
//
this.$confirm('当前未选中任何数据,是否需要复制当前列表的全部数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
const res = await this.$post(this.api.queryAllJudgmentPoint, {
name: this.keyword,
pageNum: 1,
pageSize: 1000,
systemId: this.systemId
})
this.multipleSelection = res.message.records
this.batchCopy()
}).catch(() => { })
}
},
//
@ -430,182 +402,40 @@ export default {
</script>
<style lang="scss" scoped>
/deep/ .ql-toolbar {
height: 0;
padding: 0;
border-bottom: 0;
}
//
.footer /deep/ .el-pagination span:not([class*='suffix']),
.el-pagination button {
font-size: 16px;
margin-right: 30px;
}
.footer /deep/ .el-pagination {
text-align: right;
margin: 20px 0 0 0;
.wrap {
padding: 20px;
}
/deep/ .el-button {
//line-height: 33px;
//height: 33px;
}
.footer {
background-color: #ffffff;
margin-top: 10px;
padding: 10px 20px 20px 20px;
}
.footer_h {
position: relative;
height: 50px;
line-height: 50px;
}
.footer_h .black {
width: 8px;
height: 18px;
background-color: #333;
margin-top: 15px;
}
.footer_h p {
padding-left: 10px;
// padding-right: 980px;
font-size: 14px;
font-weight: 600;
margin: 0;
}
//
.footer /deep/ .el-textarea__inner {
height: 60px;
width: 540px;
resize: none;
border: 1px solid #9278ff;
font-size: 12px;
border-radius: 5px;
}
.footer /deep/ .el-textarea__inner:hover {
border: 1px solid #9278ff;
}
.footer /deep/ .el-table th.is-leaf,
.el-table td {
border-bottom: none;
}
.footer /deep/ .el-table--group::after,
.el-table--border::after,
.el-table::before {
background: rgba(255, 255, 255, 1);
}
//
/deep/ ::-webkit-scrollbar {
width: 6px; //
height: 6px; //
}
//
/deep/ ::-webkit-scrollbar-thumb {
background-color: #9278ff;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 5px #dddddd;
}
/deep/ ::-webkit-scrollbar-track {
/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px #dddddd;
border-radius: 0;
background: #dddddd;
.tools {
display: flex;
justify-content: space-between;
margin: 20px 0;
}
.footer /deep/ .el-card__body {
/deep/ .ql-toolbar {
height: 0;
padding: 0;
border-bottom: 0;
}
.footer /deep/ .el-card {
border: none;
}
.footer /deep/ .el-table th {
font-size: 14px;
font-family: Microsoft YaHei;
color: rgba(255, 255, 255, 1);
background-color: #9278ff;
}
.footer /deep/ .el-table--striped .el-table__body tr.el-table__row--striped td {
background-color: #f5f2ff;
}
.footer /deep/ .el-button--text {
padding-right: 20px;
color: #9278ff;
}
.footer /deep/ .el-button--text:focus,
.el-button--text:hover {
color: #9278ff;
}
.button {
margin: 7px;
border: none;
background-color: #9278ff;
color: #ffffff;
border-radius: 20px;
float: right;
}
.button:focus {
outline: 0;
}
.header /deep/ [class*=' el-icon-'],
[class^='el-icon-'] {
line-height: 3;
padding-left: 10px;
}
/deep/.list.el-table {
border-radius: 8px;
border: 1px solid rgba(0, 0, 0, 0.06);
border-bottom: 0;
.header {
display: flex;
background-color: #ffffff;
height: 50px;
.cell {
font-size: 12px;
line-height: 50px;
font-weight: 600;
line-height: 35px;
}
.header span {
font-size: 16px;
font-weight: 600;
padding-left: 5px;
}
th {
background: #9278ff !important;
.header p {
.cell {
color: #fff;
font-size: 14px;
padding-left: 20px;
margin: 0;
font-weight: normal;
}
.flex {
//display: flex;
justify-content: flex-start;
}
.flex-end {
//display: flex;
justify-content: flex-end;
}
.content {
position: relative;
top: 10px;
}
</style>

@ -1,180 +1,107 @@
<template>
<!-- 编程类 -->
<div class="content">
<div class="wrap">
<el-card shadow="hover">
<div class="header">
<div>
<i class="back el-icon-arrow-left"
@click="Back()"
style="cursor:pointer">
<span>Back</span>
</i>
<span class="title">判分点设置</span>
<el-page-header content="判分点设置" @back="back"></el-page-header>
</div>
<div>
<el-button v-if="!isView"
type="primary"
size="mini"
@click="submit">保存</el-button>
<el-button v-if="!isView" type="primary" size="mini" @click="submit">保存</el-button>
</div>
</div>
</el-card>
<!--基本信息-->
<div>
<el-card shadow="hover" style="margin: 20px 0;">
<div class="form-con">
<div class="title">
<div class="black"></div>
<div>基本信息</div>
</div>
<p class="p-title">基本信息</p>
<div class="item">
<div class="label">判分点</div>
<el-input v-model.trim="formData.points.name"
:readonly="isView"
@blur="handleBlur"
placeholder="请输入内容"
clearable
style="width: 400px"></el-input>
<el-input v-model.trim="formData.points.name" :readonly="isView" @blur="handleBlur" placeholder="请输入内容"
clearable style="width: 400px"></el-input>
</div>
<div class="item">
<div class="label">实验要求</div>
<quill class="quill"
v-model="formData.points.experimentalRequirements"
:type.sync="formData.points.experimentalRequirementsType"
:readonly="isView"
:border="true"
:minHeight="150"
<quill class="quill" v-model="formData.points.experimentalRequirements"
:type.sync="formData.points.experimentalRequirementsType" :readonly="isView" :border="true" :minHeight="150"
:height="150" />
</div>
</div>
</el-card>
<!--实验代码-->
<el-card shadow="hover">
<div class="form-con">
<div class="title">
<div class="black"></div>
<div>实验代码</div>
</div>
<p class="p-title">实验代码</p>
<p style="text-align: center;">参考答案</p>
<div>
<quill v-model="formData.points.experimentCode"
:type.sync="formData.points.experimentCodeType"
:readonly="isView"
:border="true"
:minHeight="300"
:height="300"
:index="1" />
<quill v-model="formData.points.experimentCode" :type.sync="formData.points.experimentCodeType"
:readonly="isView" :border="true" :minHeight="300" :height="300" :index="1" />
</div>
</div>
</el-card>
<!--判分规则-->
<div class="rule-con">
<div class="title-con">
<div class="title">
<div class="black"></div>
<div>判分规则</div>
</div>
<el-card shadow="hover" style="margin-top: 20px;">
<div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 20px;">
<p class="p-title" style="margin-bottom: 0;">判分规则</p>
<div>
<el-button v-if="!isView"
type="primary"
size="mini"
@click="batchDel">批量删除</el-button>
<el-button v-if="!isView"
type="primary"
size="mini"
@click="saveAll">一键保存</el-button>
<el-button v-if="!isView"
type="primary"
size="mini"
@click="addRule">新增</el-button>
<el-button v-if="!isView" type="primary" size="mini" @click="batchDel">批量删除</el-button>
<el-button v-if="!isView" type="primary" size="mini" @click="saveAll">一键保存</el-button>
<el-button v-if="!isView" type="primary" size="mini" @click="addRule">新增</el-button>
</div>
</div>
<el-card shadow="hover">
<el-table class="lc-table"
:data="tableData"
:stripe="true"
:cell-style="rowClass"
header-align="center"
:header-cell-style="headClass"
@selection-change="handleSelectionChange">
<el-table-column type="selection"
width="55">
<el-table class="lc-table" :data="tableData" :stripe="true" :cell-style="rowClass" header-align="center"
:header-cell-style="headClass" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column prop="id"
type="index"
label="序号"
width="80">
<el-table-column prop="id" type="index" label="序号" width="80">
<template slot-scope="scope">
{{ scope.row.isSubject && scope.row.index + 1 }}
</template>
</el-table-column>
<el-table-column label="编译器中正确答案"
align="center">
<template slot-scope="scope"
v-if="scope.row.isSubject">
<el-table-column label="编译器中正确答案" align="center">
<template slot-scope="scope" v-if="scope.row.isSubject">
<p class="p">字段一致性规则用户编辑器中至少出现如下语句</p>
<el-input type="textarea"
:rows="3"
v-model="scope.row.required"
<el-input type="textarea" :rows="3" v-model="scope.row.required"
:disabled="isView || scope.row.isDisabled"></el-input>
</template>
</el-table-column>
<el-table-column label=" "
width="150">
<el-table-column label=" " width="150">
<template slot-scope="scope">
<el-button circle
type="primary"
v-if="scope.row.isSubject"
:disabled="isView || scope.row.isDisabled"
@click="changeResult(scope.row)"
style="position: absolute; right: 55px">
<el-button circle type="primary" v-if="scope.row.isSubject" :disabled="isView || scope.row.isDisabled"
@click="changeResult(scope.row)" style="position: absolute; right: 55px">
{{ scope.row.resultOperation === 0 ? '且' : '或' }}
</el-button>
<el-button v-else
type="primary"
circle
@click="changeRule(scope.row, scope.$index)">
<el-button v-else type="primary" circle @click="changeRule(scope.row, scope.$index)">
{{ scope.row.ruleOperation === 0 ? "且" : "或" }}
</el-button>
</template>
</el-table-column>
<el-table-column label="终端中正确答案"
align="center">
<template slot-scope="scope"
v-if="scope.row.isSubject">
<el-table-column label="终端中正确答案" align="center">
<template slot-scope="scope" v-if="scope.row.isSubject">
<p class="p">运行结果一致性规则用户运行结果需要与下方代码运行结果一致</p>
<el-input type="textarea"
:rows="3"
v-model="scope.row.result"
<el-input type="textarea" :rows="3" v-model="scope.row.result"
:disabled="isView || scope.row.isDisabled"></el-input>
</template>
</el-table-column>
<el-table-column label="操作"
width="300"
v-if="!isView">
<template slot-scope="scope"
v-if="scope.row.isSubject">
<el-button v-show="scope.row.isDisabled"
size="mini"
type="text"
<el-table-column label="操作" width="300" v-if="!isView">
<template slot-scope="scope" v-if="scope.row.isSubject">
<el-button v-show="scope.row.isDisabled" size="mini" type="text"
@click="handleEdit(scope.row)">编辑</el-button>
<el-button v-show="!scope.row.isDisabled"
size="mini"
type="text"
<el-button v-show="!scope.row.isDisabled" size="mini" type="text"
@click="handleSave(scope.row)">保存</el-button>
<el-button v-show="!scope.row.isDisabled"
size="mini"
type="text"
<el-button v-show="!scope.row.isDisabled" size="mini" type="text"
@click="handleCancel(scope.row, scope.$index)">取消</el-button>
<el-button v-show="scope.row.isDisabled"
size="mini"
type="text"
<el-button v-show="scope.row.isDisabled" size="mini" type="text"
@click="handleDelete(scope.$index)">删除</el-button>
</template>
</el-table-column>
</el-table>
</el-card>
</div>
</div>
</div>
</template>
<script>
@ -224,7 +151,7 @@ export default {
}
},
methods: {
Back () { //
back () { //
this.$router.back();
},
getInfoData (bcId) { //
@ -368,7 +295,7 @@ export default {
this.$post(this.api.addBcJudgmentPoint, this.formData).then(res => {
if (res.status === 200) {
this.$message.success("新增判分点成功");
this.Back();
this.back();
} else {
this.$message.warning(res.message);
}
@ -379,7 +306,7 @@ export default {
this.$post(this.api.updateBcJudgmentPoint, this.formData).then(res => {
if (res.status === 200) {
this.$message.success("更新判分点成功");
this.Back();
this.back();
} else {
this.$message.warning(res.message);
}
@ -537,35 +464,12 @@ export default {
</script>
<style lang="scss" scoped>
.content {
position: relative;
top: 10px;
padding: 0 10px;
background-color: #ffffff;
.wrap {
padding: 20px;
.header {
border-bottom: 1px dashed #ccc;
height: 45px;
line-height: 45px;
font-size: 12px;
font-weight: 600;
display: flex;
justify-content: space-between;
.back {
line-height: 3;
span {
font-size: 16px;
font-weight: 600;
padding-left: 5px;
}
}
.title {
font-weight: bold;
font-size: 14px;
margin-left: 20px;
}
}
//
@ -596,47 +500,12 @@ export default {
padding-right: 20px;
line-height: 35px;
}
.quill {
width: calc(100% - 240px);
}
}
}
//
.rule-con {
padding-bottom: 60px;
.title-con {
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
display: flex;
.black {
width: 8px;
height: 18px;
background-color: #333;
margin-right: 10px;
}
}
}
}
}
//
/deep/ ::-webkit-scrollbar {
width: 6px; //
height: 6px; //
}
//
/deep/ ::-webkit-scrollbar-thumb {
background-color: #9278ff;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 5px #dddddd;
}
/deep/.lc-table {
@ -646,15 +515,12 @@ export default {
}
}
}
/deep/ ::-webkit-scrollbar-track {
/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px #dddddd;
border-radius: 0;
background: #dddddd;
}
.tree-con {
height: 230px;
position: relative;
.mask {
width: 100%;
height: 100%;
@ -678,6 +544,7 @@ export default {
height: 230px;
background-color: #fff;
overflow: auto;
.line {
display: flex;
align-items: center;

@ -1,24 +1,20 @@
<template>
<!-- 交易类 -->
<div class="content" v-loading="loading" element-loading-text="加载中" element-loading-spinner="el-icon-loading">
<div class="wrap" v-loading="loading" element-loading-text="加载中" element-loading-spinner="el-icon-loading">
<el-card shadow="hover">
<div class="header">
<div>
<i class="back el-icon-arrow-left" @click="Back()" style="cursor:pointer">
<span>Back</span>
</i>
<span class="title">判分点设置</span>
<el-page-header content="判分点设置" @back="back"></el-page-header>
</div>
<div>
<el-button v-if="!isView" type="primary" size="mini" @click="submit">保存</el-button>
</div>
</div>
</el-card>
<div>
<el-card shadow="hover" style="margin: 20px 0;">
<div class="form-con">
<div class="title">
<div class="black"></div>
<div>基本信息</div>
</div>
<p class="p-title">基本信息</p>
<div class="item">
<div class="label">判分点</div>
<el-input v-model.trim="formData.lcJudgmentPoint.name" :readonly="isView" @blur="handleBlur"
@ -30,14 +26,11 @@
:border="true" :minHeight="150" :height="150" />
</div>
</div>
</el-card>
<el-card shadow="hover">
<div class="rule-con">
<div class="title-con">
<div class="title">
<div class="black"></div>
<div>判分规则</div>
</div>
</div>
<p class="p-title">判分规则</p>
<el-dialog :visible.sync="configVisible" width="25%" title="批量新增判分点" center :append-to-body="false">
<div class="flex-between mgb20">
<div style="width: 100%;height: 400px;overflow: auto;margin: auto;background: #F5F5F5">
@ -57,7 +50,6 @@
</span>
</el-dialog>
<el-card shadow="hover" style="margin-bottom: 20px">
<div class="business-wrap">
<div class="business">
<div class="label">{{ isSt ? '关卡' : '业务' }}</div>
@ -71,9 +63,7 @@
<el-button v-if="!isView" type="primary" size="mini" @click="addRules">新增</el-button>
</div>
</div>
</el-card>
<el-card shadow="hover">
<el-table class="lc-table" :data="tableData" :stripe="true" row-key="i" header-align="center"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55">
@ -306,17 +296,15 @@
</template>
</el-table-column>
</el-table>
</el-card>
</div>
</div>
<el-backtop></el-backtop>
</el-card>
</div>
</template>
<script>
import quill from "@/components/quill";
import MyTree from "@/components/myTree/src/tree";
import { deepCopy } from "@/utils/deepCopy";
import { mapState } from 'vuex'
import _ from 'lodash'
export default {
@ -325,6 +313,14 @@ export default {
return {
systemId: this.$route.query.systemId,
isSt: this.$route.query.systemId == 19,
routes: [
{
name: '实验记录',
},
{
name: '实验情况'
},
],
count: 0,
fromChange: -999,
fromCountIndex: -999,
@ -777,7 +773,7 @@ export default {
});
return result;
},
Back () { //
back () { //
this.$router.back();
},
handleBlur () { // /
@ -879,7 +875,7 @@ export default {
this.$post(this.api.addJudgmentPoint, this.formData).then(res => {
if (res.status === 200) {
this.$message.success("新增判分点成功");
this.Back();
this.back();
} else {
this.$message.warning(res.message);
}
@ -888,7 +884,7 @@ export default {
this.$post(this.api.updateJudgmentPoint, this.formData).then(res => {
if (res.status === 200) {
this.$message.success("更新判分点成功");
this.Back();
this.back();
} else {
this.$message.warning(res.message);
}
@ -983,7 +979,6 @@ export default {
},
handleEdit (row) { //
this.judgePoints = true
// this.tableDataCopy = deepCopy(this.tableData); //
row.isDisabled = false;
row.isSave = false;
},
@ -1145,43 +1140,15 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.content {
position: relative;
top: 10px;
padding: 0 10px;
background-color: #ffffff;
.wrap {
padding: 20px;
.header {
border-bottom: 1px dashed #ccc;
height: 45px;
line-height: 45px;
font-size: 12px;
font-weight: 600;
display: flex;
justify-content: space-between;
.back {
line-height: 3;
span {
font-size: 16px;
font-weight: 600;
padding-left: 5px;
}
}
.title {
font-weight: bold;
font-size: 14px;
margin-left: 20px;
}
}
.cell div {
margin: auto;
text-align: center;
}
.business {
@ -1195,22 +1162,6 @@ export default {
//
.form-con {
padding-bottom: 24px;
border-bottom: 1px dashed #ccc;
.title {
padding: 10px 0;
border-bottom: 1px dashed #ccc;
display: flex;
.black {
width: 8px;
height: 18px;
background-color: #333;
margin-right: 10px;
}
}
.item {
display: flex;
margin-top: 24px;
@ -1227,29 +1178,6 @@ export default {
}
}
}
//
.rule-con {
padding-bottom: 60px;
.title-con {
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
display: flex;
.black {
width: 8px;
height: 18px;
background-color: #333;
margin-right: 10px;
}
}
}
}
}
/deep/.add-tree {
@ -1260,26 +1188,6 @@ export default {
}
}
//
/deep/ ::-webkit-scrollbar {
width: 6px; //
height: 6px; //
}
//
/deep/ ::-webkit-scrollbar-thumb {
background-color: #9278ff;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 5px #dddddd;
}
/deep/ ::-webkit-scrollbar-track {
/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px #dddddd;
border-radius: 0;
background: #dddddd;
}
.tree-con {
height: 230px;
position: relative;

Loading…
Cancel
Save