Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1771,11 +1771,16 @@
|
||||
<el-col :span="12">
|
||||
<!-- 归口管理部门-->
|
||||
<el-form-item label="归口管理部门" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="advanceSearchMapping.GKDW" placeholder="归口管理部门" clearable>
|
||||
<el-option v-for="(opt, index) in gkglbmOptions" :value="opt.value === undefined ? '' :opt.value"
|
||||
:key="index" :label="opt.label">{{ opt.label }}
|
||||
</el-option>
|
||||
</el-select>
|
||||
<search-select
|
||||
v-model="advanceSearchMapping.GKDW"
|
||||
:placeholder="'归口管理部门'"
|
||||
:options="gkglbmOptions"
|
||||
clearable/>
|
||||
<!-- <el-select v-model="advanceSearchMapping.GKDW" placeholder="归口管理部门" clearable>-->
|
||||
<!-- <el-option v-for="(opt, index) in gkglbmOptions" :value="opt.value === undefined ? '' :opt.value"-->
|
||||
<!-- :key="index" :label="opt.label">{{ opt.label }}-->
|
||||
<!-- </el-option>-->
|
||||
<!-- </el-select>-->
|
||||
</el-form-item>
|
||||
<!-- 我司参与深度-->
|
||||
<el-form-item label="我司参与深度" class="add-form-item form-item-disabled">
|
||||
|
||||
@@ -809,7 +809,7 @@
|
||||
{required: true, message: '请选择起草人', trigger: 'change'},
|
||||
],
|
||||
rqbJson: [
|
||||
{required: true, message: '请选择代替企标编号', trigger: 'change'},
|
||||
{required: false, message: '请选择代替企标编号', trigger: ['change', 'blur']},
|
||||
]
|
||||
},
|
||||
form: {
|
||||
@@ -1038,6 +1038,7 @@
|
||||
}
|
||||
this.addForm.unit = list
|
||||
this.addForm.unitName = listName
|
||||
this.$refs.addForm.validateField('unitName')
|
||||
this.modalshowflagZRBM = false
|
||||
},
|
||||
choiceZRBM(id) {
|
||||
@@ -1161,7 +1162,32 @@
|
||||
},
|
||||
addData () {
|
||||
this.addDrawerTitle = '新增'
|
||||
this.addForm = {}
|
||||
this.addForm = {
|
||||
bussSort:'',
|
||||
esMatingRelations: '',
|
||||
technologic: '',
|
||||
useLevel: '',
|
||||
isRelate: '',
|
||||
esStandRelations: '',
|
||||
area: [],
|
||||
tsJson: '',
|
||||
tsJsonName: '',
|
||||
rqbJson: '',
|
||||
rqbName: '',
|
||||
unit: '', // 单位
|
||||
unitName: '',
|
||||
esName: '', // 企标名称
|
||||
planStatus: '', // 计划状态
|
||||
reviseStatus: '', // 制修订状态
|
||||
resPerson: '', // 评审责任人
|
||||
resPersonName: '',
|
||||
wgLeader: '', // 工作组组长
|
||||
wgLeaderName: '',
|
||||
draftTime: '', // 计划标准初稿完成时间
|
||||
releaseTime: '', // 计划标准发布时间
|
||||
drafter: '', // 起草人
|
||||
drafterName: ''
|
||||
}
|
||||
this.DrawerType = 'add'
|
||||
this.addForm.planStatus = '0'
|
||||
this.addDrawer = true
|
||||
|
||||
@@ -457,7 +457,7 @@ export default {
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: 'OtherStandardDetails',
|
||||
params: {
|
||||
id: item.id,
|
||||
id: item.standId,
|
||||
pageType: 'INLAND_STAND'
|
||||
// pageType: item.standType + '_STAND'
|
||||
}
|
||||
|
||||
@@ -896,6 +896,7 @@ export default {
|
||||
},
|
||||
showStand(){
|
||||
this.dialogTableVisible = true
|
||||
this.getStandDataBtn()
|
||||
},
|
||||
//标准查询按钮
|
||||
getStandDataBtn(){
|
||||
|
||||
@@ -388,6 +388,7 @@ export default {
|
||||
console.log(res.data.records);
|
||||
this.total = res.data.total
|
||||
this.spinShow = false
|
||||
localStorage.setItem('refreshFlag', false)
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
@@ -557,6 +558,13 @@ export default {
|
||||
},
|
||||
handleQueryPdf(file){
|
||||
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + file.attId))
|
||||
},
|
||||
isVisible(e) {
|
||||
if (e.target.visibilityState === "visible") {
|
||||
this.getList()
|
||||
} else if (e.target.visibilityState === "hidden") {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -572,6 +580,17 @@ export default {
|
||||
...mapGetters(['refreshFlag'])
|
||||
},
|
||||
mounted() {
|
||||
const that = this;
|
||||
//监听缓存中指定key的值变化
|
||||
window.addEventListener("setItemEvent",function(e){
|
||||
//e.key : 是值发生变化的key
|
||||
//例如 e.key==="token";
|
||||
//e.newValue : 是可以对应的新值
|
||||
if(e.key === "refreshFlag" && e.newValue === true){
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
document.addEventListener('visibilitychange', that.isVisible)
|
||||
if (this.lawsStand) {
|
||||
this.form = {
|
||||
ideaId: this.lawsStand.id,
|
||||
@@ -613,7 +632,10 @@ export default {
|
||||
this.getList()
|
||||
this.getIdeaKey()
|
||||
this.getFileInfo()
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
document.removeEventListener('visibilitychange', this.isVisible)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user