|
@@ -6,19 +6,19 @@
|
|
<el-select v-model="searchDepartId" filterable clearable placeholder="关键字搜索部门" @change="handleChangeDepart">
|
|
<el-select v-model="searchDepartId" filterable clearable placeholder="关键字搜索部门" @change="handleChangeDepart">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in list"
|
|
v-for="item in list"
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.id"
|
|
|
|
|
|
+ :key="item.department_id"
|
|
|
|
+ :label="item.department"
|
|
|
|
+ :value="item.department_id"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-menu
|
|
<el-menu
|
|
- :default-active="selectDepartId.toString()"
|
|
|
|
|
|
+ :default-active="selectDepartId"
|
|
class="el-menu-vertical-demo"
|
|
class="el-menu-vertical-demo"
|
|
@select="handleSelectDepart">
|
|
@select="handleSelectDepart">
|
|
<template v-for="(item, index) in list">
|
|
<template v-for="(item, index) in list">
|
|
- <el-menu-item :index="item.id.toString()">
|
|
|
|
- <span>{{ item.value }}</span>
|
|
|
|
|
|
+ <el-menu-item :index="item.department_id">
|
|
|
|
+ <span>{{ item.department}}</span>
|
|
</el-menu-item>
|
|
</el-menu-item>
|
|
</template>
|
|
</template>
|
|
</el-menu>
|
|
</el-menu>
|
|
@@ -60,14 +60,21 @@
|
|
</div>
|
|
</div>
|
|
<div v-for="(o,index) in restaurants.laws" :key="o.id" class="text item">
|
|
<div v-for="(o,index) in restaurants.laws" :key="o.id" class="text item">
|
|
<div style="display: inline-block;width: 100%;" >
|
|
<div style="display: inline-block;width: 100%;" >
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
|
|
|
+
|
|
|
|
+ <el-link target="_blank" :download="o.filename" :href="'/'+o.filename" :underline="false" v-if="o.isOpen">
|
|
<span class="oneline" >
|
|
<span class="oneline" >
|
|
- {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
</span>
|
|
</span>
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
- <!-- <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span> -->
|
|
|
|
- <el-button @click="applyDoc()"> 申请材料 </el-button>
|
|
|
|
|
|
+ <span v-else @click="downloadFile(o)" style="color: #606266;" >
|
|
|
|
+ <span class="oneline" >
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span style="clear: both;"></span>
|
|
<span style="clear: both;"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -80,12 +87,18 @@
|
|
</div>
|
|
</div>
|
|
<div v-for="(o,index) in restaurants.mechanism" :key="o.id" class="text item">
|
|
<div v-for="(o,index) in restaurants.mechanism" :key="o.id" class="text item">
|
|
<div style="display: inline-block;width: 100%;">
|
|
<div style="display: inline-block;width: 100%;">
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
|
|
|
+ <el-link target="_blank" :download="o.filename" :href="'/'+o.filename" :underline="false" v-if="o.isOpen">
|
|
<span class="oneline" >
|
|
<span class="oneline" >
|
|
- {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
</span>
|
|
</span>
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
|
|
+ <span v-else @click="downloadFile(o)" style="color: #606266;" >
|
|
|
|
+ <span class="oneline" >
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
|
|
+
|
|
<span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span style="clear: both;"></span>
|
|
<span style="clear: both;"></span>
|
|
</div>
|
|
</div>
|
|
@@ -98,13 +111,23 @@
|
|
<span>{{ selectDepartName }} 成果类资料</span>
|
|
<span>{{ selectDepartName }} 成果类资料</span>
|
|
<el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleOpenMore(3)">更多></el-button>
|
|
<el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleOpenMore(3)">更多></el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<div v-for="(o,index) in restaurants.result" :key="o.id" class="text item">
|
|
<div v-for="(o,index) in restaurants.result" :key="o.id" class="text item">
|
|
<div style="display: inline-block;width: 100%;">
|
|
<div style="display: inline-block;width: 100%;">
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
|
|
|
+
|
|
|
|
+ <el-link target="_blank" :download="o.filename" :href="'/'+o.filename" :underline="false" v-if="o.isOpen">
|
|
<span class="oneline" >
|
|
<span class="oneline" >
|
|
- {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
</span>
|
|
</span>
|
|
</el-link>
|
|
</el-link>
|
|
|
|
+
|
|
|
|
+ <span v-else @click="downloadFile(o)" style="color: #606266;" >
|
|
|
|
+ <span class="oneline" >
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
|
|
+
|
|
|
|
+
|
|
<span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span style="clear: both;"></span>
|
|
<span style="clear: both;"></span>
|
|
</div>
|
|
</div>
|
|
@@ -120,11 +143,17 @@
|
|
</div>
|
|
</div>
|
|
<div v-for="(o,index) in restaurants.result" :key="o.id" class="text item">
|
|
<div v-for="(o,index) in restaurants.result" :key="o.id" class="text item">
|
|
<div style="display: inline-block;width: 100%;">
|
|
<div style="display: inline-block;width: 100%;">
|
|
- <el-link target="_blank" :download="o.filename" :href="'/'+o.filename" :underline="false">
|
|
|
|
|
|
+ <el-link target="_blank" :download="o.filename" :href="'/'+o.filename" :underline="false" v-if="o.isOpen">
|
|
<span class="oneline" >
|
|
<span class="oneline" >
|
|
- {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
</span>
|
|
</span>
|
|
</el-link>
|
|
</el-link>
|
|
|
|
+
|
|
|
|
+ <span v-else @click="downloadFile(o)" style="color: #606266;" >
|
|
|
|
+ <span class="oneline" >
|
|
|
|
+ 【{{o.isOpen?'公':'私'}}】 {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
|
+ </span>
|
|
|
|
+ </span>
|
|
<span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
<span style="clear: both;"></span>
|
|
<span style="clear: both;"></span>
|
|
</div>
|
|
</div>
|
|
@@ -141,13 +170,9 @@
|
|
</el-card>
|
|
</el-card>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
<el-dialog title="申请材料" center :visible.sync="dialogFormVisible" >
|
|
<el-dialog title="申请材料" center :visible.sync="dialogFormVisible" >
|
|
- <h3> 本材料非公开,需要向对应科室申请</h3>
|
|
|
|
|
|
+ <h3> 【{{form.title}}】非公开,需要向对应科室申请</h3>
|
|
<div class="dialog-footer" slot="footer">
|
|
<div class="dialog-footer" slot="footer">
|
|
<el-button type="warning" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">取 消</el-button>
|
|
<el-button type="warning" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">取 消</el-button>
|
|
<el-button type="primary" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">确认申请</el-button>
|
|
<el-button type="primary" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">确认申请</el-button>
|
|
@@ -181,8 +206,9 @@ export default {
|
|
list: data.departs,
|
|
list: data.departs,
|
|
searchDepartId: "",
|
|
searchDepartId: "",
|
|
restaurants: {},
|
|
restaurants: {},
|
|
|
|
+ form:{},
|
|
state3: '',
|
|
state3: '',
|
|
- selectDepartId:1,
|
|
|
|
|
|
+ selectDepartId:"0",
|
|
selectDepartName: '',
|
|
selectDepartName: '',
|
|
category:'',
|
|
category:'',
|
|
isShowMore: false
|
|
isShowMore: false
|
|
@@ -202,12 +228,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
selectDepartId: function(newDepartId, oldDepartId) {
|
|
selectDepartId: function(newDepartId, oldDepartId) {
|
|
- let that = this
|
|
|
|
- this.list.filter(function(item){
|
|
|
|
- if(item.id == newDepartId){
|
|
|
|
- that.selectDepartName = item.value
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.getHotArticalList()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -217,17 +238,18 @@ export default {
|
|
// 调用 callback 返回建议列表的数据
|
|
// 调用 callback 返回建议列表的数据
|
|
cb(results);
|
|
cb(results);
|
|
},
|
|
},
|
|
- applyDoc(){
|
|
|
|
- this.dialogFormVisible = true
|
|
|
|
- },
|
|
|
|
createFilter(queryString) {
|
|
createFilter(queryString) {
|
|
return (restaurant) => {
|
|
return (restaurant) => {
|
|
return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
|
return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ downloadFile(o){
|
|
|
|
+ this.form = o;
|
|
|
|
+ this.dialogFormVisible = true
|
|
|
|
+ },
|
|
getHotArticalList() {
|
|
getHotArticalList() {
|
|
let param = {
|
|
let param = {
|
|
- "department": this.selectDepartName,
|
|
|
|
|
|
+ "departmentId": +this.selectDepartId,
|
|
"category": this.category
|
|
"category": this.category
|
|
}
|
|
}
|
|
getHotArticalList( param ).then( res=>{
|
|
getHotArticalList( param ).then( res=>{
|