@@ -228,25 +234,25 @@ export default {
imgData: [
{
id: 1,
- source: require("../../assets/px.jpg"),
+ source: require("../../assets/images/leveladd/1.png"),
},
{
id: 2,
- source: require("../../assets/px.jpg"),
+ source: require("../../assets/images/leveladd/2.png"),
},
{
id: 3,
- source: require("../../assets/px.jpg"),
+ source: require("../../assets/images/leveladd/3.png"),
},
],
currentPage: 1,
- tableDataTotal: 20,
+ tableDataTotal: 100,
pageSize: 10,
- value1: " ",
+ value1: "",
value2: ref(),
- valueE: ref(" "),
- valueEE: ref(" "),
- valuei: ref(" "),
+ valueE: "",
+ valueEE: "",
+ valuei: "",
});
const tableDataFunc = () => {
const columns = [
@@ -314,38 +320,38 @@ export default {
key: "opacation",
width: 200,
align: "center",
- scopedSlots: { customRender: "action" }, //引入的插槽
- customRender: (text) => {
- console.log(text);
- return (
-
-
-
- 发布
-
-
编辑
-
- 关卡
-
+ // scopedSlots: { customRender: "action" }, //引入的插槽
+ // customRender: (text) => {
+ // console.log(text);
+ // return (
+ //
+ //
+ //
+ // 发布
+ //
+ //
编辑
+ //
+ // 关卡
+ //
-
- 授权
-
-
-
+ //
-
- 更多
-
-
-
-
-
- );
- },
+ //
+ //
+ //
+ // );
+ // },
},
];
return columns;
@@ -366,6 +372,102 @@ export default {
const chooseImg = (id) => {
console.log(id);
};
+ const getTableDate = () => {
+ let data = state.tableData;
+ data.map((value) => {
+ {
+ //单层项目
+ value.opacation = (
+
+
+ {value.state === "草稿" ? (
+
+ ) : (
+
+ )}
+ {value.state === "已发布" ? (
+
+ ) : (
+
+ )}
+ {value.state === "已停用" ? (
+
+ ) : (
+
+ )}
+
+
+
+ 关卡
+
+
+
+
+ 权限名单
+
+
+ {
+ console.log("点击了");
+ }}
+ >
+ 归属权
+
+
+
+ 查看权
+
+
+ 管理权
+
+
+
+
+ 复制
+
+
+ {
+ console.log("点击了");
+ }}
+ >
+ 取消
+
+
+
+
+
+ );
+ }
+ });
+ state.tableData = data;
+ };
+ getTableDate();
return {
...toRefs(state),
selectProjectName,
@@ -505,6 +607,85 @@ export default {
bottom: 20px;
}
}
+ .operation {
+ display: flex;
+ justify-content: right;
+ .nSelect {
+ .fb {
+ display: flex;
+ .jc {
+ color: #4ea6ff;
+ font-size: 14px;
+ margin-left: 20px;
+ }
+ }
+ }
+ .tableSelect {
+ margin-right: 20px;
+ display: flex;
+ align-items: center;
+ justify-content: right;
+ .g1 {
+ color: #4ea6ff;
+ font-size: 14px;
+ }
+ }
+ }
+ // .operation {
+ // font-size: 14px;
+ // font-weight: 400;
+ // color: #4ea6ff;
+ // // line-height: 36px;
+ // .operation1 {
+ // margin-left: 21px;
+ // width: 28px;
+ // display: inline-block;
+ // }
+ // .operation3 {
+ // margin-left: 21px;
+ // width: 70px;
+ // display: inline-block;
+ // text-align: center;
+ // }
+ // .more {
+ // width: 50px;
+ // display: inline-block;
+ // margin-left: 21px;
+ // position: relative;
+ // text-align: left;
+ // // z-index: 99999;
+ // .moreArrow {
+ // width: 13px;
+ // height: 7px;
+ // display: inline-block;
+ // background-image: url("../../assets/images/navtop/down.png");
+ // background-size: 100%;
+ // margin: 2px;
+ // margin-left: 7px;
+ // }
+ // .moreItems {
+ // width: 80px;
+ // padding: 5px;
+ // display: none;
+ // background: #ffffff;
+ // box-shadow: 2px 3px 9px 3px rgba(0, 0, 0, 0.05);
+ // border-radius: 3px;
+ // border: 0px solid #dcdcdc;
+ // position: absolute;
+ // left: 0px;
+ // top: 28px;
+ // z-index: 100;
+ // text-align: center;
+ // }
+ // }
+ // .more:hover .moreArrow {
+ // background-image: url("../../assets/images/navtop/up.png");
+ // }
+ // .more:hover .moreItems {
+ // display: block;
+ // }
+ // }
+
.out {
display: block;
position: absolute;
@@ -531,6 +712,7 @@ export default {
width: 18px;
height: 18px;
margin-left: 27px;
+ margin-top: -2px;
}
.topc {
color: #000000;
@@ -567,12 +749,19 @@ export default {
.in {
margin-left: 14px;
width: 81%;
+ position: relative;
.ant-input {
border-radius: 5px;
// height: 120%;
width: 100%;
height: 40px;
}
+ .showcount {
+ position: absolute;
+ right: 10px;
+ color: #c7cbd2;
+ bottom: 5px;
+ }
}
}
.bac {
@@ -624,6 +813,7 @@ export default {
.in {
margin-left: 14px;
width: 81%;
+ position: relative;
.ant-input {
border-radius: 5px;
// height: 120%;
@@ -631,6 +821,12 @@ export default {
height: 130px;
resize: none;
}
+ .showcount {
+ position: absolute;
+ right: 10px;
+ color: #c7cbd2;
+ bottom: 5px;
+ }
}
}
.btn {
@@ -669,6 +865,7 @@ export default {
font-size: 14px;
font-weight: 400;
color: #4ea6ff;
+ display: flex;
// line-height: 36px;
.activecls {
display: inline-block;
@@ -678,6 +875,7 @@ export default {
}
.more {
position: relative;
+ height: 100%;
.moreArrow {
width: 13px;
height: 7px;
@@ -697,8 +895,8 @@ export default {
border: 0px solid #dcdcdc;
position: absolute;
left: 0px;
- top: 18px;
- z-index: 100;
+ top: 30px;
+ z-index: 999;
}
}
.more:hover .moreArrow {
diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue
index 9ee5de90..37d02263 100644
--- a/src/views/learningpath/LevelAdd.vue
+++ b/src/views/learningpath/LevelAdd.vue
@@ -120,11 +120,14 @@