-
+ type="selection"
+ width="55"
+ align="center"
+ />
+ type="index"
+ width="55"
+ label="序号"
+ align="center"
+ >
{{ ($index + 1) + (splitInfoPage - 1) * splitInfoPageSize }}
+ prop="showNumber"
+ label="标准号/政策号"
+ width="150"
+ align="center"
+ >
- {{ scope.row.standNumSplit }}
+ {{ scope.row.standNumSplit }}
+ prop="standName"
+ label="标准名称/政策名称"
+ width="300"
+ show-overflow-tooltip
+ align="center"
+ >
- {{ scope.row.standNameSplit }}
+ {{ scope.row.standNameSplit }}
-
+ prop="fileTypeShow"
+ label="标准状态"
+ width="110"
+ align="center"
+ />
-
+ prop="fileName"
+ label="文件名称"
+ show-overflow-tooltip
+ align="center"
+ />
+ prop="splitStatus"
+ label="拆分状态"
+ width="120"
+ align="center"
+ >
编辑中
审核中
@@ -104,23 +124,25 @@
+ prop="creationTime"
+ label="拆分时间"
+ width="120"
+ sortable
+ align="center"
+ >
{{ scope.row.creationTime ? $moment(scope.row.creationTime).format('YYYY-MM-DD') : '' }}
+ prop="result"
+ label="拆分结果"
+ align="center"
+ width="100"
+ >
- 成功
- 失败
+ 成功
+ 失败
@@ -130,8 +152,10 @@
type="primary"
size="mini"
@click="showUser(scope.row)"
- >查看
-
-
+
-
+
-
+
-
+
搜索
+ v-btn-permission="'7ec1c1789e26ac06f0c27ff02067b5ec'"
+ type="primary"
+ size="mini"
+ class="common-button-primary"
+ @click="StandFileListByPage"
+ >
+ 搜索
+
清空
+ v-btn-permission="'3d2a7ad51f31f0204810b6e505a244f8'"
+ size="mini"
+ class="common-button-default"
+ @click="clearGetStandFileListByPage"
+ >
+ 清空
+
-
+
+ type="index"
+ width="55"
+ label="序号"
+ align="center"
+ >
{{ ($index + 1) + (addFilePage - 1) * addFilePageSize }}
+ prop="sarType"
+ label="资料类型"
+ align="center"
+ >
国内标准法规
国外标准法规
-
- {{ scope.row.standNumber }}
-
-
-
- {{ scope.row.standName }}
+ {{ scope.row.standNumber }}
+ prop="standName"
+ label="标准名称/政策名称"
+ align="center"
+ >
+
+ {{ scope.row.standName }}
+
-
+ prop="standFileClassifyShow"
+ label="标准状态"
+ align="center"
+ />
+
+ style="position: static;"
+ :auto-size="true"
+ :pageSize="addFilePageSize"
+ :total="addFileStandtotal"
+ :page="addFilePage"
+ @pageChange="addFileStandPageChange"
+ @pageSizeChange="addFileStandPageSizeChange"
+ />
正在获取数据
-
-
+
-
+
-
+
-
+
-
+
手动查找
+ >
+ 手动查找
+
-
+
-
-
+
+
章节
-
+
到
-
+
+ v-for="opt in standFileClassifyOptions"
+ :key="opt.value"
+ :value="opt.value"
+ :label="opt.label"
+ />
-
+
- {{$t('m.upload')}}
+ :multiple="multipletype"
+ ref="importFileAboutStand"
+ show-file-list
+ :on-success="uploadSuccess"
+ :on-remove="removeOneFile"
+ :action="uploadPath"
+ :file-list="defaultFileList"
+ accept=".doc, .docx"
+ :before-upload="beforeUpload"
+ name="file"
+ :on-change="handleUploadChange2"
+ >
+ {{ $t('m.upload') }}
-
+
上传拆分文档需遵循相关格式要求,具体要求请
点击查看
-
知道了
@@ -448,20 +509,21 @@
知道了
@@ -474,59 +536,73 @@
title="导入拆分结果"
width="550px"
:close-on-click-modal="false"
- @close="handleClose">
+ @close="handleClose"
+ >
-
-
+
手动查找
+ >
+ 手动查找
+
-
+
-
+
-
+
- {{$t('m.upload')}}
- 模板下载
+ {{ $t('m.upload') }}
+ 模板下载
-
+
上传拆分文档需遵循相关格式要求,具体要求请
点击查看
@@ -540,13 +616,13 @@
-
+
-
-
-
+
+
+
@@ -575,21 +651,25 @@
clearable
placeholder="根据编号/名称查找"
:maxlength="100"
- @keyup.enter.native="" />
+ @keyup.enter.native=""
+ />
+ @click="getSearchSarBussStandPage"
+ >
搜索
清空
+ >
+ 清空
+
@@ -603,18 +683,19 @@
border
class="drag-table"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
- @selection-change="standSelectChange2">
+ @selection-change="standSelectChange2"
+ >
-
+ />
+ type="index"
+ width="55"
+ label="序号"
+ align="center"
+ >
{{ ($index + 1) + (conditionForm.page - 1) * conditionForm.pageSize }}
@@ -622,7 +703,8 @@
+ label="政策编号/标准编号"
+ >
{{ scope.row.lawsNumber }}
@@ -630,42 +712,45 @@
+ label="政策名称/标准名称"
+ >
{{ scope.row.lawsName }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+ width="130"
+ >
- {{ item }}
+
+ {{ item }}
-
+
+ />
数据获取中
+ @confirm="isTreeOk"
+ />
@@ -702,6 +791,10 @@ import 'zTree/js/jquery.ztree.excheck.js'
import 'zTree/js/jquery.ztree.exedit.js'
export default {
name: 'StandAutoSplit',
+ components: {
+ // deptTree
+ },
+ props: {},
data () {
return {
visibleOrgTable: false,
@@ -723,18 +816,18 @@ export default {
numOrName: '',
standInfoList: [],
standInfoListAll: [
- {'id': '1', 'standNumber': 'GB/T 3765-2019', 'standName': '汽车用蜂鸣器', 'standFileClassify': '1'},
- {'id': '2', 'standNumber': 'GB/T 1279-2019', 'standName': '汽车产品明细表编制规则', 'standFileClassify': '1'}
+ { 'id': '1', 'standNumber': 'GB/T 3765-2019', 'standName': '汽车用蜂鸣器', 'standFileClassify': '1' },
+ { 'id': '2', 'standNumber': 'GB/T 1279-2019', 'standName': '汽车产品明细表编制规则', 'standFileClassify': '1' }
],
addAllFileConvertList: [
- {'id': '3', 'fileType': '1', 'standNumber': 'GB/T 1001-2019', 'standName': '测试标准1', 'standFileClassify': '1', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.doc'},
- {'id': '4', 'fileType': '2', 'standNumber': 'GB/T 1002-2019', 'standName': '测试标准2', 'standFileClassify': '2', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.docx'},
- {'id': '5', 'fileType': '3', 'standNumber': 'GB/T 1003-2019', 'standName': '测试标准3', 'standFileClassify': '3', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.doc'},
- {'id': '6', 'fileType': '4', 'standNumber': 'GB/T 1004-2019', 'standName': '测试标准4', 'standFileClassify': '4', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.doc'},
- {'id': '7', 'fileType': '1', 'standNumber': 'GB/T 1005-2019', 'standName': '测试标准5', 'standFileClassify': '5', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.docx'},
- {'id': '8', 'fileType': '1', 'standNumber': 'GB/T 1006-2019', 'standName': '测试标准6', 'standFileClassify': '6', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.docx'}
+ { 'id': '3', 'fileType': '1', 'standNumber': 'GB/T 1001-2019', 'standName': '测试标准1', 'standFileClassify': '1', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.doc' },
+ { 'id': '4', 'fileType': '2', 'standNumber': 'GB/T 1002-2019', 'standName': '测试标准2', 'standFileClassify': '2', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.docx' },
+ { 'id': '5', 'fileType': '3', 'standNumber': 'GB/T 1003-2019', 'standName': '测试标准3', 'standFileClassify': '3', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.doc' },
+ { 'id': '6', 'fileType': '4', 'standNumber': 'GB/T 1004-2019', 'standName': '测试标准4', 'standFileClassify': '4', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.doc' },
+ { 'id': '7', 'fileType': '1', 'standNumber': 'GB/T 1005-2019', 'standName': '测试标准5', 'standFileClassify': '5', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.docx' },
+ { 'id': '8', 'fileType': '1', 'standNumber': 'GB/T 1006-2019', 'standName': '测试标准6', 'standFileClassify': '6', 'fileName': 'GB 4660-2016 机动车用前雾灯配光性能.docx' }
],
- dropdownItems: [{'val': '收藏'}, {'val': '分享'}, {'val': '关联'}, {'val': '删除'}],
+ dropdownItems: [ { 'val': '收藏' }, { 'val': '分享' }, { 'val': '关联' }, { 'val': '删除' } ],
tableHeight: null,
total: 0,
fileInfoEO: {
@@ -761,8 +854,8 @@ export default {
addFileConvertShowflag: false,
addFileConvertFormRules: {},
fileTypeOptions: [
- {label: '国内标准法规', value: 'INLAND'},
- {label: '国外标准法规', value: 'FOREIGN'}
+ { label: '国内标准法规', value: 'INLAND' },
+ { label: '国外标准法规', value: 'FOREIGN' }
],
standFileClassifyOptions: [],
drawerModal: false,
@@ -801,11 +894,11 @@ export default {
splitType: '全部章节'
},
uploadFileSplitRules: {
- standNumSplit: [{required: true, message: '标准号/政策号不能为空', trigger: 'blur'}],
+ standNumSplit: [ { required: true, message: '标准号/政策号不能为空', trigger: 'blur' } ],
// standNameSplit: [{required: true, message: '标准名称/政策名称不能为空', trigger: 'blur'}],
- fileType: [{ required: true, message: '标准状态不能为空', trigger: 'change' }],
- defaultFileList: [{ required: true, message: '拆分文件不能为空', trigger: 'change' }],
- splitType: [{ required: true, message: '拆分方式不能为空', trigger: 'change' }]
+ fileType: [ { required: true, message: '标准状态不能为空', trigger: 'change' } ],
+ defaultFileList: [ { required: true, message: '拆分文件不能为空', trigger: 'change' } ],
+ splitType: [ { required: true, message: '拆分方式不能为空', trigger: 'change' } ]
},
stopNumber: 1,
startNumber: 1,
@@ -820,9 +913,9 @@ export default {
fileType: '' // 标准状态
},
editFormRules: {
- standNumSplit: [{required: true, message: '标准号/政策号不能为空', trigger: 'blur'}],
- standNameSplit: [{required: true, message: '标准名称/政策名称不能为空', trigger: 'blur'}],
- fileType: [{ required: true, message: '标准状态不能为空', trigger: 'change' }]
+ standNumSplit: [ { required: true, message: '标准号/政策号不能为空', trigger: 'blur' } ],
+ standNameSplit: [ { required: true, message: '标准名称/政策名称不能为空', trigger: 'blur' } ],
+ fileType: [ { required: true, message: '标准状态不能为空', trigger: 'change' } ]
},
splitFileTypeOptions: [
{
@@ -843,6 +936,20 @@ export default {
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: {
// 模板下载
uploadImportModal () {
@@ -874,9 +981,9 @@ export default {
this.conditionForm.pageSize = pageSize
this.getSearch()
},
- //点击查看详情
- handlePreview(item) {
- let routeUrl = this.$router.resolve({
+ // 点击查看详情
+ handlePreview (item) {
+ const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -885,9 +992,9 @@ export default {
})
window.open(routeUrl.href, '_blank')
},
- //拆分页点击查看详情
- handlePreview1(item) {
- let routeUrl = this.$router.resolve({
+ // 拆分页点击查看详情
+ handlePreview1 (item) {
+ const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -937,7 +1044,7 @@ export default {
item.resType = this.conditionForm.standType === 'FOREIGN' ? 'FOREIGN_STAND' : 'INLAND_STAND'
})
this.tableData = res.data.list
- console.log(this.tableData,"tableDatatableDatatableDatatableData")
+ console.log(this.tableData, 'tableDatatableDatatableDatatableData')
this.total2 = res.data.count
}
})
@@ -965,7 +1072,7 @@ export default {
// 跳转政策、标准详情页面
showLawsDetails (item) {
if (item.resType === 'FOREIGN_LAWS') {
- let routeUrl = this.$router.resolve({
+ const routeUrl = this.$router.resolve({
name: 'OtherLawsDetails',
params: {
id: item.id,
@@ -974,7 +1081,7 @@ export default {
})
window.open(routeUrl.href, '_blank')
} else {
- let routeUrl = this.$router.resolve({
+ const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
@@ -1006,8 +1113,8 @@ export default {
this.loadData = false
})
},
- //拆分查询事件
- StandFileListByPage(){
+ // 拆分查询事件
+ StandFileListByPage () {
this.addFilePage = 1
this.getStandFileListByPage()
},
@@ -1028,15 +1135,15 @@ export default {
}, {
_this: this, loading: 'loading'
}, res => {
- if(res.data.list.length){
+ if(res.data.list.length) {
res.data.list.map((item, index) => {
if (item.collectId != null && item.collectId !== '') {
- item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit
- item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit
+ item.showNumber = item.splitStatus == '0' ? item.showNumber : item.standNumSplit
+ item.standName = item.splitStatus == '0' ? item.standName : item.standNameSplit
item.collectBtn = false
} else {
- item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit
- item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit
+ item.showNumber = item.splitStatus == '0' ? item.showNumber : item.standNumSplit
+ item.standName = item.splitStatus == '0' ? item.standName : item.standNameSplit
item.collectBtn = true
}
})
@@ -1086,7 +1193,7 @@ export default {
if (this.selectedList.length === 0) {
this.$message.error('请选择要删除的数据')
return
- } if(this.selectedList.length > 10){
+ } if(this.selectedList.length > 10) {
this.$message.error('批量删除仅支持10条以内')
return
} else {
@@ -1125,10 +1232,10 @@ export default {
type: 'warning'
})
} else {
- let personShareEO = {}
+ const personShareEO = {}
personShareEO.resType = 'STAND_SPLIT'
// personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.showNumber + ' )'
- personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:'+ this.resPk.standNumSplit + ')'
+ personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:' + this.resPk.standNumSplit + ')'
personShareEO.resId = this.resPk.id
personShareEO.recipientId = this.shareStandardSelect // 要分享的人
this.$http.post('/person/personShare/savePersonShare', personShareEO, {
@@ -1143,7 +1250,6 @@ export default {
this.$message.error('分享失败!')
})
}
-
},
// 分享 推送 事件
@@ -1151,10 +1257,10 @@ export default {
if (this.shareStandardSelect.length === 0) {
this.$message.warning('请选择要分享的人!')
} else {
- let personShareEO = {}
+ const personShareEO = {}
personShareEO.resType = 'STAND_SPLIT'
// personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.showNumber + ' )'
- personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:'+ this.resPk.standNumSplit + ')'
+ personShareEO.resTitle = this.resPk.standNameSplit + '( 编号:' + this.resPk.standNumSplit + ')'
personShareEO.resId = this.resPk.id
personShareEO.recipientId = this.shareStandardSelect // 要分享的人
this.$http.post('/person/personShare/savePersonShare', personShareEO, {
@@ -1177,9 +1283,9 @@ export default {
},
standSelectChangeByStandTab (data) {
this.selectedSplitStandList = []
- let checkId = data.standId+"_"+data.attId
+ const checkId = data.standId + '_' + data.attId
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) {
this.addSpiltStandList[i].checkBox = true
this.selectedSplitStandList.push(this.addSpiltStandList[i])
@@ -1187,7 +1293,6 @@ export default {
}
},
-
searchStandList () {
this.splitInfoPage = 1
this.getSarFileSplitInfoEOPage()
@@ -1256,7 +1361,7 @@ export default {
this.percent = 0
this.speedModal = true
this.speedProgress()
- let splitEo = {}
+ const splitEo = {}
splitEo.standId = this.selectedSplitStandList[0].standId
splitEo.fileType = this.selectedSplitStandList[0].standFileClassify
splitEo.attId = this.selectedSplitStandList[0].attId
@@ -1319,7 +1424,7 @@ export default {
this.$refs.importFileAboutStand.clearFiles()
})
},
- clickButtonToImport() {
+ clickButtonToImport () {
this.visibleImportSplitResultDialog = true
this.$nextTick(() => {
this.$refs.importFileAboutStand.clearFiles()
@@ -1345,10 +1450,10 @@ export default {
},
// 上传按钮 文件上传之前的钩子
beforeUpload (file) {
- var filename = file.name
- var index1 = filename.lastIndexOf('.')
- var index2 = filename.length
- var fileSuffix = filename.substring(index1, index2)
+ const filename = file.name
+ const index1 = filename.lastIndexOf('.')
+ const index2 = filename.length
+ const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
if (this.defaultFileList.length > 0) {
this.$message.warning('一次仅能拆分一个文件')
@@ -1364,11 +1469,11 @@ export default {
}
return true
},
- beforeSplitResultImport(file) {
- var filename = file.name
- var index1 = filename.lastIndexOf('.')
- var index2 = filename.length
- var fileSuffix = filename.substring(index1, index2)
+ beforeSplitResultImport (file) {
+ const filename = file.name
+ const index1 = filename.lastIndexOf('.')
+ const index2 = filename.length
+ const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
if (this.defaultFileList.length > 1) {
this.$message.warning('只能导入一个文件')
@@ -1436,7 +1541,7 @@ export default {
roundButton: false
}).then(() => {
this.spinShow = true
- let nowstandItem = JSON.parse(JSON.stringify(data))
+ const nowstandItem = JSON.parse(JSON.stringify(data))
if (nowstandItem.showNumber == null || nowstandItem.showNumber === '') {
nowstandItem.showNumber = nowstandItem.standNumSplit
}
@@ -1484,7 +1589,7 @@ export default {
this.editLawsInfo(command[0])
break
case '收藏':
- let personCollect = {}
+ const personCollect = {}
personCollect.collectResId = command[0].id // id
personCollect.collectType = 'STAND_SPLIT' // 类型
if (command[0].standId) {
@@ -1592,7 +1697,7 @@ export default {
}, e => {})
},
- handleImportSplitResult() {
+ handleImportSplitResult () {
if (this.defaultFileList.length) {
this.$refs['uploadFileSplitEO'].validate(valid => {
if (valid) {
@@ -1635,7 +1740,7 @@ export default {
}
},
// 上传拆分结果弹窗关闭
- handleClose() {
+ handleClose () {
this.uploadFilesplitEo = {
fileType: '',
fileName: '',
@@ -1648,7 +1753,7 @@ export default {
},
// 上传拆分文件弹窗关闭
- handleClose2() {
+ handleClose2 () {
this.uploadFilesplitEo = {
fileType: '',
fileName: '',
@@ -1669,28 +1774,10 @@ export default {
},
// 上传拆分文件
- handleUploadChange2(file, fileList) {
+ handleUploadChange2 (file, fileList) {
this.uploadFilesplitEo.defaultFileList = fileList
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)
- })
}
}