Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 144 KiB |
@@ -4,7 +4,7 @@
|
|||||||
<div class="search-top">
|
<div class="search-top">
|
||||||
<div class="top-title">
|
<div class="top-title">
|
||||||
</div>
|
</div>
|
||||||
<h3 class="home-title">标 准 法 规 管 理 系 统 S P R S</h3>
|
<h3 class="home-title">标 准 与 政 策 法 规 管 理 系 统 S P R S</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-head">
|
<div class="search-head">
|
||||||
<van-search
|
<van-search
|
||||||
|
|||||||
@@ -744,6 +744,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<loading :loading="importDataLoading">{{导入数据中}}</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -946,7 +947,9 @@ export default {
|
|||||||
drawerPage: 1, // 数据搜索table页码
|
drawerPage: 1, // 数据搜索table页码
|
||||||
drawerTotal: 0, // 数据搜索table总条数
|
drawerTotal: 0, // 数据搜索table总条数
|
||||||
dataLoading: false, // 数据搜索 table 查询loading
|
dataLoading: false, // 数据搜索 table 查询loading
|
||||||
|
importLoading: false, //导入loading
|
||||||
exportTestItemNameFlag: false, // 导出模态框
|
exportTestItemNameFlag: false, // 导出模态框
|
||||||
|
importDataLoading: false,// 导入数据loading
|
||||||
exportName: '', // 导出名称
|
exportName: '', // 导出名称
|
||||||
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=', // 导入接口
|
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=', // 导入接口
|
||||||
// importExcelUrls: '/api/sarLawsDetailedList/sar-laws-detailed-list/importData', // 导入接口
|
// importExcelUrls: '/api/sarLawsDetailedList/sar-laws-detailed-list/importData', // 导入接口
|
||||||
@@ -1048,6 +1051,8 @@ export default {
|
|||||||
importFileStand (res, file, fileList) {
|
importFileStand (res, file, fileList) {
|
||||||
let files = {}
|
let files = {}
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
|
this.importModalshowflag = false
|
||||||
|
this.importDataLoading = true
|
||||||
files.attId = res.data.attId
|
files.attId = res.data.attId
|
||||||
files.fileName = res.data.name
|
files.fileName = res.data.name
|
||||||
if (res.data.standNum != null && res.data.standNum !== '') {
|
if (res.data.standNum != null && res.data.standNum !== '') {
|
||||||
@@ -1062,10 +1067,12 @@ export default {
|
|||||||
_formData.append('standNameSplit', files.standNameSplit)
|
_formData.append('standNameSplit', files.standNameSplit)
|
||||||
_formData.append('fileType', files.fileType)
|
_formData.append('fileType', files.fileType)
|
||||||
_formData.append('file', file.raw)
|
_formData.append('file', file.raw)
|
||||||
|
this.importLoading = true
|
||||||
this.$http.postData('sarLawsDetailedList/sar-laws-detailed-list/importData', _formData,{
|
this.$http.postData('sarLawsDetailedList/sar-laws-detailed-list/importData', _formData,{
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res.ok){
|
if(res.ok){
|
||||||
|
this.importDataLoading = false
|
||||||
if(res.data.length){
|
if(res.data.length){
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
// 适用认证转换
|
// 适用认证转换
|
||||||
@@ -1133,15 +1140,18 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
this.sarAccessInfoList = res.data
|
this.sarAccessInfoList = res.data
|
||||||
}
|
}
|
||||||
|
this.importLoading = false
|
||||||
if(repeatIndex > 0){
|
if(repeatIndex > 0){
|
||||||
this.$message.warning('请勿上传重复标准,重复标准未添加')
|
this.$message.warning('请勿上传重复标准,重复标准未添加')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('导入文件成功')
|
this.$message.success('导入文件成功')
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
this.importLoading = false
|
||||||
this.$message.warning('请勿上传为空的文件')
|
this.$message.warning('请勿上传为空的文件')
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
this.importDataLoading = false
|
||||||
const arr = res.data.split(';')
|
const arr = res.data.split(';')
|
||||||
let newDatas = [],h = this.$createElement;
|
let newDatas = [],h = this.$createElement;
|
||||||
for (const i in arr) {
|
for (const i in arr) {
|
||||||
@@ -1158,7 +1168,7 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.importModalshowflag = false
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.importFileAboutStand.clearFiles()
|
this.$refs.importFileAboutStand.clearFiles()
|
||||||
})
|
})
|
||||||
|
|||||||
+3
@@ -1952,6 +1952,7 @@ export default {
|
|||||||
bussionessStandNodes: [],
|
bussionessStandNodes: [],
|
||||||
sarBussionessStandEO: {
|
sarBussionessStandEO: {
|
||||||
TXLBBUSS: '',
|
TXLBBUSS: '',
|
||||||
|
txlbId:'',
|
||||||
VPPSBMBUSS: '',
|
VPPSBMBUSS: '',
|
||||||
KCVPPSBMBUSS: '',
|
KCVPPSBMBUSS: '',
|
||||||
KCVPPSCNBUSS: '',
|
KCVPPSCNBUSS: '',
|
||||||
@@ -2867,6 +2868,7 @@ export default {
|
|||||||
if (checkedData.length > 0) {
|
if (checkedData.length > 0) {
|
||||||
this.sarBussionessStandEO.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.sarBussionessStandEO.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
||||||
this.sarBussionessStandEO.menuId = checkedData.map(item => item.menuId).join(",")
|
this.sarBussionessStandEO.menuId = checkedData.map(item => item.menuId).join(",")
|
||||||
|
this.sarBussionessStandEO.txlbId = checkedData.map(item => item.menuId).join(",")
|
||||||
this.sarBussionessStandEO.treeType = checkedData.map(item => item.treeType).join(",")
|
this.sarBussionessStandEO.treeType = checkedData.map(item => item.treeType).join(",")
|
||||||
this.sarBussionessSearch.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.sarBussionessSearch.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
||||||
} else {
|
} else {
|
||||||
@@ -2876,6 +2878,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.sarBussionessStandEO.TXLBBUSS = checkedData.menuName
|
this.sarBussionessStandEO.TXLBBUSS = checkedData.menuName
|
||||||
this.sarBussionessStandEO.menuId = checkedData.id
|
this.sarBussionessStandEO.menuId = checkedData.id
|
||||||
|
this.sarBussionessStandEO.txlbId = checkedData.id
|
||||||
this.sarBussionessStandEO.treeType = checkedData.treeType
|
this.sarBussionessStandEO.treeType = checkedData.treeType
|
||||||
this.sarBussionessSearch.TXLBBUSS = checkedData.menuName
|
this.sarBussionessSearch.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user