Merge branch 'hcb' of SH-Arbitrate/Arbitrate-Frontend into dev
This commit was merged in pull request #108.
This commit is contained in:
@@ -65,3 +65,35 @@ export function sealUpdate(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 新增模板
|
||||||
|
export function insertTemplate(data) {
|
||||||
|
return request({
|
||||||
|
url: '/deptIdentify/insertTemplate',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 修改模板
|
||||||
|
export function updateTemplate(data) {
|
||||||
|
return request({
|
||||||
|
url: '/deptIdentify/updateTemplate',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 删除模板
|
||||||
|
export function deleteTemplate(data) {
|
||||||
|
return request({
|
||||||
|
url: '/deptIdentify/deleteTemplate',
|
||||||
|
method: 'delete',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 根据机构id查询模板
|
||||||
|
export function getTemplate(data) {
|
||||||
|
return request({
|
||||||
|
url: '/deptIdentify/getTemplate',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -25,7 +25,7 @@ import {
|
|||||||
insert,
|
insert,
|
||||||
} from "@/api/officialSeal/officialSeal.js";
|
} from "@/api/officialSeal/officialSeal.js";
|
||||||
export default {
|
export default {
|
||||||
props: ["operateVisable"],
|
props: ["operateVisable","queryParams"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: "新增机构",
|
title: "新增机构",
|
||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
insert(data).then(res => {
|
insert(data).then(res => {
|
||||||
this.$modal.msgSuccess("新增成功!");
|
this.$modal.msgSuccess("新增成功!");
|
||||||
this.$emit("cancelFilingreview");
|
this.$emit("cancelFilingreview");
|
||||||
this.$emit('getList');
|
this.$emit('getList',this.queryParams);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// // 编辑
|
// // 编辑
|
||||||
|
|||||||
@@ -0,0 +1,108 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog title="新增模板" :visible="uploadVisable" v-if="uploadVisable" @close="cancel" width="600px" center>
|
||||||
|
<el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
|
||||||
|
class="demo-ruleForm">
|
||||||
|
<el-form-item label="模板名称" prop="temName">
|
||||||
|
<el-input v-model="ruleForm.temName"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="机构名称" prop="identifyId">
|
||||||
|
<el-select v-model="ruleForm.identifyId" placeholder="请选择">
|
||||||
|
<el-option v-for="item in tempList" :key="item.id" :label="item.identifyName" :value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-upload class="avatar-uploader" :before-upload="beforeUpload" :on-success="handleSuccess" ref="upload"
|
||||||
|
:action="UploadUrl()" :headers="headers" :data="filedata" :on-remove="handleRemove"
|
||||||
|
:on-change="handleChange" accept=".pdf,.word" :file-list="fileList" :auto-upload="false">
|
||||||
|
<el-button size="small" type="primary">点击上传</el-button>
|
||||||
|
</el-upload>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
|
||||||
|
<el-button type="primary" @click="submitUpload" class="endbutton"><span>确认</span></el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { getToken } from "@/utils/auth";
|
||||||
|
import {
|
||||||
|
deptIdentifyList,
|
||||||
|
} from "@/api/officialSeal/officialSeal.js";
|
||||||
|
export default {
|
||||||
|
props: ["uploadVisable", "uploadData","queryParams"],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
fileList: [],
|
||||||
|
data: [],
|
||||||
|
tempList:[],
|
||||||
|
headers: {
|
||||||
|
Authorization: "Bearer " + getToken(),
|
||||||
|
},
|
||||||
|
filedata: {},
|
||||||
|
flagBtn: false,
|
||||||
|
ruleForm: {},
|
||||||
|
rules: {
|
||||||
|
temName: [
|
||||||
|
{ required: true, message: '请输入模板名称', trigger: 'blur' },
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
uploadVisable(val) {
|
||||||
|
if (val) {
|
||||||
|
let queryParams = {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10000000000000000000000,
|
||||||
|
};
|
||||||
|
deptIdentifyList(queryParams).then(res => {
|
||||||
|
this.tempList = res.rows;
|
||||||
|
})
|
||||||
|
this.ruleForm = {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
cancel() {
|
||||||
|
this.$emit("cancelUpload");
|
||||||
|
},
|
||||||
|
handleChange(file, fileList) {
|
||||||
|
// this.imageUrl = URL.createObjectURL(file.raw);
|
||||||
|
},
|
||||||
|
UploadUrl() {
|
||||||
|
return window.location.origin + "/API/deptIdentify/insertTemplate";
|
||||||
|
},
|
||||||
|
submitUpload() {
|
||||||
|
this.$refs['ruleForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.filedata.identifyId = this.ruleForm.identifyId;
|
||||||
|
this.filedata.temName = this.ruleForm.temName;
|
||||||
|
this.$refs.upload.submit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleRemove(file, fileList) {
|
||||||
|
console.log(file, fileList);
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
const isImg = file.type === '.pdf' || '.word'
|
||||||
|
if (!isImg) {
|
||||||
|
this.$message.error('只能上传pdf,word格式的文件')
|
||||||
|
}
|
||||||
|
return isImg
|
||||||
|
},
|
||||||
|
handleSuccess() {
|
||||||
|
this.$message.success('上传成功');
|
||||||
|
this.$emit("cancelUpload");
|
||||||
|
this.$emit('getList',this.queryParams);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped></style>
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog title="修改模板" :visible="editVisable" v-if="editVisable" @close="cancel" width="600px" center>
|
||||||
|
<el-form :model="ruleForm" label-position="left" :rules="rules" ref="ruleForm" label-width="90px"
|
||||||
|
class="demo-ruleForm">
|
||||||
|
<el-form-item label="模板名称" prop="temName">
|
||||||
|
<el-input v-model="ruleForm.temName"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="当前模板">
|
||||||
|
<span style="color: #0e5ce3;cursor:pointer" @click="openUrl(editData.temOrigPath)">{{ editData.temOrigPath }}</span>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-upload class="avatar-uploader" :before-upload="beforeUpload" :on-success="handleSuccess" ref="upload"
|
||||||
|
:action="UploadUrl()" :headers="headers" :data="filedata" :on-remove="handleRemove"
|
||||||
|
:on-change="handleChange" accept=".pdf,.word" :file-list="fileList" :auto-upload="false">
|
||||||
|
<el-button size="small" type="primary">点击上传</el-button>
|
||||||
|
</el-upload>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
|
||||||
|
<el-button type="primary" @click="submitUpload" class="endbutton"><span>确认</span></el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { getToken } from "@/utils/auth";
|
||||||
|
export default {
|
||||||
|
props: ["editVisable", "editData","queryParams"],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
fileList: [],
|
||||||
|
data: [],
|
||||||
|
headers: {
|
||||||
|
Authorization: "Bearer " + getToken(),
|
||||||
|
},
|
||||||
|
filedata: {},
|
||||||
|
flagBtn: false,
|
||||||
|
ruleForm: {},
|
||||||
|
rules: {
|
||||||
|
temName: [
|
||||||
|
{ required: true, message: '请输入模板名称', trigger: 'blur' },
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
editData(val) {
|
||||||
|
if (val) {
|
||||||
|
this.ruleForm = val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 打开链接
|
||||||
|
openUrl(urlTemp){
|
||||||
|
let headPath = window.location.origin + "/API/";
|
||||||
|
window.open(headPath + urlTemp);
|
||||||
|
},
|
||||||
|
cancel() {
|
||||||
|
this.$emit("cancelEdit");
|
||||||
|
},
|
||||||
|
handleChange(file, fileList) {
|
||||||
|
// this.imageUrl = URL.createObjectURL(file.raw);
|
||||||
|
},
|
||||||
|
UploadUrl() {
|
||||||
|
return window.location.origin + "/API/deptIdentify/updateTemplate";
|
||||||
|
},
|
||||||
|
submitUpload() {
|
||||||
|
this.$refs['ruleForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.filedata.id = this.editData.id;
|
||||||
|
this.filedata.temName = this.ruleForm.temName;
|
||||||
|
this.$refs.upload.submit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleRemove(file, fileList) {
|
||||||
|
console.log(file, fileList);
|
||||||
|
},
|
||||||
|
beforeUpload(file) {
|
||||||
|
const isImg = file.type === '.pdf' || '.word'
|
||||||
|
if (!isImg) {
|
||||||
|
this.$message.error('只能上传pdf,word格式的文件')
|
||||||
|
}
|
||||||
|
return isImg
|
||||||
|
},
|
||||||
|
handleSuccess() {
|
||||||
|
this.$message.success('上传成功');
|
||||||
|
this.$emit("cancelEdit");
|
||||||
|
this.$emit('getList',this.queryParams);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
@@ -25,7 +25,7 @@ import {
|
|||||||
sealUpdate
|
sealUpdate
|
||||||
} from "@/api/officialSeal/officialSeal.js";
|
} from "@/api/officialSeal/officialSeal.js";
|
||||||
export default {
|
export default {
|
||||||
props: ["editVisable","editData"],
|
props: ["editVisable","editData","queryParams"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: "修改机构",
|
title: "修改机构",
|
||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
sealUpdate(data).then(res => {
|
sealUpdate(data).then(res => {
|
||||||
this.$modal.msgSuccess("修改成功!");
|
this.$modal.msgSuccess("修改成功!");
|
||||||
this.$emit("cancelEdit");
|
this.$emit("cancelEdit");
|
||||||
this.$emit('getList');
|
this.$emit('getList',this.queryParams);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 提交form表单
|
// 提交form表单
|
||||||
|
|||||||
@@ -38,13 +38,13 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList(queryParams)" />
|
@pagination="getList(queryParams)" />
|
||||||
<addInstitution :operateVisable="operateVisable" @cancelFilingreview="cancelFilingreview" @getList="getList">
|
<addInstitution :operateVisable="operateVisable" @cancelFilingreview="cancelFilingreview" :queryParams="queryParams" @getList="getList">
|
||||||
</addInstitution>
|
</addInstitution>
|
||||||
<uploadSeal :uploadVisable="uploadVisable" @cancelUpload="cancelUpload" :uploadData="uploadData" @getList="getList">
|
<uploadSeal :uploadVisable="uploadVisable" @cancelUpload="cancelUpload" :queryParams="queryParams" :uploadData="uploadData" @getList="getList">
|
||||||
</uploadSeal>
|
</uploadSeal>
|
||||||
<sealManage :sealVisable="sealVisable" @cancelSeal="cancelSeal" :sealData="sealData">
|
<sealManage :sealVisable="sealVisable" @cancelSeal="cancelSeal" :queryParams="queryParams" :sealData="sealData">
|
||||||
</sealManage>
|
</sealManage>
|
||||||
<eidtInstitution :editVisable="editVisable" @cancelEdit="cancelEdit" @getList="getList" :editData="editData"></eidtInstitution>
|
<eidtInstitution :editVisable="editVisable" @cancelEdit="cancelEdit" :queryParams="queryParams" @getList="getList" :editData="editData"></eidtInstitution>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,153 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addtemplate">新增裁决书模板</el-button>
|
||||||
|
<!-- v-hasPermi="['caseManagement:list:add']" -->
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-table v-loading="loading" :data="dataList" style="width: 100%">
|
||||||
|
<el-table-column label="序号" type="index" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{
|
||||||
|
(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="仲裁机构名称" align="center" prop="identifyName" :show-overflow-tooltip="true" />
|
||||||
|
<el-table-column label="裁决书名称" align="center" prop="temName" :show-overflow-tooltip="true" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" @click="deleteTemplate(scope.row)" type="text" icon="el-icon-delete">删除</el-button>
|
||||||
|
<el-button size="mini" @click="eidtTemplate(scope.row)" type="text" icon="el-icon-edit">修改模板</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList(queryParams)" />
|
||||||
|
|
||||||
|
<addTemplate :uploadVisable="uploadVisable" @cancelUpload="cancelUpload" :uploadData="uploadData" @getList="getList" :queryParams="queryParams">
|
||||||
|
</addTemplate>
|
||||||
|
<sealManage :sealVisable="sealVisable" @cancelSeal="cancelSeal" :sealData="sealData">
|
||||||
|
</sealManage>
|
||||||
|
<editTemplate :editVisable="editVisable" @cancelEdit="cancelEdit" @getList="getList" :editData="editData" :queryParams="queryParams"></editTemplate>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getTemplate,
|
||||||
|
deleteTemplate
|
||||||
|
} from "@/api/officialSeal/officialSeal.js";
|
||||||
|
|
||||||
|
import addInstitution from "./components/addInstitution";
|
||||||
|
import addTemplate from "./components/addTemplate";
|
||||||
|
import sealManage from "./components/sealManage";
|
||||||
|
import editTemplate from "./components/editTemplate";
|
||||||
|
export default {
|
||||||
|
name: "paymentList",
|
||||||
|
components: {
|
||||||
|
addInstitution,
|
||||||
|
addTemplate,
|
||||||
|
sealManage,
|
||||||
|
editTemplate
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
|
// 遮罩层
|
||||||
|
loading: false,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 表格数据
|
||||||
|
form: {},
|
||||||
|
// 校验表单
|
||||||
|
rules: {},
|
||||||
|
dataList: [],
|
||||||
|
operateVisable: false,//新增弹窗
|
||||||
|
uploadVisable: false,//上传弹窗
|
||||||
|
sealVisable: false,//公章列表弹窗
|
||||||
|
uploadData: {},
|
||||||
|
sealData: {},
|
||||||
|
editVisable:false,
|
||||||
|
editData:{}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList(this.queryParams)
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 删除
|
||||||
|
deleteTemplate(row) {
|
||||||
|
this.$modal
|
||||||
|
.confirm("是否删除")
|
||||||
|
.then((res) => {
|
||||||
|
this.deleteSealFn({ id: row.id })
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 删除接口
|
||||||
|
deleteSealFn(data) {
|
||||||
|
deleteTemplate(data).then(res => {
|
||||||
|
this.$modal.msgSuccess("删除成功!");
|
||||||
|
this.getList(this.queryParams);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
cancelSeal() {
|
||||||
|
this.sealVisable = false;
|
||||||
|
},
|
||||||
|
// 新增模板
|
||||||
|
addtemplate(row) {
|
||||||
|
this.uploadVisable = true;
|
||||||
|
this.uploadData = row;
|
||||||
|
},
|
||||||
|
cancelUpload() {
|
||||||
|
this.uploadVisable = false;
|
||||||
|
},
|
||||||
|
// 编辑
|
||||||
|
eidtTemplate(row) {
|
||||||
|
this.editVisable = true;
|
||||||
|
this.editData = row;
|
||||||
|
},
|
||||||
|
cancelEdit() {
|
||||||
|
this.editVisable = false;
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList(this.queryParams);
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 查询列表数据
|
||||||
|
getList(parms) {
|
||||||
|
this.loading = true;
|
||||||
|
getTemplate(parms).then((response) => {
|
||||||
|
this.dataList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
console.log(this.dataList,"LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL");
|
||||||
|
// this.dataList.forEach(item => {
|
||||||
|
// if (item.identifyStatus == 0 || item.identifyStatus == null) {
|
||||||
|
// item.identifyStatus = '未认证'
|
||||||
|
// } else {
|
||||||
|
// item.identifyStatus = '已认证'
|
||||||
|
// }
|
||||||
|
// if (item.isUse == 0 || item.isUse == null) {
|
||||||
|
// item.isUse = '未启用'
|
||||||
|
// } else {
|
||||||
|
// item.isUse = '已启用'
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped></style>
|
||||||
Reference in New Issue
Block a user