mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
fix:修改审核项目和课程的时间
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-11-16 20:59:06
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-11-16 21:08:27
|
||||
* @LastEditTime: 2022-12-07 08:53:23
|
||||
* @FilePath: /fe-manage/src/views/examine/CourseReviewed.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
|
||||
-->
|
||||
@@ -14,24 +14,38 @@
|
||||
<div class="tmplh_inp">
|
||||
<div class="inpbox">
|
||||
<div class="inpbox1">
|
||||
<a-select v-model:value="valueproj" value-key="value"
|
||||
:options="[{ label: '请选择内容分类', value: '' }, ...calssifyList]" />
|
||||
<a-select
|
||||
v-model:value="valueproj"
|
||||
value-key="value"
|
||||
:options="[
|
||||
{ label: '请选择内容分类', value: '' },
|
||||
...calssifyList,
|
||||
]"
|
||||
/>
|
||||
</div>
|
||||
<div class="inpbox1">
|
||||
<a-input v-model:value="valuecreater" style="
|
||||
<a-input
|
||||
v-model:value="valuecreater"
|
||||
style="
|
||||
width: 270px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
margin-right: 14px;
|
||||
" placeholder="请输入创建人" />
|
||||
"
|
||||
placeholder="请输入创建人"
|
||||
/>
|
||||
</div>
|
||||
<div class="inpbox1">
|
||||
<a-input v-model:value="valuename" style="
|
||||
<a-input
|
||||
v-model:value="valuename"
|
||||
style="
|
||||
width: 270px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
margin-right: 14px;
|
||||
" placeholder="请输入名称" />
|
||||
"
|
||||
placeholder="请输入名称"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,56 +62,71 @@
|
||||
</div>
|
||||
<div class="tmpl_body">
|
||||
<div class="tmpl_tabbox">
|
||||
<a-table :columns="columns1" :data-source="tableData1" :loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true" @expand="expandTable" :scroll="{ x: 1300 }" :pagination="false" />
|
||||
<a-table
|
||||
:columns="columns1"
|
||||
:data-source="tableData1"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
@expand="expandTable"
|
||||
:scroll="{ x: 1300 }"
|
||||
:pagination="false"
|
||||
/>
|
||||
</div>
|
||||
<div class="tableBox">
|
||||
<div class="pa">
|
||||
<a-pagination v-if="total > 10" showSizeChanger="true" show-quick-jumper :pageSize="pageSize"
|
||||
v-model:current="currentPage" :total="total" class="pagination" @change="changePagination" />
|
||||
<a-pagination
|
||||
v-if="total > 10"
|
||||
showSizeChanger="true"
|
||||
show-quick-jumper
|
||||
:pageSize="pageSize"
|
||||
v-model:current="currentPage"
|
||||
:total="total"
|
||||
class="pagination"
|
||||
@change="changePagination"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 审核日志弹窗 -->
|
||||
<a-modal
|
||||
v-model:visible="projAuditModal"
|
||||
:footer="null"
|
||||
:closable="closeBack"
|
||||
wrapClassName="projAuditModal"
|
||||
centered="true"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>审核记录</span>
|
||||
<!-- <div class="close_exit" @click="closeProjAuditModal"></div> -->
|
||||
<!-- 审核日志弹窗 -->
|
||||
<a-modal
|
||||
v-model:visible="projAuditModal"
|
||||
:footer="null"
|
||||
:closable="closeBack"
|
||||
wrapClassName="projAuditModal"
|
||||
centered="true"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
<div class="del_main">
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>审核记录</span>
|
||||
<!-- <div class="close_exit" @click="closeProjAuditModal"></div> -->
|
||||
</div>
|
||||
<div class="body">
|
||||
<a-table
|
||||
style="width: 90%"
|
||||
:columns="columnsAudit"
|
||||
:data-source="tableDataAudit"
|
||||
:loading="tableDataTotalAudit === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
:scroll="{ y: 150 }"
|
||||
@expand="expandTable"
|
||||
:pagination="false"
|
||||
/>
|
||||
</div>
|
||||
<div class="del_btnbox">
|
||||
<div class="del_btn btn1" @click="closeProjAuditModal">
|
||||
<div class="btnText">取消</div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<a-table
|
||||
style="width: 90%"
|
||||
:columns="columnsAudit"
|
||||
:data-source="tableDataAudit"
|
||||
:loading="tableDataTotalAudit === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
:scroll="{ y: 150 }"
|
||||
@expand="expandTable"
|
||||
:pagination="false"
|
||||
/>
|
||||
</div>
|
||||
<div class="del_btnbox">
|
||||
<div class="del_btn btn1" @click="closeProjAuditModal">
|
||||
<div class="btnText">取消</div>
|
||||
</div>
|
||||
<div class="del_btn btn2" @click="closeProjAuditModal">
|
||||
<div class="btnText">确定</div>
|
||||
</div>
|
||||
<div class="del_btn btn2" @click="closeProjAuditModal">
|
||||
<div class="btnText">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -131,7 +160,9 @@ export default {
|
||||
dataIndex: "status",
|
||||
key: "status",
|
||||
align: "center",
|
||||
customRender: ({record: {status}}) => <div>{{'2': '审核通过', '-2': '审核拒绝'}[(status + '')]}</div>,
|
||||
customRender: ({ record: { status } }) => (
|
||||
<div>{{ 2: "审核通过", "-2": "审核拒绝" }[status + ""]}</div>
|
||||
),
|
||||
},
|
||||
|
||||
{
|
||||
@@ -139,7 +170,7 @@ export default {
|
||||
dataIndex: "createTime",
|
||||
key: "createTime",
|
||||
align: "center",
|
||||
width: 220
|
||||
width: 220,
|
||||
},
|
||||
|
||||
{
|
||||
@@ -173,7 +204,8 @@ export default {
|
||||
dataIndex: "content",
|
||||
key: "content",
|
||||
align: "center",
|
||||
customRender: ({ text }) => state.calssifyList.find(e => e.value == text)?.label,
|
||||
customRender: ({ text }) =>
|
||||
state.calssifyList.find((e) => e.value == text)?.label,
|
||||
},
|
||||
{
|
||||
title: "审核状态",
|
||||
@@ -195,7 +227,6 @@ export default {
|
||||
customRender: (time) => {
|
||||
return <div style="color:#387DF7">{time.record.time}</div>;
|
||||
},
|
||||
|
||||
},
|
||||
{
|
||||
title: "审核说明",
|
||||
@@ -209,12 +240,17 @@ export default {
|
||||
key: "opt",
|
||||
align: "center",
|
||||
customRender: (value) => {
|
||||
return <div
|
||||
style="color:#387DF7;cursor:pointer;"
|
||||
onClick={() => {
|
||||
console.log(value)
|
||||
showProjAuditModal(value.record.auditLogDtoList);
|
||||
}}>审核日志</div>;
|
||||
return (
|
||||
<div
|
||||
style="color:#387DF7;cursor:pointer;"
|
||||
onClick={() => {
|
||||
console.log(value);
|
||||
showProjAuditModal(value.record.auditLogDtoList);
|
||||
}}
|
||||
>
|
||||
审核日志
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -243,7 +279,7 @@ export default {
|
||||
pageNo: state.currentPage,
|
||||
pageSize: 10,
|
||||
};
|
||||
console.log(objn)
|
||||
console.log(objn);
|
||||
courseListView(objn)
|
||||
.then((res) => {
|
||||
console.log("获取已审核课程成功", res.data.data);
|
||||
@@ -256,14 +292,14 @@ export default {
|
||||
};
|
||||
const setTableData = (table) => {
|
||||
if (!table || !table.length) {
|
||||
state.tableData1 = []
|
||||
return
|
||||
state.tableData1 = [];
|
||||
return;
|
||||
}
|
||||
let data = table;
|
||||
let array = [];
|
||||
data.map((item, n) => {
|
||||
let obj = {
|
||||
number: n+1 + (state.currentPage-1) *10,
|
||||
number: n + 1 + (state.currentPage - 1) * 10,
|
||||
name: item.name || "- ",
|
||||
type: item.type == 1 ? "线上" : "线下",
|
||||
content: item.categoryId,
|
||||
@@ -271,24 +307,24 @@ export default {
|
||||
item.auditStatus == 0
|
||||
? "未提交"
|
||||
: item.auditStatus == 1
|
||||
? "提交待审核"
|
||||
: item.auditStatus == 2
|
||||
? "通过"
|
||||
: item.auditStatus == -1
|
||||
? "拒绝"
|
||||
: "-",
|
||||
? "提交待审核"
|
||||
: item.auditStatus == 2
|
||||
? "通过"
|
||||
: item.auditStatus == -1
|
||||
? "拒绝"
|
||||
: "-",
|
||||
creater: item.createName,
|
||||
time: item.createTime,
|
||||
msg: item.description || "-",
|
||||
auditLogDtoList: item.auditLogDtoList
|
||||
auditLogDtoList: item.auditLogDtoList,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
state.tableData1 = array;
|
||||
console.log(data)
|
||||
console.log(data);
|
||||
};
|
||||
const reset = () => {
|
||||
(state.valueproj = ''),
|
||||
(state.valueproj = ""),
|
||||
(state.valuecreater = null),
|
||||
(state.valuename = null),
|
||||
getList();
|
||||
@@ -297,21 +333,27 @@ export default {
|
||||
state.currentPage = pagina;
|
||||
getList();
|
||||
};
|
||||
const getDictList = (param) => api1.getDict({
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
setCode: param
|
||||
}).then((res) => res.data.data.rows)
|
||||
const getDictList = (param) =>
|
||||
api1
|
||||
.getDict({
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
setCode: param,
|
||||
})
|
||||
.then((res) => res.data.data.rows);
|
||||
|
||||
onMounted(async () => {
|
||||
getList();
|
||||
//获取分类列表
|
||||
state.calssifyList = (await getDictList("faceclassClass")).map(e => ({ label: e.dictName, value: e.dictCode }))
|
||||
state.calssifyList = (await getDictList("faceclassClass")).map((e) => ({
|
||||
label: e.dictName,
|
||||
value: e.dictCode,
|
||||
}));
|
||||
});
|
||||
|
||||
// 显示审核
|
||||
const showProjAuditModal = (data) => {
|
||||
state.tableDataAudit = data
|
||||
state.tableDataAudit = data;
|
||||
state.projAuditModal = true;
|
||||
};
|
||||
|
||||
@@ -326,7 +368,7 @@ export default {
|
||||
reset,
|
||||
changePagination,
|
||||
showProjAuditModal,
|
||||
closeProjAuditModal
|
||||
closeProjAuditModal,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -522,8 +564,8 @@ export default {
|
||||
width: calc(100%);
|
||||
height: 68px;
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user