流程中心接口对接 修改日期格式化
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
return {
|
||||
modelId : '',
|
||||
name: '',
|
||||
actUrl: 'http://localhost:17210/bat-wkflow/modeler.html?modelId='
|
||||
actUrl: 'http://10.0.10.87:7060/bat-wkflow/modeler.html?modelId='
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="content-height configBox">
|
||||
<div class="title">
|
||||
<span>报告管理</span>
|
||||
<span>流程配置</span>
|
||||
</div>
|
||||
<div class="search">
|
||||
<el-row>
|
||||
@@ -29,12 +29,17 @@
|
||||
<div class="table">
|
||||
<vxe-table ref="xTable" :data="tableList" :empty-render="{name: 'NotData'}" align="center" border stripe v-table-min-height="'calc(100vh - 320px)'">
|
||||
<vxe-column show-overflow show-header-overflow field="name" title="流程名称"></vxe-column>
|
||||
<vxe-column show-overflow show-header-overflow field="categoryName" title="流程类型"></vxe-column>
|
||||
<vxe-column show-overflow show-header-overflow field="createTime" title="创建时间"></vxe-column>
|
||||
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
|
||||
<!-- <vxe-column show-overflow show-header-overflow field="categoryName" title="流程类型"></vxe-column>-->
|
||||
<vxe-column show-overflow show-header-overflow field="createTime" title="创建时间">
|
||||
<template #default="{ row }">
|
||||
{{row.createTime?formatDate(row.createTime,"yyyy-mm-dd HH:mm:ss"):''}}
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column show-overflow show-header-overflow title="操作" width="250" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button type="text" @click="editRow(row)">编辑</el-button>
|
||||
<el-button type="text" @click="deploy(row)">部署</el-button>
|
||||
<el-button type="text" @click="deploy(row)">部署</el-button>
|
||||
<el-button type="text" @click="deleteRow(row)">删除</el-button>
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
@@ -89,12 +94,13 @@
|
||||
|
||||
<script>
|
||||
import EditProcess from './components/EditProcess'
|
||||
|
||||
import { formatDate } from '@/utils/date'
|
||||
export default {
|
||||
name: 'ProcessClassification',
|
||||
components: { EditProcess },
|
||||
data () {
|
||||
return {
|
||||
formatDate,
|
||||
formData: {
|
||||
name: '',
|
||||
desc: ''
|
||||
@@ -112,7 +118,24 @@ export default {
|
||||
title: '添加流程'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.queryTablePage()
|
||||
},
|
||||
methods: {
|
||||
deleteRow(row) {
|
||||
this.$confirm('确认删除该条数据?', '删除', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$api.process.deleteModel({modelId: row.id}).then(res => {
|
||||
this.$message.success(res.data.message)
|
||||
this.queryTablePage()
|
||||
})
|
||||
})
|
||||
},
|
||||
handleCurrentChange(page) {
|
||||
this.q.current = page
|
||||
this.queryTablePage()
|
||||
@@ -148,11 +171,11 @@ export default {
|
||||
},
|
||||
queryTablePage() {
|
||||
this.$api.process.getModelListPage({...this.q,...this.searchForm}).then(res=>{
|
||||
this.tableList = res.result.records
|
||||
this.total = res.result.total
|
||||
this.tableList = res.data.result.records
|
||||
this.total = res.data.result.total
|
||||
|
||||
}).catch(err=>{
|
||||
console.log("dddddddddddddddd")
|
||||
this.tableList =[ {name:1}]
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
@@ -165,7 +188,7 @@ export default {
|
||||
},
|
||||
confirmDialog() {
|
||||
this.$api.process.addModel(this.formData).then(res=> {
|
||||
this.$message.success(res.message)
|
||||
this.$message.success("新增成功")
|
||||
this.visible = false
|
||||
this.queryTablePage()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user