mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 15:56:47 +08:00
feat:增加项目授权以及修改新建项目
This commit is contained in:
@@ -124,8 +124,8 @@
|
||||
|
||||
<div class="botm"></div>
|
||||
<div class="btnn">
|
||||
<button class="btn1" @click="closeCancelModal">取消</button>
|
||||
<button class="btn2" @click="closeCancelModal">确定</button>
|
||||
<button class="btn1" @click="closeDrawer">取消</button>
|
||||
<button class="btn2" @click="closeDrawer">确定</button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
@@ -167,11 +167,12 @@ export default {
|
||||
// state: "管理权",
|
||||
// },
|
||||
],
|
||||
cancelAuthId: null, //取消授权id
|
||||
cancelAuthInfo: null, //取消授权id
|
||||
});
|
||||
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:ProjPvisible", false);
|
||||
state.currentPage = 1;
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("state", bool, props);
|
||||
@@ -183,9 +184,14 @@ export default {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys);
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
};
|
||||
const showCancelModal = (id) => {
|
||||
const showCancelModal = (item) => {
|
||||
console.log("item", item);
|
||||
state.cancelModal = true;
|
||||
state.cancelAuthId = id;
|
||||
let obj = {
|
||||
id: item.number,
|
||||
name: item.name,
|
||||
};
|
||||
state.cancelAuthInfo = obj;
|
||||
};
|
||||
const closeCancelModal = () => {
|
||||
state.cancelModal = false;
|
||||
@@ -259,7 +265,8 @@ export default {
|
||||
<div
|
||||
class="opa"
|
||||
onClick={() => {
|
||||
showCancelModal(text.record.id);
|
||||
console.log("text.record.id", text.record.id);
|
||||
showCancelModal(text.record);
|
||||
}}
|
||||
>
|
||||
取消授权
|
||||
@@ -299,9 +306,9 @@ export default {
|
||||
name: value.memberName ? value.memberName : "-",
|
||||
|
||||
com: value.orgName ? value.orgName : "-",
|
||||
gang: "产品经理",
|
||||
number: "20201234",
|
||||
state: "管理权",
|
||||
gang: "-",
|
||||
number: value.memberNo ? value.memberNo : "-",
|
||||
state: "-",
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
@@ -338,18 +345,22 @@ export default {
|
||||
type: 2,
|
||||
tag: 1,
|
||||
opt: 4,
|
||||
refId: state.cancelAuthId,
|
||||
refId: props.selectProjectId,
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
deptList: [],
|
||||
groupList: [],
|
||||
studentList: [state.cancelAuthInfo],
|
||||
};
|
||||
console.log("获取权限名单obj", obj);
|
||||
console.log("取消权限名单obj", obj);
|
||||
api
|
||||
.optionAuthPerm(obj)
|
||||
.then((res) => {
|
||||
// console.log("获取权限名单成功", res);
|
||||
console.log("取消权限名单", res);
|
||||
if (res.data.code === 200) {
|
||||
console.log("取消授权成功", res.data.data);
|
||||
// console.log("取消授权成功", res.data.data);
|
||||
optionAuthPerm();
|
||||
closeCancelModal();
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user