| | |
| | | > |
| | | <el-option |
| | | v-for="item in categoryOptions" |
| | | :key="item.value" |
| | | :key="item.key" |
| | | :label="item.value" |
| | | :value="item.key" |
| | | > |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="matchState(scope, /[]/)" |
| | | @click="setAttatchDetail(scope.$index, scope.row)" |
| | | class="elLink" |
| | | >{{ $t('common.see') }}</el-link> |
| | |
| | | this.signGetPublicKey(); |
| | | }, |
| | | methods: { |
| | | matchState(state = "", reg) { |
| | | var row = state.row; |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1 || name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | return true; |
| | | } |
| | | |
| | | return false; |
| | | }, |
| | | // 附件=>表格选择 |
| | | handleAttatchChange(val) { |
| | | this.attacgSelection = val; |
| | |
| | | return; |
| | | } |
| | | var val = data.result; |
| | | val = val.filter((res) => { |
| | | if (val) { |
| | | val = val.filter((res) => { |
| | | res.mold = "数据库" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | this.listData.count = data.count; |
| | | this.monthdata = data.result; |
| | | } else { |
| | | this.listData.count = 0; |
| | | this.monthdata = []; |
| | | } |
| | | |
| | | res.mold = "数据库" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | this.listData.count = data.count; |
| | | this.monthdata = data.result; |
| | | }, |
| | | //查询文件数据 |
| | | async getQueryFileData() { |
| | |
| | | this.$message.error('文件数据列表调用失败'); |
| | | } |
| | | var val = data.result; |
| | | val = val.filter((res) => { |
| | | var type = "." + res.type; |
| | | res.name = res.name.replaceAll(type, "") |
| | | res.mold = "文件" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | if (val) { |
| | | val = val.filter((res) => { |
| | | var type = "." + res.type; |
| | | res.name = res.name.replaceAll(type, "") |
| | | res.mold = "文件" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | } else { |
| | | this.monthdata = []; |
| | | this.listData.count = 0; |
| | | } |
| | | |
| | | }, |
| | | //查询数据 |
| | | getAllTabesData() { |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error('资料类别列表调用失败'); |
| | | } |
| | | |
| | | this.categoryOptions = data.result; |
| | | }, |
| | | //关键字查询 |
| | |
| | | }, |
| | | //资料类别下拉框值改变触发 |
| | | categorySelectChange(model, prop, options) { |
| | | |
| | | this.getAllTabesData(); |
| | | |
| | | }, |
| | | // 项目名称下拉框值改变触发 |
| | | itemSelectChange(model, prop, options) { |