修改三级单位
修改流程中心屏蔽开启功能
This commit is contained in:
@@ -694,12 +694,10 @@
|
||||
<i class="fa fa-th-large"></i>
|
||||
应用中心
|
||||
</a>
|
||||
<!--
|
||||
<a href="/platform/v4/serv" data-pjax class="v4-nav-item">
|
||||
<!-- <a href="/platform/v4/serv" data-pjax class="v4-nav-item">
|
||||
<i class="fa fa-th-large"></i>
|
||||
流程中心
|
||||
</a>
|
||||
-->
|
||||
</a>-->
|
||||
<a href="/platform/v4/todo" data-pjax class="v4-nav-item">
|
||||
<i class="fa fa-th-large"></i>
|
||||
待办中心
|
||||
|
||||
@@ -54,6 +54,14 @@ layout("/layouts/platform.html"){
|
||||
<el-tag size="mini" v-else-if="row.isDeployed===0" type="info">否</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="流程中心" width="150" align="center" header-align="center">
|
||||
<template slot-scope="{row}">
|
||||
<el-switch :value="row.centerEnabled !== 0"
|
||||
:loading="row.centerUpdating === true"
|
||||
active-text="开启" inactive-text="关闭"
|
||||
@change="updateCenterEnabled(row, $event)"></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="排序编码" prop="sortNo" width="120" align="center" header-align="center" sortable="custom">
|
||||
<template slot-scope="{row}">
|
||||
<el-input-number
|
||||
@@ -266,6 +274,25 @@ layout("/layouts/platform.html"){
|
||||
}
|
||||
})
|
||||
},
|
||||
// 开关仅控制流程中心是否展示该流程,接口失败时保留原状态。
|
||||
updateCenterEnabled(row, enabled) {
|
||||
this.$set(row, "centerUpdating", true)
|
||||
this.$axios.post("/flow/design/updateCenterEnabled", {
|
||||
id: row.id,
|
||||
centerEnabled: enabled ? 1 : 0
|
||||
}).then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.$set(row, "centerEnabled", enabled ? 1 : 0)
|
||||
this.$message.success(enabled ? "已开启" : "已关闭")
|
||||
} else {
|
||||
this.$message.error(res.msg || "更新流程中心显示状态失败")
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$message.error("更新流程中心显示状态失败")
|
||||
}).finally(() => {
|
||||
this.$set(row, "centerUpdating", false)
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.pageData()
|
||||
|
||||
@@ -161,6 +161,10 @@ layout("/layouts/platform.html"){
|
||||
<template scope="{row}" v-if="column.prop=='loginname'">
|
||||
<el-link @click="openView(row.id)" type="primary">{{row.loginname}}</el-link>
|
||||
</template>
|
||||
<!-- 出生年月仅格式化表格显示值,保留原始数据供其他业务使用。 -->
|
||||
<template scope="{row}" v-if="column.prop=='birthday'">
|
||||
{{row.birthday ? $moment(row.birthday).format('YYYY-MM-DD') : ''}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column header-align="center" label="异动信息">
|
||||
<el-table-column align="center" header-align="center" label="更新时间"
|
||||
|
||||
Reference in New Issue
Block a user