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