审批试用页面调整
This commit is contained in:
@@ -93,12 +93,12 @@
|
||||
>
|
||||
refuse
|
||||
</div>
|
||||
<div
|
||||
<!-- <div
|
||||
class="operate_item"
|
||||
@click="deleteGroup(record, index)"
|
||||
>
|
||||
Delete
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
@@ -266,7 +266,7 @@ export default defineComponent({
|
||||
let userInfo:any = getCookie("userInfo")
|
||||
this.userInfo = JSON.parse(userInfo);
|
||||
|
||||
if (this.userInfo.userId == 83 || this.userInfo.userId == 88) {
|
||||
if (this.userInfo.userId == 83 || this.userInfo.userId == 88 || this.userInfo.userId == 6) {
|
||||
} else {
|
||||
router.replace("/home");
|
||||
return
|
||||
@@ -296,7 +296,6 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
setIsAutoApproval(){
|
||||
return
|
||||
Https.axiosPost(Https.httpUrls.switchIsAutoApproval, {}).then(
|
||||
(rv: any) => {
|
||||
this.getIsAutoApproval
|
||||
@@ -329,7 +328,6 @@ export default defineComponent({
|
||||
const formData = new FormData()
|
||||
formData.append('ids',record.id)
|
||||
let config:any = {headers:{'Content-Type':'multipart/form-data','Accept':'*/*' }}
|
||||
return
|
||||
Https.axiosPost(Https.httpUrls.trialOrderApproval, {ids:record.id}).then(
|
||||
(rv: any) => {
|
||||
message.success('同意成功~')
|
||||
@@ -348,30 +346,29 @@ export default defineComponent({
|
||||
);
|
||||
},
|
||||
//删除分组
|
||||
deleteGroup(record: any, index: number) {
|
||||
return
|
||||
let deleteGroupFun = (id: any, index: number) => {
|
||||
let data = {
|
||||
userGroupId: id,
|
||||
};
|
||||
Https.axiosPost(Https.httpUrls.deleteUserGroup, data).then(
|
||||
(rv: any) => {
|
||||
this.collectionList.splice(index, 1);
|
||||
}
|
||||
);
|
||||
};
|
||||
Modal.confirm({
|
||||
title: "11",
|
||||
icon: createVNode(ExclamationCircleOutlined),
|
||||
okText: "Yes",
|
||||
cancelText: "No",
|
||||
centered: true,
|
||||
mask: false,
|
||||
onOk() {
|
||||
deleteGroupFun(record.id, index);
|
||||
},
|
||||
});
|
||||
},
|
||||
// deleteGroup(record: any, index: number) {
|
||||
// let deleteGroupFun = (id: any, index: number) => {
|
||||
// let data = {
|
||||
// userGroupId: id,
|
||||
// };
|
||||
// Https.axiosPost(Https.httpUrls.deleteUserGroup, data).then(
|
||||
// (rv: any) => {
|
||||
// this.collectionList.splice(index, 1);
|
||||
// }
|
||||
// );
|
||||
// };
|
||||
// Modal.confirm({
|
||||
// title: "",
|
||||
// icon: createVNode(ExclamationCircleOutlined),
|
||||
// okText: "Yes",
|
||||
// cancelText: "No",
|
||||
// centered: true,
|
||||
// mask: false,
|
||||
// onOk() {
|
||||
// deleteGroupFun(record.id, index);
|
||||
// },
|
||||
// });
|
||||
// },
|
||||
setState(){
|
||||
this.currentState.state = true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user