|
@@ -130,20 +130,18 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
<template slot="auditUserId" slot-scope="{row,index}">
|
|
<template slot="auditUserId" slot-scope="{row,index}">
|
|
- <el-input
|
|
|
|
|
|
+ <el-select
|
|
v-model="row.auditUserId"
|
|
v-model="row.auditUserId"
|
|
|
|
+ filterable
|
|
|
|
+ collapse-tags
|
|
|
|
+ placeholder="审核人"
|
|
>
|
|
>
|
|
- </el-input>
|
|
|
|
-<!-- <el-select-->
|
|
|
|
-<!-- v-model="row.auditUserId"-->
|
|
|
|
-<!-- filterable-->
|
|
|
|
-<!-- multiple-->
|
|
|
|
-<!-- collapse-tags-->
|
|
|
|
-<!-- placeholder="审核人"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- <el-option>-->
|
|
|
|
-<!-- </el-option>-->
|
|
|
|
-<!-- </el-select>-->
|
|
|
|
|
|
+ <el-option v-for="(item,index) in auditUserIdDic"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.realName"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
<template slot="menuLeft">
|
|
<template slot="menuLeft">
|
|
<el-button
|
|
<el-button
|
|
@@ -173,7 +171,8 @@
|
|
<script>
|
|
<script>
|
|
import option from "./config/mainList.json";
|
|
import option from "./config/mainList.json";
|
|
import detailOption from "./config/detail.json";
|
|
import detailOption from "./config/detail.json";
|
|
-import { getList, modify, removeList, detailData } from "@/api/approval/processConfig";
|
|
|
|
|
|
+import { getList, modify, removeList, detailData ,getUserList} from "@/api/approval/processConfig";
|
|
|
|
+import _ from "lodash";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "index",
|
|
name: "index",
|
|
@@ -189,6 +188,7 @@ export default {
|
|
pageSizes: [10, 50, 100, 200, 300, 400, 500]
|
|
pageSizes: [10, 50, 100, 200, 300, 400, 500]
|
|
},
|
|
},
|
|
detailData: [],
|
|
detailData: [],
|
|
|
|
+ auditUserIdDic:[],
|
|
loading: false,
|
|
loading: false,
|
|
search: {},
|
|
search: {},
|
|
visible: false,
|
|
visible: false,
|
|
@@ -213,6 +213,11 @@ export default {
|
|
created() {
|
|
created() {
|
|
this.option = option
|
|
this.option = option
|
|
this.detailOption = detailOption
|
|
this.detailOption = detailOption
|
|
|
|
+
|
|
|
|
+ getUserList().then(res =>{
|
|
|
|
+ this.auditUserIdDic = res.data.data.records
|
|
|
|
+ })
|
|
|
|
+
|
|
let i = 0;
|
|
let i = 0;
|
|
this.option.column.forEach(item => {
|
|
this.option.column.forEach(item => {
|
|
if (item.search) i++
|
|
if (item.search) i++
|
|
@@ -240,6 +245,8 @@ export default {
|
|
addHandle() {
|
|
addHandle() {
|
|
this.title = '新增';
|
|
this.title = '新增';
|
|
this.visible = !this.visible
|
|
this.visible = !this.visible
|
|
|
|
+ this.dataForm = {}
|
|
|
|
+ this.detailData = []
|
|
},
|
|
},
|
|
// 编辑
|
|
// 编辑
|
|
editOpen(row) {
|
|
editOpen(row) {
|
|
@@ -324,10 +331,17 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ this.detailData.map(item=>{
|
|
|
|
+ item.levelId = _.add(item.$index,1)
|
|
|
|
+ delete item.id
|
|
|
|
+ })
|
|
|
|
+
|
|
const params ={
|
|
const params ={
|
|
...this.dataForm,
|
|
...this.dataForm,
|
|
auditPathsLevels : this.detailData
|
|
auditPathsLevels : this.detailData
|
|
}
|
|
}
|
|
|
|
+
|
|
modify(params).then(res =>{
|
|
modify(params).then(res =>{
|
|
if(res.data.success){
|
|
if(res.data.success){
|
|
this.$message.success("操作成功!")
|
|
this.$message.success("操作成功!")
|