1030bug修改
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
||||
<el-form-item label="案件编号" prop="caseNum">
|
||||
<el-input v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form> -->
|
||||
<el-table v-loading="loading" :data="dataList" style="width: 100%">
|
||||
<el-table-column label="序号" type="index" align="center">
|
||||
<template slot-scope="scope">
|
||||
@@ -17,22 +8,19 @@
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="仲裁机构名称" align="center" prop="caseNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="公章名称" align="center" prop="mailName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="经办人姓名" align="center" prop="caseNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="经办人手机号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="认证时间" align="center" prop="mailAddress" />
|
||||
<el-table-column label="认证状态" align="center" prop="sendTime" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="是否启用" align="center" prop="caseStatusName">
|
||||
<template slot-scope="scope">
|
||||
<el-switch v-model="dataList[scope.$index].depytype" active-text="是" inactive-text="否">
|
||||
</el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="仲裁机构名称" align="center" prop="deptName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="公章名称" align="center" prop="sealName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="经办人姓名" align="center" prop="nickName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="经办人手机号" align="center" prop="phonenumber" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="认证时间" align="center" prop="updateTime" />
|
||||
<el-table-column label="认证状态" align="center" prop="identifyStatus" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="是否启用" align="center" prop="isUse"></el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-thumb">认证</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-view">查看详情</el-button>
|
||||
<el-button size="mini" @click="DeptIndefiUrl(scope.row)" type="text" icon="el-icon-thumb"
|
||||
v-if="scope.row.identifyStatus == '未认证'">认证</el-button>
|
||||
<el-button size="mini" @click="changeStatus(scope.row)" type="text" icon="el-icon-thumb"
|
||||
v-if="scope.row.isUse == '未启用' && scope.row.identifyStatus == '已认证'">启用</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -44,8 +32,10 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
emailList,
|
||||
} from "@/api/deliveryRecord/deliveryRecord.js";
|
||||
deptIdentifyList,
|
||||
enableDept,
|
||||
selectDeptIndefiUrl
|
||||
} from "@/api/officialSeal/officialSeal.js";
|
||||
|
||||
import { getDicts } from '@/api/system/dict/data.js'
|
||||
export default {
|
||||
@@ -77,6 +67,41 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 启用认证按钮
|
||||
changeStatus(row) {
|
||||
enableDept({ id: row.id }).then(res => {
|
||||
this.getList(this.queryParams);
|
||||
})
|
||||
this.$modal.confirm('是否进行启用?')
|
||||
.then(function () {
|
||||
|
||||
})
|
||||
.then(() => {
|
||||
enableDept({ id: row.id }).then(res => {
|
||||
this.$modal.msgSuccess("启用成功!");
|
||||
this.getList(this.queryParams);
|
||||
})
|
||||
|
||||
})
|
||||
.catch(function () {
|
||||
});
|
||||
},
|
||||
// 认证按钮
|
||||
DeptIndefiUrl(row) {
|
||||
this.$modal.confirm('是否认证?')
|
||||
.then(function () {
|
||||
selectDeptIndefiUrl({ id: row.id }).then(res => {
|
||||
let url = res.data.identifyUrl;
|
||||
window.open(url)
|
||||
})
|
||||
})
|
||||
.then(() => {
|
||||
// this.$modal.msgSuccess("认证成功!");
|
||||
// this.getList(this.queryParams);
|
||||
})
|
||||
.catch(function () {
|
||||
});
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
@@ -90,10 +115,22 @@ export default {
|
||||
// 查询列表数据
|
||||
getList(parms) {
|
||||
this.loading = true;
|
||||
emailList(parms).then((response) => {
|
||||
deptIdentifyList(parms).then((response) => {
|
||||
this.dataList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
this.dataList.forEach(item => {
|
||||
if (item.identifyStatus == 0) {
|
||||
item.identifyStatus = '未认证'
|
||||
} else {
|
||||
item.identifyStatus = '已认证'
|
||||
}
|
||||
if (item.isUse == 0) {
|
||||
item.isUse = '未启用'
|
||||
} else {
|
||||
item.isUse = '已启用'
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user