|
|
|
|
@ -8,7 +8,9 @@
|
|
|
|
|
<Input v-model="select.keyword" style="width: 200px;margin-right: 10px;" placeholder="经办人搜索" />
|
|
|
|
|
<Button type="primary" @click="getindex">查询</Button>
|
|
|
|
|
<Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
|
|
|
|
@click="$refs['addRuku'].isShow = true,$refs['addRuku'].type = 'add',$refs['addRuku'].rukuType = rukuType">添加</Button>
|
|
|
|
|
@click="$refs['addRuku'].isShow = true,$refs['addRuku'].type = 'add',
|
|
|
|
|
$refs['addRuku'].rukuType = rukuType
|
|
|
|
|
$refs['addRuku'].authName =authName">添加</Button>
|
|
|
|
|
<!-- <Button icon="ios-add" type="primary" style="margin-left: 10px;"
|
|
|
|
|
@click="$refs['imports'].show()">导入</Button> -->
|
|
|
|
|
|
|
|
|
|
@ -21,14 +23,17 @@
|
|
|
|
|
:table-item="table">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="260" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button type="primary" size="small" @click="editorRuku(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<!-- <Button type="primary" size="small" @click="editorActivity(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<Button style="margin-left: 10px;" type="primary" size="small" @click="checkActivity(scope.row.id)">审核</Button>
|
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorActivity(scope.row.id,'copy')">复制新增</Button> -->
|
|
|
|
|
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteRuku(scope.row)">
|
|
|
|
|
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.jingbanren==authName">
|
|
|
|
|
<Button type="primary" size="small" @click="editorRuku(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<!-- <Button type="primary" size="small" @click="editorActivity(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<Button style="margin-left: 10px;" type="primary" size="small" @click="checkActivity(scope.row.id)">审核</Button>
|
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorActivity(scope.row.id,'copy')">复制新增</Button> -->
|
|
|
|
|
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteRuku(scope.row)">
|
|
|
|
|
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -49,7 +54,10 @@
|
|
|
|
|
import addRuku from "./component/addRuku.vue"
|
|
|
|
|
import {
|
|
|
|
|
Message
|
|
|
|
|
} from 'element-ui'
|
|
|
|
|
} from 'element-ui'
|
|
|
|
|
import {
|
|
|
|
|
getWzglUser
|
|
|
|
|
} from "@/utils/auth.js"
|
|
|
|
|
import imports from "@/views/component/imports.vue"
|
|
|
|
|
import {
|
|
|
|
|
index as fieldIndex
|
|
|
|
|
@ -64,6 +72,7 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
authName:'',
|
|
|
|
|
loading:false,
|
|
|
|
|
select: {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
@ -140,7 +149,11 @@
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
methods: {
|
|
|
|
|
async getUserName(){
|
|
|
|
|
const res = JSON.parse(getWzglUser())
|
|
|
|
|
this.authName = res.name
|
|
|
|
|
},
|
|
|
|
|
async getindex() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
const res = await index({
|
|
|
|
|
@ -198,7 +211,8 @@
|
|
|
|
|
this.rukuType = this.rukuTypeList[k]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.getUserName()
|
|
|
|
|
this.getindex()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|