style: 格式化代码
This commit is contained in:
@@ -7,20 +7,32 @@
|
|||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<el-form :model="standCommonlySearch" inline class="label-input-form" @keyup.enter.native="searchStandList">
|
<el-form :model="standCommonlySearch" inline class="label-input-form" @keyup.enter.native="searchStandList">
|
||||||
<el-form-item label="标准号/名称" class="search-item">
|
<el-form-item label="标准号/名称" class="search-item">
|
||||||
<el-input v-model="numOrName" class="s-c-input" :placeholder="$t('m.searchByStandardNumberAndName')" clearable :maxlength="100"></el-input>
|
<el-input
|
||||||
|
v-model="numOrName"
|
||||||
|
class="s-c-input"
|
||||||
|
:placeholder="$t('m.searchByStandardNumberAndName')"
|
||||||
|
clearable
|
||||||
|
:maxlength="100"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-btn-permission="'bcf0d05723689ced8f49fae7794ff0db'"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
v-btn-permission="'bcf0d05723689ced8f49fae7794ff0db'"
|
@click="searchStandList"
|
||||||
@click="searchStandList">查询</el-button>
|
>
|
||||||
|
查询
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-btn-permission="'0af780936b77df9905c988db9e90bee8'"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
v-btn-permission="'0af780936b77df9905c988db9e90bee8'"
|
@click="clearSearchStand"
|
||||||
@click="clearSearchStand">清空</el-button>
|
>
|
||||||
|
清空
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -28,31 +40,32 @@
|
|||||||
</table-tools-bar>
|
</table-tools-bar>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
<el-button size="small" type="primary" @click="spiltStandFile" v-btn-permission="'633d92e841ab4d49fb57b48b45fd0db8'">拆分</el-button>
|
<el-button v-btn-permission="'633d92e841ab4d49fb57b48b45fd0db8'" size="small" type="primary" @click="spiltStandFile">拆分</el-button>
|
||||||
<el-button size="small" type="danger" @click="batchDelete" v-btn-permission="'e214975dcab66d2e27bf2ed9897f521c'">删除</el-button>
|
<el-button v-btn-permission="'e214975dcab66d2e27bf2ed9897f521c'" size="small" type="danger" @click="batchDelete">删除</el-button>
|
||||||
<el-button size="small" type="primary" @click="clickButtonToImport">导入拆分结果</el-button>
|
<el-button size="small" type="primary" @click="clickButtonToImport">导入拆分结果</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-wrap">
|
<div class="table-wrap">
|
||||||
<div style="position: absolute;height: 100%;width: 100%;">
|
<div style="position: absolute;height: 100%;width: 100%;">
|
||||||
<el-table
|
<el-table
|
||||||
|
ref="selection"
|
||||||
:data="standInfoList"
|
:data="standInfoList"
|
||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
height="100%"
|
height="100%"
|
||||||
border
|
border
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
@selection-change="standSelectChange"
|
@selection-change="standSelectChange"
|
||||||
ref="selection"
|
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="index"
|
type="index"
|
||||||
width="55"
|
width="55"
|
||||||
label="序号"
|
label="序号"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="{scope, column, $index}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
{{ ($index + 1) + (splitInfoPage - 1) * splitInfoPageSize }}
|
{{ ($index + 1) + (splitInfoPage - 1) * splitInfoPageSize }}
|
||||||
</template>
|
</template>
|
||||||
@@ -61,10 +74,13 @@
|
|||||||
prop="showNumber"
|
prop="showNumber"
|
||||||
label="标准号/政策号"
|
label="标准号/政策号"
|
||||||
width="150"
|
width="150"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump"
|
<a
|
||||||
@click="handlePreview(scope.row)">{{ scope.row.standNumSplit }}</a>
|
class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)"
|
||||||
|
>{{ scope.row.standNumSplit }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -72,29 +88,33 @@
|
|||||||
label="标准名称/政策名称"
|
label="标准名称/政策名称"
|
||||||
width="300"
|
width="300"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump"
|
<a
|
||||||
@click="handlePreview(scope.row)">{{ scope.row.standNameSplit }}</a>
|
class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)"
|
||||||
|
>{{ scope.row.standNameSplit }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="fileTypeShow"
|
prop="fileTypeShow"
|
||||||
label="标准状态"
|
label="标准状态"
|
||||||
width="110"
|
width="110"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="fileName"
|
prop="fileName"
|
||||||
label="文件名称"
|
label="文件名称"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="splitStatus"
|
prop="splitStatus"
|
||||||
label="拆分状态"
|
label="拆分状态"
|
||||||
width="120"
|
width="120"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.splitStatus == '0'">编辑中</span>
|
<span v-if="scope.row.splitStatus == '0'">编辑中</span>
|
||||||
<span v-else-if="scope.row.splitStatus == '1'">审核中</span>
|
<span v-else-if="scope.row.splitStatus == '1'">审核中</span>
|
||||||
@@ -108,7 +128,8 @@
|
|||||||
label="拆分时间"
|
label="拆分时间"
|
||||||
width="120"
|
width="120"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.creationTime ? $moment(scope.row.creationTime).format('YYYY-MM-DD') : '' }}</span>
|
<span>{{ scope.row.creationTime ? $moment(scope.row.creationTime).format('YYYY-MM-DD') : '' }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -117,10 +138,11 @@
|
|||||||
prop="result"
|
prop="result"
|
||||||
label="拆分结果"
|
label="拆分结果"
|
||||||
align="center"
|
align="center"
|
||||||
width="100">
|
width="100"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag type="success" size="small" v-if="scope.row.result === '1'">成功</el-tag>
|
<el-tag v-if="scope.row.result === '1'" type="success" size="small">成功</el-tag>
|
||||||
<el-tag type="danger" size="small" v-else>失败</el-tag>
|
<el-tag v-else type="danger" size="small">失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="80">
|
<el-table-column label="操作" align="center" width="80">
|
||||||
@@ -130,7 +152,9 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="showUser(scope.row)"
|
@click="showUser(scope.row)"
|
||||||
>查看</el-button>
|
>
|
||||||
|
查看
|
||||||
|
</el-button>
|
||||||
<!-- <el-dropdown trigger="click" @command="handleCommand">
|
<!-- <el-dropdown trigger="click" @command="handleCommand">
|
||||||
<i class="iconfont"></i>
|
<i class="iconfont"></i>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
@@ -145,51 +169,55 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<loading :loading="loading">正在获取中……</loading>
|
<loading :loading="loading">正在获取中……</loading>
|
||||||
<pagination :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
<pagination :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange" />
|
||||||
<!-- 拆分-->
|
<!-- 拆分-->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
title="拆分"
|
title="拆分"
|
||||||
:wrapperClosable="false"
|
:wrapperClosable="false"
|
||||||
:visible.sync="addFileConvertShowflag"
|
:visible.sync="addFileConvertShowflag"
|
||||||
size="1200px"
|
size="1200px"
|
||||||
@close="addFileConvertShowflag = false"
|
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
|
@close="addFileConvertShowflag = false"
|
||||||
>
|
>
|
||||||
<div class="demo-drawer-content">
|
<div class="demo-drawer-content">
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<el-form :model="fileInfoEOSearch" inline class="label-input-form">
|
<el-form :model="fileInfoEOSearch" inline class="label-input-form">
|
||||||
<el-form-item label="数据来源" prop="fileType" class="search-item">
|
<el-form-item label="数据来源" prop="fileType" class="search-item">
|
||||||
<el-select v-model="fileInfoEOSearch.fileType" placeholder="请选择数据来源" clearable>
|
<el-select v-model="fileInfoEOSearch.fileType" placeholder="请选择数据来源" clearable>
|
||||||
<el-option v-for="opt in fileTypeOptions" :key="opt.value" :value="opt.value" :label="opt.label"></el-option>
|
<el-option v-for="opt in fileTypeOptions" :key="opt.value" :value="opt.value" :label="opt.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准号/政策号" prop="standNumber" class="search-item">
|
<el-form-item label="标准号/政策号" prop="standNumber" class="search-item">
|
||||||
<el-input v-model="fileInfoEOSearch.standNumber" :maxlength="100" placeholder="请选择标准号/政策号" clearable></el-input>
|
<el-input v-model="fileInfoEOSearch.standNumber" :maxlength="100" placeholder="请选择标准号/政策号" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准名称/政策名称" prop="standName" class="search-item">
|
<el-form-item label="标准名称/政策名称" prop="standName" class="search-item">
|
||||||
<el-input v-model="fileInfoEOSearch.standName" :maxlength="100" placeholder="请选择标准名称/政策名称" clearable></el-input>
|
<el-input v-model="fileInfoEOSearch.standName" :maxlength="100" placeholder="请选择标准名称/政策名称" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准状态" prop="standFileClassify" class="search-item">
|
<el-form-item label="标准状态" prop="standFileClassify" class="search-item">
|
||||||
<el-select v-model="fileInfoEOSearch.standFileClassify" placeholder="请选择标准状态" clearable>
|
<el-select v-model="fileInfoEOSearch.standFileClassify" placeholder="请选择标准状态" clearable>
|
||||||
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label"></el-option>
|
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-btn-permission="'7ec1c1789e26ac06f0c27ff02067b5ec'"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-btn-permission="'7ec1c1789e26ac06f0c27ff02067b5ec'"
|
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
@click="StandFileListByPage"
|
@click="StandFileListByPage"
|
||||||
>搜索</el-button>
|
>
|
||||||
|
搜索
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="serch-form-item btn-box">
|
<el-form-item class="serch-form-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-btn-permission="'3d2a7ad51f31f0204810b6e505a244f8'"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
v-btn-permission="'3d2a7ad51f31f0204810b6e505a244f8'"
|
|
||||||
@click="clearGetStandFileListByPage"
|
@click="clearGetStandFileListByPage"
|
||||||
>清空</el-button>
|
>
|
||||||
|
清空
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -205,7 +233,7 @@
|
|||||||
>
|
>
|
||||||
<el-table-column label="" width="55">
|
<el-table-column label="" width="55">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-radio :label="scope.$index+1" v-model="radio" @change.native="standSelectChangeByStandTab(scope.row)">
|
<el-radio v-model="radio" :label="scope.$index+1" @change.native="standSelectChangeByStandTab(scope.row)">
|
||||||
|
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</template>
|
</template>
|
||||||
@@ -214,7 +242,8 @@
|
|||||||
type="index"
|
type="index"
|
||||||
width="55"
|
width="55"
|
||||||
label="序号"
|
label="序号"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="{scope, column, $index}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
{{ ($index + 1) + (addFilePage - 1) * addFilePageSize }}
|
{{ ($index + 1) + (addFilePage - 1) * addFilePageSize }}
|
||||||
</template>
|
</template>
|
||||||
@@ -222,7 +251,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="sarType"
|
prop="sarType"
|
||||||
label="资料类型"
|
label="资料类型"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.sarType === 'INLAND'">国内标准法规</div>
|
<div v-if="scope.row.sarType === 'INLAND'">国内标准法规</div>
|
||||||
<div v-else-if="scope.row.sarType === 'FOREIGN'">国外标准法规</div>
|
<div v-else-if="scope.row.sarType === 'FOREIGN'">国外标准法规</div>
|
||||||
@@ -231,10 +261,13 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standNumber"
|
prop="standNumber"
|
||||||
label="标准号/政策号"
|
label="标准号/政策号"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump"
|
<a
|
||||||
@click="handlePreview1(scope.row)">{{ scope.row.standNumber }}</a>
|
class="table-jump"
|
||||||
|
@click="handlePreview1(scope.row)"
|
||||||
|
>{{ scope.row.standNumber }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -243,20 +276,22 @@
|
|||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump"
|
<a
|
||||||
@click="handlePreview1(scope.row)">{{ scope.row.standName }}</a>
|
class="table-jump"
|
||||||
|
@click="handlePreview1(scope.row)"
|
||||||
|
>{{ scope.row.standName }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standFileClassifyShow"
|
prop="standFileClassifyShow"
|
||||||
label="标准状态"
|
label="标准状态"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="fileName"
|
prop="fileName"
|
||||||
label="附件"
|
label="附件"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
style="position: static;"
|
style="position: static;"
|
||||||
@@ -265,11 +300,12 @@
|
|||||||
:total="addFileStandtotal"
|
:total="addFileStandtotal"
|
||||||
:page="addFilePage"
|
:page="addFilePage"
|
||||||
@pageChange="addFileStandPageChange"
|
@pageChange="addFileStandPageChange"
|
||||||
@pageSizeChange="addFileStandPageSizeChange"></pagination>
|
@pageSizeChange="addFileStandPageSizeChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
<el-button size="mini" style="margin-right: 8px" @click="addFileConvertShowflag = false" icon="el-icon-close" >取消</el-button>
|
<el-button size="mini" style="margin-right: 8px" icon="el-icon-close" @click="addFileConvertShowflag = false">取消</el-button>
|
||||||
<el-button size="mini" type="primary" @click="saveSplitInfo" icon="el-icon-check" >拆分</el-button>
|
<el-button size="mini" type="primary" icon="el-icon-check" @click="saveSplitInfo">拆分</el-button>
|
||||||
</div>
|
</div>
|
||||||
<loading :loading="loadData">正在获取数据</loading>
|
<loading :loading="loadData">正在获取数据</loading>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
@@ -281,18 +317,19 @@
|
|||||||
@close="drawerModal = false"
|
@close="drawerModal = false"
|
||||||
>
|
>
|
||||||
<div class="demo-drawer-content">
|
<div class="demo-drawer-content">
|
||||||
<dept-tree treeDivId="drawerModalTree"
|
<dept-tree
|
||||||
ref="drawerModalTree"
|
ref="drawerModalTree"
|
||||||
@treeClick="selcetTree"
|
treeDivId="drawerModalTree"
|
||||||
allDept
|
allDept
|
||||||
showUser
|
showUser
|
||||||
:editable="false"
|
:editable="false"
|
||||||
style="padding: 0 15px">
|
style="padding: 0 15px"
|
||||||
</dept-tree>
|
@treeClick="selcetTree"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
<el-button size="mini" style="margin-right: 8px" @click="drawerModal = false" icon="el-icon-close" >{{$t('m.cancel')}}</el-button>
|
<el-button size="mini" style="margin-right: 8px" icon="el-icon-close" @click="drawerModal = false">{{ $t('m.cancel') }}</el-button>
|
||||||
<el-button size="mini" type="primary" @click="shareStandardBt" icon="el-icon-check" >{{$t('m.push')}}</el-button>
|
<el-button size="mini" type="primary" icon="el-icon-check" @click="shareStandardBt">{{ $t('m.push') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<!--编辑抽屉-->
|
<!--编辑抽屉-->
|
||||||
@@ -314,7 +351,7 @@
|
|||||||
prop="standNumSplit"
|
prop="standNumSplit"
|
||||||
label-width="140px"
|
label-width="140px"
|
||||||
>
|
>
|
||||||
<el-input v-model="editForm.standNumSplit" :maxlength="100" placeholder="请输入标准号/政策号" clearable></el-input>
|
<el-input v-model="editForm.standNumSplit" :maxlength="100" placeholder="请输入标准号/政策号" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="标准名称/政策名称"
|
label="标准名称/政策名称"
|
||||||
@@ -322,7 +359,7 @@
|
|||||||
prop="standNameSplit"
|
prop="standNameSplit"
|
||||||
label-width="140px"
|
label-width="140px"
|
||||||
>
|
>
|
||||||
<el-input v-model="editForm.standNameSplit" :maxlength="100" placeholder="请输入标准名称/政策名称" clearable></el-input>
|
<el-input v-model="editForm.standNameSplit" :maxlength="100" placeholder="请输入标准名称/政策名称" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="标准状态"
|
label="标准状态"
|
||||||
@@ -331,14 +368,22 @@
|
|||||||
label-width="140px"
|
label-width="140px"
|
||||||
>
|
>
|
||||||
<el-select v-model="editForm.fileType" placeholder="请选择标准状态" clearable>
|
<el-select v-model="editForm.fileType" placeholder="请选择标准状态" clearable>
|
||||||
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label"></el-option>
|
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
<el-button size="mini" style="margin-right: 8px" @click="editDrawerModal = false" icon="el-icon-close">取消</el-button>
|
<el-button size="mini" style="margin-right: 8px" icon="el-icon-close" @click="editDrawerModal = false">取消</el-button>
|
||||||
<el-button size="mini" type="primary" @click="editFormSave" icon="el-icon-check" :loading="isSubmit">保存</el-button>
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-check"
|
||||||
|
:loading="isSubmit"
|
||||||
|
@click="editFormSave"
|
||||||
|
>
|
||||||
|
保存
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@@ -350,37 +395,51 @@
|
|||||||
>
|
>
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<el-form
|
<el-form
|
||||||
|
ref="uploadFileSplitEO2"
|
||||||
:model="uploadFilesplitEo"
|
:model="uploadFilesplitEo"
|
||||||
:rules="uploadFileSplitRules"
|
:rules="uploadFileSplitRules"
|
||||||
ref="uploadFileSplitEO2"
|
|
||||||
class="label-input-form upload-file-form"
|
class="label-input-form upload-file-form"
|
||||||
label-position="left"
|
label-position="left"
|
||||||
label-width="150px"
|
label-width="150px"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
>
|
>
|
||||||
<el-form-item label="标准号/政策号" prop="standNumSplit" class="search-item btn-box widthLimit">
|
<el-form-item label="标准号/政策号" prop="standNumSplit" class="search-item btn-box widthLimit">
|
||||||
<el-input v-model="uploadFilesplitEo.standNumSplit" :maxlength="100" placeholder="请输入标准号/政策号"></el-input>
|
<el-input v-model="uploadFilesplitEo.standNumSplit" :maxlength="100" placeholder="请输入标准号/政策号" />
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="position:absolute;right: 0;"
|
style="position:absolute;right: 0;"
|
||||||
@click="selectLaws"
|
@click="selectLaws"
|
||||||
>手动查找</el-button>
|
>
|
||||||
|
手动查找
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准名称/政策名称" prop="standNameSplit" class="search-item btn-box">
|
<el-form-item label="标准名称/政策名称" prop="standNameSplit" class="search-item btn-box">
|
||||||
<el-input v-model="uploadFilesplitEo.standNameSplit" :maxlength="100" placeholder="请输入标准名称/政策名称"></el-input>
|
<el-input v-model="uploadFilesplitEo.standNameSplit" :maxlength="100" placeholder="请输入标准名称/政策名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="拆分方式" prop="splitType" class="search-item btn-box">
|
<el-form-item label="拆分方式" prop="splitType" class="search-item btn-box">
|
||||||
<el-radio-group v-model="uploadFilesplitEo.splitType">
|
<el-radio-group v-model="uploadFilesplitEo.splitType">
|
||||||
<el-radio label="全部章节" value="全部章节"></el-radio>
|
<el-radio label="全部章节" value="全部章节" />
|
||||||
<el-radio label="部分章节" value="部分章节"></el-radio>
|
<el-radio label="部分章节" value="部分章节" />
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<span v-show="uploadFilesplitEo.splitType === '部分章节'" style="margin-right: 10px;vertical-align:top;">章节</span>
|
<span v-show="uploadFilesplitEo.splitType === '部分章节'" style="margin-right: 10px;vertical-align:top;">章节</span>
|
||||||
<el-input-number size="small" v-show="uploadFilesplitEo.splitType === '部分章节'" :max="100" :min="1" v-model="startNumber"></el-input-number>
|
<el-input-number
|
||||||
|
v-show="uploadFilesplitEo.splitType === '部分章节'"
|
||||||
|
v-model="startNumber"
|
||||||
|
size="small"
|
||||||
|
:max="100"
|
||||||
|
:min="1"
|
||||||
|
/>
|
||||||
<span v-show="uploadFilesplitEo.splitType === '部分章节'" style="margin: 0 10px;vertical-align:top;">到</span>
|
<span v-show="uploadFilesplitEo.splitType === '部分章节'" style="margin: 0 10px;vertical-align:top;">到</span>
|
||||||
<el-input-number size="small" v-show="uploadFilesplitEo.splitType === '部分章节'" :max="100" :min="startNumber" v-model="stopNumber"></el-input-number>
|
<el-input-number
|
||||||
|
v-show="uploadFilesplitEo.splitType === '部分章节'"
|
||||||
|
v-model="stopNumber"
|
||||||
|
size="small"
|
||||||
|
:max="100"
|
||||||
|
:min="startNumber"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准状态" prop="fileType" class="search-item btn-box">
|
<el-form-item label="标准状态" prop="fileType" class="search-item btn-box">
|
||||||
@@ -389,13 +448,15 @@
|
|||||||
v-for="opt in standFileClassifyOptions"
|
v-for="opt in standFileClassifyOptions"
|
||||||
:key="opt.value"
|
:key="opt.value"
|
||||||
:value="opt.value"
|
:value="opt.value"
|
||||||
:label="opt.label"></el-option>
|
:label="opt.label"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="拆分文件" prop="defaultFileList">
|
<el-form-item label="拆分文件" prop="defaultFileList">
|
||||||
<el-select v-model="uploadFilesplitEo.defaultFileList" multiple v-show="false" v-if="importModalshowflagtemp"></el-select>
|
<el-select v-show="false" v-if="importModalshowflagtemp" v-model="uploadFilesplitEo.defaultFileList" multiple />
|
||||||
<el-upload
|
<el-upload
|
||||||
:multiple="multipletype"
|
:multiple="multipletype"
|
||||||
|
ref="importFileAboutStand"
|
||||||
show-file-list
|
show-file-list
|
||||||
:on-success="uploadSuccess"
|
:on-success="uploadSuccess"
|
||||||
:on-remove="removeOneFile"
|
:on-remove="removeOneFile"
|
||||||
@@ -405,7 +466,7 @@
|
|||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
name="file"
|
name="file"
|
||||||
:on-change="handleUploadChange2"
|
:on-change="handleUploadChange2"
|
||||||
ref="importFileAboutStand">
|
>
|
||||||
<el-button size="mini" icon="el-icon-upload">{{ $t('m.upload') }}</el-button>
|
<el-button size="mini" icon="el-icon-upload">{{ $t('m.upload') }}</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -415,7 +476,6 @@
|
|||||||
<a href="#" style="color: blue" @click="formatSpecification=true">点击查看</a>
|
<a href="#" style="color: blue" @click="formatSpecification=true">点击查看</a>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<el-button size="mini" @click="importModalshowflagtemp = false">取消</el-button>
|
<el-button size="mini" @click="importModalshowflagtemp = false">取消</el-button>
|
||||||
@@ -437,10 +497,11 @@
|
|||||||
<h3>4、5、6 ...</h3>
|
<h3>4、5、6 ...</h3>
|
||||||
<div style="line-height: 20px; padding-top: 5px"><a style="color: red">(注)</a></div>
|
<div style="line-height: 20px; padding-top: 5px"><a style="color: red">(注)</a></div>
|
||||||
<div style="line-height: 20px; padding-left: 20px">
|
<div style="line-height: 20px; padding-left: 20px">
|
||||||
1.Word版本必须是2007以上<br/>
|
1.Word版本必须是2007以上<br>
|
||||||
2.文档开头中如果存在目录则需要删掉,否则系统识别是只识别到目录内容,后续正文内容无法识别。<br/>
|
2.文档开头中如果存在目录则需要删掉,否则系统识别是只识别到目录内容,后续正文内容无法识别。<br>
|
||||||
3.文档中的序号,不能是自动生成,必须是手动输入。<br/>
|
3.文档中的序号,不能是自动生成,必须是手动输入。<br>
|
||||||
4.文档序号从4开始拆分,且序号必须为连续,例如4.1,4.2,4.3 </div>
|
4.文档序号从4开始拆分,且序号必须为连续,例如4.1,4.2,4.3
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<el-button type="primary" size="mini" @click="formatSpecification = false">知道了</el-button>
|
<el-button type="primary" size="mini" @click="formatSpecification = false">知道了</el-button>
|
||||||
@@ -455,13 +516,14 @@
|
|||||||
>
|
>
|
||||||
<div class="mofun-formatSpecification">
|
<div class="mofun-formatSpecification">
|
||||||
<div style="line-height: 20px; padding-left: 20px">
|
<div style="line-height: 20px; padding-left: 20px">
|
||||||
1.导入的文档是zip格式<br/>
|
1.导入的文档是zip格式<br>
|
||||||
2.图片为jpg、jpeg、png、gif格式 <br/>
|
2.图片为jpg、jpeg、png、gif格式 <br>
|
||||||
3.文档中的图片,在导出Excel中以链接的形式展示,点击链接跳转到本地指定的文件 <br/>
|
3.文档中的图片,在导出Excel中以链接的形式展示,点击链接跳转到本地指定的文件 <br>
|
||||||
4.导入时,表格Sheet页名称保持一致即可,无需使用超链接。 <br/>
|
4.导入时,表格Sheet页名称保持一致即可,无需使用超链接。 <br>
|
||||||
5.导入时,表格Sheet页中的表格需要遵循最左原则,即由第一行第一列开始。 <br/>
|
5.导入时,表格Sheet页中的表格需要遵循最左原则,即由第一行第一列开始。 <br>
|
||||||
6.导入时,一条内容中最好不要仅仅只有图片。 <br/>
|
6.导入时,一条内容中最好不要仅仅只有图片。 <br>
|
||||||
7.文档中的表格,在导出Excel中以链接的形式展示,点击链接跳转到指定的Sheet页面。</div>
|
7.文档中的表格,在导出Excel中以链接的形式展示,点击链接跳转到指定的Sheet页面。
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<el-button type="primary" size="mini" @click="formatSpecificationTwo = false">知道了</el-button>
|
<el-button type="primary" size="mini" @click="formatSpecificationTwo = false">知道了</el-button>
|
||||||
@@ -474,41 +536,56 @@
|
|||||||
title="导入拆分结果"
|
title="导入拆分结果"
|
||||||
width="550px"
|
width="550px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
@close="handleClose">
|
@close="handleClose"
|
||||||
|
>
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
|
|
||||||
<el-form
|
<el-form
|
||||||
|
ref="uploadFileSplitEO"
|
||||||
:model="uploadFilesplitEo"
|
:model="uploadFilesplitEo"
|
||||||
:rules="uploadFileSplitRules"
|
:rules="uploadFileSplitRules"
|
||||||
ref="uploadFileSplitEO"
|
|
||||||
class="label-input-form upload-file-form"
|
class="label-input-form upload-file-form"
|
||||||
label-position="left"
|
label-position="left"
|
||||||
label-width="150px"
|
label-width="150px"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
>
|
>
|
||||||
<el-form-item label="标准号/政策号" prop="standNumSplit" class="search-item btn-box widthLimit">
|
<el-form-item label="标准号/政策号" prop="standNumSplit" class="search-item btn-box widthLimit">
|
||||||
<el-input v-model="uploadFilesplitEo.standNumSplit" :maxlength="100" :disabled="importSplitResultLoading" placeholder="请输入标准号/政策号" :readOnly="!(uploadFilesplitEo && uploadFilesplitEo.standId)"></el-input>
|
<el-input
|
||||||
|
v-model="uploadFilesplitEo.standNumSplit"
|
||||||
|
:maxlength="100"
|
||||||
|
:disabled="importSplitResultLoading"
|
||||||
|
placeholder="请输入标准号/政策号"
|
||||||
|
:readOnly="!(uploadFilesplitEo && uploadFilesplitEo.standId)"
|
||||||
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="position:absolute;right: 0;"
|
style="position:absolute;right: 0;"
|
||||||
@click="selectLaws"
|
@click="selectLaws"
|
||||||
>手动查找</el-button>
|
>
|
||||||
|
手动查找
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准名称/政策名称" prop="standNameSplit"class="search-item btn-box">
|
<el-form-item label="标准名称/政策名称" prop="standNameSplit"class="search-item btn-box">
|
||||||
<el-input v-model="uploadFilesplitEo.standNameSplit" :maxlength="100" :disabled="importSplitResultLoading" placeholder="请输入标准名称/政策名称" :readOnly="!(uploadFilesplitEo && uploadFilesplitEo.standId)"></el-input>
|
<el-input
|
||||||
|
v-model="uploadFilesplitEo.standNameSplit"
|
||||||
|
:maxlength="100"
|
||||||
|
:disabled="importSplitResultLoading"
|
||||||
|
placeholder="请输入标准名称/政策名称"
|
||||||
|
:readOnly="!(uploadFilesplitEo && uploadFilesplitEo.standId)"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标准状态" prop="fileType"class="search-item btn-box">
|
<el-form-item label="标准状态" prop="fileType"class="search-item btn-box">
|
||||||
<el-select v-model="uploadFilesplitEo.fileType" :disabled="importSplitResultLoading">
|
<el-select v-model="uploadFilesplitEo.fileType" :disabled="importSplitResultLoading">
|
||||||
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label"></el-option>
|
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="拆分文件" prop="defaultFileList"class="search-item btn-box">
|
<el-form-item label="拆分文件" prop="defaultFileList"class="search-item btn-box">
|
||||||
<el-select multiple v-model="uploadFilesplitEo.defaultFileList" v-show="false"></el-select>
|
<el-select v-show="false" v-model="uploadFilesplitEo.defaultFileList" multiple />
|
||||||
<el-upload
|
<el-upload
|
||||||
show-file-list
|
show-file-list
|
||||||
:on-success="uploadSuccess"
|
:on-success="uploadSuccess"
|
||||||
|
ref="importFileAboutStand"
|
||||||
:on-remove="removeOneFile"
|
:on-remove="removeOneFile"
|
||||||
:action="splitResultPath"
|
:action="splitResultPath"
|
||||||
:file-list="defaultFileList"
|
:file-list="defaultFileList"
|
||||||
@@ -518,11 +595,10 @@
|
|||||||
:before-upload="beforeSplitResultImport"
|
:before-upload="beforeSplitResultImport"
|
||||||
:on-change="handleUploadChange"
|
:on-change="handleUploadChange"
|
||||||
name="file"
|
name="file"
|
||||||
ref="importFileAboutStand"
|
|
||||||
:disabled="importSplitResultLoading"
|
:disabled="importSplitResultLoading"
|
||||||
>
|
>
|
||||||
<el-button size="mini" icon="el-icon-upload">{{ $t('m.upload') }}</el-button>
|
<el-button size="mini" icon="el-icon-upload">{{ $t('m.upload') }}</el-button>
|
||||||
<el-button size="mini" @click="uploadImportModal" icon="el-icon-download">模板下载</el-button>
|
<el-button size="mini" icon="el-icon-download" @click="uploadImportModal">模板下载</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
@@ -546,7 +622,7 @@
|
|||||||
:show-close="false"
|
:show-close="false"
|
||||||
>
|
>
|
||||||
<el-progress :percentage="percent" :stroke-width="10" text-inside />
|
<el-progress :percentage="percent" :stroke-width="10" text-inside />
|
||||||
<div slot="footer"></div>
|
<div slot="footer" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--标准、政策抽屉-->
|
<!--标准、政策抽屉-->
|
||||||
<el-drawer
|
<el-drawer
|
||||||
@@ -564,9 +640,9 @@
|
|||||||
v-model="conditionForm.standType"
|
v-model="conditionForm.standType"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
<el-option value="INLAND" label="国内标准法规"></el-option>
|
<el-option value="INLAND" label="国内标准法规" />
|
||||||
<el-option value="FOREIGN" label="国外标准法规"></el-option>
|
<el-option value="FOREIGN" label="国外标准法规" />
|
||||||
<el-option value="FOREIGN2" label="国内外政策"></el-option>
|
<el-option value="FOREIGN2" label="国内外政策" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-formItem label="编号/名称" prop="numberName" class="search-item">
|
<el-formItem label="编号/名称" prop="numberName" class="search-item">
|
||||||
@@ -575,21 +651,25 @@
|
|||||||
clearable
|
clearable
|
||||||
placeholder="根据编号/名称查找"
|
placeholder="根据编号/名称查找"
|
||||||
:maxlength="100"
|
:maxlength="100"
|
||||||
@keyup.enter.native="" />
|
@keyup.enter.native=""
|
||||||
|
/>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
@click="getSearchSarBussStandPage">
|
@click="getSearchSarBussStandPage"
|
||||||
|
>
|
||||||
搜索
|
搜索
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleResetCondition()"
|
@click="handleResetCondition()"
|
||||||
>清空</el-button>
|
>
|
||||||
|
清空
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -603,18 +683,19 @@
|
|||||||
border
|
border
|
||||||
class="drag-table"
|
class="drag-table"
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
@selection-change="standSelectChange2">
|
@selection-change="standSelectChange2"
|
||||||
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="index"
|
type="index"
|
||||||
width="55"
|
width="55"
|
||||||
label="序号"
|
label="序号"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="{scope, column, $index}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
{{ ($index + 1) + (conditionForm.page - 1) * conditionForm.pageSize }}
|
{{ ($index + 1) + (conditionForm.page - 1) * conditionForm.pageSize }}
|
||||||
</template>
|
</template>
|
||||||
@@ -622,7 +703,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="lawsNumber"
|
prop="lawsNumber"
|
||||||
align="center"
|
align="center"
|
||||||
label="政策编号/标准编号">
|
label="政策编号/标准编号"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a @click="showLawsDetails(scope.row)">{{ scope.row.lawsNumber }}</a>
|
<a @click="showLawsDetails(scope.row)">{{ scope.row.lawsNumber }}</a>
|
||||||
</template>
|
</template>
|
||||||
@@ -630,7 +712,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="lawsName"
|
prop="lawsName"
|
||||||
align="center"
|
align="center"
|
||||||
label="政策名称/标准名称">
|
label="政策名称/标准名称"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a @click="showLawsDetails(scope.row)">{{ scope.row.lawsName }}</a>
|
<a @click="showLawsDetails(scope.row)">{{ scope.row.lawsName }}</a>
|
||||||
</template>
|
</template>
|
||||||
@@ -650,11 +733,13 @@
|
|||||||
prop="issueTime"
|
prop="issueTime"
|
||||||
label="发布日期"
|
label="发布日期"
|
||||||
align="center"
|
align="center"
|
||||||
width="130">
|
width="130"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<template v-if="scope.row.issueTime"> <p v-for="item in scope.row.issueTime.split(',')">{{ item }}</p>
|
<template v-if="scope.row.issueTime">
|
||||||
|
<p v-for="item in scope.row.issueTime.split(',')">{{ item }}</p>
|
||||||
</template>
|
</template>
|
||||||
<template v-else></template>
|
<template v-else />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -665,7 +750,7 @@
|
|||||||
:total="total2"
|
:total="total2"
|
||||||
@pageChange="handlePageChange"
|
@pageChange="handlePageChange"
|
||||||
@pageSizeChange="handlePageSizeChange"
|
@pageSizeChange="handlePageSizeChange"
|
||||||
></pagination>
|
/>
|
||||||
<loading :loading="dataLoading">数据获取中</loading>
|
<loading :loading="dataLoading">数据获取中</loading>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
@@ -674,12 +759,16 @@
|
|||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleConfirm"
|
@click="handleConfirm"
|
||||||
>确定</el-button>
|
>
|
||||||
|
确定
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
icon="el-icon-close"
|
icon="el-icon-close"
|
||||||
@click="handleCancel"
|
@click="handleCancel"
|
||||||
>取消</el-button>
|
>
|
||||||
|
取消
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<!-- 分享 全部选人 -->
|
<!-- 分享 全部选人 -->
|
||||||
@@ -692,7 +781,7 @@
|
|||||||
valueName: orgTableValName
|
valueName: orgTableValName
|
||||||
}"
|
}"
|
||||||
@confirm="isTreeOk"
|
@confirm="isTreeOk"
|
||||||
></org-table>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -702,6 +791,10 @@ import 'zTree/js/jquery.ztree.excheck.js'
|
|||||||
import 'zTree/js/jquery.ztree.exedit.js'
|
import 'zTree/js/jquery.ztree.exedit.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'StandAutoSplit',
|
name: 'StandAutoSplit',
|
||||||
|
components: {
|
||||||
|
// deptTree
|
||||||
|
},
|
||||||
|
props: {},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
visibleOrgTable: false,
|
visibleOrgTable: false,
|
||||||
@@ -843,6 +936,20 @@ export default {
|
|||||||
standSelected: []
|
standSelected: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
// this.standInfoList.push(this.fileInfoEOSet)
|
||||||
|
// this.standInfoList = this.standInfoListAll
|
||||||
|
this.getSarFileSplitInfoEOPage()
|
||||||
|
this.getFileSel()
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.tableHeight = $('.content').height() - 44
|
||||||
|
window.onresize = function () {
|
||||||
|
this.tableHeight = $('.content').height() - 44
|
||||||
|
}.bind(this)
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 模板下载
|
// 模板下载
|
||||||
uploadImportModal () {
|
uploadImportModal () {
|
||||||
@@ -876,7 +983,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看详情
|
// 点击查看详情
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
@@ -887,7 +994,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 拆分页点击查看详情
|
// 拆分页点击查看详情
|
||||||
handlePreview1 (item) {
|
handlePreview1 (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
@@ -937,7 +1044,7 @@ export default {
|
|||||||
item.resType = this.conditionForm.standType === 'FOREIGN' ? 'FOREIGN_STAND' : 'INLAND_STAND'
|
item.resType = this.conditionForm.standType === 'FOREIGN' ? 'FOREIGN_STAND' : 'INLAND_STAND'
|
||||||
})
|
})
|
||||||
this.tableData = res.data.list
|
this.tableData = res.data.list
|
||||||
console.log(this.tableData,"tableDatatableDatatableDatatableData")
|
console.log(this.tableData, 'tableDatatableDatatableDatatableData')
|
||||||
this.total2 = res.data.count
|
this.total2 = res.data.count
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -965,7 +1072,7 @@ export default {
|
|||||||
// 跳转政策、标准详情页面
|
// 跳转政策、标准详情页面
|
||||||
showLawsDetails (item) {
|
showLawsDetails (item) {
|
||||||
if (item.resType === 'FOREIGN_LAWS') {
|
if (item.resType === 'FOREIGN_LAWS') {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsDetails',
|
name: 'OtherLawsDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -974,7 +1081,7 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
} else {
|
} else {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1125,7 +1232,7 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let personShareEO = {}
|
const personShareEO = {}
|
||||||
personShareEO.resType = 'STAND_SPLIT'
|
personShareEO.resType = 'STAND_SPLIT'
|
||||||
// personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.showNumber + ' )'
|
// personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.showNumber + ' )'
|
||||||
personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:' + this.resPk.standNumSplit + ')'
|
personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:' + this.resPk.standNumSplit + ')'
|
||||||
@@ -1143,7 +1250,6 @@ export default {
|
|||||||
this.$message.error('分享失败!')
|
this.$message.error('分享失败!')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 分享 推送 事件
|
// 分享 推送 事件
|
||||||
@@ -1151,7 +1257,7 @@ export default {
|
|||||||
if (this.shareStandardSelect.length === 0) {
|
if (this.shareStandardSelect.length === 0) {
|
||||||
this.$message.warning('请选择要分享的人!')
|
this.$message.warning('请选择要分享的人!')
|
||||||
} else {
|
} else {
|
||||||
let personShareEO = {}
|
const personShareEO = {}
|
||||||
personShareEO.resType = 'STAND_SPLIT'
|
personShareEO.resType = 'STAND_SPLIT'
|
||||||
// personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.showNumber + ' )'
|
// personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.showNumber + ' )'
|
||||||
personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:' + this.resPk.standNumSplit + ')'
|
personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:' + this.resPk.standNumSplit + ')'
|
||||||
@@ -1177,9 +1283,9 @@ export default {
|
|||||||
},
|
},
|
||||||
standSelectChangeByStandTab (data) {
|
standSelectChangeByStandTab (data) {
|
||||||
this.selectedSplitStandList = []
|
this.selectedSplitStandList = []
|
||||||
let checkId = data.standId+"_"+data.attId
|
const checkId = data.standId + '_' + data.attId
|
||||||
for (let i = 0; i < this.addSpiltStandList.length; i++) {
|
for (let i = 0; i < this.addSpiltStandList.length; i++) {
|
||||||
let dataId = this.addSpiltStandList[i].standId+"_"+this.addSpiltStandList[i].attId
|
const dataId = this.addSpiltStandList[i].standId + '_' + this.addSpiltStandList[i].attId
|
||||||
if (checkId === dataId) {
|
if (checkId === dataId) {
|
||||||
this.addSpiltStandList[i].checkBox = true
|
this.addSpiltStandList[i].checkBox = true
|
||||||
this.selectedSplitStandList.push(this.addSpiltStandList[i])
|
this.selectedSplitStandList.push(this.addSpiltStandList[i])
|
||||||
@@ -1187,7 +1293,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
searchStandList () {
|
searchStandList () {
|
||||||
this.splitInfoPage = 1
|
this.splitInfoPage = 1
|
||||||
this.getSarFileSplitInfoEOPage()
|
this.getSarFileSplitInfoEOPage()
|
||||||
@@ -1256,7 +1361,7 @@ export default {
|
|||||||
this.percent = 0
|
this.percent = 0
|
||||||
this.speedModal = true
|
this.speedModal = true
|
||||||
this.speedProgress()
|
this.speedProgress()
|
||||||
let splitEo = {}
|
const splitEo = {}
|
||||||
splitEo.standId = this.selectedSplitStandList[0].standId
|
splitEo.standId = this.selectedSplitStandList[0].standId
|
||||||
splitEo.fileType = this.selectedSplitStandList[0].standFileClassify
|
splitEo.fileType = this.selectedSplitStandList[0].standFileClassify
|
||||||
splitEo.attId = this.selectedSplitStandList[0].attId
|
splitEo.attId = this.selectedSplitStandList[0].attId
|
||||||
@@ -1345,10 +1450,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 上传按钮 文件上传之前的钩子
|
// 上传按钮 文件上传之前的钩子
|
||||||
beforeUpload (file) {
|
beforeUpload (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
if (this.defaultFileList.length > 0) {
|
if (this.defaultFileList.length > 0) {
|
||||||
this.$message.warning('一次仅能拆分一个文件')
|
this.$message.warning('一次仅能拆分一个文件')
|
||||||
@@ -1365,10 +1470,10 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
beforeSplitResultImport (file) {
|
beforeSplitResultImport (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
if (this.defaultFileList.length > 1) {
|
if (this.defaultFileList.length > 1) {
|
||||||
this.$message.warning('只能导入一个文件')
|
this.$message.warning('只能导入一个文件')
|
||||||
@@ -1436,7 +1541,7 @@ export default {
|
|||||||
roundButton: false
|
roundButton: false
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.spinShow = true
|
this.spinShow = true
|
||||||
let nowstandItem = JSON.parse(JSON.stringify(data))
|
const nowstandItem = JSON.parse(JSON.stringify(data))
|
||||||
if (nowstandItem.showNumber == null || nowstandItem.showNumber === '') {
|
if (nowstandItem.showNumber == null || nowstandItem.showNumber === '') {
|
||||||
nowstandItem.showNumber = nowstandItem.standNumSplit
|
nowstandItem.showNumber = nowstandItem.standNumSplit
|
||||||
}
|
}
|
||||||
@@ -1484,7 +1589,7 @@ export default {
|
|||||||
this.editLawsInfo(command[0])
|
this.editLawsInfo(command[0])
|
||||||
break
|
break
|
||||||
case '收藏':
|
case '收藏':
|
||||||
let personCollect = {}
|
const personCollect = {}
|
||||||
personCollect.collectResId = command[0].id // id
|
personCollect.collectResId = command[0].id // id
|
||||||
personCollect.collectType = 'STAND_SPLIT' // 类型
|
personCollect.collectType = 'STAND_SPLIT' // 类型
|
||||||
if (command[0].standId) {
|
if (command[0].standId) {
|
||||||
@@ -1673,24 +1778,6 @@ export default {
|
|||||||
this.uploadFilesplitEo.defaultFileList = fileList
|
this.uploadFilesplitEo.defaultFileList = fileList
|
||||||
this.$refs['uploadFileSplitEO2'].validateField('defaultFileList')
|
this.$refs['uploadFileSplitEO2'].validateField('defaultFileList')
|
||||||
},
|
},
|
||||||
},
|
|
||||||
components: {
|
|
||||||
// deptTree
|
|
||||||
},
|
|
||||||
props: {},
|
|
||||||
watch: {
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
// this.standInfoList.push(this.fileInfoEOSet)
|
|
||||||
// this.standInfoList = this.standInfoListAll
|
|
||||||
this.getSarFileSplitInfoEOPage()
|
|
||||||
this.getFileSel()
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.tableHeight = $('.content').height() - 44
|
|
||||||
window.onresize = function () {
|
|
||||||
this.tableHeight = $('.content').height() - 44
|
|
||||||
}.bind(this)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user