mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
feat:增加二维码弹窗
This commit is contained in:
270
src/components/TwoDimensionalCode.vue
Normal file
270
src/components/TwoDimensionalCode.vue
Normal file
@@ -0,0 +1,270 @@
|
||||
<template>
|
||||
<div class="twoDimensionalCode">
|
||||
<!--二维码页面 -->
|
||||
<a-modal
|
||||
:visible="codevisible"
|
||||
:footer="null"
|
||||
:closable="closableQR"
|
||||
wrapClassName="codeModal"
|
||||
style="margin-top: 400px"
|
||||
:zIndex="9999"
|
||||
@cancel="qr_exit"
|
||||
>
|
||||
<div id="qrcode" class="QR">
|
||||
<div class="qr_header"></div>
|
||||
<div class="qr_main">
|
||||
<div class="qrm_header">
|
||||
<span style="title">{{codeInfo.title?codeInfo.title:''}}</span>
|
||||
<div class="close_exit" @click="closeCodeModal"></div>
|
||||
</div>
|
||||
<div class="qrm_body">
|
||||
<div class="codename">{{codeInfo.name?codeInfo.name:''}}</div>
|
||||
<qrcode-vue
|
||||
:value="codeInfo.url?codeInfo.url:''"
|
||||
:size="qrcodeSize"
|
||||
style="width: 200px; height: 200px"
|
||||
></qrcode-vue>
|
||||
</div>
|
||||
|
||||
<div class="qrm_footer">
|
||||
<span style="margin-left: 52px">下载二维码</span>
|
||||
<div class="qrmbtn" @click="downloadQr(200)">
|
||||
<div class="btntext">200*200</div>
|
||||
</div>
|
||||
<div class="qrmbtn" @click="downloadQr(200)">
|
||||
<div class="btntext">400*400</div>
|
||||
</div>
|
||||
<div class="qrmbtn" @click="downloadQr(200)">
|
||||
<div class="btntext">800*800</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
<!--二维码页面 -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, watch } from "vue";
|
||||
import QrcodeVue from "qrcode.vue";
|
||||
// import html2canvas from "html2canvas";
|
||||
export default {
|
||||
name: "TwoDimensionalCode",
|
||||
components: {
|
||||
QrcodeVue,
|
||||
},
|
||||
props: {
|
||||
codevisible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
codeInfo: {
|
||||
type: Object,
|
||||
default: function () {
|
||||
return {};
|
||||
},
|
||||
},
|
||||
index: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
qrcodeUrl: "https://www.baidu.com/",
|
||||
qrcodeSize: 800,
|
||||
codeInfo: {},
|
||||
});
|
||||
|
||||
//下载二维码图片
|
||||
const downloadQr = (num) => {
|
||||
state.qrcodeSize = num;
|
||||
// let filename = `${new Date().getTime()}.png`;
|
||||
// let canvas = document.getElementsByTagName("canvas")[0];
|
||||
// let imageUrl = canvas.toDataURL("image/png");
|
||||
|
||||
// let canvasBox = document.createElement("canvas");
|
||||
// let ctx = canvasBox.getContext("2d");
|
||||
// var img = new Image();
|
||||
// // 需要添加文字的图片
|
||||
// img.src = imageUrl;
|
||||
// // 等待图片加载完成
|
||||
// img.onload = function () {
|
||||
// // 将图片添加到canvas
|
||||
// ctx.drawImage(img, 0, 0, 1240, 2208);
|
||||
// // 设置字体
|
||||
// ctx.font = "73px 微软雅黑 bolder";
|
||||
// // 设置字体颜色
|
||||
// ctx.fillStyle = "#955f17";
|
||||
// ctx.textAlign = "center";
|
||||
// // 添加文字和位置
|
||||
// ctx.fillText("微信名", 621, 1050);
|
||||
|
||||
// // 导出为图片
|
||||
// let url = canvasBox.toDataURL("image/png");
|
||||
// let a = document.createElement("a");
|
||||
// a.style.display = "none";
|
||||
// a.download = filename;
|
||||
// a.href = url;
|
||||
// document.body.appendChild(a);
|
||||
// a.click();
|
||||
// };
|
||||
|
||||
// // let a = document.createElement("a");
|
||||
// // a.style.display = "none";
|
||||
// // a.download = filename;
|
||||
// // a.href = imageUrl;
|
||||
// // document.body.appendChild(a);
|
||||
// // a.click();
|
||||
|
||||
// html2canvas(document.querySelector("#qrcode"), {
|
||||
// useCORS: true, //支持图片跨域
|
||||
// }).then((canvas) => {
|
||||
// // var extra_canvas = document.createElement("canvas");
|
||||
// // extra_canvas.setAttribute('width',num);
|
||||
// // extra_canvas.setAttribute('height',num);
|
||||
// // var ctx = extra_canvas.getContext('2d');
|
||||
// // ctx.drawImage(canvas,0,0,num,num);
|
||||
// // let filename = `${new Date().getTime()}.png`;
|
||||
// // var imageUrl = extra_canvas.toDataURL("image/png",1.0);
|
||||
|
||||
// console.log("canvas", canvas, canvas.width, canvas.style.width);
|
||||
|
||||
// // // let ctx = canvas.getContext('2d');
|
||||
// // // ctx.drawImage(canvas,0,0,canvas.width, canvas.height);
|
||||
// // // canvas.width=num
|
||||
// // // canvas.height=num
|
||||
// // // canvas.style.width=num+'px'
|
||||
// // // canvas.style.height=num+'px'
|
||||
// // let filename = `${new Date().getTime()}.png`;
|
||||
// // let imageUrl = canvas.toDataURL("image/png");
|
||||
// // let a = document.createElement("a");
|
||||
// // a.style.display = "none";
|
||||
// // a.download = filename;
|
||||
// // a.href = imageUrl;
|
||||
// // document.body.appendChild(a);
|
||||
// // a.click();
|
||||
// });
|
||||
console.log('document.getElementsByClassName',document.getElementsByClassName('codeModal'),Number(props.index))
|
||||
let canvas =document.getElementsByClassName('codeModal')[Number(props.index)].getElementsByTagName('canvas')[0];
|
||||
let filename = `${new Date().getTime()}.png`;
|
||||
let imageUrl = canvas.toDataURL("image/png");
|
||||
let a = document.createElement("a");
|
||||
a.style.display = "none";
|
||||
a.download = filename;
|
||||
a.href = imageUrl;
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
};
|
||||
const closeCodeModal = () => {
|
||||
ctx.emit("update:codevisible", false);
|
||||
};
|
||||
watch(() => {
|
||||
let obj = {
|
||||
title: "",
|
||||
name: "",
|
||||
url: "",
|
||||
};
|
||||
state.codeInfo = Object.assign(obj, props.codeInfo);
|
||||
console.log("codeInfo22222", state.codeInfo,props.index);
|
||||
});
|
||||
return {
|
||||
...toRefs(state),
|
||||
downloadQr,
|
||||
closeCodeModal,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.twoDimensionalCode {
|
||||
}
|
||||
.codeModal {
|
||||
.ant-modal {
|
||||
.ant-modal-content {
|
||||
width: 479px !important;
|
||||
.ant-modal-body {
|
||||
.QR {
|
||||
z-index: 9999;
|
||||
width: 520px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 10%;
|
||||
transform: translate(-50%, -50%);
|
||||
.qr_header {
|
||||
position: absolute;
|
||||
width: calc(100%);
|
||||
height: 40px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
.qr_main {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
.qrm_header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 20px;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 22px;
|
||||
}
|
||||
.close_exit {
|
||||
position: absolute;
|
||||
right: 42px;
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-image: url(@/assets/images/coursewareManage/close.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
.qrm_body {
|
||||
width: 100%;
|
||||
margin-top: 22px;
|
||||
margin-bottom: 32px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
.codename {
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.qrm_footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 44px;
|
||||
.qrmbtn {
|
||||
width: 80px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
line-height: 32px;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #387df7;
|
||||
margin-left: 16px;
|
||||
cursor: pointer;
|
||||
.btntext {
|
||||
color: #387df7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -16,49 +16,45 @@
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
</div>
|
||||
<div class="contentMain">
|
||||
<div class="main_items">
|
||||
<div class="mi_ipts">
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">姓名:</div>
|
||||
<div class="fi_input">
|
||||
<div class="main">
|
||||
<div class="search">
|
||||
<div class="leftchoose">
|
||||
<div class="namecon" style="margin-right: 30px">
|
||||
<div class="name">姓名:</div>
|
||||
<a-input
|
||||
v-model:value="inputV1"
|
||||
style="width: 264px; height: 40px; border-radius: 8px"
|
||||
v-model:value="name"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入姓名"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mi_btns">
|
||||
<div class="btn btn1">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">搜索</div>
|
||||
|
||||
<div class="btns">
|
||||
<div class="btn btn1" style="margin-right: 20px">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">重置</div>
|
||||
<div class="img2"></div>
|
||||
<div class="wz">重置</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main_table">
|
||||
<div class="tableBox" style="margin-top: 10px">
|
||||
<a-table
|
||||
:row-selection="{
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: onSelectChange,
|
||||
}"
|
||||
:columns="columns1"
|
||||
:data-source="tableData1"
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tableDataFunc()"
|
||||
:data-source="tableData"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
@expand="expandTable"
|
||||
:scroll="{ x: 900 }"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column }">
|
||||
<template v-if="column.key === 'opacation'">
|
||||
<a>取消授权</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="tableBox">
|
||||
<div class="pa">
|
||||
<a-pagination
|
||||
@@ -72,9 +68,57 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tablecolumns"
|
||||
:data-source="tabledata"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
:scroll="{ x: 900, y: 350 }"
|
||||
@expand="expandTable"
|
||||
:pagination="false"
|
||||
:row-selection="{
|
||||
columnWidth: 30,
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: onSelectChange,
|
||||
}"
|
||||
/>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- 取消授权弹窗 -->
|
||||
<a-modal
|
||||
v-model:visible="cancelModal"
|
||||
:footer="null"
|
||||
:closable="closeCancel"
|
||||
wrapClassName="copyModal"
|
||||
centered="true"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>提示</span>
|
||||
<div class="close_exit" @click="closeCancelModal"></div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<span>您确定要取消该用户的授权吗</span>
|
||||
</div>
|
||||
<div class="del_btnbox">
|
||||
<div class="del_btn btn1">
|
||||
<div class="btnText" @click="delete_exit">取消</div>
|
||||
</div>
|
||||
<div class="del_btn btn2">
|
||||
<div class="btnText" @click="delete_exit">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<div class="botm"></div>
|
||||
<div class="btnn">
|
||||
<button class="btn1">取消</button>
|
||||
<button class="btn2">确定</button>
|
||||
</div>
|
||||
@@ -83,60 +127,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
const columns1 = [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width: "10%",
|
||||
align: "left",
|
||||
},
|
||||
{
|
||||
title: "归属组织",
|
||||
dataIndex: "organization",
|
||||
key: "organization",
|
||||
width: "19%",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "岗位",
|
||||
dataIndex: "position",
|
||||
key: "position",
|
||||
width: "19%",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "拥有权限",
|
||||
dataIndex: "authority",
|
||||
key: "authority",
|
||||
width: "19%",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "opacation",
|
||||
key: "opacation",
|
||||
width: "34%",
|
||||
align: "center",
|
||||
},
|
||||
];
|
||||
const rowSelection = ref({
|
||||
checkStrictly: false,
|
||||
onChange: (selectedRowKeys, selectedRows) => {
|
||||
console.log(
|
||||
`selectedRowKeys: ${selectedRowKeys}`,
|
||||
"selectedRows: ",
|
||||
selectedRows
|
||||
);
|
||||
},
|
||||
onSelect: (record, selected, selectedRows) => {
|
||||
console.log(record, selected, selectedRows);
|
||||
},
|
||||
onSelectAll: (selected, selectedRows, changeRows) => {
|
||||
console.log(selected, selectedRows, changeRows);
|
||||
},
|
||||
});
|
||||
import { reactive, toRefs } from "vue";
|
||||
export default {
|
||||
name: "CorPoerlist",
|
||||
props: {
|
||||
@@ -147,60 +138,203 @@
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
tableData1: [
|
||||
name: null,
|
||||
showmodal: false, //勾选提示框
|
||||
closable: false, //modal右上角的关闭按钮
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
selectedRowKeys: [],
|
||||
cancelModal: false, //取消授权弹窗
|
||||
closeCancel: false, //取消授权弹窗关闭图标
|
||||
tableData: [
|
||||
{
|
||||
key: 1,
|
||||
name: "李明",
|
||||
organization: "-",
|
||||
position: "产品经理",
|
||||
authority: "归属权",
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
name: "李洋",
|
||||
organization: "-",
|
||||
position: "产品经理",
|
||||
authority: "查看权",
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: "小李",
|
||||
organization: "-",
|
||||
position: "产品经理",
|
||||
authority: "管理权",
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
name: "雄安名",
|
||||
organization: "-",
|
||||
position: "产品经理",
|
||||
authority: "管理权",
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: "王哥",
|
||||
organization: "-",
|
||||
position: "产品经理",
|
||||
authority: "管理权",
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "归属权",
|
||||
},
|
||||
{
|
||||
key: 7,
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "查看权",
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 9,
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
],
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
pageSize: 10,
|
||||
inputV1:'',
|
||||
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:corpowerlistVisible", false);
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("state", bool);
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys);
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
};
|
||||
const showCancelModal = () => {
|
||||
state.cancelModal = true;
|
||||
};
|
||||
const closeCancelModal = () => {
|
||||
state.cancelModal = false;
|
||||
};
|
||||
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
// width: "30%",
|
||||
key: "name",
|
||||
width: 70,
|
||||
align: "left",
|
||||
className: "classify",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
// console.log(text.record.checked1);
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.name}</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "number",
|
||||
// width: "30%",
|
||||
key: "number",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "归属组织",
|
||||
dataIndex: "com",
|
||||
// width: "30%",
|
||||
key: "com",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "所在岗位",
|
||||
dataIndex: "gang",
|
||||
key: "gang",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
|
||||
{
|
||||
title: "拥有权限",
|
||||
dataIndex: "state",
|
||||
key: "state",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
className: "h",
|
||||
dataIndex: "opacation",
|
||||
key: "opacation",
|
||||
width: 100,
|
||||
align: "center",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: () => {
|
||||
return (
|
||||
<div
|
||||
class="opa"
|
||||
onClick={() => {
|
||||
showCancelModal();
|
||||
}}
|
||||
>
|
||||
取消授权
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
];
|
||||
return columns;
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
columns1,
|
||||
rowSelection,
|
||||
onSelectChange,
|
||||
tableDataFunc,
|
||||
showCancelModal,
|
||||
closeCancelModal,
|
||||
afterVisibleChange,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -209,117 +343,234 @@
|
||||
// .ant-table-striped :deep(.table-striped) td {
|
||||
// background-color: #fafafa !important;
|
||||
// }
|
||||
.copyModal {
|
||||
.ant-modal {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
.ant-modal-content {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
.ant-modal-body {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
padding: 0 !important;
|
||||
.delete {
|
||||
z-index: 999;
|
||||
width: 424px;
|
||||
height: 258px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
border-radius: 4px;
|
||||
// position: absolute;
|
||||
// left: 50%;
|
||||
// top: 10%;
|
||||
// transform: translate(-50%, -50%);
|
||||
.del_header {
|
||||
position: absolute;
|
||||
width: calc(100%);
|
||||
height: 68px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
.del_main {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 20px;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 10px;
|
||||
background-image: url(@/assets/images/coursewareManage/notice.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.close_exit {
|
||||
position: absolute;
|
||||
right: 42px;
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-image: url(@/assets/images/coursewareManage/close.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
.body {
|
||||
width: 100%;
|
||||
margin: 34px auto 56px auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
// background-color: red;
|
||||
position: relative;
|
||||
.back {
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
.del_btnbox {
|
||||
display: flex;
|
||||
margin: 30px auto;
|
||||
justify-content: center;
|
||||
.del_btn {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: rgba(64, 158, 255, 0);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
.btn1 {
|
||||
border: 1px solid rgba(64, 158, 255, 1);
|
||||
color: #4ea6ff;
|
||||
margin-right: 14px;
|
||||
}
|
||||
.btn2 {
|
||||
background-color: #4ea6ff;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.corpowerlistDrawer {
|
||||
// width: 80%;
|
||||
.ant-drawer-content-wrapper {
|
||||
// max-width: 1000px;
|
||||
.ant-drawer-header {
|
||||
display: none !important;
|
||||
}
|
||||
.ant-drawer-body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.drawerMain {
|
||||
// overflow: auto;
|
||||
min-width: 500px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
margin-left: 24px;
|
||||
background-color: #ffffff;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.contentMain {
|
||||
margin-top: 32px;
|
||||
padding-right: 20px;
|
||||
.main_items {
|
||||
.main {
|
||||
width: 100%;
|
||||
// height: 100%;
|
||||
// background-color: #bfa;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 80px;
|
||||
.search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
flex-wrap: wrap;
|
||||
.mi_ipts {
|
||||
margin-top: 10px;
|
||||
//justify-content: space-between;
|
||||
.leftchoose {
|
||||
display: flex;
|
||||
margin-bottom: 20px;
|
||||
.mii_ipt {
|
||||
margin-right: 20px;
|
||||
.namecon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 24px;
|
||||
.ipt_name {
|
||||
flex-wrap: nowrap;
|
||||
margin-bottom: 10px;
|
||||
.name {
|
||||
margin-top: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
// .name {
|
||||
// margin-top: 8px;
|
||||
|
||||
// color: rgba(0, 0, 0, 0.85);
|
||||
// font-size: 14px;
|
||||
// font-weight: 400;
|
||||
// }
|
||||
}
|
||||
}
|
||||
.mi_btns {
|
||||
|
||||
.btns {
|
||||
display: flex;
|
||||
margin-left: 38px;
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
height: 38px;
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(64, 158, 255, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-left: 14px;
|
||||
flex-shrink: 0;
|
||||
.search {
|
||||
background-size: 100%;
|
||||
align-items: center;
|
||||
.img1 {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url(../../assets/images/courseManage/search0.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 36px;
|
||||
margin-left: 5px;
|
||||
.img2 {
|
||||
width: 16px;
|
||||
height: 18px;
|
||||
background-image: url(../../assets/images/courseManage/reset1.png);
|
||||
background-size: 100% 100%;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: rgb(64, 158, 255);
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/search0.png");
|
||||
}
|
||||
.btnText {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
}
|
||||
.btn2 {
|
||||
background: rgb(255, 255, 255);
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/reset1.png");
|
||||
}
|
||||
.btnText {
|
||||
color: rgb(64, 158, 255);
|
||||
}
|
||||
}
|
||||
.btn1:hover {
|
||||
background: rgb(255, 255, 255);
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/search1.png");
|
||||
}
|
||||
.btnText {
|
||||
color: #388be1;
|
||||
}
|
||||
}
|
||||
.btn2:hover {
|
||||
background: rgba(64, 158, 255, 1);
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/reset0.png");
|
||||
}
|
||||
.btnText {
|
||||
background: #409eff;
|
||||
|
||||
color: #ffffff;
|
||||
}
|
||||
.btn2 {
|
||||
background: #ffffff;
|
||||
|
||||
color: #409eff;
|
||||
border: 1px solid #409eff;
|
||||
}
|
||||
}
|
||||
}
|
||||
.main_table {
|
||||
position: relative;
|
||||
padding-bottom: 80px;
|
||||
|
||||
.tableBox {
|
||||
// margin-bottom: 80px;
|
||||
|
||||
.classify {
|
||||
margin-left: 10px !important;
|
||||
padding-left: 9px !important;
|
||||
// margin-left: 11px !important;
|
||||
// padding-left: 9px !important;
|
||||
padding-left: 20px !important;
|
||||
}
|
||||
.ant-checkbox-wrapper {
|
||||
align-items: center;
|
||||
@@ -327,7 +578,7 @@
|
||||
}
|
||||
.ant-table-selection-column {
|
||||
padding: 0px !important;
|
||||
padding-left: 60px !important;
|
||||
// padding-left: 45px !important;
|
||||
}
|
||||
.ant-table-thead > tr > th {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
@@ -341,24 +592,65 @@
|
||||
> td {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
.tableBox{
|
||||
.opa {
|
||||
// background-color: #bfa;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #388be1;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.tableBox {
|
||||
.pa {
|
||||
left: 0;
|
||||
// left: 0;
|
||||
margin-top: 25px;
|
||||
// margin-bottom: 70px;
|
||||
width: 100%;
|
||||
// height: 20px;
|
||||
// background-color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
}
|
||||
// position: absolute;
|
||||
// bottom: 20px;
|
||||
// margin-bottom: 20px;
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-options {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.ant-pagination-item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
// .tab {
|
||||
// .ant-table-thead > tr > th {
|
||||
// background-color: rgba(239, 244, 252, 1) !important;
|
||||
// }
|
||||
|
||||
.main_btns {
|
||||
// th.h {
|
||||
// background-color: #eff4fc !important;
|
||||
// }
|
||||
|
||||
// .ant-table-tbody
|
||||
// > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
// > td {
|
||||
// background: #f6f9fd;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
// .botm {
|
||||
// width: 100%;
|
||||
// height: 200px;
|
||||
// background-color: red;
|
||||
|
||||
// }
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
@@ -378,7 +670,7 @@
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #4ea6ff;
|
||||
background: #409eff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
@@ -386,5 +678,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
2157
src/components/drawers/CourseOwner.vue
Normal file
2157
src/components/drawers/CourseOwner.vue
Normal file
File diff suppressed because it is too large
Load Diff
2157
src/components/drawers/CourseView.vue
Normal file
2157
src/components/drawers/CourseView.vue
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -153,7 +153,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -161,7 +161,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -169,7 +169,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -177,7 +177,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -185,7 +185,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -193,7 +193,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "归属权",
|
||||
},
|
||||
{
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "查看权",
|
||||
},
|
||||
{
|
||||
@@ -209,6 +209,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -216,6 +217,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -223,6 +225,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
],
|
||||
@@ -262,6 +265,15 @@ export default {
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "number",
|
||||
// width: "30%",
|
||||
key: "number",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "归属组织",
|
||||
@@ -326,11 +338,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.me {
|
||||
.ant-modal-body {
|
||||
padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.copyModal {
|
||||
.ant-modal {
|
||||
width: 424px !important;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@
|
||||
|
||||
<div class="tableBox" style="margin-top: 10px">
|
||||
<a-table
|
||||
style="border: 1px solid #f2f6fe;"
|
||||
style="border: 1px solid #f2f6fe"
|
||||
:columns="tableDataFunc()"
|
||||
:data-source="tableData"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
@@ -50,7 +50,6 @@
|
||||
@expand="expandTable"
|
||||
:scroll="{ x: 900 }"
|
||||
:pagination="false"
|
||||
|
||||
/>
|
||||
</div>
|
||||
<div class="tableBox">
|
||||
@@ -153,7 +152,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -161,7 +160,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -169,7 +168,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -177,7 +176,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -185,7 +184,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -193,7 +192,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "归属权",
|
||||
},
|
||||
{
|
||||
@@ -201,7 +200,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
|
||||
number: "20201234",
|
||||
state: "查看权",
|
||||
},
|
||||
{
|
||||
@@ -209,6 +208,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -216,6 +216,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
{
|
||||
@@ -223,6 +224,7 @@ export default {
|
||||
name: "张三",
|
||||
com: "产研部",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
},
|
||||
],
|
||||
@@ -257,12 +259,21 @@ export default {
|
||||
customRender: (text) => {
|
||||
// console.log(text.record.checked1);
|
||||
return (
|
||||
<div class="racona" >
|
||||
<div class="racona">
|
||||
<span> {text.record.name}</span>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "工号",
|
||||
dataIndex: "number",
|
||||
// width: "30%",
|
||||
key: "number",
|
||||
width: 100,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "归属组织",
|
||||
dataIndex: "com",
|
||||
@@ -376,7 +387,7 @@ export default {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
justify-content: space-between;
|
||||
// justify-content: space-between;
|
||||
.leftchoose {
|
||||
display: flex;
|
||||
margin-right: 20px;
|
||||
|
||||
@@ -665,31 +665,31 @@ export default {
|
||||
//根据右侧快速选人高度,判断是否显示更多
|
||||
const selectedsHeight = () => {
|
||||
let resize = elementResizeDetectorMaker();
|
||||
resize.listenTo(document.getElementById('Ownership').querySelector("#selecteds"), function (ele) {
|
||||
resize.listenTo(document.getElementById('ProjOwnership').querySelector("#selecteds"), function (ele) {
|
||||
console.log("ele", ele.offsetHeight);
|
||||
if (ele.offsetHeight > 160 && !state.showHidden) {
|
||||
state.showMore = true;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "160px";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "160px";
|
||||
} else if (ele.offsetHeight < 160) {
|
||||
state.showMore = false;
|
||||
state.showHidden = false;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "160px";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "160px";
|
||||
}
|
||||
});
|
||||
};
|
||||
const morePeopleShow = () => {
|
||||
state.showMore = false;
|
||||
state.showHidden = true;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "";
|
||||
};
|
||||
const morePeopleHidden = () => {
|
||||
state.showMore = true;
|
||||
state.showHidden = false;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "160px";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "160px";
|
||||
};
|
||||
|
||||
// 结束 快速选人------------------------------------------------------------------
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1673,6 +1673,13 @@
|
||||
<!-- 添加授权侧弹窗 -->
|
||||
<corpowerlist v-model:corpowerlistVisible="corpowerlistvisible" />
|
||||
<!-- 添加授权侧弹窗 -->
|
||||
<!-- 添加查看权侧弹窗 -->
|
||||
<course-view v-model:courseviewvisible="courseviewvisible" />
|
||||
<!-- 添加查看权侧弹窗 -->
|
||||
<!-- 添加归属权侧弹窗 -->
|
||||
<course-owner v-model:courseownervisible="courseownervisible" />
|
||||
<!-- 添加归属权侧弹窗 -->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -1688,6 +1695,8 @@ import {
|
||||
import { message } from "ant-design-vue";
|
||||
import OwnPower from "../../components/drawers/OwnPower.vue";
|
||||
import Corpowerlist from "../../components/drawers/CorPowerlist.vue";
|
||||
import CourseView from "../../components/drawers/CourseView.vue"
|
||||
import CourseOwner from "../../components/drawers/CourseOwner.vue"
|
||||
import {
|
||||
// list,
|
||||
edit,
|
||||
@@ -2130,6 +2139,8 @@ export default defineComponent({
|
||||
Corpowerlist,
|
||||
Editor,
|
||||
Toolbar,
|
||||
CourseView,
|
||||
CourseOwner,
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
@@ -2426,7 +2437,8 @@ export default defineComponent({
|
||||
//抽屉状态
|
||||
ownpowervisible: false,
|
||||
corpowerlistvisible: false,
|
||||
|
||||
courseviewvisible:false,
|
||||
courseownervisible:false,
|
||||
offcourseId: null,
|
||||
projectName: "",
|
||||
name: "",
|
||||
@@ -2747,14 +2759,18 @@ export default defineComponent({
|
||||
value="查看权"
|
||||
label="查看权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
onClick={()=>{
|
||||
state.courseviewvisible=true
|
||||
}}>
|
||||
<div>查看权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="管理权"
|
||||
label="管理权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
onClick={()=>{
|
||||
state.courseownervisible=true
|
||||
}}>
|
||||
<div>管理权</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
@@ -2852,14 +2868,18 @@ export default defineComponent({
|
||||
value="查看权"
|
||||
label="查看权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
onClick={()=>{
|
||||
state.courseviewvisible=true
|
||||
}}>
|
||||
<div>查看权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="管理权"
|
||||
label="管理权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
onClick={()=>{
|
||||
state.courseownervisible=true
|
||||
}}>
|
||||
<div>管理权</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
@@ -2988,14 +3008,18 @@ export default defineComponent({
|
||||
value="查看权"
|
||||
label="查看权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
onClick={()=>{
|
||||
state.courseviewvisible=true
|
||||
}}>
|
||||
<div>查看权</div>
|
||||
</a-select-option>
|
||||
<a-select-option
|
||||
value="管理权"
|
||||
label="管理权"
|
||||
style="padding-left:30px;"
|
||||
>
|
||||
onClick={()=>{
|
||||
state.courseownervisible=true
|
||||
}}>
|
||||
<div>管理权</div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!---- 创建单层子项目页面 --->
|
||||
<template>
|
||||
<div class="projectAdd">
|
||||
<div class="sonproject">
|
||||
<div class="header">
|
||||
<span class="title">创建/编辑单层子项目</span>
|
||||
<div @click="backPage" style="cursor: pointer;" to="/projectmanage" class="goback">
|
||||
@@ -765,7 +765,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.projectAdd {
|
||||
.sonproject {
|
||||
width: 100%;
|
||||
// height: inherit;
|
||||
// flex: 1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="allCon">
|
||||
<div class="taskadd">
|
||||
<div class="left clearfix">
|
||||
<div class="leftmain">
|
||||
<div class="tit">
|
||||
@@ -794,7 +794,7 @@
|
||||
v-model:visible="visiblene"
|
||||
:footer="null"
|
||||
centered="true"
|
||||
wrapClassName="changeModal"
|
||||
wrapClassName="moveModal"
|
||||
>
|
||||
<div class="con">
|
||||
<div class="header">
|
||||
@@ -1837,8 +1837,78 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
display: flex;
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
//height: 40px;
|
||||
// border: 1px solid black;
|
||||
.namebox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
.nameimg {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
}
|
||||
.d {
|
||||
margin-top: 8px;
|
||||
font-size: 25px;
|
||||
color: #ff4e4e;
|
||||
}
|
||||
.box {
|
||||
position: relative;
|
||||
margin-left: 14px;
|
||||
.box1 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 50px;
|
||||
margin-left: -25px;
|
||||
margin-top: -5px;
|
||||
border-top: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
.box2 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 50px;
|
||||
//margin-left: -5px;
|
||||
margin-top: -25px;
|
||||
border-left: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
}
|
||||
.inname {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
flex: 1;
|
||||
// .ant-radio-wrapper {
|
||||
// }
|
||||
.ant-input-affix-wrapper {
|
||||
width: 384px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.ant-input {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
//width: 384px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.changeModal {
|
||||
|
||||
}
|
||||
.moveModal {
|
||||
.ant-modal {
|
||||
width: 549px !important;
|
||||
height: 245px !important;
|
||||
@@ -1939,179 +2009,112 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.info {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
display: flex;
|
||||
margin-top: 30px;
|
||||
// align-items: center;
|
||||
// height: 40px;
|
||||
// border: 1px solid black;
|
||||
// .info {
|
||||
// width: 78%;
|
||||
// // background-color: lightcoral;
|
||||
// display: flex;
|
||||
// margin-top: 30px;
|
||||
// // align-items: center;
|
||||
// // height: 40px;
|
||||
// // border: 1px solid black;
|
||||
|
||||
.inname {
|
||||
color: #6f6f6f;
|
||||
font-size: 14px;
|
||||
margin-left: 26px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
width: 81%;
|
||||
position: relative;
|
||||
.ant-input {
|
||||
border-radius: 5px;
|
||||
// height: 120%;
|
||||
width: 100%;
|
||||
height: 130px;
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.name {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
display: flex;
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
//height: 40px;
|
||||
// border: 1px solid black;
|
||||
.namebox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-shrink: 0;
|
||||
.nameimg {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
}
|
||||
.d {
|
||||
margin-top: 8px;
|
||||
font-size: 25px;
|
||||
color: #ff4e4e;
|
||||
}
|
||||
.box {
|
||||
position: relative;
|
||||
margin-left: 14px;
|
||||
.box1 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 50px;
|
||||
margin-left: -25px;
|
||||
margin-top: -5px;
|
||||
border-top: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
.box2 {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 50px;
|
||||
//margin-left: -5px;
|
||||
margin-top: -25px;
|
||||
border-left: 2px solid rgba(78, 166, 255, 1);
|
||||
}
|
||||
}
|
||||
.inname {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
flex: 1;
|
||||
// .ant-radio-wrapper {
|
||||
// }
|
||||
.ant-input-affix-wrapper {
|
||||
width: 384px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.ant-input {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
//width: 384px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.drawerStyle {
|
||||
.ant-drawer-content-wrapper {
|
||||
// max-width: 1000px;
|
||||
.ant-drawer-header {
|
||||
display: none !important;
|
||||
}
|
||||
.ant-drawer-body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.drawerMain {
|
||||
min-width: 600px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.drawerbox {
|
||||
margin: 20px 38px 30px;
|
||||
th {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
// .inname {
|
||||
// color: #6f6f6f;
|
||||
// font-size: 14px;
|
||||
// margin-left: 26px;
|
||||
// margin-top: 15px;
|
||||
// }
|
||||
// .in {
|
||||
// margin-left: 14px;
|
||||
// width: 81%;
|
||||
// position: relative;
|
||||
// .ant-input {
|
||||
// border-radius: 5px;
|
||||
// // height: 120%;
|
||||
// width: 100%;
|
||||
// height: 130px;
|
||||
// resize: none;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
.ant-table-tbody
|
||||
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
> td {
|
||||
background: #f6f9fd;
|
||||
}
|
||||
}
|
||||
.btnn {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #4ea6ff;
|
||||
border-radius: 8px;
|
||||
color: #4ea6ff;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
background: #4ea6ff;
|
||||
border-radius: 8px;
|
||||
border: 0;
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.allCon {
|
||||
// .drawerStyle {
|
||||
// .ant-drawer-content-wrapper {
|
||||
// // max-width: 1000px;
|
||||
// .ant-drawer-header {
|
||||
// display: none !important;
|
||||
// }
|
||||
// .ant-drawer-body {
|
||||
// padding: 0;
|
||||
// }
|
||||
// }
|
||||
// .drawerMain {
|
||||
// min-width: 600px;
|
||||
// margin: 0px 32px 0px 32px;
|
||||
// overflow-x: auto;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// .header {
|
||||
// height: 73px;
|
||||
// border-bottom: 1px solid #e8e8e8;
|
||||
// display: flex;
|
||||
// justify-content: space-between;
|
||||
// align-items: center;
|
||||
// // background-color: red;
|
||||
// margin-bottom: 20px;
|
||||
// .headerTitle {
|
||||
// font-size: 18px;
|
||||
// font-weight: 600;
|
||||
// color: #333333;
|
||||
// line-height: 25px;
|
||||
// // margin-left: 24px;
|
||||
// }
|
||||
// }
|
||||
// .drawerbox {
|
||||
// margin: 20px 38px 30px;
|
||||
// th {
|
||||
// background-color: #eff4fc !important;
|
||||
// }
|
||||
|
||||
// .ant-table-tbody
|
||||
// > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
|
||||
// > td {
|
||||
// background: #f6f9fd;
|
||||
// }
|
||||
// }
|
||||
// .btnn {
|
||||
// height: 72px;
|
||||
// width: 100%;
|
||||
// position: absolute;
|
||||
// bottom: 0;
|
||||
// left: 0;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
// .btn1 {
|
||||
// width: 100px;
|
||||
// height: 40px;
|
||||
// border: 1px solid #4ea6ff;
|
||||
// border-radius: 8px;
|
||||
// color: #4ea6ff;
|
||||
// background-color: #fff;
|
||||
// cursor: pointer;
|
||||
// }
|
||||
// .btn2 {
|
||||
// cursor: pointer;
|
||||
// width: 100px;
|
||||
// height: 40px;
|
||||
// background: #4ea6ff;
|
||||
// border-radius: 8px;
|
||||
// border: 0;
|
||||
// margin-left: 15px;
|
||||
// color: #fff;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
.taskadd {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
min-width: 933px;
|
||||
|
||||
@@ -89,6 +89,12 @@
|
||||
<div @click="downloadQr(400)">下载400</div>
|
||||
<div @click="downloadQr(800)">下载800</div>
|
||||
</div>
|
||||
|
||||
<div @click="changeCodevisible">显示二维码弹窗</div>
|
||||
<two-dimensional-code v-model:codevisible="codevisible" :codeInfo="codeInfo" index="0"/>
|
||||
|
||||
<div @click="changeCodevisible2">显示二维码弹窗22</div>
|
||||
<two-dimensional-code v-model:codevisible="codevisible2" :codeInfo="codeInfo2" index="1"/>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
@@ -105,6 +111,8 @@ import { useRouter } from "vue-router";
|
||||
import draggable from "vuedraggable";
|
||||
import QrcodeVue from "qrcode.vue";
|
||||
import html2canvas from "html2canvas";
|
||||
|
||||
import TwoDimensionalCode from '../../components/TwoDimensionalCode.vue'
|
||||
export default {
|
||||
name: "SystemManage",
|
||||
components: {
|
||||
@@ -113,6 +121,7 @@ export default {
|
||||
// PlusOutlined,
|
||||
draggable,
|
||||
QrcodeVue,
|
||||
TwoDimensionalCode
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
@@ -148,8 +157,14 @@ export default {
|
||||
name: "拖拽六",
|
||||
},
|
||||
],
|
||||
|
||||
qrcodeUrl: "https://www.baidu.com/",
|
||||
qrcodeSize:800,
|
||||
|
||||
codevisible:false,
|
||||
codeInfo:{},
|
||||
codevisible2:false,
|
||||
codeInfo2:{}
|
||||
});
|
||||
|
||||
const showDrawer = () => {
|
||||
@@ -303,6 +318,24 @@ let canvasBox = document.createElement('canvas');
|
||||
// a.click();
|
||||
});
|
||||
};
|
||||
|
||||
//显示二维码弹窗
|
||||
const changeCodevisible=()=>{
|
||||
state.codevisible=true
|
||||
state.codeInfo={
|
||||
title:"签到二维码",
|
||||
name:'管理者进阶面授课程',
|
||||
url:"https://www.baidu.com/",
|
||||
}
|
||||
}
|
||||
const changeCodevisible2=()=>{
|
||||
state.codevisible2=true
|
||||
state.codeInfo2={
|
||||
title:"签到二维码2222",
|
||||
name:'管理者进阶面授课程2222',
|
||||
url:"https://blog.csdn.net/qq_44034384/article/details/93612152",
|
||||
}
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
showDrawer,
|
||||
@@ -311,6 +344,8 @@ let canvasBox = document.createElement('canvas');
|
||||
beforeUpload,
|
||||
golearningpath,
|
||||
downloadQr,
|
||||
changeCodevisible,
|
||||
changeCodevisible2,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user