mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
fix:关卡和阶段添加测评完善需要有效token,关卡添加关联项目完善,修改遍历方法
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
:columns="tableDataFunc()"
|
||||
:data-source="tableData"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:row-selection="{selectedRowKeys:selectedRowKeys,onSelect:onSelect,onChange:onSelectChange}"
|
||||
:row-selection="{selectedRowKeys:selectedRowKeys, onChange:onSelectChange, hideSelectAll:true}"
|
||||
:scroll="{ x: 900 }"
|
||||
:pagination="false"
|
||||
/>
|
||||
@@ -119,7 +119,7 @@
|
||||
});
|
||||
//点击确认后执行此方法将参数传给父亲
|
||||
const CreatSTText = ()=> {
|
||||
ctx.emit('getSTData',state.SelectTestData)
|
||||
ctx.emit('getSTData',state.SelectTestData)
|
||||
closeDrawer()
|
||||
}
|
||||
const closeDrawer = () => {
|
||||
@@ -184,14 +184,13 @@
|
||||
console.log("Page: ", pageNumber);
|
||||
};
|
||||
|
||||
const onSelect = (record) => {
|
||||
state.SelectTestData = record
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
const onSelectChange = (selectedRowKeys,selectedRows) => {
|
||||
if(selectedRowKeys.length>1){
|
||||
return
|
||||
}
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
state.SelectTestData = selectedRows[0];
|
||||
console.log('state.SelectTestData---------------',state.SelectTestData);
|
||||
}
|
||||
|
||||
const newTest = ()=> {
|
||||
@@ -282,7 +281,6 @@
|
||||
closeDrawer,
|
||||
afterVisibleChange,
|
||||
getTableDate,
|
||||
onSelect,
|
||||
onSelectChange,
|
||||
CreatSTText,
|
||||
newTest,
|
||||
@@ -298,7 +296,6 @@
|
||||
|
||||
<style lang="scss">
|
||||
.TimeManage {
|
||||
// overflow-x: auto;
|
||||
.drawerMain {
|
||||
min-width: 550px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
@@ -406,13 +403,7 @@
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
|
||||
.ant-table-selection-column {
|
||||
.ant-table-selection{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
th.h {
|
||||
th,th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
@@ -423,15 +414,10 @@
|
||||
}
|
||||
.tableBox {
|
||||
.pa {
|
||||
// left: 0;
|
||||
margin-top: 15px;
|
||||
width: 100%;
|
||||
// height: 20px;
|
||||
// background-color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
// position: absolute;
|
||||
// bottom: 20px;
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-item,
|
||||
|
||||
Reference in New Issue
Block a user