mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
测评上传
This commit is contained in:
@@ -213,6 +213,7 @@
|
||||
</div>
|
||||
</a-upload>
|
||||
</div>
|
||||
<span v-if="valueAll.length!=0" style="margin-right: 276px;">上传完成</span>
|
||||
</div>
|
||||
<!-- <div class="bg_body_bt" v-if="btShowEdit" style="justify-content: flex-start;">
|
||||
<div class="mbl_items12">
|
||||
@@ -374,6 +375,9 @@
|
||||
<a-button type="link" @click="textDelete(record)">
|
||||
<span class="download">删除</span>
|
||||
</a-button>
|
||||
<a-button type="link" @click="updateAuthority(record)">
|
||||
<span class="download">修改权限</span>
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
@@ -687,6 +691,7 @@ import { message } from "ant-design-vue";
|
||||
bg_results: false,
|
||||
bg_remarks: false,
|
||||
checkclick: [],
|
||||
permissionId:'',
|
||||
filesList:[],
|
||||
tableData:[],
|
||||
tableData1:[],
|
||||
@@ -815,7 +820,7 @@ import { message } from "ant-design-vue";
|
||||
width: "20%",
|
||||
dataIndex: "id",
|
||||
key: "id",
|
||||
align: "center",
|
||||
align: "right",
|
||||
slots: { customRender: "operation" },
|
||||
},
|
||||
])
|
||||
@@ -985,6 +990,11 @@ import { message } from "ant-design-vue";
|
||||
}
|
||||
})
|
||||
}
|
||||
const updateAuthority = (record) => {
|
||||
state.bg_power = true
|
||||
state.permissionId = record.id
|
||||
state.checkclick = record.permission.split(',')
|
||||
}
|
||||
const bgcheck = (record) =>{
|
||||
router.push({
|
||||
path:'/evadown',
|
||||
@@ -1048,7 +1058,7 @@ import { message } from "ant-design-vue";
|
||||
}
|
||||
state.tableLoading = true
|
||||
|
||||
if(state.uploadStatus){
|
||||
if(state.uploadStatus||state.btShow){
|
||||
console.log(state.uploadStatus,'state.uploadStatus')
|
||||
await save({
|
||||
id: state.uploadDownId,
|
||||
@@ -1070,8 +1080,12 @@ import { message } from "ant-design-vue";
|
||||
item.createId = userInfo.value.userId
|
||||
}
|
||||
})
|
||||
await saveEvaluationDetail({evaluationDetailListlist:state.valueAll,pid:state.uploadId}).then((res)=>{
|
||||
console.log(res.data,'json')
|
||||
//
|
||||
await saveEvaluationDetail({assessmentScoringQuestionDtoList:state.valueAll,pid:state.uploadId}).then((res)=>{
|
||||
if(res.code == 200){
|
||||
message.success(res.msg)
|
||||
}
|
||||
console.log(res,'aaa')
|
||||
})
|
||||
}
|
||||
//else{
|
||||
@@ -1334,10 +1348,11 @@ import { message } from "ant-design-vue";
|
||||
const powerSetting = async (record) => {
|
||||
state.powerStatus = (record)
|
||||
state.bg_power = true
|
||||
state.checkclick = record.permission
|
||||
// state.checkclick = record.permission
|
||||
}
|
||||
const of_power = () => {
|
||||
state.bg_power = false
|
||||
state.permissionId = ''
|
||||
}
|
||||
const powerTrue = async () => {
|
||||
// state.tableLoadingAdd = true
|
||||
@@ -1349,6 +1364,12 @@ import { message } from "ant-design-vue";
|
||||
// saveListItem()
|
||||
// }
|
||||
// })
|
||||
if(state.permissionId){
|
||||
await updateStatus({id:state.permissionId,permission:state.checkclick.join(",")}).then((res)=>{
|
||||
console.log(res,'res')
|
||||
saveListItem()
|
||||
})
|
||||
}
|
||||
of_power()
|
||||
}
|
||||
const textEnableAdd = async (record) => {
|
||||
@@ -1432,6 +1453,7 @@ import { message } from "ant-design-vue";
|
||||
paginationAdd,
|
||||
textDisabled,
|
||||
textDelete,
|
||||
updateAuthority,
|
||||
// textEnable,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user