mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 18:36:46 +08:00
测评上传
This commit is contained in:
@@ -366,7 +366,7 @@
|
||||
>
|
||||
<template #action="{ record, column }">
|
||||
<a-space>
|
||||
<a-button type="link" @click="textEnableAdd(record)" :disabled="record.status==0">
|
||||
<a-button type="link" @click="textEnableAdd2(record)" :disabled="record.status==0">
|
||||
<span :class="{text_color:record.status==0?'text_color':''}">启用</span>
|
||||
</a-button>
|
||||
<a-button type="link" @click="textDisabled(record)" :disabled="record.status==1">
|
||||
@@ -665,8 +665,7 @@ import {getCookieForName} from "@/api/method";
|
||||
import { useRouter } from "vue-router";
|
||||
import dialog from "@/utils/dialog";
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
import axios from 'axios';
|
||||
import JSONbig from 'json-bigint';
|
||||
import {boeRequest} from "@/api/request";
|
||||
import {
|
||||
list,
|
||||
importList,
|
||||
@@ -1033,6 +1032,7 @@ import { message } from "ant-design-vue";
|
||||
})
|
||||
}
|
||||
const textDelete = (record) => {
|
||||
console.log(record.id,'aaaaa')
|
||||
dialog({
|
||||
content: '是否删除?',
|
||||
ok: () => {
|
||||
@@ -1147,7 +1147,7 @@ import { message } from "ant-design-vue";
|
||||
message.success(res.msg)
|
||||
}
|
||||
if(res.data.code == -1){
|
||||
message.error(res.msg)
|
||||
message.error('保存失败')
|
||||
}
|
||||
console.log(res,'aaa')
|
||||
})
|
||||
@@ -1321,20 +1321,33 @@ import { message } from "ant-design-vue";
|
||||
//权限列表
|
||||
const saveListItem = async () => {
|
||||
state.tableLoadingAut = true
|
||||
await saveLists({
|
||||
await boeRequest('/activityApi/permission/list post',{
|
||||
pid:state.saveListPid,
|
||||
nameOrWorkNum:state.searchParam.createNames,
|
||||
status:state.searchParam.status2,
|
||||
pageNo: state.params.pageNo,
|
||||
pageSize: state.params.pageSize
|
||||
}).then((res)=>{
|
||||
console.log(res,'res')
|
||||
if(res.code === 200){
|
||||
state.tableData1 = res.data.records
|
||||
state.total = res.data.total
|
||||
state.tableLoadingAut = false
|
||||
}
|
||||
})
|
||||
// await saveLists({
|
||||
// pid:state.saveListPid,
|
||||
// nameOrWorkNum:state.searchParam.createNames,
|
||||
// status:state.searchParam.status2,
|
||||
// pageNo: state.params.pageNo,
|
||||
// pageSize: state.params.pageSize
|
||||
// }).then((res)=>{
|
||||
// console.log(res,'res')
|
||||
// if(res.code === 200){
|
||||
// state.tableData1 = res.data.records
|
||||
// state.total = res.data.total
|
||||
// state.tableLoadingAut = false
|
||||
// }
|
||||
// })
|
||||
}
|
||||
// 权限
|
||||
const authorityItem = async (record) => {
|
||||
@@ -1346,9 +1359,11 @@ import { message } from "ant-design-vue";
|
||||
const of_setting = () => {
|
||||
state.params.pageNo = 1
|
||||
state.bg_setting = false
|
||||
// listData()
|
||||
}
|
||||
const settingUp = () => {
|
||||
state.bg_setting = false
|
||||
listData()
|
||||
}
|
||||
// 测评
|
||||
// const editName = (record) => {
|
||||
@@ -1381,11 +1396,29 @@ import { message } from "ant-design-vue";
|
||||
//搜索权限
|
||||
const searchSave = async () => {
|
||||
state.tableLoadingAdd = true
|
||||
await adminList({
|
||||
// await adminList({
|
||||
// keyword:state.searchParam.createName,
|
||||
// pageNo: state.paramsAdd.pageNo,
|
||||
// pageSize: state.paramsAdd.pageSize,
|
||||
// }).then((res)=>{
|
||||
// if(res.code === 200){
|
||||
// console.log(res.data,'aaaa')
|
||||
// state.tableDataAdd = res.data
|
||||
// state.tableLoadingAdd = false
|
||||
// console.log(res,'res')
|
||||
// const workNums = state.tableData1.map(item=>item.workNum)
|
||||
// state.tableDataAdd.forEach(item => {
|
||||
// if(workNums.includes(item.userNo))
|
||||
// item.status = 0
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
await boeRequest('/activityApi/permission/adminList post',{
|
||||
keyword:state.searchParam.createName,
|
||||
pageNo: state.paramsAdd.pageNo,
|
||||
pageSize: state.paramsAdd.pageSize,
|
||||
}).then((res)=>{
|
||||
console.log(res.data,'aaaaa')
|
||||
if(res.code === 200){
|
||||
state.tableDataAdd = res.data
|
||||
state.tableLoadingAdd = false
|
||||
@@ -1425,6 +1458,7 @@ import { message } from "ant-design-vue";
|
||||
const powerTrue = async () => {
|
||||
// state.tableLoadingAdd = true
|
||||
state.powerStatus.permission = state.checkclick.join(",")
|
||||
// state.powerStatus.permissionStatus = 0
|
||||
// state.powerStatus[0].permission = state.checkclick.join(",")
|
||||
// await savePermission({userList:state.powerStatus,pid:state.saveListPid}).then((res)=>{
|
||||
// if(res.code === 200){
|
||||
@@ -1438,22 +1472,46 @@ import { message } from "ant-design-vue";
|
||||
saveListItem()
|
||||
})
|
||||
}
|
||||
listData()
|
||||
of_power()
|
||||
}
|
||||
const textEnableAdd = async (record) => {
|
||||
const textEnableAdd2 = async (record) => {
|
||||
await updateStatus({status:0,id:record.id}).then((res)=>{
|
||||
if(res.code === 200){
|
||||
message.success('启用成功')
|
||||
record.statusList = 0
|
||||
if(state.powerStatus.id === record.id){
|
||||
state.saveList.push(state.powerStatus)
|
||||
}else{
|
||||
state.saveList.push(record)
|
||||
}
|
||||
// record.statusList = 0
|
||||
// if(state.powerStatus.id === record.id){
|
||||
// state.saveList.push(state.powerStatus)
|
||||
// }else{
|
||||
// state.saveList.push(record)
|
||||
// }
|
||||
listData()
|
||||
saveListItem()
|
||||
}
|
||||
})
|
||||
}
|
||||
const textEnableAdd = async (record) => {
|
||||
record.statusList = 0
|
||||
if(state.powerStatus.id === record.id){
|
||||
state.powerStatus.permissionStatus = 0
|
||||
state.saveList.push(state.powerStatus)
|
||||
}else{
|
||||
record.permissionStatus = 0
|
||||
state.saveList.push(record)
|
||||
}
|
||||
// await updateStatus({status:0,id:record.id}).then((res)=>{
|
||||
// if(res.code === 200){
|
||||
// message.success('启用成功')
|
||||
// record.statusList = 0
|
||||
// if(state.powerStatus.id === record.id){
|
||||
// state.saveList.push(state.powerStatus)
|
||||
// }else{
|
||||
// state.saveList.push(record)
|
||||
// }
|
||||
// saveListItem()
|
||||
// }
|
||||
// })
|
||||
}
|
||||
const textDeleteAdd = (record,index) => {
|
||||
dialog({
|
||||
content: '是否删除?',
|
||||
@@ -1475,6 +1533,7 @@ import { message } from "ant-design-vue";
|
||||
removeSave,
|
||||
addSettingUp,
|
||||
textEnableAdd,
|
||||
textEnableAdd2,
|
||||
powerSetting,
|
||||
of_power,
|
||||
powerTrue,
|
||||
|
||||
Reference in New Issue
Block a user