feat:修改归属权及查看权

This commit is contained in:
lixg
2022-11-14 10:12:02 +08:00
parent 27dc936ccc
commit 17e24ae408
13 changed files with 1719 additions and 1047 deletions

27
package-lock.json generated
View File

@@ -13,6 +13,7 @@
"axios": "^1.1.3",
"core-js": "^3.8.3",
"element-plus": "^2.2.17",
"element-resize-detector": "^1.2.4",
"html2canvas": "^1.4.1",
"jquery": "^3.6.1",
"qrcode.vue": "^3.3.3",
@@ -3536,6 +3537,11 @@
"integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==",
"dev": true
},
"node_modules/batch-processor": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/batch-processor/-/batch-processor-1.0.0.tgz",
"integrity": "sha512-xoLQD8gmmR32MeuBHgH0Tzd5PuSZx71ZsbhVxOCRbgktZEPe4SQy7s9Z50uPp0F/f7iw2XmkHN2xkgbMfckMDA=="
},
"node_modules/big.js": {
"version": "5.2.2",
"resolved": "https://registry.npmmirror.com/big.js/-/big.js-5.2.2.tgz",
@@ -4934,6 +4940,14 @@
"resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz",
"integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ=="
},
"node_modules/element-resize-detector": {
"version": "1.2.4",
"resolved": "https://registry.npmmirror.com/element-resize-detector/-/element-resize-detector-1.2.4.tgz",
"integrity": "sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg==",
"dependencies": {
"batch-processor": "1.0.0"
}
},
"node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
@@ -14162,6 +14176,11 @@
"integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==",
"dev": true
},
"batch-processor": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/batch-processor/-/batch-processor-1.0.0.tgz",
"integrity": "sha512-xoLQD8gmmR32MeuBHgH0Tzd5PuSZx71ZsbhVxOCRbgktZEPe4SQy7s9Z50uPp0F/f7iw2XmkHN2xkgbMfckMDA=="
},
"big.js": {
"version": "5.2.2",
"resolved": "https://registry.npmmirror.com/big.js/-/big.js-5.2.2.tgz",
@@ -15332,6 +15351,14 @@
}
}
},
"element-resize-detector": {
"version": "1.2.4",
"resolved": "https://registry.npmmirror.com/element-resize-detector/-/element-resize-detector-1.2.4.tgz",
"integrity": "sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg==",
"requires": {
"batch-processor": "1.0.0"
}
},
"emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",

View File

@@ -13,6 +13,7 @@
"axios": "^1.1.3",
"core-js": "^3.8.3",
"element-plus": "^2.2.17",
"element-resize-detector": "^1.2.4",
"html2canvas": "^1.4.1",
"jquery": "^3.6.1",
"qrcode.vue": "^3.3.3",

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

View File

