|
@@ -68,14 +68,17 @@ export default {
|
|
// 新增、编辑授权信息
|
|
// 新增、编辑授权信息
|
|
handleOpenAddDialog(rows) {
|
|
handleOpenAddDialog(rows) {
|
|
const { setVisible, setFormData } = this.$refs.addDialogRef;
|
|
const { setVisible, setFormData } = this.$refs.addDialogRef;
|
|
- setFormData(rows);
|
|
|
|
|
|
+ setFormData(rows, rows.id ? "edit" : "add");
|
|
setVisible(true);
|
|
setVisible(true);
|
|
},
|
|
},
|
|
// 查看
|
|
// 查看
|
|
handleOpenSeeDialog(rows) {
|
|
handleOpenSeeDialog(rows) {
|
|
- const { setVisible, setFormData } = this.$refs.seeDialogRef;
|
|
|
|
- setFormData(rows);
|
|
|
|
|
|
+ const { setVisible, setFormData } = this.$refs.addDialogRef;
|
|
|
|
+ setFormData(rows, "check");
|
|
setVisible(true);
|
|
setVisible(true);
|
|
|
|
+ // const { setVisible, setFormData } = this.$refs.seeDialogRef;
|
|
|
|
+ // setFormData(rows);
|
|
|
|
+ // setVisible(true);
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|
|
handleDelDialog(rows) {
|
|
handleDelDialog(rows) {
|
|
@@ -201,9 +204,10 @@ export default {
|
|
<authprivAdd
|
|
<authprivAdd
|
|
ref="addDialogRef"
|
|
ref="addDialogRef"
|
|
:dict="dict"
|
|
:dict="dict"
|
|
|
|
+ :size="size"
|
|
@close="useQuery"
|
|
@close="useQuery"
|
|
></authprivAdd>
|
|
></authprivAdd>
|
|
- <authprivSee ref="seeDialogRef"></authprivSee>
|
|
|
|
|
|
+ <!-- <authprivSee ref="seeDialogRef"></authprivSee> -->
|
|
<el-super-search
|
|
<el-super-search
|
|
v-model="params"
|
|
v-model="params"
|
|
:size="size"
|
|
:size="size"
|
|
@@ -217,14 +221,14 @@ export default {
|
|
<el-row :gutter="24" style="margin: 16px 0px">
|
|
<el-row :gutter="24" style="margin: 16px 0px">
|
|
<el-col :span="24" style="text-align: right">
|
|
<el-col :span="24" style="text-align: right">
|
|
<el-button
|
|
<el-button
|
|
- size="mini"
|
|
|
|
|
|
+ :size="size"
|
|
type="primary"
|
|
type="primary"
|
|
@click="handleOpenAddDialog"
|
|
@click="handleOpenAddDialog"
|
|
v-hasPermi="['pu:authorization:add']"
|
|
v-hasPermi="['pu:authorization:add']"
|
|
>新增</el-button
|
|
>新增</el-button
|
|
>
|
|
>
|
|
- <!-- <el-button size="mini" @click="handleSubmit">提交</el-button> -->
|
|
|
|
- <!-- <el-button size="mini" @click="handleDownload">下载授权书</el-button> -->
|
|
|
|
|
|
+ <!-- <el-button :size="size" @click="handleSubmit">提交</el-button> -->
|
|
|
|
+ <!-- <el-button :size="size" @click="handleDownload">下载授权书</el-button> -->
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -247,7 +251,7 @@ export default {
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
- size="mini"
|
|
|
|
|
|
+ :size="size"
|
|
@click="handleOpenAddDialog(scope.row)"
|
|
@click="handleOpenAddDialog(scope.row)"
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
v-hasPermi="['pu:authorization:edit']"
|
|
v-hasPermi="['pu:authorization:edit']"
|
|
@@ -255,7 +259,7 @@ export default {
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
- size="mini"
|
|
|
|
|
|
+ :size="size"
|
|
@click="handleDelDialog(scope.row)"
|
|
@click="handleDelDialog(scope.row)"
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
v-hasPermi="['pu:authorization:remove']"
|
|
v-hasPermi="['pu:authorization:remove']"
|
|
@@ -263,14 +267,14 @@ export default {
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
- size="mini"
|
|
|
|
|
|
+ :size="size"
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
@click="handleSubmit(scope.row)"
|
|
@click="handleSubmit(scope.row)"
|
|
>提交</el-button
|
|
>提交</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
- size="mini"
|
|
|
|
|
|
+ :size="size"
|
|
v-if="scope.row.status == '2'"
|
|
v-if="scope.row.status == '2'"
|
|
@click="handleDownload(scope.row)"
|
|
@click="handleDownload(scope.row)"
|
|
>下载授权书</el-button
|
|
>下载授权书</el-button
|