更新版本-参照 jinnang-v1
This commit is contained in:
1 parent
0ace3ac506
commit
c9c16e9d26
17 files changed
+2675
-1144
No files matched your search
@@ -3,41 +3,38 @@
|
||||
{% block vue_template %}
|
||||
|
||||
<jh-layout-v3>
|
||||
|
||||
|
||||
<!-- 页面主要内容 -->
|
||||
<v-card :class="{'px-2': isMobile}">
|
||||
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
|
||||
|
||||
<v-col cols="12" xs="4" sm="4" md="4" xl="4" class="pl-0">
|
||||
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
|
||||
</v-col>
|
||||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="px-0">
|
||||
<v-text-field v-model="searchInput" prefix="表格过滤:" color="success" class="cus-v-input" dense filled
|
||||
single-line></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-data-table :headers="headers"
|
||||
:items="tableDataFromBackend"
|
||||
:search="searchInput"
|
||||
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
|
||||
:items-per-page="20"
|
||||
mobile-breakpoint="0"
|
||||
:loading="isTableLoading"
|
||||
checkbox-color="success"
|
||||
:class="{'mx-2': isMobile}"
|
||||
color="success"
|
||||
class="elevation-0 mt-0 flex-fill d-flex flex-column">
|
||||
<template v-slot:item.action="{ item }">
|
||||
<v-btn small color="success" class="mr-2" @click="doUiAction('toTaskHistory', {item})">
|
||||
查看
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
<!-- 页面主要内容 -->
|
||||
<v-card :class="{'px-2': isMobile}">
|
||||
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
|
||||
<v-col cols="12" xs="4" sm="4" md="4" xl="4" class="pl-0">
|
||||
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
|
||||
</v-col>
|
||||
<v-spacer></v-spacer>
|
||||
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="px-0">
|
||||
<v-text-field v-model="searchInput" prefix="表格过滤:" color="success" class="cus-v-input" dense filled
|
||||
single-line></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="tableDataFromBackend"
|
||||
:search="searchInput"
|
||||
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
|
||||
:items-per-page="20"
|
||||
mobile-breakpoint="0"
|
||||
:loading="isTableLoading"
|
||||
checkbox-color="success"
|
||||
:class="{'mx-2': isMobile}"
|
||||
color="success"
|
||||
class="elevation-0 mt-0 flex-fill d-flex flex-column">
|
||||
<template v-slot:item.action="{ item }">
|
||||
<v-btn small color="success" class="mr-2" @click="doUiAction('toTaskHistory', {item})">
|
||||
查看
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</jh-layout-v3>
|
||||
|
||||
{% endblock %}
|
||||
@@ -61,16 +58,14 @@ new Vue({
|
||||
tableDataFromBackend: [],
|
||||
headers: [
|
||||
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
|
||||
|
||||
{text: "任务ID", value: "taskId", width: 120},
|
||||
{text: "任务名称", value: "taskTitle", width: 120},
|
||||
{text: "任务状态", value: "taskStatus", width: 120},
|
||||
{text: "当前执行中节点ID", value: "taskConfigId", width: 120},
|
||||
{text: "课程ID", value: "taskId", width: 120},
|
||||
{text: "课程名称", value: "taskTitle", width: 120},
|
||||
{text: "课程状态", value: "taskStatus", width: 120},
|
||||
{text: "当前节点ID", value: "taskConfigId", width: 200},
|
||||
{text: "申请人", value: "taskInitUser", width: 120},
|
||||
{text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
|
||||
{text: "处理人员", value: "taskEditUserList", width: 120},
|
||||
{text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
|
||||
{text: "备注", value: "taskComment", width: 120},
|
||||
{text: "任务创建人", value: "createByUser", width: 120},
|
||||
{text: "课程创建人", value: "createByUser", width: 120},
|
||||
{text: "操作者", value: "operationByUser", width: 120},
|
||||
{text: "操作时间", value: "operationAt", width: 250},
|
||||
{text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
|
||||
@@ -101,7 +96,7 @@ new Vue({
|
||||
*/
|
||||
async refreshTableData() {
|
||||
this.isTableLoading = true;
|
||||
const result = await window.jianghuAxios({
|
||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'taskICreateManagement',
|
||||
@@ -113,12 +108,15 @@ new Vue({
|
||||
}
|
||||
});
|
||||
|
||||
this.tableDataFromBackend = result.data.appData.resultData.rows;
|
||||
rows.forEach(row => {
|
||||
row.operationAt = dayjs(row.operationAt).format('YYYY-MM-DD HH:mm:ss');
|
||||
})
|
||||
this.tableDataFromBackend = rows;
|
||||
this.isTableLoading = false;
|
||||
},
|
||||
|
||||
toTaskHistory({item}) {
|
||||
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
|
||||
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?id=${item.id}`;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user