feat: There is no way the,

This commit is contained in:
super_liu
2022-03-17 16:37:32 +08:00
parent 7f044c8640
commit a095fb6091
3 changed files with 42 additions and 33 deletions
@@ -282,7 +282,7 @@
</template> </template>
<script> <script>
const sarType = 'LAWS_STAND' const sarType = 'FOREIGN_LAWS'
export default { export default {
name: 'attribute-custom', name: 'attribute-custom',
data () { data () {
@@ -352,7 +352,7 @@ export default {
showRegionId: '', showRegionId: '',
selVal: '', selVal: '',
isSearch: '1', isSearch: '1',
sarType: 'LAWS_STAND', sarType: 'FOREIGN_LAWS',
isWarn: '1' isWarn: '1'
}, },
attrTypeOptions: [ attrTypeOptions: [
@@ -367,12 +367,12 @@ export default {
], ],
sarTypeOptions: [ sarTypeOptions: [
// { label: '国内政策', value: 'INLAND_LAWS' }, // { label: '国内政策', value: 'INLAND_LAWS' },
{ label: '国内外政策', value: 'LAWS_STAND' } { label: '国内外政策', value: 'FOREIGN_LAWS' }
// { label: '国内外政策', value: 'LAWS' } // { label: '国内外政策', value: 'LAWS' }
], ],
sarTypeLocationOptions: [ sarTypeLocationOptions: [
// { label: '国内政策', value: 'INLAND_LAWS' }, // { label: '国内政策', value: 'INLAND_LAWS' },
{ label: '国内外政策', value: 'LAWS_STAND' } { label: '国内外政策', value: 'FOREIGN_LAWS' }
], ],
isMustOptions: [ isMustOptions: [
{ label: '是', value: '0' }, { label: '是', value: '0' },
@@ -710,7 +710,7 @@ export default {
let texts = '' let texts = ''
if (type === 'INLAND_LAWS') { if (type === 'INLAND_LAWS') {
texts = '国内政策' texts = '国内政策'
} else if (type === 'LAWS_STAND') { } else if (type === 'FOREIGN_LAWS') {
texts = '国内外政策' texts = '国内外政策'
} else if (type === 'LAWS') { } else if (type === 'LAWS') {
texts = '国内外通用政策' texts = '国内外通用政策'
@@ -13,7 +13,6 @@
class="details-content-modular clearfix" class="details-content-modular clearfix"
v-for="(item, index) in dynamicFormField" v-for="(item, index) in dynamicFormField"
:key="index" :key="index"
v-if="item.isShowImp === '0'"
> >
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information" <div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
@@ -167,7 +166,7 @@
</el-collapse> </el-collapse>
</div> </div>
</div> </div>
<div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div> <!-- <div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div>-->
<!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>--> <!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>-->
<!--查看标准条目列表--> <!--查看标准条目列表-->
<el-drawer <el-drawer
@@ -897,7 +896,7 @@ import {dateFormat} from '../../../common/date'
import { getBusStandFileByAttId } from 'api/process' import { getBusStandFileByAttId } from 'api/process'
const sarType = 'LAWS_STAND' const sarType = 'FOREIGN_LAWS'
export default { export default {
name: 'OtherLawsStandDetails', name: 'OtherLawsStandDetails',
components: { components: {
@@ -1125,6 +1124,7 @@ export default {
console.log(val) console.log(val)
}, },
handleChange1(val) { handleChange1(val) {
console.log(val)
if(val && val === '基础信息'){ if(val && val === '基础信息'){
this.activeState = true this.activeState = true
} }
@@ -2150,6 +2150,7 @@ export default {
} }
}) })
}) })
console.log(displayLocation)
displayLocation.forEach(location => { displayLocation.forEach(location => {
// 动态属性字段-SYRZ 单独添加至基础信息 // 动态属性字段-SYRZ 单独添加至基础信息
@@ -2158,19 +2159,11 @@ export default {
if (!list2[0].child) { if (!list2[0].child) {
location['child2'] = [] location['child2'] = []
}else { }else {
if(list2[0].child){
const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS'); const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS');
location['child2'] = childList location['child2'] = childList
} }
} }
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
} }
const child = location.child || [] const child = location.child || []
@@ -2183,8 +2176,24 @@ export default {
}) })
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
}) })
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
if(displayLocation[i].child !== undefined){
let childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
i -= 1
}
}else {
displayLocation.splice(i,1)
i -= 1
}
}
}
console.log(displayLocation)
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
console.log(this.dynamicFormField)
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
}) })
@@ -1,4 +1,4 @@
<!--企业标准--> <!--国内外政策-->
<template> <template>
<div id="foreignRegulationsDatabase" :class="{ 'tree-close': sideClose }" class="v-class"> <div id="foreignRegulationsDatabase" :class="{ 'tree-close': sideClose }" class="v-class">
<!--左侧树--> <!--左侧树-->
@@ -1476,7 +1476,7 @@
quoteIdList1: '', quoteIdList1: '',
selectedListRep: [], selectedListRep: [],
replaceStandNumModelNum: [], replaceStandNumModelNum: [],
sarType: 'LAWS_STAND', sarType: 'FOREIGN_LAWS',
dynamicFormField: [], dynamicFormField: [],
reloadAddForm: false, reloadAddForm: false,
showRegionOptions: [], showRegionOptions: [],
@@ -1511,7 +1511,7 @@
id: '', id: '',
parentId: '', parentId: '',
menuName: '', menuName: '',
sorDivide: 'LAWS_STAND', sorDivide: 'FOREIGN_LAWS',
displaySeq: '', displaySeq: '',
parentIds: '', parentIds: '',
remarks: '' remarks: ''
@@ -2316,8 +2316,8 @@
}, },
// 查询二级菜单 // 查询二级菜单
selectMenuList () { selectMenuList () {
this.$http.get('sarResource/ts-resource/getList', { this.$http.get('sarResource/ts-resource/getListStand', {
sorDivide: 'LAWS_STAND', sorDivide: 'FOREIGN_LAWS',
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.ok) {
@@ -2519,7 +2519,7 @@
type: 'warning' type: 'warning'
}) })
} else { } else {
this.personShareEO.resType = 'LAWS_STAND' this.personShareEO.resType = 'FOREIGN_LAWS'
this.personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.standCode + ' )' this.personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.standCode + ' )'
this.personShareEO.resId = this.resPk.id this.personShareEO.resId = this.resPk.id
this.personShareEO.recipientId = this.shareStandardSelect.join(',') this.personShareEO.recipientId = this.shareStandardSelect.join(',')
@@ -2548,7 +2548,7 @@
type: 'warning' type: 'warning'
}) })
} else { } else {
this.personShareEO.resType = 'LAWS_STAND' this.personShareEO.resType = 'FOREIGN_LAWS'
this.personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.standCode + ' )' this.personShareEO.resTitle = this.resPk.standName + ' ( 编号:' + this.resPk.standCode + ' )'
this.personShareEO.resId = this.resPk.id this.personShareEO.resId = this.resPk.id
this.personShareEO.recipientId = this.shareStandardSelect.join(',') this.personShareEO.recipientId = this.shareStandardSelect.join(',')
@@ -2657,7 +2657,7 @@
item.isSubmit = true item.isSubmit = true
this.personCollect.collectResId = item.id this.personCollect.collectResId = item.id
this.personCollect.collectTitle = ' ( 编号:' + item.lawsNumber + ')' this.personCollect.collectTitle = ' ( 编号:' + item.lawsNumber + ')'
this.personCollect.collectType = 'LAWS_STAND' this.personCollect.collectType = 'FOREIGN_LAWS'
this.personCollect.userId = this.$store.getters.userInfo.userId this.personCollect.userId = this.$store.getters.userInfo.userId
this.$http.postData('person/personCollect', this.personCollect, { this.$http.postData('person/personCollect', this.personCollect, {
_this: this _this: this
@@ -2848,7 +2848,7 @@
name: 'OtherLawsStandDetails', name: 'OtherLawsStandDetails',
params: { params: {
id: item.id, id: item.id,
pageType: 'LAWS_STAND' pageType: 'FOREIGN_LAWS'
} }
}) })
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, '_blank')
@@ -3395,7 +3395,7 @@
id: '', id: '',
parentId: '', parentId: '',
menuName: '', menuName: '',
sorDivide: 'LAWS_STAND', sorDivide: 'FOREIGN_LAWS',
displaySeq: '', displaySeq: '',
remarks: '', remarks: '',
parentIds: '' parentIds: ''
@@ -3804,7 +3804,7 @@
name: 'OtherLawsStandDetails', name: 'OtherLawsStandDetails',
params: { params: {
id: row.id, id: row.id,
pageType: 'LAWS_STAND' pageType: 'FOREIGN_LAWS'
} }
}) })
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, '_blank')
@@ -3812,7 +3812,7 @@
// 查询二级菜单 // 查询二级菜单
selectMenu () { selectMenu () {
this.countRootId = 0 this.countRootId = 0
this.$http.get('lawss/sarMenu/selectMenuByRole', {sorDivide: 'LAWS_STAND'}, { this.$http.get('lawss/sarMenu/selectMenuByRole', {sorDivide: 'FOREIGN_LAWS'}, {
_this: this _this: this
}, res => { }, res => {
let treeNode = [] let treeNode = []
@@ -3878,7 +3878,7 @@
res => { res => {
if (res.ok) { if (res.ok) {
const { data = {} } = res const { data = {} } = res
this.formFieldListData = data['LAWS_STAND'] this.formFieldListData = data['FOREIGN_LAWS']
// 追加高级查询动态下拉框数据s // 追加高级查询动态下拉框数据s
this.twoOptions = [ this.twoOptions = [
// { // {