|
@@ -8,7 +8,7 @@
|
|
|
<!-- 搜索项 -->
|
|
|
<el-form ref="ruleForm" inline :model="form">
|
|
|
<el-form-item label="流程标题">
|
|
|
- <el-input v-model="form.processName.value" placeholder="请输入流程标题" clearable></el-input>
|
|
|
+ <el-input v-model="form.flowTitle.value" placeholder="请输入流程标题" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审批类型">
|
|
|
<dg-select v-model="form.applyType.value" placeholder="请选择授权管理类型" enum="AuthorizeTypeEnum" clearable>
|
|
@@ -39,19 +39,19 @@
|
|
|
<!-- 表格 -->
|
|
|
<Table ref="myTable" :url="tableUrl" :headerData="tableHeader" :condition="form">
|
|
|
<dg-table-column label="操作" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
<div class="u-table__operation">
|
|
|
<el-tooltip content="详情" effect="dark" placement="top-end">
|
|
|
- <i class="el-icon-document" @click="handleViewDetail(scope.row)"></i>
|
|
|
+ <i class="el-icon-document" @click="handleViewDetail(row)"></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip content="编辑" effect="dark" placement="top-end">
|
|
|
- <i class="el-icon-edit" @click="handleApplyPermission(scope.row.id)"></i>
|
|
|
+ <el-tooltip content="编辑" effect="dark" placement="top-end" v-if="row.showEdit">
|
|
|
+ <i class="el-icon-edit" @click="handleApplyPermission(row.id)"></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip content="撤回" effect="dark" placement="top-end">
|
|
|
- <i class="el-icon-back" @click="handleRecall(scope.row)"></i>
|
|
|
+ <el-tooltip content="撤回" effect="dark" placement="top-end" v-if="row.showRecall">
|
|
|
+ <i class="el-icon-back" @click="handleRecall(row)"></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip content="删除" effect="dark" placement="top-end">
|
|
|
- <i class="el-icon-delete" @click="handleDelete(scope.row)"></i>
|
|
|
+ <el-tooltip content="删除" effect="dark" placement="top-end">
|
|
|
+ <i class="el-icon-delete" @click="handleDelete(row)"></i>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -63,7 +63,7 @@
|
|
|
<script>
|
|
|
import Table from '@/pages/common/table';
|
|
|
import { tableHeader } from './DataConfig';
|
|
|
-import { tableUrl } from "@/api/permission-selfhelp-manage"
|
|
|
+import { tableUrl, applyDetail, delApply } from '@/api/permission-selfhelp-manage';
|
|
|
export default {
|
|
|
components: {
|
|
|
Table
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
tableUrl,
|
|
|
tableHeader,
|
|
|
form: {
|
|
|
- processName: {
|
|
|
+ flowTitle: {
|
|
|
value: '',
|
|
|
op: 'like'
|
|
|
},
|
|
@@ -112,10 +112,10 @@ export default {
|
|
|
handleApplyPermission(id) {
|
|
|
const vm = this;
|
|
|
const layer = this.$dgLayer({
|
|
|
- title: '权限自助申请',
|
|
|
+ title: id ? '编辑' : '权限自助申请',
|
|
|
props: {
|
|
|
- id: id ? id : "",
|
|
|
- type: id ? "edit" : "add"
|
|
|
+ id: id ? id : '',
|
|
|
+ type: id ? 'edit' : 'add'
|
|
|
},
|
|
|
content: require('./component/basic-form.vue'),
|
|
|
area: ['1100px', '800px'],
|
|
@@ -130,12 +130,17 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleViewDetail() {
|
|
|
+ handleViewDetail(row) {
|
|
|
+ const params = {
|
|
|
+ id: row.id,
|
|
|
+ needFlowInfo: true
|
|
|
+ };
|
|
|
+ applyDetail(params).then((res) => {});
|
|
|
const layer = this.$dgLayer({
|
|
|
title: '详情',
|
|
|
props: {
|
|
|
id: '1111',
|
|
|
- type: "detail"
|
|
|
+ type: 'detail'
|
|
|
},
|
|
|
content: require('./component/detail.vue'),
|
|
|
area: ['1100px', '800px'],
|
|
@@ -150,12 +155,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
handleDelete(row) {
|
|
|
- this.$dgConfirm(`是否确认删除该条流程!`, '提示', {}).then(() => {});
|
|
|
+ this.$dgConfirm(`是否确认删除该条流程!`, '提示', {}).then(() => {
|
|
|
+ delApply({
|
|
|
+ id: row.id
|
|
|
+ }).then((res) => {
|
|
|
+ this.$message.success('删除成功!');
|
|
|
+ this.handleSearch();
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
handleRecall(row) {
|
|
|
- this.$dgConfirm(`是否确认撤回该条流程!`, '提示', {}).then(() => {});
|
|
|
+ this.$dgConfirm(`是否确认撤回该条流程!`, '提示', {}).then(() => {});
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {}
|