bug修改,标准法规的新增界面搜索接口暂无

This commit is contained in:
Jaunty
2021-07-15 09:07:57 +08:00
parent eeb5302a7a
commit 46d2d87494
10 changed files with 1647 additions and 657 deletions
+7 -35
View File
@@ -2,8 +2,8 @@
<template> <template>
<div class="link"> <div class="link">
<ul> <ul>
<li v-for="(link, index) in linkList" :key="index"> <li v-for="(link, index) in linkList" v-if="index<5" :key="index">
<a @click="openLinkUrl(link.newWebSite)" v-html="link.webName"></a> <a @click="openLinkUrl(link.url)" v-html="link.name"></a>
</li> </li>
<li> <li>
<router-link to="/linkManage">更多链接></router-link> <router-link to="/linkManage">更多链接></router-link>
@@ -19,36 +19,7 @@ export default {
mixins: [], mixins: [],
data() { data() {
return { return {
linkList: [ linkList: [],
{
newWebSite: 'http://www.sac.gov.cn/',
webName: '国家标准化管理委员会'
},
{
newWebSite: 'http://std.samr.gov.cn/',
webName: '全国标准公共服务平台'
},
{
newWebSite: 'http://www.catarc.org.cn/',
webName: '全国汽车标准化技术委员会'
},
{
newWebSite: 'http://jtst.mot.gov.cn/news/',
webName: '交通运输标准化信息平台'
},
{
newWebSite: 'http://www.miit-eidc.org.cn/',
webName: '工信部装备工业发展中心'
},
{
newWebSite: 'http://www.mee.gov.cn/',
webName: '中华人民共和国生态环境部'
},
// {
// newWebSite: '',
// webName: '更多链接>'
// }
]
} }
}, },
computed: {}, computed: {},
@@ -67,13 +38,14 @@ export default {
window.open('https://' + linkUri) window.open('https://' + linkUri)
} }
}, },
// 获取链接数据
getLink () { getLink () {
this.$http.get('sarUrl/tsUrl', {}, { this.$http.get('sarUrl/tsUrl', {
}, {
_this: this, _this: this,
loading: 'Loading' loading: 'Loading'
}, res=> { }, res=> {
this.data = res.data this.linkList = res.data
console.log(data);
}) })
} }
}, },
@@ -496,7 +496,6 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="code" prop="code"
fixed="left"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" <a v-if="scope.row.standYear" class="table-jump"
@@ -307,7 +307,7 @@
</div> </div>
<el-table <el-table
ref="entryTable" ref="entryTable"
:data="sarAccessInfoList" :data="stahndinfoList"
class="un-select" class="un-select"
style="width: 100%" style="width: 100%"
border border
@@ -390,6 +390,104 @@
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" @click="exportTestItem">提交</el-button> <el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" @click="exportTestItem">提交</el-button>
</span> </span>
</el-dialog> </el-dialog>
<div>
<table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)"
@reset="clearAllSearch('sarStandardsSearch')" >
<div slot="content">
<el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">
<!-- 标准号-->
<el-form-item :label="$t('m.standardNo')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 标准名称-->
<el-form-item :label="$t('m.standName')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 标准类别-->
<el-form-item :label="$t('m.standardCategory')" class="serch-form-item">
<search-select
v-model="sarStandardsSearch.standSort"
:placeholder="$t('m.standardCategoryTips')"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
:options="standSortOptions"
clearable/>
</el-form-item>
<!-- 文本状态-->
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select>
</el-form-item>
<!-- 代替标准号-->
<el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 适用车型-->
<el-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.cllx" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select>
</el-form-item>
<!-- 适用产品线新增字段-->
<el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.nylx" :placeholder="$t('m.searchByApplicableProductLine')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select>
</el-form-item>
<!-- 关联模块新增字段-->
<el-form-item :label="$t('m.associatedModule')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}
</el-option>
</el-select>
</el-form-item>
</el-form>
<div style="position:absolute;right: 20px;background-color: white;width: 130px;height: 40px;padding-top: 5px;padding-left: 1px">
<el-button
:loading="searching"
type="primary"
size="mini"
class="common-button-primary"
v-btn-permission="'967c8b1402459951b5f75fcd1c548665'"
@click="searchBtnClick(standCommonlySearch)">
查询
</el-button>
<el-button
size="mini"
class="common-button-default"
v-btn-permission="'d38fea2d0d992615f9e1c4dfb6dc76f3'"
@click="clearAllSearch('standCommonlySearch')">
清空
</el-button>
</div>
</div>
</table-tools-bar>
</div>
<!--导入模态框--> <!--导入模态框-->
<el-dialog title="导入信息" :visible.sync="importmodalFlag" width="400px"> <el-dialog title="导入信息" :visible.sync="importmodalFlag" width="400px">
<el-upload <el-upload
@@ -473,6 +571,68 @@ export default {
// } // }
// } // }
return { return {
selectSarMenu: {}, // 用来记录当前选中的二级菜单对象
tableFlag: '',
isAdvancedSearch: false, // 高级检索窗口是否打开
// 一般检索搜索
standCommonlySearch: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
standType: 'INLAND',
validFlag: '0',
standSort: '',
standNumber: ''
},
standItemSearch: {
standId: '',
responsibleUnit: '',
orgName: '',
validFlag: '0'
},
standItemList: [],
sarStandardsSearch: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
standType: 'INLAND',
validFlag: '0',
menuId: '',
country: '',
standNumber: '',
standName: '',
standState: '',
standNature: '',
issueTime: '',
// applyArctic: '',
replaceStandNum: '',
// replaceStandNumCope: '',
// replaceStandNumList: [],
replacedStandNum: '',
synopsis: '', // 内容摘要
// category: '', // 所属类别
standSort: '' // 标准类别
}, // 分页查询过程中用到的对象
sarConfigStandSearch: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
standType: 'INLAND',
validFlag: '0',
menuId: '',
country: '',
standSort: '',
standNumber: '',
standName: '',
standState: '',
standNature: '',
category: '',
issueTime: '',
applyArctic: '',
replaceStandNum: '',
synopsis: '',
// replaceStandNumCope: '',
replacedStandNum: '',
orderBy:''
}, // 分页查询过程中用到的对象
categoryOptions: [], // 所属类别下拉框
selectSearch : [], selectSearch : [],
// 新增、编辑 基础信息字段 // 新增、编辑 基础信息字段
sarAccessEO: { sarAccessEO: {
@@ -541,8 +701,8 @@ export default {
sarAccessInfoSearchList: [], // 数据搜索 table列表数据 sarAccessInfoSearchList: [], // 数据搜索 table列表数据
importmodalFlag: false, // 导入model 状态 importmodalFlag: false, // 导入model 状态
searching: false, searching: false,
sarAccessInfoList: [], // 清单条目 技术要求table 数据 stahndinfoList: [], // 清单条目 技术要求table 数据
sarAccessInfoListArry: [], // 清单条目 table选中数据 stahndinfoListArry: [], // 清单条目 table选中数据
moreSearchShow: false, // 多属性搜索 状态 moreSearchShow: false, // 多属性搜索 状态
loadData: false, // 提交按钮loading效果 loadData: false, // 提交按钮loading效果
drawerPage: 1, // 数据搜索table页码 drawerPage: 1, // 数据搜索table页码
@@ -751,6 +911,8 @@ export default {
methods: { methods: {
// 高级检索 // 高级检索
selectMoreBtn () { selectMoreBtn () {
this.isAdvancedSearch = true
this.sarStandardsSearch = []
}, },
// 法规维护人树 // 法规维护人树
getDept () { getDept () {
@@ -1013,7 +1175,7 @@ export default {
// 追加字段 // 追加字段
this.selectedAccInfoSearchList.map(item => { this.selectedAccInfoSearchList.map(item => {
let addList; let addList;
addList = this.sarAccessInfoList.findIndex(items => { addList = this.stahndinfoList.findIndex(items => {
return items.id == item.id return items.id == item.id
}) })
if(addList > -1){ if(addList > -1){
@@ -1022,7 +1184,7 @@ export default {
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
} else{ } else{
this.sarAccessInfoList.push(item) this.stahndinfoList.push(item)
this.$refs.accessTypeSelect.clearSelection() this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
@@ -1032,7 +1194,6 @@ export default {
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)') this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
} }
}, },
// 上移 事件 // 上移 事件
moveUp (index, row) { moveUp (index, row) {
if (index === 0) { if (index === 0) {
@@ -1041,21 +1202,21 @@ export default {
type: 'warning' type: 'warning'
}) })
} else { } else {
let temp = this.sarAccessInfoList[index - 1] let temp = this.stahndinfoList[index - 1]
this.$set(this.sarAccessInfoList, index - 1, this.sarAccessInfoList[index]) this.$set(this.stahndinfoList, index - 1, this.stahndinfoList[index])
this.$set(this.sarAccessInfoList, index, temp) this.$set(this.stahndinfoList, index, temp)
} }
}, },
moveDown (index) { moveDown (index) {
if (index === (this.sarAccessInfoList.length - 1)) { if (index === (this.stahndinfoList.length - 1)) {
this.$message({ this.$message({
message: '已经是列表中最后一个素材!', message: '已经是列表中最后一个素材!',
type: 'warning' type: 'warning'
}) })
} else { } else {
let i = this.sarAccessInfoList[index + 1] let i = this.stahndinfoList[index + 1]
this.$set(this.sarAccessInfoList, index + 1, this.sarAccessInfoList[index]) this.$set(this.stahndinfoList, index + 1, this.stahndinfoList[index])
this.$set(this.sarAccessInfoList, index, i) this.$set(this.stahndinfoList, index, i)
} }
}, },
// 点击清单条目导入按钮事件 // 点击清单条目导入按钮事件
@@ -1074,7 +1235,7 @@ export default {
* 删除不想添加的AccessInfo信息 * 删除不想添加的AccessInfo信息
*/ */
deleteSelectSarAccessInfo () { deleteSelectSarAccessInfo () {
if (this.sarAccessInfoListArry.length > 0) { if (this.stahndinfoListArry.length > 0) {
this.$confirm('确认删除选中数据?', '确认删除', { this.$confirm('确认删除选中数据?', '确认删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@@ -1084,14 +1245,14 @@ export default {
}).then(() => { }).then(() => {
// i 全部对象数组的下标 // i 全部对象数组的下标
// s 选中对象数组的下标 // s 选中对象数组的下标
for (var s in this.sarAccessInfoListArry) { for (var s in this.stahndinfoListArry) {
for (var i in this.sarAccessInfoList) { for (var i in this.stahndinfoList) {
if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) { if (this.stahndinfoListArry[s].uuid === this.stahndinfoList[i].uuid) {
this.sarAccessInfoList.splice(i, 1) this.stahndinfoList.splice(i, 1)
} }
} }
} }
this.sarAccessInfoListArry = [] this.stahndinfoListArry = []
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
}).catch(() => {}) }).catch(() => {})
} else { } else {
@@ -1100,10 +1261,9 @@ export default {
}, },
// 清单条目 table select事件 // 清单条目 table select事件
sarAccessInfoSelect (selectData) { sarAccessInfoSelect (selectData) {
this.sarAccessInfoListArry = selectData this.stahndinfoListArry = selectData
let sarAccessInfoListArryId = [] let stahndinfoListArryId = []
for(let i=0; i<this.selectData.length; i++){ for(let i=0; i<this.selectData.length; i++){
} }
}, },
// 点击取消按钮 返回事件 // 点击取消按钮 返回事件
@@ -1117,8 +1277,8 @@ export default {
this.$refs['sarAccessForm'].validate((valid) => { this.$refs['sarAccessForm'].validate((valid) => {
if (valid) { if (valid) {
let rowlist = [] let rowlist = []
for (let i = 0; i < this.sarAccessInfoList.length; i++) { for (let i = 0; i < this.stahndinfoList.length; i++) {
rowlist.push(this.sarAccessInfoList[i].id) rowlist.push(this.stahndinfoList[i].id)
} }
rowlist = rowlist.join(',') rowlist = rowlist.join(',')
let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO)) let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
@@ -1171,12 +1331,14 @@ export default {
}, },
// 查询数据搜索 table 数据 // 查询数据搜索 table 数据
selectLawsStands () { selectLawsStands () {
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.sarAccessInfoSearch, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', {
...this.sarAccessInfoSearch,
...this.sarStandardsSearch
}, {
_this: this _this: this
}, res =>{ }, res =>{
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
}, e => { }, e => {
}) })
}, },
// 数据搜索table判断checked状态 // 数据搜索table判断checked状态
@@ -1186,7 +1348,6 @@ export default {
// 数据搜索 table select事件 // 数据搜索 table select事件
sarAccessInfoSearchSelect (val) { sarAccessInfoSearchSelect (val) {
this.selectedAccInfoSearchList = val this.selectedAccInfoSearchList = val
console.log(val)
}, },
// 数据搜索 清单类型 table select事件 // 数据搜索 清单类型 table select事件
accessSarTypeSelect (selectData) { accessSarTypeSelect (selectData) {
@@ -1198,7 +1359,6 @@ export default {
this.sarAccessInfoSearch.page = this.drawerPage this.sarAccessInfoSearch.page = this.drawerPage
this.selectLawsStands() this.selectLawsStands()
}, },
// 数据搜索table分页条数改变回调 // 数据搜索table分页条数改变回调
drawerPageSizeChange () { drawerPageSizeChange () {
this.sarAccessInfoSearch.pageSize = this.$store.getters.userInfo.configContent this.sarAccessInfoSearch.pageSize = this.$store.getters.userInfo.configContent
@@ -1213,10 +1373,10 @@ export default {
exportTestItem () { exportTestItem () {
let exportNames = this.exportName let exportNames = this.exportName
let exportList = [] let exportList = []
if (this.sarAccessInfoListArry.length > 0) { if (this.stahndinfoListArry.length > 0) {
exportList = this.sarAccessInfoListArry exportList = this.stahndinfoListArry
} else { } else {
exportList = this.sarAccessInfoList exportList = this.stahndinfoList
} }
if (exportList != null && exportList.length > 0) { if (exportList != null && exportList.length > 0) {
let accIdAndrestype = [] let accIdAndrestype = []
@@ -1257,9 +1417,9 @@ export default {
var a var a
var b = '' var b = ''
if (response.data) { if (response.data) {
for (var sADMIN in this.sarAccessInfoListADMIN) { for (var sADMIN in this.stahndinfoListADMIN) {
for (var iADMIN in response.data) { for (var iADMIN in response.data) {
if (this.sarAccessInfoListADMIN[sADMIN].code === response.data[iADMIN].code) { if (this.stahndinfoListADMIN[sADMIN].code === response.data[iADMIN].code) {
// ('在全部对象中的位置' + i) // ('在全部对象中的位置' + i)
response.data.splice(i, 1) response.data.splice(i, 1)
b = '数据重复添加,现已自动清除! ' b = '数据重复添加,现已自动清除! '
@@ -1268,7 +1428,7 @@ export default {
} }
if (response.data.length > 0) { if (response.data.length > 0) {
for (let i = 0; i < response.data.length; i++) { for (let i = 0; i < response.data.length; i++) {
this.sarAccessInfoList.push(response.data[i]) this.stahndinfoList.push(response.data[i])
} }
} }
a = response.data.length a = response.data.length
@@ -1377,16 +1537,16 @@ export default {
nowstandinfo.askNature = nowstandinfo.askNature.join(',') nowstandinfo.askNature = nowstandinfo.askNature.join(',')
// 判断新增还是编辑 // 判断新增还是编辑
if (this.editAddType === 1) { if (this.editAddType === 1) {
this.sarAccessInfoList.push(nowstandinfo) this.stahndinfoList.push(nowstandinfo)
this.sarAccessInfoList[this.sarAccessInfoList.length - 1].uuid = this.number this.stahndinfoList[this.stahndinfoList.length - 1].uuid = this.number
this.number++ this.number++
this.isSubmit = false this.isSubmit = false
this.$message.success('添加成功') this.$message.success('添加成功')
} else { } else {
this.sarAccessInfoList.map((item, index) => { this.stahndinfoList.map((item, index) => {
if (item.uuid === nowstandinfo.uuid) { if (item.uuid === nowstandinfo.uuid) {
// this.sarAccessInfoList[index] = nowstandinfo // this.stahndinfoList[index] = nowstandinfo
this.$set(this.sarAccessInfoList, index, nowstandinfo) this.$set(this.stahndinfoList, index, nowstandinfo)
} }
}) })
this.isSubmit = false this.isSubmit = false
@@ -1582,7 +1742,7 @@ export default {
// 新增、编辑标准时验证标准编号是否重复 // 新增、编辑标准时验证标准编号是否重复
validCode (rule, value, callback) { validCode (rule, value, callback) {
let find = 0 let find = 0
this.sarAccessInfoList.map(item => { this.stahndinfoList.map(item => {
if (item.code === value) { if (item.code === value) {
find++ find++
} }
@@ -1620,7 +1780,6 @@ export default {
let askTypeName = this.askNatureOptions.filter(item => { let askTypeName = this.askNatureOptions.filter(item => {
return val.indexOf(item.value) > -1 return val.indexOf(item.value) > -1
}).map(item => item.label) }).map(item => item.label)
return askTypeName.join(',') return askTypeName.join(',')
}, },
onChecked () { onChecked () {
@@ -1634,12 +1793,177 @@ export default {
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {id: this.zqaId}, { this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {id: this.zqaId}, {
_this: this _this: this
}, res => { }, res => {
this.sarAccessInfoList = res.data this.stahndinfoList = res.data
}, e => { }, e => {
})
},
treeClick (treeNode) {
this.selectSarMenu = treeNode
this.standCommonlySearch.menuId = treeNode.id
this.sarStandardsSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询
this.sarStandardsSearch.page = 1
this.standCommonlySearch.page = 1
this.getDomesticStandardTable(this.tableFlag)
},
// 分页查询国内标准
getDomesticStandardTable (item) {
if (item !== '' && item !== null && item !== undefined) {
item.pageSize = this.$store.getters.userInfo.configContent
}
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
const data = item || this.sarStandardsSearch
if (item) {
this.sarStandardsSearch.advanceSearchVOStr = item.advanceSearchVOStr
}
// this.sarStandardsSearch.menuId = this.selectSarMenu.id
const formData = {...data}
if (!item) {
formData.menuId = this.sarStandardsSearch.menuId
} else {
formData.menuId = this.selectSarMenu.id
}
// 排序
formData.orderBy = this.orderBy
// 处理我的收藏和个性化标签传参
if (this.selectSarMenu.id === 'wdsc') {
formData.menuId = undefined
formData.labelMenuId = undefined
formData.collectMenuId = 'wdsc'
} else if (this.selectSarMenu.id === 'gxhbq' || this.selectSarMenu.pId === 'gxhbq') {
formData.menuId = undefined
formData.labelMenuId = this.selectSarMenu.id
formData.collectMenuId = undefined
} else {
formData.labelMenuId = undefined
formData.collectMenuId = undefined
}
formData.standType = 'INLAND'
this.SarExportSearchEo = formData
this.loading = true
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
_this: this, loading: 'loading'
}, res => {
this.isAdvancedSearch = false
this.loading = false
if (res.ok) {
for (let i = 0; i < res.data.list.length; i++) {
res.data.list[i].checked = false
if (res.data.list[i].collectId != null && res.data.list[i].collectId !== '') {
res.data.list[i].collectBtn = false
res.data.list[i].cancelCollectBtn = true
} else {
res.data.list[i].collectBtn = true
res.data.list[i].cancelCollectBtn = false
}
res.data.list[i].isSubmit = false
if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.XCXSSRQ) {
res.data.list[i].XCXSSRQ = res.data.list[i].attrInfoMap.XCXSSRQ
}
if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.ZCCSSRQ) {
res.data.list[i].ZCCSSRQ = res.data.list[i].attrInfoMap.ZCCSSRQ
}
}
this.stahndinfoList = res.data.list
this.total = res.data.count
if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarStandardsSearch.page !== 1) {
this.pageChange(1)
}
} else {
this.$message.error(res.message)
}
}, e => {
this.loading = false
this.stahndinfoList = []
this.total = 0
})
},
// 点击搜索按钮
searchBtnClick (standCommonlySearch) {
let item = this.standCommonlySearch
this.getDomesticStandardTable(item)
this.isAdvancedSearch = false
this.selectLawsStands()
},
// 搜索
getDomesticStandardTableBtn (item) {
this.tableFlag = item
item.page = 1
item.sarStandardsSearch = ''
this.getDomesticStandardTable(item)
},
// 提交配置搜索项
saveConfigStand () {
let search = {}
search.menuId = this.selectSarMenu.id
if (this.selectConfigStand.length === 0) {
this.$message({
showClose: true,
message: '请至少选择一条标准',
type: 'warning'
})
} else {
search.idlist = this.selectConfigStand
this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenu', search, {
_this: this,
loading: 'isSubmit'
}, res => {
if (res.ok) {
this.configStandFlag = false
// this.$message({
// showClose: true,
// message: '配置标准成功!',
// type: 'success'
// })
this.getDomesticStandardTable(this.tableFlag)
}
}, e => {
}) })
} }
}, },
// 清空搜索框
clearAllSearch (flag) {
this.isAdvancedSearch = false
if (flag === 'sarStandardsSearch') {
// 标准搜索
this.sarStandardsSearch.country = ''
this.sarStandardsSearch.standSort = ''
this.sarStandardsSearch.standNumber = ''
this.sarStandardsSearch.standName = ''
this.sarStandardsSearch.standState = ''
this.sarStandardsSearch.standNature = ''
this.sarStandardsSearch.issueTime = ''
this.sarStandardsSearch.applyArctic = ''
this.sarStandardsSearch.replaceStandNum = ''
this.sarStandardsSearch.replacedStandNum = ''
this.sarStandardsSearch.synopsis = ''
this.sarStandardsSearch.category = ''
this.pageChange(1)
this.getDomesticStandardTable(this.sarStandardsSearch)
} else if (flag === 'standCommonlySearch') {
this.standCommonlySearch.standSort = ''
this.standCommonlySearch.standNumber = ''
this.pageChange(1)
this.getDomesticStandardTable(this.standCommonlySearch)
} else if (flag === 2) {
// 标准条目搜索
this.standItemSearch.responsibleUnit = ''
this.standItemSearch.orgName = ''
} else {
this.configPage = 1
// 游离标准搜索清空
this.sarConfigStandSearch.standSort = ''
this.sarConfigStandSearch.standNumber = ''
this.sarConfigStandSearch.standName = ''
this.sarConfigStandSearch.category = ''
this.sarConfigStandSearch.standNature = ''
this.sarConfigStandSearch.synopsis = ''
this.sarConfigStandSearch.applyArctic = ''
this.sarConfigStandSearch.replaceStandNum = ''
this.selectConfiguraStand()
}
},
},
watch: { watch: {
// 监听 清单类型 // 监听 清单类型
isListType (newVal, oldVal) { isListType (newVal, oldVal) {
@@ -1652,6 +1976,59 @@ export default {
}, },
computed: { computed: {
...mapGetters(['getAccessStandardRegRow']), ...mapGetters(['getAccessStandardRegRow']),
created(){
},
async mounted () {
// 进入页面后查询树形结构目录
await this.selectMenu()
// 进入页面后查询标准体系树形结构目录
await this.selectStandardMenu()
this.treeReload = true
// 从数据库中查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
this.allSelectOptions = res.data || {}
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
this.standStateOptions = res.data.WBZTCLASS // 文本状态
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
this.categoryOptions = res.data.NYLXCLASS // 能源类型
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
this.cysdOptions = res.data.WSCYSD // 我司参与深度
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.txlbOptions = res.data.TXLBCLASS // 体系类别
this.getGzzOption()
}, e => {
})
this.getDomesticStandardTable(this.tableFlag)
// 加载所有的部门
this.getOrgTreeSource()
// 加载动态表单数据
this.getAddFormFieldList()
this.getDept()
},
destroyed () {
this.allSelectOptions = {}
this.countryOptions = []
this.regionOptions = []
this.standSortOptions = []
this.applyArcticOptions = []
this.standStateOptions = []
this.standNatureOptions = []
this.adoptExtentOptions = []
this.emergyKindOptions = []
this.applyAuthOptions = []
this.categoryOptions = []
this.assemClassOptions = []
this.categoryConfigOptions = []
this.standAttributeList = []
this.zNodesS = []
this.zNodesSItem = []
this.searchInlandNodes = []
this.orgData = []
}
}, },
mounted () { mounted () {
this.zqaId =this.$route.query.id; this.zqaId =this.$route.query.id;
@@ -1663,7 +2040,8 @@ export default {
}, res => { }, res => {
this.allSelectOptions = res.data || {} this.allSelectOptions = res.data || {}
this.regionOptions = res.data.REGION // 基础信息 区域list this.regionOptions = res.data.REGION // 基础信息 区域list
this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list this.applyArcticOptions = res.data.ENERGYTYPES || [] // 基础车型 适用车型list
this.sycpxOptions = res.data.SYCPXCLASS || []// 适用产品线
this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list
this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
this.applyOptions = res.data.COUNTRY //适用区域list this.applyOptions = res.data.COUNTRY //适用区域list
@@ -1711,7 +2089,7 @@ export default {
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.list-of-standards-and-regulations-details{ .list-of-standards-and-regulations-details{
height: calc(~'100% - 50px'); height: calc(~'100% - 50px');
background: #ffffff; background: #ffffff;
overflow-y: auto; overflow-y: auto;
@@ -1754,24 +2132,43 @@ export default {
background: #ffffff; background: #ffffff;
text-align: right; text-align: right;
} }
} }
.un-select { .un-select {
user-select: none; user-select: none;
} }
::v-deep .el-drawer__header{ ::v-deep .el-drawer__header{
&>span:first-child{ &>span:first-child{
outline: none!important; outline: none!important;
} }
} }
::v-deep .el-drawer{ ::v-deep .el-drawer{
outline: none!important; outline: none!important;
} }
/deep/.wx-resolve { /deep/.wx-resolve {
.el-select__tags { .el-select__tags {
padding: 4px; padding: 4px;
} }
.el-tag { .el-tag {
margin: 2px; margin: 2px;
} }
}
.label-input-form {
&.table-lattice{
/deep/.el-form-item__label {
width:100px;
height:30px;
border: 1px solid #DCDFE6;
border-right: none;
line-height:30px;
text-align: center;
margin-top: 7px;
background: #F9F9F9;
} }
/deep/.el-input__inner {
height: 30px;
line-height: 30px;
border-radius: 0 !important;
}
}
}
</style> </style>
@@ -85,9 +85,6 @@
icon="export" icon="export"
>导出 >导出
</el-button> </el-button>
<el-button type="primary" class="common-button-primary" size="mini" @click="selectMoreBtn"><i
class="iconfont">&#xe7a5;</i>高级查询
</el-button>
</el-form> </el-form>
</div> </div>
<div class="right"> <div class="right">
@@ -1654,9 +1654,7 @@ export default {
}, },
methods: { methods: {
popoverHide (checkedIds, checkedData) { popoverHide (checkedIds, checkedData) {
console.log(checkedData)
this.sarStandardsInfoEO.standSystem = checkedData.id this.sarStandardsInfoEO.standSystem = checkedData.id
console.log(this.sarStandardsInfoEO.standSystem);
}, },
closeModal () { closeModal () {
this.productModal = false this.productModal = false
@@ -0,0 +1,324 @@
<!-- ProcessFooter -->
<template>
<div class="process-footer" v-if="showSave || showSubmit">
<div class="footer-line"></div>
<div class="btn-group-wrap">
<slot></slot>
<el-button
type="warning"
icon="el-icon-edit-outline"
size="small"
class="common-button-warning"
@click="handleOnLineEdit"
v-if="showEdit">在线编辑</el-button>
<!-- <el-button-->
<!-- type="primary"-->
<!-- size="mini"-->
<!-- class="common-button-primary"-->
<!-- @click="handleEntrust"-->
<!-- :loading="isSubmit"-->
<!-- v-if="showEntrust">-->
<!-- <i class="iconfont" style="font-size: 12px;">&#xe615;</i>-->
<!-- 委托</el-button>-->
<el-button
type="primary"
size="small"
class="common-button-primary"
icon="el-icon-message"
@click="handleSendEmail"
:loading="sendEmailLoading"
v-if="showSendEmail"
>发送邮件</el-button>
<el-button
type="danger"
size="small"
class="common-button-danger"
icon="el-icon-close"
@click="handleOver"
:loading="submitLoading"
v-if="showOver"
>撤销申请</el-button>
<el-button
type="primary"
size="mini"
class="common-button-primary"
@click="handleSave"
:loading="saveLoading"
v-if="showSave">
<i class="iconfont">&#xe608;</i>
保存
</el-button>
<el-button
type="danger"
size="small"
class="common-button-danger"
@click="beforeBack"
:loading="isSubmit"
v-if="showBack">
<i class="iconfont" style="font-size: 12px;">&#xe615;</i>
{{ backBTNText }}</el-button>
<el-button
type="primary"
size="small"
class="common-button-primary"
icon="el-icon-check"
@click="handleSubmit"
:loading="submitLoading"
v-if="showSubmit"
>{{ submitBTNTextShow }}</el-button>
</div>
<!-- 组织机构树 -->
<!-- <ProcessChooseTree-->
<!-- :visible.sync="visibleTree"-->
<!-- show-user-->
<!-- :dept-select="false"-->
<!-- @dblClick="handleAssigneeNew"-->
<!-- ></ProcessChooseTree>-->
<!-- 在线编辑 -->
<only-office-edit ref="onlyOffice" :visible.sync="visibleOnlyOffice"></only-office-edit>
<!-- 从全公司选人,2021-03-22(上汽大数据量人员解决方案) -->
<org-table
v-if="showEntrust"
:visible.sync="visibleTree"
:config="{
value: this.orgTableVal,
valueName: this.orgTableName
}"
title="委托"
:exclude-user="userId"
:max-selected="1"
max-selected-tips="当前任务只能委托给一个人"
dialog-model
@confirm="handleAssigneeNew"
></org-table>
</div>
</template>
<script>
import ProcessChooseTree from 'process/components/ProcessChooseTree'
import OnlyOfficeEdit from '@/components/onlyOfficeEdit'
import { changeAssigneeNew } from 'api/process'
import { mapGetters } from 'vuex'
export default {
name: 'ProcessFooter',
mixins: [],
props: {
// 是否显示结束流程按钮
showOver: {
type: Boolean,
default: false
},
// 是否显示保存按钮
showSave: {
type: Boolean,
default: false
},
// 是否显示发送邮件按钮
showSendEmail: {
type: Boolean,
default: false
},
// 发送邮件按钮loading
sendEmailLoading: {
type: Boolean,
default: false
},
// 是否显示提交按钮
showSubmit: {
type: Boolean,
default: false
},
// 是否显示委托按钮
showEntrust: {
type: Boolean,
default: false
},
// 是否显示退回按钮
showBack: {
type: Boolean,
default: false
},
// 提交按钮loading
submitLoading: {
type: Boolean,
default: false
},
// 保存按钮loading
saveLoading: {
type: Boolean,
default: false
},
// 是否默认委托事件
defaultEntrust: {
type: Boolean,
default: false
},
// 是否显示在线编辑按钮
showEdit: {
type: Boolean,
default: false
},
// 标准编号(在线编辑)
standNo: {
type: String
},
// 未选择标准编号/企标编号进行在线编辑的提示
noStandNoTip: {
type: String,
default: '请选择或输入企标编号后进行在线编辑'
},
// 审批节点
approval: {
type: Boolean,
default: false
},
// 带有退回/驳回意见
opinion: {
type: Boolean,
default: false
},
submitBTNText: {
type: String
}
},
components: {
ProcessChooseTree,
OnlyOfficeEdit
},
data () {
return {
isSubmit: false,
visibleTree: false,
visibleOnlyOffice: false,
orgTableVal: '',
orgTableName: ''
}
},
methods: {
handleOver() {
this.$emit('over')
},
handleSave() {
this.$emit('save')
},
handleSubmit() {
this.$emit('submit')
},
handleSendEmail() {
this.$emit('sendEmail')
},
handleEntrust() {
if (this.defaultEntrust) {
this.visibleTree = true
} else {
this.$emit('entrust')
}
},
handleBack() {
if (!this.opinion) {
this.$confirm(`您确定要${this.approval ? '驳回' : '退回'}该任务吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
this.$emit('back')
}).catch(() => {})
} else {
this.$emit('back')
}
},
/**
* @description: 委托
* @date: 2020-12-16 10:11:31
* @auth: chenxiaoxi
*/
handleAssigneeNew(checkedList, checkedIdList) {
if (!checkedList.length) { return false }
const assignee = checkedIdList[0]
const assigneeUserName = checkedList[0].userName
this.$confirm(`您确定要委托 ${assigneeUserName} 完成该任务吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
changeAssigneeNew({
taskId: this.$store.getters.getHandleInfo.taskIds, // 任务id
assignee, // 被委托人
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$store.getters.getHandleInfo.prcId // 流程实例
}).then(res => {
if (res.success) {
this.$message.success('委托成功')
setTimeout(() => {
this.$router.push({
name: 'ProcessCenter'
})
}, 100)
this.visibleTree = false
} else {
this.$message.warning(res.message)
}
})
}).catch(() => {})
},
/**
* @description: 在线编辑
* @date: 2021-01-08 10:32:16
* @auth: chenxiaoxi
*/
handleOnLineEdit() {
if (!this.standNo || this.standNo === '') {
this.$message.warning(this.noStandNoTip)
} else {
this.visibleOnlyOffice = true
this.$nextTick(() => {
this.$refs['onlyOffice'].officeInit(this.standNo, this.standId)
})
}
},
beforeBack() {
this.handleBack()
}
},
computed: {
// 提交按钮文字
submitBTNTextShow() {
return this.submitBTNText ? this.submitBTNText : this.approval ? '同意' : '提交'
},
// 退回按钮文字
backBTNText() {
return this.approval ? '驳回' : '退回'
},
userId() {
return this.userInfo.userId
},
...mapGetters(['userInfo'])
},
watch: {},
mounted () {}
}
</script>
<style lang="less" scoped>
.process-footer {
line-height: 50px;
text-align: right;
background: #fff;
z-index: 999;
padding: 0;
.footer-line {
height: 1px;
box-shadow: 0 -1px 2px 0px #e8e8e8;
}
}
</style>
@@ -0,0 +1,89 @@
<!-- 流程信息公共头部 -->
<template>
<div class="prc-header-wrap">
<div class="process-header">
<div class="back" title="返回流程中心" @click="handleBack">
<i class="el-icon-back"></i>
</div>
<span class="process-title">
流程中心 <slot name="proName"></slot>
<a>(<slot name="proNode"></slot>)</a>
</span>
</div>
<el-divider></el-divider>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'ProcessHeader',
mixins: [],
props: {
toggle: {
type: Boolean,
default: false
}
},
components: {},
data () {
return {
activeName: '',
opacityStyle: {},
headerFixed: false
}
},
methods: {
handleBack() {
if (this.$store.state.detailMap !== '') {
this.$router.push({
path: this.$store.state.detailMap,
query: {
prcNum: this.$store.getters.getHandleInfo.prcNum,
tabsName: this.$store.getters.getHandleInfo.tabsName
}
})
this.$store.commit('setDetailMap', '')
} else {
this.$router.push({
name: 'ProcessCenter'
})
}
}
},
computed: {
...mapGetters(['isCollapse'])
},
watch: {},
mounted () {
}
}
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
.el-divider {
margin: 10px 0 0;
}
.process-header {
position: relative;
padding-top: 10px;
}
.back {
margin-left: 10px;
}
.process-title {
font-size: 18px;
font-weight: bold;
display: inline-block;
height: 30px;
line-height: 30px;
a {
font-size: 14px;
margin-left: 5px;
cursor: default;
color: #888;
}
}
</style>
@@ -0,0 +1,32 @@
<!-- 流程信息公共标题 -->
<template>
<div class="contentTitle">
<div class="titleIcon"></div>
<div class="titleText"><slot name="title"></slot></div>
</div>
</template>
<script>
export default {
name: "ProcessTitle"
}
</script>
<style scoped lang="less">
.contentTitle {
height: 30px;
display: flex;
align-items: center;
color: #E6A23C;
.titleIcon{
background: #E6A23C;
width: 3px;
height: 14px;
}
.titleText{
margin-left: 10px;
font-size: 16px;
font-weight: bold;
}
}
</style>
@@ -1460,28 +1460,6 @@ export default {
this.reletionSelectNum = [] this.reletionSelectNum = []
this.showModelRelation = false this.showModelRelation = false
}, },
// 删除
handleDelete (row) {
this.$confirm('此操作将永久删除这条数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonClass: 'common-button-primary',
roundButton: true,
type: 'warning'
}).then(() => {
this.$http.post('lawss/sarProductInfo/deleteLocalProducts',
{
ids: row.id
}, {
_this: this
}, res => {
if (res.ok) {
this.getLocalProductTable()
}
})
}).catch(() => {
})
},
// 分页点击后方法 // 分页点击后方法
pageChange (page) { pageChange (page) {
this.localProTableSearch.page = page this.localProTableSearch.page = page
@@ -13,7 +13,7 @@
<el-col :span="5">产品平台: <span class="valueColor">{{ localProEO.projectPlatfor}}</span></el-col> <el-col :span="5">产品平台: <span class="valueColor">{{ localProEO.projectPlatfor}}</span></el-col>
<el-col :span="5" :push="1">项目编号: <span class="valueColor">{{ localProEO.projectNumber }}</span></el-col> <el-col :span="5" :push="1">项目编号: <span class="valueColor">{{ localProEO.projectNumber }}</span></el-col>
<el-col :span="5" :push="2">项目名称: <span class="valueColor">{{ localProEO.projectName }}</span></el-col> <el-col :span="5" :push="2">项目名称: <span class="valueColor">{{ localProEO.projectName }}</span></el-col>
<!-- <el-col :span="5" :push="2">车型系列:<span class="valueColor">{{ localProEO.productSet }}</span></el-col>--> <!-- <el-col :span="5" :push="2">车型系列:<span class="valueColor">{{ localProEO.productSet }}</span></el-col>-->
<el-col :span="4" :push="3">项目分类:<span class="valueColor">{{ localProEO.projectClassification }}</span></el-col> <el-col :span="4" :push="3">项目分类:<span class="valueColor">{{ localProEO.projectClassification }}</span></el-col>
</el-row> </el-row>
<el-row style="margin-top: 10px"> <el-row style="margin-top: 10px">
@@ -30,26 +30,19 @@
</div> </div>
</el-card> </el-card>
<div class="action-bar"> <div class="action-bar">
<el-button class="common-button-default delete-button" <el-button plain class="common-button-primary" size="mini" @click="addList">添加</el-button>
size="mini" @click="selectStandLawsForProduct" <el-button plain class="common-button-primary" size="mini" @click="deleteList">批量删除</el-button>
v-btn-permission="'KJJ6U32LFL4PAK5C6P55'"
>调取</el-button>
<el-button class="common-button-default delete-button"
size="mini" @click="deleteStandLawsForProduct(1)"
icon="delete"
v-btn-permission="'KJJ6U32LFL4PAK5C6P55'"
>删除</el-button>
<el-button class="common-button-default export-button" <el-button class="common-button-default export-button"
size="mini" @click="exportProducdata" size="mini" @click="exportProducdata"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
icon="export" icon="export"
>导出</el-button> >导出</el-button>
</div> </div>
<!-- <el-tabs type="border-card">--> <!-- <el-tabs type="border-card">-->
<!-- <el-tab-pane :label="localProEO.productName" class="details-panel-tabs-item">--> <!-- <el-tab-pane :label="localProEO.productName" class="details-panel-tabs-item">-->
<div class="table-wrapper"> <div class="table-wrapper">
<el-table <el-table
:data="data" :data="detailList"
style="width: 100%" style="width: 100%"
:height="Height" :height="Height"
border border
@@ -95,7 +88,6 @@
</div> </div>
<div v-else-if="scope.row.sarState === 2" > <div v-else-if="scope.row.sarState === 2" >
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png"> <img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png">
</div> </div>
<div v-else-if="scope.row.sarState === 5"> <div v-else-if="scope.row.sarState === 5">
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png"> <img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png">
@@ -202,17 +194,85 @@
@pageSizeChange="pageSizeChangeLaws"></pagination> @pageSizeChange="pageSizeChangeLaws"></pagination>
</div> </div>
<loading :loading="loading">数据获取中</loading> <loading :loading="loading">数据获取中</loading>
<!-- </el-tab-pane>--> <!-- </el-tab-pane>-->
<!-- </el-tabs>--> <!-- </el-tabs>-->
</div> </div>
<!-- 调取弹窗 --> <!-- 调取弹窗 -->
<el-drawer <el-drawer
title="调取" title="调取"
:visible.sync="takeingFlag" :visible.sync="standModel"
:wrapperClosable="false" size="900px"
size="800px" custom-class="demo-drawer"
:before-close="resetTakeingForm"
> >
<div class="demo-drawer-content">
<div style="position: absolute;bottom: 48px;top:16px;left: 0;right: 0">
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
<el-table
:data="standardData"
tooltip-effect="dark"
style="width: 100%"
border
ref="table"
height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectThree"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="code"
label="标准号">
<template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber
}}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }}
{{ scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
prop="standName"
label="标准名称"
>
</el-table-column>
<el-table-column
prop="issueTime"
label="发布日期">
</el-table-column>
<el-table-column
prop="xcxssrq"
label="新车型实施日期">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="zccssrq"
label="在产车实施日期">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="textStatus"
label="文本状态">
</el-table-column>
</el-table>
</div>
<pagination
:page="pageNo"
:pageSize="pageSizeNo"
:total="totalNo"
@pageChange="pageChangeNo"
@pageSizeChange="pageSizeChangeNo"
style="position: absolute;"
/>
</div>
</div>
<div class="demo-drawer-footer">
<el-button size="mini" @click="cancelStand">取消</el-button>
<el-button type="primary" size="mini" @click="okStand">添加</el-button>
</div>
</el-drawer> </el-drawer>
<!--导出--> <!--导出-->
<el-dialog :visible.sync="exportModelFlag" title="导出文件" width="700" :show-close="false"> <el-dialog :visible.sync="exportModelFlag" title="导出文件" width="700" :show-close="false">
@@ -227,7 +287,6 @@
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import LawsTreeView from '@/components/ProjectRelatedPersonnel/view' import LawsTreeView from '@/components/ProjectRelatedPersonnel/view'
export default { export default {
name: 'Details', name: 'Details',
components: { components: {
@@ -235,6 +294,15 @@ export default {
}, },
data () { data () {
return { return {
pageSizeNo: this.$store.getters.userInfo.configContent,
pageSize: this.$store.getters.userInfo.configContent,
pageNo: 1,
standardData: [], //添加标准数据
totalNo: 0,
standModel: false, // 选择标准抽屉状态
selectList: [], //选择标准的选择框
dataList: [],//清单里的标准数据
detailList:[],//详情表格数据
page: 1, page: 1,
total: 0, total: 0,
loading: false, loading: false,
@@ -248,12 +316,149 @@ export default {
} }
}, },
methods: { methods: {
pageChange(page) {
this.page = page;
this.selectionList();
},
pageSizeChange(pageSize) {
this.pageSize = this.$store.getters.userInfo.configContent;
this.selectionList();
},
pageChangeNo(page){
this.page = page
this.addList()
},
pageSizeChangeNo(pageSize){
this.pageSizeNo = this.$store.getters.userInfo.configContent;
this.addList()
},
//添加标准select的改变
selectThree(data) {
this.standList = data;
},
//点击添加事件
addList() {
this.$http.get("sarStandProjectLibrary/queryStandInfo", "", {
_this: this
}, res => {
this.standardData = res.data.list;
this.totalNo = res.data.pageCount
}, e => {
});
this.standModel = true;
},
// 点击批量删除事件
deleteList() {
if (this.selectList.length < 1) {
this.$message.warning("请选择一条数据进行删除");
} else {
this.$confirm("您确认删除这些数据?", "提示", {
confirmButtonText: "确认",
confirmButtonClass: "common-button-primary",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
let exits = [];
this.selectList.map(item => {
let index;
index = this.dataList.findIndex(items => {
return items.id = item;
});
if (index > -1) {
this.dataList.splice(index, 1);
}
exits.push(item);
});
this.selectList = [];
}).catch(() => {
});
}
},
//添加标准取消事件
cancelStand() {
this.standModel = false;
},
//添加标准确定事件
okStand() {
let _this = this;
if (this.standList.length < 1) {
_this.$message.warning("请选择需要添加进清单的数据");
} else {
_this.standList.map(item => {
let newStand = false;
for (let itemKey of _this.dataList) {
if (item.id == itemKey.id) {
newStand = true;
break;
}
}
if (newStand) {
_this.$message.warning("请勿重复添加数据");
} else {
_this.dataList.push(item);
}
});
this.standardData = []
_this.standModel = false;
}
},
//选择清单确定事件
OkDrawer() {
if (this.selectedList.length === 1) {
let deposit = new Map();
this.sarAccessListDatas.forEach(item => {
deposit.set(item.id, item);
});
let bringData = [];
for (let i = 0; i < this.selectedList.length; i++) {
bringData.push(deposit.get(this.selectedList[i]));
}
this.listForm.standId = bringData[0].id;
this.listForm.listName = bringData[0].detailedListName;
this.listForm.applyRegion = bringData[0].applicationScope;
this.listForm.descriptionList = bringData[0].remark;
this.listForm.fileId = bringData[0].fileId;
this.ListModel = false;
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { id: bringData[0].id }, {
_this: this
}, res => {
if(res.data==null){
res.data=[]
}
this.dataList = res.data;
console.log(res.data);
this.listForm.dataList = res.data;
let formId = []
this.dataList.map(item => {
formId.push(item.id)
});
this.listForm.inforlist = formId.join(',');
}, e => {
});
} else if (this.selectedList.length > 1) {
this.$message.warning("只能选择一条数据进行带入");
} else {
this.$message.warning("请选择一条数据进行带入");
}
},
back () { back () {
this.$router.push(this.$store.state.detailMap) this.$router.push(this.$store.state.detailMap)
this.$store.commit('setDetailMap', '') this.$store.commit('setDetailMap', '')
}, },
showLocalProductData (item) { showLocalProductData (item) {
this.localProEO = JSON.parse(JSON.stringify(item)) this.localProEO = JSON.parse(JSON.stringify(item))
// 查询详情表格数据
this.$http.get('sarStandProjectLibrary/queryStandInfo', {
id:this.localProEO.id
}, {
_this: this,
loading: 'loading'
}, res => {
console.log('查询')
console.log(res.data.records)
}, e => {
})
this.pointTimeList = JSON.parse(JSON.stringify(item)).pointTime.split(',') this.pointTimeList = JSON.parse(JSON.stringify(item)).pointTime.split(',')
this.reverseTimeList = this.pointTimeList.reverse() this.reverseTimeList = this.pointTimeList.reverse()
this.reverseTimeList.map((item, index) => { this.reverseTimeList.map((item, index) => {
@@ -284,7 +489,6 @@ export default {
pageChangeLaws() {}, pageChangeLaws() {},
pageSizeChangeLaws() {}, pageSizeChangeLaws() {},
standSelectChange() {},//选项值发生改变 standSelectChange() {},//选项值发生改变
}, },
computed: { computed: {
...mapGetters(['getLocalPro']) ...mapGetters(['getLocalPro'])
@@ -308,10 +512,10 @@ export default {
}, e => { }, e => {
}) })
} }
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.localProductDetails{ .localProductDetails{
.typeIcon { .typeIcon {
@@ -484,7 +688,6 @@ export default {
padding: 0; padding: 0;
} }
</style> </style>
<style lang="less"> <style lang="less">
.localProductDetails { .localProductDetails {
height: 100%; height: 100%;
@@ -496,6 +699,7 @@ export default {
.el-table--enable-row-transition .el-table__body td { .el-table--enable-row-transition .el-table__body td {
cursor: pointer; cursor: pointer;
} }
} } .demo-drawer-content {
margin-top: 10px;
}
</style> </style>