|
@@ -266,24 +266,31 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<a-modal v-model:visible="isShowDoc" title="相关文档" :footer="null" @onCancel="isShowDoc=false">
|
|
|
- <a-list item-layout="horizontal" :data-source="docList">
|
|
|
- <template #renderItem="{ item }">
|
|
|
- <a-list-item>
|
|
|
- <template #actions>
|
|
|
- <a style="color:#1890ff" @click="downFile(item)">下载</a>
|
|
|
- </template>
|
|
|
- <a-list-item-meta
|
|
|
- :description="item.file_business_type">
|
|
|
- <template #title>
|
|
|
- <a href="">{{ item.file_name }}</a>
|
|
|
- </template>
|
|
|
- <template #avatar>
|
|
|
- <img src="~@/assets/images/file.png"/>
|
|
|
+ <a-input-search
|
|
|
+ v-model:value="docKey"
|
|
|
+ placeholder="查找文档" allow-clear
|
|
|
+ />
|
|
|
+ <div style="max-height:300px;overflow-y:scroll;margin-top:10px;">
|
|
|
+ <a-list item-layout="horizontal" :data-source="docList">
|
|
|
+ <template #renderItem="{ item }">
|
|
|
+ <a-list-item v-if="item.file_name.indexOf(docKey)>-1||docKey==''">
|
|
|
+ <template #actions>
|
|
|
+ <filePreview :fileName="item.file_name" :filePath="item.storage_path"></filePreview>
|
|
|
+ <a-button type="link" @click="downFile(item)" functioncode="T010502" danger>下载</a-button>
|
|
|
</template>
|
|
|
- </a-list-item-meta>
|
|
|
- </a-list-item>
|
|
|
- </template>
|
|
|
- </a-list>
|
|
|
+ <a-list-item-meta
|
|
|
+ :description="item.file_business_type">
|
|
|
+ <template #title>
|
|
|
+ <a href="">{{ item.file_name }}</a>
|
|
|
+ </template>
|
|
|
+ <template #avatar>
|
|
|
+ <img src="~@/assets/images/file.png"/>
|
|
|
+ </template>
|
|
|
+ </a-list-item-meta>
|
|
|
+ </a-list-item>
|
|
|
+ </template>
|
|
|
+ </a-list>
|
|
|
+ </div>
|
|
|
</a-modal>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -299,11 +306,12 @@ import {useTabsViewStore} from "@/store/modules/tabsView";
|
|
|
import ChartCell from '@/components/basic/chart/chart-cell.vue'
|
|
|
import ChartMap from '@/components/basic/chart/chart-map.vue'
|
|
|
import {download} from "@/utils/downloadFile";
|
|
|
-import {columns,filterColumns,formState,getTdColor} from './table'
|
|
|
+import {columns, filterColumns, formState, getTdColor} from './table'
|
|
|
+import filePreview from '@/components/basic/file-preview/index.vue'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'wellinfoindex',
|
|
|
- components: {ChartCell, ChartMap},
|
|
|
+ components: {ChartCell, ChartMap, filePreview},
|
|
|
setup() {
|
|
|
|
|
|
const route = useRoute();
|
|
@@ -320,6 +328,7 @@ export default defineComponent({
|
|
|
const data = ref([{children: [], label: '', value: ''}]);
|
|
|
const viewModel = ref("list");
|
|
|
const tabsViewStore = useTabsViewStore();
|
|
|
+ const docKey = ref('');
|
|
|
const docList = ref([]);
|
|
|
const wellTypeList = ref([{label: "直井", value: "直井"}, {label: "定向井", value: "定向井"}, {
|
|
|
label: "分支井",
|
|
@@ -332,8 +341,7 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
const downFile = (record: any) => {
|
|
|
-
|
|
|
- download(record.fileId, record.file_name);
|
|
|
+ download(record.file_business_type, record.file_name);
|
|
|
};
|
|
|
const resetFields = function () {
|
|
|
let keys: string[] = Object.keys(formState);
|
|
@@ -545,7 +553,7 @@ export default defineComponent({
|
|
|
route, selectedRowKeys, loading, activeTab, showTree, onSelectChange, data,
|
|
|
expand, onQuery, loadData, onRangeChange, showQuery, wellTypeList, replaceFields,
|
|
|
formRef, viewModel, handleTableChange, detail,
|
|
|
- formState, isShowDoc, showDoc, docList, resetFields, showColumnType, filterColumns,
|
|
|
+ formState, isShowDoc, showDoc, docKey, docList, resetFields, showColumnType, filterColumns,
|
|
|
labelCol, getTdColor, downFile,
|
|
|
tabChange, onCheckboxChange, treeRef, colspan,
|
|
|
treeOnExpand,
|