@@ -1021,17 +1021,17 @@ export default {
state.selectedRowKeys2 = selectedRowKeys;
};
const getMousePosition = () => {
const getClientHeight = () => {
state.screenHeight = document.body.clientHeight;
};
onMounted(() => {
// console.log("11111", 1);
window.addEventListener("resize", getMousePosition, false);
window.addEventListener("resize", getClientHeight, false);
// judgeUrl();
});
onUnmounted(() => {
window.removeEventListener("resize", getMousePosition, false);
window.removeEventListener("resize", getClientHeight, false);
});
return {
...toRefs(state),

View File

@@ -1,5 +1,5 @@
<template>
<a-drawer
<a-drawer
:visible="corpowerlistVisible"
class="drawerStyle corpowerlistDrawer"
width="80%"
@@ -80,7 +80,8 @@
</div>
</div>
</a-drawer>
</template>
</template>
<script>
import { reactive, toRefs, ref } from "vue";
const columns1 = [
@@ -205,9 +206,9 @@
};
</script>
<style lang="scss">
.ant-table-striped :deep(.table-striped) td {
background-color: #fafafa !important;
}
// .ant-table-striped :deep(.table-striped) td {
// background-color: #fafafa !important;
// }
.corpowerlistDrawer {
.drawerMain {

View File

@@ -93,7 +93,7 @@
</div>
</div>
</a-tab-pane>
<a-tab-pane key="2" tab="添加组织" force-render>
<!-- <a-tab-pane key="2" tab="添加组织" force-render>
<div class="tab2">
<div class="t1">
<div class="organize">选择组织</div>
@@ -123,7 +123,7 @@
/>
</div>
</div>
<!-- 选完后出现下面 -->
<div class="searchdown">
<div class="btns">
<div class="btn1">
@@ -213,19 +213,7 @@
<div class="wz">重置</div>
</div>
</div>
<!-- <div class="line">
<div class="inline">
<div class="left1">
<div class="img"></div>
<div class="text" style="margin-left: 10px">已选择</div>
<div class="text2">2</div>
<div class="text"></div>
<div class="text3">列表选项总计</div>
<div class="text4">9</div>
</div>
<div class="right1">清空</div>
</div>
</div> -->
<div class="tabb" style="margin-top: 16px">
<a-table
style="border: 1px solid #f2f6fe"
@@ -256,7 +244,7 @@
</div>
</div>
</div>
</a-tab-pane>
</a-tab-pane> -->
</a-tabs>
</div>
</div>

View File

@@ -50,11 +50,7 @@
@expand="expandTable"
:scroll="{ x: 900 }"
:pagination="false"
:row-selection="{
columnWidth: 30,
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
/>
</div>
@@ -562,7 +558,7 @@ export default {
.classify {
// margin-left: 11px !important;
// padding-left: 9px !important;
padding-left: 0px !important;
padding-left: 20px !important;
}
.ant-checkbox-wrapper {
align-items: center;

View File

@@ -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,11 +50,7 @@
@expand="expandTable"
:scroll="{ x: 900 }"
:pagination="false"
:row-selection="{
columnWidth: 30,
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
/>
</div>
<div class="tableBox">
@@ -107,7 +103,7 @@
<div class="close_exit" @click="closeCancelModal"></div>
</div>
<div class="body">
<span>是否取消当前用户对此数据的权限</span>
<span>您确定要取消该用户的授权吗</span>
</div>
<div class="del_btnbox">
<div class="del_btn btn1">
@@ -255,13 +251,13 @@ export default {
// width: "30%",
key: "name",
width: 70,
align: "left",
// align: "left",
className: "classify",
scopedSlots: { customRender: "action" }, //引入的插槽
customRender: (text) => {
// console.log(text.record.checked1);
return (
<div class="racona">
<div class="racona" >
<span> {text.record.name}</span>
</div>
);
@@ -450,7 +446,7 @@ export default {
.classify {
// margin-left: 11px !important;
// padding-left: 9px !important;
padding-left: 0px !important;
padding-left: 20px !important;
}
.ant-checkbox-wrapper {
align-items: center;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -234,17 +234,17 @@ export default {
const closeModal = () => {
state.visible = false;
};
const getMousePosition = () => {
const getClientHeight = () => {
state.screenHeight = document.body.clientHeight;
};
onMounted(() => {
// console.log("11111", 1);
window.addEventListener("resize", getMousePosition, false);
window.addEventListener("resize", getClientHeight, false);
// judgeUrl();
});
onUnmounted(() => {
window.removeEventListener("resize", getMousePosition, false);
window.removeEventListener("resize", getClientHeight, false);
});
return {

View File

@@ -51,7 +51,10 @@
<div class="imgIcon"></div>
</div>
<div class="boxs_right">
<div class="imgIcon" @click="deleteChapter(element.chapterId)"></div>
<div
class="imgIcon"
@click="deleteChapter(element.chapterId)"
></div>
</div>
</div>
<div class="items2">
@@ -1776,16 +1779,20 @@ export default {
}
};
//删除关卡
const deleteChapter=(chapterId)=>{
let obj={
chapterId:chapterId
}
api.deleteChapter(obj).then(res=>{
console.log('删除关卡成功',res)
}).catch(err=>{
console.log('删除关卡失败',err)
})
}
const deleteChapter = (chapterId) => {
console.log('chapterId',chapterId)
let obj = {
chapterId: chapterId,
};
api
.deleteChapter(obj)
.then((res) => {
console.log("删除关卡成功", res);
})
.catch((err) => {
console.log("删除关卡失败", err);
});
};
return {
...toRefs(state),
// tableDataFunc,