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