|
|
@@ -30,23 +30,6 @@
|
|
|
clearable
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="type" label="履职类型">
|
|
|
- <el-select
|
|
|
- prop="ruleTypeId"
|
|
|
- label="履职类型"
|
|
|
- v-model="queryParams.type"
|
|
|
- placeholder="请选择履职类型"
|
|
|
- clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.rule_type"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
<el-form-item prop="orgType" label="履职机构类型">
|
|
|
<el-select
|
|
|
prop="orgType"
|
|
|
@@ -92,8 +75,6 @@
|
|
|
>新增</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
-
|
|
|
-
|
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
|
@@ -117,18 +98,9 @@
|
|
|
v-if="columns[1].visible"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="typeName"
|
|
|
- label="履职类型"
|
|
|
- v-if="columns[2].visible"
|
|
|
- >
|
|
|
- <template slot-scope="r"
|
|
|
- >{{ getLabel(dict.type.rule_type, r.row.type) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
prop="orgType"
|
|
|
label="履职机构类型"
|
|
|
- v-if="columns[3].visible"
|
|
|
+ v-if="columns[2].visible"
|
|
|
>
|
|
|
<template slot-scope="r"
|
|
|
>{{ getLabel(dict.type.sys_org_type, r.row.orgType) }}
|
|
|
@@ -137,9 +109,9 @@
|
|
|
<el-table-column
|
|
|
prop="orgName"
|
|
|
label="发布机构"
|
|
|
- v-if="columns[4].visible"
|
|
|
+ v-if="columns[3].visible"
|
|
|
></el-table-column>
|
|
|
- <el-table-column prop="status" label="状态" v-if="columns[5].visible">
|
|
|
+ <el-table-column prop="status" label="状态" v-if="columns[4].visible">
|
|
|
<template slot-scope="r">
|
|
|
<span>{{ getLabel(dict.type.plan_status, r.row.status) }}</span>
|
|
|
</template>
|
|
|
@@ -147,7 +119,7 @@
|
|
|
<el-table-column
|
|
|
prop="remark"
|
|
|
label="备注"
|
|
|
- v-if="columns[6].visible"
|
|
|
+ v-if="columns[5].visible"
|
|
|
></el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="r">
|
|
|
@@ -157,11 +129,13 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="onEdit(r.row.id)"
|
|
|
v-hasPermi="['resumption:rule:edit']"
|
|
|
+ v-if="orgId==r.row.orgId"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-popconfirm
|
|
|
title="确定删除履职内容库定义?"
|
|
|
@confirm="onDel(r.row.id)"
|
|
|
+ v-if="orgId==r.row.orgId"
|
|
|
>
|
|
|
<el-button type="text" size="small" slot="reference" icon="el-icon-delete" v-hasPermi="['resumption:rule:remove']">删除</el-button>
|
|
|
</el-popconfirm>
|
|
|
@@ -182,7 +156,6 @@
|
|
|
ref="editDialog"
|
|
|
@success="getList()"
|
|
|
:orgTypeOptions="dict.type.sys_org_type"
|
|
|
- :ruleTypeOptions="dict.type.rule_type"
|
|
|
:statusOptions="dict.type.plan_status"
|
|
|
></dialog-edit>
|
|
|
</div>
|
|
|
@@ -190,7 +163,7 @@
|
|
|
|
|
|
<script>
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
-import { mapState, mapMutations } from "vuex";
|
|
|
+import { mapGetters} from "vuex";
|
|
|
import DialogEdit from "./dialog.edit";
|
|
|
import * as api from "@/api/resumption/rule";
|
|
|
import { getLabel } from "./../../commonOption";
|
|
|
@@ -198,7 +171,7 @@ import {wholeTreeByType} from "@/api/system/org.js"
|
|
|
|
|
|
export default {
|
|
|
name: "ruletype",
|
|
|
- dicts: ["sys_org_type", "rule_type", "plan_status"],
|
|
|
+ dicts: ["sys_org_type", "plan_status"],
|
|
|
components: {
|
|
|
DialogEdit,
|
|
|
OrgTree,
|
|
|
@@ -231,21 +204,19 @@ export default {
|
|
|
columns: [
|
|
|
{ key: 0, label: `序号`, visible: true },
|
|
|
{ key: 1, label: `履职库名称`, visible: true },
|
|
|
- { key: 2, label: `履职库类型`, visible: true },
|
|
|
- { key: 3, label: `履职机构类型`, visible: true },
|
|
|
- { key: 4, label: `发布机构`, visible: true },
|
|
|
- { key: 5, label: `状态`, visible: true },
|
|
|
- { key: 6, label: `备注`, visible: true },
|
|
|
+ { key: 2, label: `履职机构类型`, visible: true },
|
|
|
+ { key: 3, label: `发布机构`, visible: true },
|
|
|
+ { key: 4, label: `状态`, visible: true },
|
|
|
+ { key: 5, label: `备注`, visible: true },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
props: {},
|
|
|
watch: {},
|
|
|
computed: {
|
|
|
- ...mapState([]),
|
|
|
+ ...mapGetters(['orgId']),
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapMutations([]),
|
|
|
getLabel,
|
|
|
orgTree(){
|
|
|
return wholeTreeByType(3);
|