style: 格式化
This commit is contained in:
+302
-261
@@ -1,279 +1,320 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-drawer
|
||||
:title="modalshowtitle"
|
||||
:visible.sync="modalshowflag"
|
||||
:wrapperClosable="false"
|
||||
size="800px"
|
||||
@close="resetForm"
|
||||
ref="standard"
|
||||
append-to-body
|
||||
<div>
|
||||
<el-drawer
|
||||
ref="standard"
|
||||
:title="modalshowtitle"
|
||||
:visible.sync="modalshowflag"
|
||||
:wrapperClosable="false"
|
||||
size="800px"
|
||||
append-to-body
|
||||
@close="resetForm"
|
||||
>
|
||||
<!-- 新增样式 -->
|
||||
<div class="demo-drawer-content">
|
||||
<el-form
|
||||
ref="sarStandardsInfoForm"
|
||||
:model="sarStandardsInfoEO"
|
||||
:rules="sarStandardsInfoRules"
|
||||
class="label-input-form"
|
||||
>
|
||||
<!-- 新增样式 -->
|
||||
<div class="demo-drawer-content">
|
||||
<el-form
|
||||
ref="sarStandardsInfoForm"
|
||||
:model="sarStandardsInfoEO"
|
||||
:rules="sarStandardsInfoRules"
|
||||
class="label-input-form"
|
||||
>
|
||||
<el-form-item label="章节编号" prop="chapterNumber" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.chapterNumber"
|
||||
placeholder="请输入章节编号"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="章节条目" prop="chapterEntries" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.chapterEntries"
|
||||
placeholder="请输入章节条目"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改前" prop="modifyBefore" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.modifyBefore"
|
||||
placeholder="请输入修改前"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改后" prop="modifyAfter" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.modifyAfter"
|
||||
placeholder="请输入修改后"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改理由" prop="modifyReason" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.modifyReason"
|
||||
placeholder="请输入修改理由"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="原因" prop="cause" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.cause"
|
||||
placeholder="请输入原因"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="附件"
|
||||
label-width="150px"
|
||||
class="add-form-item">
|
||||
<el-input
|
||||
disabled
|
||||
style="display: none;"
|
||||
v-model="sarStandardsInfoEO.annexFileId"
|
||||
clearable
|
||||
></el-input>
|
||||
<div v-if="sarStandardsInfoEO.annexFileList && sarStandardsInfoEO.annexFileList.length > 0">
|
||||
<div v-for="(item, index) in sarStandardsInfoEO.annexFileList" :key="index"
|
||||
style="margin-right: 5px;padding-left: 10px">
|
||||
<div class="fileClass">
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
<el-button size="small"
|
||||
@click="clickButtonToUpload(item)"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
></el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<el-button type="primary"
|
||||
class="common-button-primary"
|
||||
@click="fileUpload('annexFileList','annexFileId','.zip,.docx,.doc,.xls,.xlsx',200)"
|
||||
size="mini">
|
||||
点击上传
|
||||
</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="处理意见"
|
||||
v-if="isHandlingSuggestion"
|
||||
prop="handlingOpinions" label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.handlingOpinions"
|
||||
placeholder="请输入处理意见"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="处理原因" prop="handlingCause"
|
||||
v-if="isHandlingSuggestion"
|
||||
label-width="150px" class="add-form-item">
|
||||
<el-input v-model.trim="sarStandardsInfoEO.handlingCause"
|
||||
placeholder="请输入处理原因"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-form-item label="章节编号" prop="chapterNumber" label-width="150px" class="add-form-item">
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.chapterNumber"
|
||||
placeholder="请输入章节编号"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="章节条目" prop="chapterEntries" label-width="150px" class="add-form-item">
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.chapterEntries"
|
||||
placeholder="请输入章节条目"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改前" prop="modifyBefore" label-width="150px" class="add-form-item">
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.modifyBefore"
|
||||
placeholder="请输入修改前"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改后" prop="modifyAfter" label-width="150px" class="add-form-item">
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.modifyAfter"
|
||||
placeholder="请输入修改后"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改理由" prop="modifyReason" label-width="150px" class="add-form-item">
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.modifyReason"
|
||||
placeholder="请输入修改理由"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="原因" prop="cause" label-width="150px" class="add-form-item">
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.cause"
|
||||
placeholder="请输入原因"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="附件"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<el-input
|
||||
v-model="sarStandardsInfoEO.annexFileId"
|
||||
disabled
|
||||
style="display: none;"
|
||||
clearable
|
||||
/>
|
||||
<div v-if="sarStandardsInfoEO.annexFileList && sarStandardsInfoEO.annexFileList.length > 0">
|
||||
<div
|
||||
v-for="(item, index) in sarStandardsInfoEO.annexFileList"
|
||||
:key="index"
|
||||
style="margin-right: 5px;padding-left: 10px"
|
||||
>
|
||||
<div class="fileClass">
|
||||
<span @click="handlePreview(item)">{{ item.name }}</span>
|
||||
<el-button
|
||||
size="small"
|
||||
icon="el-icon-download"
|
||||
style="height: 32px; margin-left: 5px;"
|
||||
@click="clickButtonToUpload(item)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="demo-drawer-footer">
|
||||
<el-button size="mini" class="common-button-primary" icon="el-icon-check" type="primary"
|
||||
@click="saveOrUpdateStands" :loading="isSubmit">提交
|
||||
</el-button>
|
||||
<el-button size="mini" class="common-button-default" icon="el-icon-close" @click="resetForm">取消
|
||||
</el-button>
|
||||
<div>
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="mini"
|
||||
@click="fileUpload('annexFileList','annexFileId','.zip,.docx,.doc,.xls,.xlsx',200)"
|
||||
>
|
||||
点击上传
|
||||
</el-button>
|
||||
</div>
|
||||
</el-drawer>
|
||||
<processFile
|
||||
ref="processFileRef"
|
||||
:accept="accept"
|
||||
:fileMax_M="fileMax_M"
|
||||
@uploadSuccess="uploadSuccess"/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="isHandlingSuggestion"
|
||||
label="处理意见"
|
||||
prop="handlingOpinions"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.handlingOpinions"
|
||||
placeholder="请输入处理意见"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="isHandlingSuggestion"
|
||||
label="处理原因"
|
||||
prop="handlingCause"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<el-input
|
||||
v-model.trim="sarStandardsInfoEO.handlingCause"
|
||||
placeholder="请输入处理原因"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="demo-drawer-footer">
|
||||
<el-button
|
||||
size="mini"
|
||||
class="common-button-primary"
|
||||
icon="el-icon-check"
|
||||
type="primary"
|
||||
:loading="isSubmit"
|
||||
@click="saveOrUpdateStands"
|
||||
>
|
||||
提交
|
||||
</el-button>
|
||||
<el-button size="mini" class="common-button-default" icon="el-icon-close" @click="resetForm">
|
||||
取消
|
||||
</el-button>
|
||||
</div>
|
||||
</el-drawer>
|
||||
<processFile
|
||||
ref="processFileRef"
|
||||
:accept="accept"
|
||||
:fileMax_M="fileMax_M"
|
||||
@uploadSuccess="uploadSuccess"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import processFile from "../../../components/processFile";
|
||||
import processFile from '../../../components/processFile';
|
||||
|
||||
export default {
|
||||
name: "addModel",
|
||||
components: {
|
||||
processFile
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
modalshowflag: false,
|
||||
modalshowtitle: '添加',
|
||||
isSubmit: false,
|
||||
sarStandardsInfoEO: {},
|
||||
sarStandardsInfoRules: {
|
||||
chapterNumber: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "章节编号不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
chapterEntries: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "章节条目不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
modifyBefore: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "修改前不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
modifyAfter: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "修改后不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
modifyReason: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "修改理由不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
handlingOpinions: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "处理意见不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
handlingCause: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "处理原因不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
cause: [
|
||||
{
|
||||
type: "string",
|
||||
max: 200,
|
||||
message: "原因不能超过200个字符",
|
||||
trigger: "blur"
|
||||
}
|
||||
],
|
||||
},
|
||||
fileListName: '',
|
||||
fileName: '',
|
||||
accept: '',
|
||||
fileMax_M: 0,
|
||||
taskKey: this.$route.query.taskDefinitionKey,
|
||||
}
|
||||
},
|
||||
export default {
|
||||
name: 'AddModel',
|
||||
components: {
|
||||
processFile
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
modalshowflag: false,
|
||||
modalshowtitle: '添加',
|
||||
isSubmit: false,
|
||||
sarStandardsInfoEO: {},
|
||||
sarStandardsInfoRules: {
|
||||
chapterNumber: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '章节编号不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
chapterEntries: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '章节条目不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
modifyBefore: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '修改前不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
modifyAfter: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '修改后不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
modifyReason: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '修改理由不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
handlingOpinions: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '处理意见不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
handlingCause: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '处理原因不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
cause: [
|
||||
{
|
||||
type: 'string',
|
||||
max: 200,
|
||||
message: '原因不能超过200个字符',
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
},
|
||||
fileListName: '',
|
||||
fileName: '',
|
||||
accept: '',
|
||||
fileMax_M: 0,
|
||||
taskKey: this.$route.query.taskDefinitionKey,
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
isHandlingSuggestion() {
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isHandlingSuggestion () {
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
handlePreview(file) {
|
||||
let attId = ""
|
||||
if (file && file.id) {
|
||||
attId = file.id
|
||||
} else {
|
||||
attId = file.response.data.id
|
||||
}
|
||||
this.$preview(attId)
|
||||
},
|
||||
clickButtonToUpload(file) {
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
fileUpload(fileListName, fileName, accept, fileMax_M) {
|
||||
this.fileListName = fileListName
|
||||
this.fileName = fileName
|
||||
this.accept = accept
|
||||
this.fileMax_M = fileMax_M
|
||||
this.$refs.processFileRef.getFile(this.sarStandardsInfoEO[this.fileListName])
|
||||
},
|
||||
uploadSuccess(fileList, fileId) {
|
||||
this.sarStandardsInfoEO[this.fileListName] = fileList
|
||||
this.sarStandardsInfoEO[this.fileName] = fileId
|
||||
this.sarStandardsInfoEO = {...this.sarStandardsInfoEO}
|
||||
},
|
||||
add() {
|
||||
this.modalshowflag = true
|
||||
this.sarStandardsInfoEO = {}
|
||||
},
|
||||
edit(row) {
|
||||
this.modalshowflag = true
|
||||
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(row))
|
||||
},
|
||||
resetForm() {
|
||||
this.modalshowflag = false
|
||||
},
|
||||
saveOrUpdateStands() {
|
||||
this.$refs['sarStandardsInfoForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (!this.sarStandardsInfoEO.chapterNumber && !this.sarStandardsInfoEO.chapterEntries
|
||||
methods: {
|
||||
handlePreview (file) {
|
||||
let attId = ''
|
||||
if (file && file.id) {
|
||||
attId = file.id
|
||||
} else {
|
||||
attId = file.response.data.id
|
||||
}
|
||||
this.$preview(attId)
|
||||
},
|
||||
clickButtonToUpload (file) {
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
fileUpload (fileListName, fileName, accept, fileMax_M) {
|
||||
this.fileListName = fileListName
|
||||
this.fileName = fileName
|
||||
this.accept = accept
|
||||
this.fileMax_M = fileMax_M
|
||||
this.$refs.processFileRef.getFile(this.sarStandardsInfoEO[this.fileListName])
|
||||
},
|
||||
uploadSuccess (fileList, fileId) {
|
||||
this.sarStandardsInfoEO[this.fileListName] = fileList
|
||||
this.sarStandardsInfoEO[this.fileName] = fileId
|
||||
this.sarStandardsInfoEO = { ...this.sarStandardsInfoEO }
|
||||
},
|
||||
add () {
|
||||
this.modalshowflag = true
|
||||
this.sarStandardsInfoEO = {}
|
||||
},
|
||||
edit (row) {
|
||||
this.modalshowflag = true
|
||||
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(row))
|
||||
},
|
||||
resetForm () {
|
||||
this.modalshowflag = false
|
||||
},
|
||||
saveOrUpdateStands () {
|
||||
this.$refs['sarStandardsInfoForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (!this.sarStandardsInfoEO.chapterNumber && !this.sarStandardsInfoEO.chapterEntries
|
||||
&& !this.sarStandardsInfoEO.modifyBefore && !this.sarStandardsInfoEO.modifyAfter
|
||||
&& !this.sarStandardsInfoEO.modifyReason && !this.sarStandardsInfoEO.annexFileId
|
||||
&& !this.sarStandardsInfoEO.cause && !this.sarStandardsInfoEO.handlingOpinions
|
||||
&& !this.sarStandardsInfoEO.handlingCause) {
|
||||
this.$message.warning('请至少填写一条数据,不能都为空')
|
||||
return
|
||||
}
|
||||
let timestamp = new Date().getTime();
|
||||
if (!this.sarStandardsInfoEO.dataId && !this.sarStandardsInfoEO.id) {
|
||||
this.sarStandardsInfoEO.dataId = timestamp
|
||||
}
|
||||
this.isSubmit = true
|
||||
this.$emit('addModelForm', this.sarStandardsInfoEO)
|
||||
this.modalshowflag = false
|
||||
this.$nextTick(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
this.$message.warning('请至少填写一条数据,不能都为空')
|
||||
return
|
||||
}
|
||||
const timestamp = new Date().getTime();
|
||||
if (!this.sarStandardsInfoEO.dataId && !this.sarStandardsInfoEO.id) {
|
||||
this.sarStandardsInfoEO.dataId = timestamp
|
||||
}
|
||||
this.isSubmit = true
|
||||
this.$emit('addModelForm', this.sarStandardsInfoEO)
|
||||
this.modalshowflag = false
|
||||
this.$nextTick(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
+383
-371
@@ -1,398 +1,410 @@
|
||||
<template>
|
||||
<div>
|
||||
<ProcessTitle>
|
||||
<template slot="title">征求意见列表</template>
|
||||
</ProcessTitle>
|
||||
<div class="action-bar">
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary add-button"
|
||||
@click="addModel"
|
||||
v-if="isNodeDisplay"
|
||||
><i class="el-icon-plus"></i>新增
|
||||
</el-button>
|
||||
<el-button
|
||||
class="common-button-primary add-button"
|
||||
@click="batchDeleteModel"
|
||||
v-if="isNodeDisplay"
|
||||
><i class="iconfont"></i>批量删除
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
v-if="isGenerateSummary"
|
||||
class="common-button-primary add-button"
|
||||
@click="generateSummary"
|
||||
>生成汇总单
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
v-if="isGenerateSummary"
|
||||
class="common-button-primary add-button"
|
||||
@click="generateReportComments"
|
||||
>生成上报意见
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
v-if="isExport"
|
||||
class="common-button-primary add-button"
|
||||
@click="exportModel"
|
||||
>导出
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
height="500"
|
||||
ref="selection"
|
||||
:data="histortData"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%;margin-bottom: 20px"
|
||||
border
|
||||
row-key="id"
|
||||
@selection-change="selectChange"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
v-if="showSelection"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
width="80"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="chapterNumber"
|
||||
label="章节编号"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="chapterEntries"
|
||||
label="章节条目"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyBefore"
|
||||
label="修改前"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyAfter"
|
||||
label="修改后"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyReason"
|
||||
label="修改理由"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="cause"
|
||||
label="原因"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completeFlag"
|
||||
label="附件"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.annexFileId" @click="fileClick(scope.row.annexFileList)"
|
||||
class="textClass">查看文件</a>
|
||||
<span v-else>--</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
v-if="isPersonInCharge"
|
||||
prop="createUserName"
|
||||
label="责任人"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="createUserDeptName"
|
||||
label="提出部门"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="createUserName"
|
||||
label="提出人"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="handlingOpinions"
|
||||
label="处理意见"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="handlingCause"
|
||||
label="处理原因"
|
||||
v-if="isCompleteFlag"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
width="70"
|
||||
v-if="isOperate"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div @click.stop style="display: inline-block">
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<i class="iconfont"></i>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="[scope.row, scope.$index, '编辑']">编辑
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-if="taskKey != 'PolicySolicitOpinionProcessKey12'"
|
||||
:command="[scope.row, scope.$index,'删除']">删除
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<addModel ref="addModelRef" @addModelForm="addModelForm"/>
|
||||
<fileViewModel ref="fileViewModelRef"/>
|
||||
<div>
|
||||
<ProcessTitle>
|
||||
<template slot="title">征求意见列表</template>
|
||||
</ProcessTitle>
|
||||
<div class="action-bar">
|
||||
<el-button
|
||||
v-if="isNodeDisplay"
|
||||
type="primary"
|
||||
class="common-button-primary add-button"
|
||||
@click="addModel"
|
||||
>
|
||||
<i class="el-icon-plus" />新增
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="isNodeDisplay"
|
||||
class="common-button-primary add-button"
|
||||
@click="batchDeleteModel"
|
||||
>
|
||||
<i class="iconfont"></i>批量删除
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="isGenerateSummary"
|
||||
type="primary"
|
||||
class="common-button-primary add-button"
|
||||
@click="generateSummary"
|
||||
>
|
||||
生成汇总单
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="isGenerateSummary"
|
||||
type="primary"
|
||||
class="common-button-primary add-button"
|
||||
@click="generateReportComments"
|
||||
>
|
||||
生成上报意见
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="isExport"
|
||||
type="primary"
|
||||
class="common-button-primary add-button"
|
||||
@click="exportModel"
|
||||
>
|
||||
导出
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
ref="selection"
|
||||
height="500"
|
||||
:data="histortData"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%;margin-bottom: 20px"
|
||||
border
|
||||
row-key="id"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
@selection-change="selectChange"
|
||||
>
|
||||
<el-table-column
|
||||
v-if="showSelection"
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
width="80"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="chapterNumber"
|
||||
label="章节编号"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="chapterEntries"
|
||||
label="章节条目"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="modifyBefore"
|
||||
label="修改前"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="modifyAfter"
|
||||
label="修改后"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="modifyReason"
|
||||
label="修改理由"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="cause"
|
||||
label="原因"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="completeFlag"
|
||||
label="附件"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a
|
||||
v-if="scope.row.annexFileId"
|
||||
class="textClass"
|
||||
@click="fileClick(scope.row.annexFileList)"
|
||||
>查看文件</a>
|
||||
<span v-else>--</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
v-if="isPersonInCharge"
|
||||
prop="createUserName"
|
||||
label="责任人"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="createUserDeptName"
|
||||
label="提出部门"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="createUserName"
|
||||
label="提出人"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="handlingOpinions"
|
||||
label="处理意见"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isCompleteFlag"
|
||||
prop="handlingCause"
|
||||
label="处理原因"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="isOperate"
|
||||
label="操作"
|
||||
width="70"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<div style="display: inline-block" @click.stop>
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<i class="iconfont"></i>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item :command="[scope.row, scope.$index, '编辑']">
|
||||
编辑
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="taskKey != 'PolicySolicitOpinionProcessKey12'"
|
||||
:command="[scope.row, scope.$index,'删除']"
|
||||
>
|
||||
删除
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<addModel ref="addModelRef" @addModelForm="addModelForm" />
|
||||
<fileViewModel ref="fileViewModelRef" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ProcessTitle from "../../../components/ProcessTitle";
|
||||
import fileViewModel from "./fileViewModel";
|
||||
import addModel from "./addModel";
|
||||
import ProcessTitle from '../../../components/ProcessTitle';
|
||||
import fileViewModel from './fileViewModel';
|
||||
import addModel from './addModel';
|
||||
|
||||
export default {
|
||||
name: "solicitationList",
|
||||
components: {
|
||||
ProcessTitle,
|
||||
addModel,
|
||||
fileViewModel
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
histortData: [],
|
||||
addOrEdit: 'add',
|
||||
editNum: 0,
|
||||
selectList: [],
|
||||
deleteList: [],
|
||||
taskKey: this.$route.query.taskDefinitionKey,//流程节点key
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isNodeDisplay() {//是否展示新增和批量删除
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
export default {
|
||||
name: 'SolicitationList',
|
||||
components: {
|
||||
ProcessTitle,
|
||||
addModel,
|
||||
fileViewModel
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
histortData: [],
|
||||
addOrEdit: 'add',
|
||||
editNum: 0,
|
||||
selectList: [],
|
||||
deleteList: [],
|
||||
taskKey: this.$route.query.taskDefinitionKey, // 流程节点key
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isNodeDisplay () {// 是否展示新增和批量删除
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isGenerateSummary() {//是否展示生成汇总单和生成上报意见
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isGenerateSummary () {// 是否展示生成汇总单和生成上报意见
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey15') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isExport() {//是否展示导出
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isPersonInCharge() {
|
||||
//是否展示责任人
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isExport () {// 是否展示导出
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isPersonInCharge () {
|
||||
// 是否展示责任人
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey10' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey11') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isCompleteFlag() {//是否展示提出部门、提出人、处理意见、原因
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12' ||
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isCompleteFlag () {// 是否展示提出部门、提出人、处理意见、原因
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey12' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey14' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey15' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey16') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isOperate() {//是否展示操作列
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isOperate () {// 是否展示操作列
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
showSelection() {//是否展示选择
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
showSelection () {// 是否展示选择
|
||||
if (this.$route.query.operate && this.$route.query.operate == 'view') {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
let query = {
|
||||
taskDefinitionKey: this.$route.query.taskDefinitionKey,
|
||||
prcId: this.$route.query.prcId
|
||||
}
|
||||
this.$http.get('/lawss/activiti/queryPolicitOpinionEOList', query, {_this: this}, res => {
|
||||
if (res.ok) {
|
||||
this.histortData = res.data || []
|
||||
} else {
|
||||
this.histortData = []
|
||||
}
|
||||
})
|
||||
},
|
||||
generateSummary() {
|
||||
window.location.href = 'api/lawss/activiti/exportPolicitOpinionEOListExcel?taskDefinitionKey='
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData () {
|
||||
const query = {
|
||||
taskDefinitionKey: this.$route.query.taskDefinitionKey,
|
||||
prcId: this.$route.query.prcId
|
||||
}
|
||||
this.$http.get('/lawss/activiti/queryPolicitOpinionEOList', query, { _this: this }, res => {
|
||||
if (res.ok) {
|
||||
this.histortData = res.data || []
|
||||
} else {
|
||||
this.histortData = []
|
||||
}
|
||||
})
|
||||
},
|
||||
generateSummary () {
|
||||
window.location.href = 'api/lawss/activiti/exportPolicitOpinionEOListExcel?taskDefinitionKey='
|
||||
+ this.$route.query.taskDefinitionKey + '&prcId=' + this.$route.query.prcId + '¤tUserId=' +
|
||||
this.$store.getters.userInfo.userId
|
||||
},
|
||||
generateReportComments() {
|
||||
window.location.href = 'api/lawss/activiti/exportPolicitOpinionEOListExcel?taskDefinitionKey='
|
||||
},
|
||||
generateReportComments () {
|
||||
window.location.href = 'api/lawss/activiti/exportPolicitOpinionEOListExcel?taskDefinitionKey='
|
||||
+ this.$route.query.taskDefinitionKey + '&prcId=' + this.$route.query.prcId + '¤tUserId=' +
|
||||
this.$store.getters.userInfo.userId
|
||||
},
|
||||
exportModel() {
|
||||
window.location.href = 'api/lawss/activiti/exportPolicitOpinionEOListExcel?taskDefinitionKey='
|
||||
},
|
||||
exportModel () {
|
||||
window.location.href = 'api/lawss/activiti/exportPolicitOpinionEOListExcel?taskDefinitionKey='
|
||||
+ this.$route.query.taskDefinitionKey + '&prcId=' + this.$route.query.prcId + '¤tUserId=' +
|
||||
this.$store.getters.userInfo.userId
|
||||
},
|
||||
addModel() {
|
||||
this.addOrEdit = 'add'
|
||||
this.$refs.addModelRef.add()
|
||||
},
|
||||
selectChange(row) {
|
||||
this.selectList = row
|
||||
},
|
||||
batchDeleteModel() {
|
||||
if (this.selectList && this.selectList.length > 0) {
|
||||
this.$confirm('确认删除这些数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
this.selectList.forEach(val => {
|
||||
if (val.id) {
|
||||
this.deleteList.push(val.id)
|
||||
}
|
||||
this.histortData = this.histortData.filter(res => {
|
||||
if (res.id) {
|
||||
return res.id != val.id
|
||||
} else {
|
||||
return res.dataId != val.dataId
|
||||
}
|
||||
})
|
||||
})
|
||||
this.histortData = [...this.histortData]
|
||||
}).catch(() => {
|
||||
// 取消删除,清空选择
|
||||
this.$refs.selection.clearSelection()
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择至少一条数据')
|
||||
}
|
||||
|
||||
},
|
||||
handleCommand(command) {
|
||||
switch (command[2]) {
|
||||
case "编辑":
|
||||
this.addOrEdit = 'edit'
|
||||
this.editNum = command[1]
|
||||
this.$refs.addModelRef.edit(command[0])
|
||||
break;
|
||||
case "删除":
|
||||
this.deleteSarAccess(command[1], command[0]);
|
||||
break;
|
||||
}
|
||||
},
|
||||
deleteSarAccess(num, row) {
|
||||
this.$confirm('确认删除数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
if (row.id) {
|
||||
this.deleteList.push(row.id)
|
||||
}
|
||||
this.histortData.splice(num, 1)
|
||||
this.histortData = [...this.histortData]
|
||||
}).catch(() => {
|
||||
// 取消删除,清空选择
|
||||
// this.$refs.multipleTable.clearSelection()
|
||||
})
|
||||
},
|
||||
addModelForm(row) {
|
||||
if (this.addOrEdit == 'add') {
|
||||
this.histortData.push(row)
|
||||
} else if (this.addOrEdit == 'edit') {
|
||||
this.histortData[this.editNum] = row
|
||||
this.histortData = [...this.histortData]
|
||||
}
|
||||
},
|
||||
fileClick(list) {
|
||||
if (list && list.length > 0) {
|
||||
this.$refs.fileViewModelRef.getData(list)
|
||||
} else {
|
||||
this.$message.warning('没有可查看的文件')
|
||||
}
|
||||
},
|
||||
submit(callback) {
|
||||
if (this.histortData && this.histortData.length > 0) {
|
||||
callback && callback(this.histortData, this.deleteList.join(','))
|
||||
} else {
|
||||
this.$message.warning('请至少添加一条数据')
|
||||
}
|
||||
},
|
||||
save(callback) {
|
||||
callback && callback(this.histortData, this.deleteList.join(','))
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
addModel () {
|
||||
this.addOrEdit = 'add'
|
||||
this.$refs.addModelRef.add()
|
||||
},
|
||||
selectChange (row) {
|
||||
this.selectList = row
|
||||
},
|
||||
batchDeleteModel () {
|
||||
if (this.selectList && this.selectList.length > 0) {
|
||||
this.$confirm('确认删除这些数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
this.selectList.forEach(val => {
|
||||
if (val.id) {
|
||||
this.deleteList.push(val.id)
|
||||
}
|
||||
this.histortData = this.histortData.filter(res => {
|
||||
if (res.id) {
|
||||
return res.id != val.id
|
||||
} else {
|
||||
return res.dataId != val.dataId
|
||||
}
|
||||
})
|
||||
})
|
||||
this.histortData = [ ...this.histortData ]
|
||||
}).catch(() => {
|
||||
// 取消删除,清空选择
|
||||
this.$refs.selection.clearSelection()
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择至少一条数据')
|
||||
}
|
||||
},
|
||||
handleCommand (command) {
|
||||
switch (command[2]) {
|
||||
case '编辑':
|
||||
this.addOrEdit = 'edit'
|
||||
this.editNum = command[1]
|
||||
this.$refs.addModelRef.edit(command[0])
|
||||
break;
|
||||
case '删除':
|
||||
this.deleteSarAccess(command[1], command[0]);
|
||||
break;
|
||||
}
|
||||
},
|
||||
deleteSarAccess (num, row) {
|
||||
this.$confirm('确认删除数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
if (row.id) {
|
||||
this.deleteList.push(row.id)
|
||||
}
|
||||
this.histortData.splice(num, 1)
|
||||
this.histortData = [ ...this.histortData ]
|
||||
}).catch(() => {
|
||||
// 取消删除,清空选择
|
||||
// this.$refs.multipleTable.clearSelection()
|
||||
})
|
||||
},
|
||||
addModelForm (row) {
|
||||
if (this.addOrEdit == 'add') {
|
||||
this.histortData.push(row)
|
||||
} else if (this.addOrEdit == 'edit') {
|
||||
this.histortData[this.editNum] = row
|
||||
this.histortData = [ ...this.histortData ]
|
||||
}
|
||||
},
|
||||
fileClick (list) {
|
||||
if (list && list.length > 0) {
|
||||
this.$refs.fileViewModelRef.getData(list)
|
||||
} else {
|
||||
this.$message.warning('没有可查看的文件')
|
||||
}
|
||||
},
|
||||
submit (callback) {
|
||||
if (this.histortData && this.histortData.length > 0) {
|
||||
callback && callback(this.histortData, this.deleteList.join(','))
|
||||
} else {
|
||||
this.$message.warning('请至少添加一条数据')
|
||||
}
|
||||
},
|
||||
save (callback) {
|
||||
callback && callback(this.histortData, this.deleteList.join(','))
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user