|
@@ -6,40 +6,11 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<!-- 搜索项 -->
|
|
<!-- 搜索项 -->
|
|
- <el-form ref="ruleForm" inline :model="form">
|
|
|
|
- <el-form-item label="流程标题">
|
|
|
|
- <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="SelfAuthApplyTypeEnum" clearable>
|
|
|
|
- </dg-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="创建时间">
|
|
|
|
- <dg-date-picker
|
|
|
|
- v-model="form.createTime.value"
|
|
|
|
- type="daterange"
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- clearable
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- :unlink-panels="true"
|
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
|
- >
|
|
|
|
- </dg-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
|
|
|
|
- <dg-button type="primary" @click="handleReset" icon="el-icon-refresh-right">重置</dg-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <dg-row zebra="10px">
|
|
|
|
- <dg-button type="primary" @click="handleApplyPermission(false)" icon="el-icon-circle-plus-outline"
|
|
|
|
- >权限变更申请</dg-button
|
|
|
|
- >
|
|
|
|
- </dg-row>
|
|
|
|
|
|
+ <search-bar :conditionForm="conditionForm" @submitSearch="receiveSearch"></search-bar>
|
|
|
|
+ <!-- 操作栏 -->
|
|
|
|
+ <operate-bar :pageOptList="pageOptList" @submitPageOpt="receviceOpt"></operate-bar>
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
- <Table ref="myTable" :url="tableUrl" :headerData="tableHeader" :condition="form">
|
|
|
|
|
|
+ <new-table ref="table" :tableUrl="tableUrl" :tableHeader="tableHeader" :condition="condition">
|
|
<dg-table-column label="操作" align="center">
|
|
<dg-table-column label="操作" align="center">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
<div class="u-table__operation">
|
|
<div class="u-table__operation">
|
|
@@ -58,56 +29,67 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</dg-table-column>
|
|
</dg-table-column>
|
|
- </Table>
|
|
|
|
|
|
+ </new-table>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import Table from '@/pages/common/table';
|
|
|
|
|
|
+import newTable from '@/pages/common/new-table';
|
|
import { tableHeader } from './DataConfig';
|
|
import { tableHeader } from './DataConfig';
|
|
import { tableUrl, delApply, recallApply } from '@/api/permission-selfhelp-manage';
|
|
import { tableUrl, delApply, recallApply } from '@/api/permission-selfhelp-manage';
|
|
|
|
+import operateBar from '@/components/operate-bar';
|
|
|
|
+import searchBar from '@/components/search-bar';
|
|
|
|
+import { searchOpt } from '@/mixins/page-opt';
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- Table
|
|
|
|
|
|
+ newTable,
|
|
|
|
+ operateBar,
|
|
|
|
+ searchBar
|
|
},
|
|
},
|
|
|
|
+ mixins: [searchOpt],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
tableUrl,
|
|
tableUrl,
|
|
tableHeader,
|
|
tableHeader,
|
|
- form: {
|
|
|
|
- flowTitle: {
|
|
|
|
|
|
+ conditionForm: [
|
|
|
|
+ {
|
|
|
|
+ label: '流程标题',
|
|
|
|
+ name: 'flowTitle',
|
|
|
|
+ op: 'like',
|
|
value: '',
|
|
value: '',
|
|
- op: 'like'
|
|
|
|
|
|
+ component: 'ElInput',
|
|
|
|
+ attr: {
|
|
|
|
+ placeholder: '请输入流程标题'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- applyType: {
|
|
|
|
|
|
+ {
|
|
|
|
+ label: '审批类型',
|
|
|
|
+ name: 'applyType',
|
|
|
|
+ op: '=',
|
|
value: '',
|
|
value: '',
|
|
- op: '='
|
|
|
|
|
|
+ component: 'DgSelect',
|
|
|
|
+ attr: {
|
|
|
|
+ placeholder: '请选择审批类型',
|
|
|
|
+ enum: 'SelfAuthApplyTypeEnum'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- createTime: {
|
|
|
|
- value: '',
|
|
|
|
|
|
+ {
|
|
|
|
+ label: '创建时间',
|
|
|
|
+ name: 'createTime',
|
|
op: 'between',
|
|
op: 'between',
|
|
type: 'DATE',
|
|
type: 'DATE',
|
|
- format: 'yyyy-MM-dd HH:mm:ss'
|
|
|
|
-
|
|
|
|
- // format: 'yyyyMMddHHmmss'
|
|
|
|
|
|
+ value: '',
|
|
|
|
+ component: 'DgDatePicker'
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ ],
|
|
|
|
+ pageOptList: ['权限变更申请']
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
- /**
|
|
|
|
- * 查询
|
|
|
|
- */
|
|
|
|
- handleSearch() {
|
|
|
|
- this.$refs.myTable.handleSearchClick();
|
|
|
|
- },
|
|
|
|
- /**
|
|
|
|
- * 重置
|
|
|
|
- */
|
|
|
|
- handleReset() {
|
|
|
|
- for (const key in this.form) {
|
|
|
|
- this.form[key].value = '';
|
|
|
|
|
|
+ receviceOpt(btn, row) {
|
|
|
|
+ if (btn == '权限变更申请') {
|
|
|
|
+ this.handleApplyPermission(null);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/**
|
|
/**
|