| | |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="spatialContent "> |
| | | <div class="spatial_leftTree subpage_Div"> |
| | | <el-input v-model="filterText" style="width: 200px;"></el-input> |
| | | <div style="width:300px"> |
| | | <div |
| | | class="spatial_leftTree subpage_Div " |
| | | style="border: 1px solid #dcdfe6;" |
| | | > |
| | | <el-input |
| | | size="small" |
| | | v-model="filterText" |
| | | style="width:220px;" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')" |
| | | suffix-icon="el-icon-search" |
| | | ></el-input> |
| | | |
| | | <div style="width:300px"> |
| | | <el-tree |
| | | :data="tree" |
| | | :props="defaultProps" |
| | | :default-expanded-keys="[1]" |
| | | node-key="id" |
| | | :current-node-key="10" |
| | | @node-click="handleNodeClick" |
| | |
| | | <div class="contentshuju"> |
| | | <div class="contentshujutou"> |
| | | <el-form |
| | | ref="ruleForm" |
| | | :model="ruleForm" |
| | | :inline="true" |
| | | > |
| | | |
| | | <el-form-item> |
| | | <!-- type="textarea" --> |
| | | <el-input |
| | | v-model="ruleForm.fileName" |
| | | class="nm-skin-pretty" |
| | | show-word-limit |
| | | :rows="2" |
| | | resize='none' |
| | | disabled |
| | | style="width: 200px;" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | size="small" |
| | | type="primary" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="submitForm" |
| | | type="primary" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | >{{$t('common.iquery')}}</el-button> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | @click="conditionVisible = true" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | type="success" |
| | | >{{$t('common.append')}}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="table_box" style="height:calc(100% - 89px)"> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | height="calc(100% - 57px)" |
| | | ref="ruleForm" |
| | | :model="ruleForm" |
| | | :inline="true" |
| | | > |
| | | <el-table-column |
| | | |
| | | <el-form-item> |
| | | <!-- type="textarea" disabled--> |
| | | <el-input |
| | | v-model="ruleForm.fileName" |
| | | size="small" |
| | | :rows="2" |
| | | style="width: 300px;" |
| | | disabled |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.label')" |
| | | > |
| | | <!-- <i |
| | | slot="suffix" |
| | | class="el-icon-search" |
| | | @click="submitForm" |
| | | style="padding-right: 8px" |
| | | ></i> --> |
| | | </el-input> |
| | | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | @click="conditionVisible = true" |
| | | size="small" |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | >{{$t('common.append')}}</el-button> |
| | | |
| | | </el-form-item> |
| | | |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="resetForm" |
| | | type="info" |
| | | size="small" |
| | | icon="el-icon-refresh" |
| | | >{{$t('common.reset')}}</el-button> |
| | | </el-form-item> |
| | | |
| | | <!-- <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="submitForm" |
| | | type="primary" |
| | | size="small" |
| | | icon="el-icon-search" |
| | | >{{$t('shuJuGuanLi.lable6')}}</el-button> |
| | | </el-form-item>--> |
| | | |
| | | <!-- 去掉 --> |
| | | <!-- <el-form-item style="float: right"> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | @click="conditionVisible = true" |
| | | size="small" |
| | | icon="el-icon-plus" |
| | | type="success" |
| | | >{{$t('common.append')}}</el-button> |
| | | </el-form-item>--> |
| | | |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | size="small" |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | </div> |
| | | <div class="dividing-line"></div> |
| | | <div |
| | | class="table_box" |
| | | style="height:calc(100% - 130px); " |
| | | > |
| | | <!-- border--> |
| | | <!-- ref="filterTable"--> |
| | | <!-- :data="tableData"--> |
| | | <!-- style="width: 100%"--> |
| | | <!-- height="calc(100% - 57px)"--> |
| | | <!-- :header-cell-style="{background:'#e6eaee',color:'#181818', 'text-align': 'center'} "--> |
| | | <el-table |
| | | ref="refTableData" |
| | | :data="tableData" |
| | | style="width: 100% ;" |
| | | border |
| | | height="100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | width="60" |
| | | width="20" |
| | | align="center" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | | <!-- :label="item.alias"--> |
| | | <el-table-column |
| | | min-width="135" |
| | | v-for="(item, index) in attributeData" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :label="$i18n.locale == 'zh' ? item.alias : item.field" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | |
| | | min-width="240" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | class="elLink" |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | size="small" |
| | | @click="showDetail(scope.$index, scope.row)" |
| | | >{{$t('common.details')}}</el-link> |
| | | <el-link |
| | | class="elLink" |
| | | >{{$t('common.details')}}</el-button> |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | @click="getAttachTable(scope.$index, scope.row)" |
| | | style="margin-left: 20px; " |
| | | >{{$t('common.enclosure')}}</el-link> |
| | | >{{$t('common.enclosure')}}</el-button> |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | type="info" |
| | | v-if="matchState1(scope, /[]/)" |
| | | @click="getAttributeTable(scope.$index, scope.row)" |
| | | >{{$t('common.attribute')}}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div |
| | | class="pagination_box" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div |
| | | class="infoBox box_div" |
| | | v-show="showinfoBox" |
| | | > |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{$t('common.details')}}</span> |
| | | </div> |
| | | |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | class="pagination_box" |
| | | style="margin-top: 15px" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <ul> |
| | | <li v-for="(item, index) in itemdetail"> |
| | | <p> |
| | | <label> {{ item.label }}:</label> |
| | | <label class="boxlabel">{{ item.value }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | </li> |
| | | </ul> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <div |
| | | class="infoBox_box" |
| | | v-show="showinfoBox" |
| | | > |
| | | <div class="infoBox box_div"> |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{$t('common.details')}}</span> |
| | | |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <ul> |
| | | <li v-for="(item, index) in itemdetail"> |
| | | <p> |
| | | <label> {{ item.label }}:</label> |
| | | <label class="boxlabel">{{ item.value }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | :title="$t('common.attachinform')" |
| | | width="30%" |
| | | :visible.sync="dialogFormVisible" |
| | | > |
| | | <el-form |
| | | :model="formInline" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-input |
| | | v-model="formInline.file" |
| | | style="width: 300px; margin-right: 20px" |
| | | :placeholder="$t('common.choose')" |
| | | disabled |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile( )" |
| | | <div style="height:68vh"> |
| | | <el-form |
| | | :model="formInline" |
| | | class="demo-form-inline" |
| | | label-position="top" |
| | | > |
| | | <el-form-item> |
| | | <el-input |
| | | v-model="formInline.file" |
| | | style="width: 300px; margin-right: 20px" |
| | | :placeholder="$t('common.choose')" |
| | | disabled |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile( )" |
| | | /> |
| | | <el-link |
| | | @click="getInsertFile( )" |
| | | :underline="false" |
| | | ><i class="el-icon-folder-opened"></i></el-link> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-row> |
| | | <el-col :span="3"> |
| | | <el-link |
| | | v-if="btnStatus.insert" |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachInsert" |
| | | >{{$t('common.append')}}</el-link> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-link |
| | | v-if="btnStatus.delete" |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachDel" |
| | | >{{$t('common.delete')}}</el-link> |
| | | </el-col> |
| | | <!-- <el-col :span="3"> <el-link class="elLink" :underline="false" >{{$t('common.reset')}}</i></el-link></el-col> --> |
| | | </el-row> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table |
| | | :data="tableAttach" |
| | | ref="filterTable" |
| | | height="calc(100% - 130px)" |
| | | border |
| | | style="width: 100%" |
| | | @selection-change="handleAttatchChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="70" |
| | | /> |
| | | <el-link |
| | | @click="getInsertFile( )" |
| | | :underline="false" |
| | | ><i class="el-icon-folder-opened"></i></el-link> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-row> |
| | | <el-col :span="3"> |
| | | <el-link |
| | | v-if="btnStatus.insert" |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachInsert" |
| | | >{{$t('common.append')}}</i></el-link> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-link |
| | | v-if="btnStatus.delete" |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachDel" |
| | | >{{$t('common.delete')}}</i></el-link> |
| | | </el-col> |
| | | <!-- <el-col :span="3"> <el-link class="elLink" :underline="false" >{{$t('common.reset')}}</i></el-link></el-col> --> |
| | | </el-row> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-table |
| | | :data="tableAttach" |
| | | ref="filterTable" |
| | | height="100%" |
| | | border |
| | | style="width: 100%" |
| | | @selection-change="handleAttatchChange" |
| | | <el-table-column |
| | | width="60" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | :label="$t('common.fileNme')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | :formatter="statSizeChange" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | :label="$t('common.operate')" |
| | | min-width="100" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | width="60" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | | <el-table-column |
| | | prop="date" |
| | | :label="$t('common.fileNme')" |
| | | /> |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="matchState(scope, /[]/)" |
| | | @click="setAttatchDetail(scope.$index, scope.row)" |
| | | class="elLink" |
| | | >{{ $t('common.see') }}</el-link> |
| | | |
| | | <el-table-column |
| | | prop="name" |
| | | :label="$t('common.filePath')" |
| | | /> |
| | | |
| | | </el-table> |
| | | </el-form-item> |
| | | <!-- <el-form-item> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col |
| | | :span="12" |
| | | :offset="8" |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="dialogFormVisible = false" |
| | | >确认</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="dialogFormVisible = false" |
| | | >取消</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | width="37%" |
| | | :visible.sync="conditionVisible" |
| | | title="查询条件" |
| | | title="高级查询" |
| | | :before-close="handleconditionClose" |
| | | width="44%" |
| | | > |
| | | |
| | | <el-form |
| | | :inline="true" |
| | | :inline=" |
| | | true" |
| | | :model="formSql" |
| | | class="demo-form-inline" |
| | | label-position="top" |
| | | > |
| | | |
| | | <el-form-item> |
| | | <el-select |
| | | @change="fieldChange($event)" |
| | |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | |
| | | <span |
| | | slot="footer" |
| | | class="dialog-footer" |
| | |
| | | >确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | :title=" $t('synthesis.rangequery')" |
| | | :visible.sync="dialogMapVisible" |
| | |
| | | > |
| | | <div style="height:700px"> |
| | | <map-sdk v-if='showMapVisible'></map-sdk> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="预览" |
| | | :append-to-body="false" |
| | | :visible.sync="dialog.dialogVisible" |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div |
| | | v-if="dialog.isPdf" |
| | | class="pdfClass" |
| | | > |
| | | <iframe |
| | | :src="dialog.src" |
| | | type="application/x-google-chrome-pdf" |
| | | width="100%" |
| | | height="100%" |
| | | > |
| | | </iframe> |
| | | </div> |
| | | <div |
| | | v-if="dialog.isJpg" |
| | | class="pdfClass" |
| | | > |
| | | <img |
| | | style="width:100%; height:100%" |
| | | :src="dialog.src" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="attribute.title" |
| | | :append-to-body="false" |
| | | :visible.sync="AttributedialogVisible" |
| | | width="80%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="attributeBox"> |
| | | <div class="attrubuteLeft"> |
| | | <ul> |
| | | <li |
| | | v-for="item in attrbuteOption" |
| | | :class="{active:attributeFlag === item.name}" |
| | | @click="setChangeAttrubuteData(item)" |
| | | > |
| | | {{item.name}} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div class="attrubuteRight"> |
| | | <el-table |
| | | ref="refAttributeTable" |
| | | :data="attributeTable" |
| | | style="width:100%;" |
| | | border |
| | | height="calc(100% - 50px)" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | align="center" |
| | | /> |
| | | |
| | | <el-table-column |
| | | min-width="135" |
| | | v-for="(item, index) in attributeFild" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | ></el-table-column> |
| | | |
| | | </el-table> |
| | | <div |
| | | class="pagination_box" |
| | | style="margin-top: 10px" |
| | | > |
| | | <el-pagination |
| | | @size-change="attributeSizeChange" |
| | | @current-change="attributeCurrentChange" |
| | | :current-page="attribute.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="attribute.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="attribute.count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | fromSqlflag: false, |
| | | tree: [ |
| | | { |
| | | tabDesc: "基础数据", |
| | | label: "基础数据", |
| | | value: "BD", |
| | | ns: "bd", |
| | | id: 1, |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 2, |
| | | tabDesc: "业务数据", |
| | | label: "业务数据", |
| | | value: "BS", |
| | | ns: "bs", |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 3, |
| | | tabDesc: "元数据", |
| | | label: "元数据", |
| | | value: "MD", |
| | | ns: "md", |
| | | children: [], |
| | | }, |
| | | ], |
| | | tableAttach: [], |
| | | filedsOption: [], |
| | |
| | | eventid: null, |
| | | }, |
| | | filterText: "", |
| | | dialog: { |
| | | dialogVisible: false, |
| | | isPdf: false, |
| | | isJpg: false, |
| | | src: '' |
| | | }, |
| | | AttributedialogVisible: false, |
| | | attribute: { |
| | | name: null, |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | count: 0, |
| | | title: null |
| | | }, |
| | | attrbuteOption: [], |
| | | attributeFlag: null, |
| | | attributeTable: [], |
| | | attributeLayer: null, |
| | | attributeFild: null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | //分页点击事件 |
| | | attributeSizeChange(val) { |
| | | this.attribute.pageSize = val; |
| | | this.attribute.pageIndex = 1; |
| | | //获取table信息 |
| | | this.setAttributeTableData(this.attributeLayer); |
| | | }, |
| | | attributeCurrentChange(val) { |
| | | this.attribute.pageIndex = val; |
| | | //获取table信息 |
| | | this.setAttributeTableData(this.attributeLayer); |
| | | }, |
| | | getAttributeTable(idnex, row) { |
| | | this.attribute.title = row.workname; |
| | | this.attrbuteOption = workSite; |
| | | |
| | | this.AttributedialogVisible = true; |
| | | this.setChangeAttrubuteData(this.attrbuteOption[0]) |
| | | }, |
| | | setChangeAttrubuteData(res) { |
| | | this.attributeFlag = res.name; |
| | | this.attribute.pageIndex = 1; |
| | | this.attribute.pageSize = 10; |
| | | this.attribute.count = 0; |
| | | this.attributeLayer = res; |
| | | this.setAttributeTableData(res) |
| | | }, |
| | | setAttributeTableData(res) { |
| | | var name = res.table.replaceAll("_", ""); |
| | | this.attribute.name = name; |
| | | var value = this.getAttributeDomFiled(name) |
| | | this.getAttributeTableData(value, res) |
| | | }, |
| | | |
| | | //获取每个表字段名称及阈值 |
| | | async getAttributeDomFiled(res) { |
| | | //查询字段信息; |
| | | const fileds = await dataQuery_selectFields({ |
| | | name: res, |
| | | }); |
| | | if (fileds.code != 200) { |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | |
| | | //查询阈值信息; |
| | | const domains = await dataQuery_selectDomains({ |
| | | name: res, |
| | | }); |
| | | if (domains.code != 200) { |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | var data1 = fileds.result; |
| | | var data2 = domains.result; |
| | | var std = []; |
| | | this.filedsOption = []; |
| | | for (var i in data1) { |
| | | if (data1[i].type != 'geometry' && data1[i].type) { |
| | | |
| | | this.filedsOption.push(data1[i]); |
| | | } |
| | | if (data1[i].showtype == 1) { |
| | | if (data1[i].domainNa != null) { |
| | | data1[i].domainNa = this.getDomainNaFild(data1[i].domainNa, data2); |
| | | } |
| | | std.push(data1[i]); |
| | | } |
| | | } |
| | | return std; |
| | | }, |
| | | |
| | | //获取表格信息 |
| | | async getAttributeTableData(res, result) { |
| | | res.then((val) => { |
| | | this.attributeFild = val; |
| | | }); |
| | | |
| | | this.attribute.filter = "workname = " + "'" + this.attribute.title + "'"; |
| | | |
| | | |
| | | const data = await dataQuery_selectByPage(this.attribute); |
| | | if (data.code != 200) { |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | this.attributeTable = [] |
| | | var res_val = this.attributeFild; |
| | | this.attribute.count = data.count; |
| | | for (var i in data.result) { |
| | | let val_Data = data.result[i]; |
| | | |
| | | for (var j in res_val) { |
| | | if (res_val[j].domainNa != null && res_val[j].domainNa != undefined) { |
| | | val_Data[res_val[j].field] = res_val[j].domainNa; |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.attributeTable = data.result; |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | matchState1(state = "", reg) { |
| | | var row = state.row; |
| | | if ( |
| | | this.listData.name == "ssurveyworksite" |
| | | ) { |
| | | return true; |
| | | } |
| | | return false; |
| | | }, |
| | | statSizeChange(row, column) { |
| | | return this.stateFormatSizes(row.sizes) |
| | | }, |
| | | stateFormatSizes(res) { |
| | | if (res >= 1024) { |
| | | const val = parseFloat(res / 1024).toFixed(3); |
| | | return val + ' GB'; |
| | | } else { |
| | | return res + ' MB'; |
| | | } |
| | | }, |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | return data.label.indexOf(value) !== -1; |
| | |
| | | .then((_) => { |
| | | this.closeMapDown(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | closeMapDown() { |
| | | this.dialogMapVisible = false; |
| | |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | }, |
| | | |
| | | refreshAttatchDetail() { |
| | | this.dialog.src = ""; |
| | | this.dialog.dialogVisible = false; |
| | | this.dialog.isPdf = false; |
| | | this.dialog.isJpg = false; |
| | | }, |
| | | //附件查看 |
| | | setAttatchDetail(index, row) { |
| | | |
| | | this.refreshAttatchDetail() |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isPdf = true; |
| | | var url = BASE_URL + "/comprehensive/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } else if (name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isJpg = true; |
| | | var url = BASE_URL + "/comprehensive/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } |
| | | }, |
| | | |
| | | matchState(state = "", reg) { |
| | | var row = state.row; |
| | | var name = row.name; |
| | | |
| | | if (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; |
| | | }, |
| | | |
| | | |
| | | async setAttachDel() { |
| | | var std = []; |
| | | for (var i in this.attacgSelection) { |
| | |
| | | |
| | | $.ajax( |
| | | BASE_URL + |
| | | "/dataQuery/uploadFiles?token=" + |
| | | token + |
| | | "&tabName= " + |
| | | this.upAttach.tabName + |
| | | "&eventid=" + |
| | | this.upAttach.eventid, |
| | | "/dataQuery/uploadFiles?token=" + |
| | | token + |
| | | "&tabName=" + |
| | | this.upAttach.tabName + |
| | | "&eventid=" + |
| | | this.upAttach.eventid, |
| | | { |
| | | type: "post", |
| | | data: formData, |
| | |
| | | this.formInline = { |
| | | file: "", |
| | | }; |
| | | |
| | | this.getAttacthFlieList(); |
| | | }, |
| | | error: (e) => { |
| | |
| | | }, |
| | | async getAttacthFlieList() { |
| | | var obj = this.upAttach; |
| | | |
| | | const res = await dataQuery_selectFiles(obj); |
| | | if (res.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | | var option = data.result; |
| | | var val = data.result; |
| | | |
| | | for (var i in option) { |
| | | var val_Data = option[i]; |
| | | val_Data.id = "1" + i; |
| | | // val_Data.label = val_Data.tabDesc + "(" + val_Data.tab + ")" |
| | | val_Data.label = val_Data.tabDesc; |
| | | option[i].id = parseInt(option[i].id); |
| | | for (var j in this.tree) { |
| | | if (this.tree[j].ns == option[i].ns) { |
| | | this.tree[j].children.push(val_Data); |
| | | } |
| | | // for (var i in option) { |
| | | // var val_Data = option[i]; |
| | | // val_Data.id = "1" + i; |
| | | // // val_Data.label = val_Data.tabDesc + "(" + val_Data.tab + ")" |
| | | // val_Data.label = val_Data.tabDesc; |
| | | // option[i].id = parseInt(option[i].id); |
| | | // for (var j in this.tree) { |
| | | // if (this.tree[j].ns == option[i].ns) { |
| | | // this.tree[j].children.push(val_Data); |
| | | // } |
| | | // } |
| | | |
| | | // } |
| | | var std = []; |
| | | val.filter((item) => { |
| | | if (std.indexOf(item.bak) == -1) { |
| | | std.push(item.bak); |
| | | this.tree.push( |
| | | { |
| | | val: item.bak, |
| | | label: item.bak, |
| | | children: [], |
| | | } |
| | | ) |
| | | } |
| | | // if (option[i].ns == 'bd') { |
| | | }); |
| | | |
| | | // this.tree[0].children.push(val_Data); |
| | | // } else { |
| | | // this.tree[1].children.push(val_Data); |
| | | // } |
| | | } |
| | | this.tree.filter((item) => { |
| | | val.filter((res) => { |
| | | if (item.val === res.bak) { |
| | | res.label = res.tabDesc |
| | | item.children.push(res) |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | this.handleNodeClick(this.tree[0].children[0]); |
| | | }, |
| | | //授权管理 |
| | |
| | | handleNodeClick(data) { |
| | | //判断点击是否为子节点 |
| | | if (data.children != null) return; |
| | | |
| | | this.listData.name = data.entity; //要查询表格类型; |
| | | this.getClickTable = data; |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | |
| | | this.count = 0; |
| | | this.upAttach.tabName = data.ns + "." + data.tab; |
| | | this.filedsLayer = this.getCollapseDomFiled(); //获取每个表字段名称及阈值 |
| | |
| | | this.$message.error("调用列表失败,请联系工作人员!"); |
| | | return; |
| | | } |
| | | this.tableData = [] |
| | | var res_val = this.attributeData; |
| | | this.count = data.count; |
| | | for (var i in data.result) { |
| | |
| | | } |
| | | |
| | | this.tableData = data.result; |
| | | this.$refs.filterTable.doLayout(); |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.refTableData.doLayout(); |
| | | }); |
| | | }, |
| | | //获取每个表字段名称及阈值 |
| | | async getCollapseDomFiled() { |
| | |
| | | var data1 = fileds.result; |
| | | var data2 = domains.result; |
| | | var std = []; |
| | | this.filedsOption = []; |
| | | for (var i in data1) { |
| | | if (data1[i].type != "geomtry" && data1[i].type != "null") { |
| | | if (data1[i].type != 'geometry' && data1[i].type) { |
| | | |
| | | this.filedsOption.push(data1[i]); |
| | | } |
| | | if (data1[i].showtype == 1) { |
| | |
| | | .then((_) => { |
| | | this.startFiledAndcondition(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | |
| | | fieldChange(value) { |
| | |
| | | this.formSql.field + " " + this.formSql.condition + " " + val; |
| | | |
| | | this.startFiledAndcondition(); |
| | | this.submitForm(); |
| | | }, |
| | | |
| | | //值域字段匹配 |
| | |
| | | // this.getMetaCount(""); |
| | | // }); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }, |
| | | // 获取多选选中的对象 |
| | | handleSelectionChange(val) { |
| | |
| | | // }); |
| | | // }); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | .Spatialbox { |
| | | height: 98%; |
| | | width: 98%; |
| | | |
| | | padding: 1%; |
| | | padding: 0.5%; |
| | | .spatialContent { |
| | | width: 100%; |
| | | height: calc(100% - 75px); |
| | | padding-top: 10px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | justify-content: space-around; |
| | | .spatial_leftTree { |
| | | width: calc(23% - 0px); |
| | | height: 100%; |
| | |
| | | width: 75%; |
| | | height: 100%; |
| | | border-radius: 5px; |
| | | padding: 10px; |
| | | padding: 0px; |
| | | box-sizing: border-box; |
| | | border: 1px solid #dcdfe6; |
| | | } |
| | | } |
| | | .pdfClass { |
| | | height: 70vh; |
| | | width: 100%; |
| | | position: relative; |
| | | } |
| | | .attributeBox { |
| | | height: 63vh; |
| | | width: 100%; |
| | | position: relative; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .attrubuteLeft { |
| | | width: calc(20% - 20px); |
| | | height: calc(100% - 20px); |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 5px; |
| | | padding: 10px; |
| | | li { |
| | | border-bottom: 1px solid #dcdfe6; |
| | | line-height: 30px; |
| | | text-align: center; |
| | | } |
| | | li:hover { |
| | | background: rgba(255, 255, 255, 0.3); |
| | | color: #409eff; |
| | | } |
| | | .active { |
| | | color: #409eff; |
| | | } |
| | | } |
| | | .attrubuteRight { |
| | | width: 79%; |
| | | height: 100%; |
| | | border: 1px solid #dcdfe6; |
| | | border-radius: 5px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .table_box2 { |
| | | border-radius: 5px; |
| | | padding: 10px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .contentshujutou { |
| | | padding: 8px; |
| | | // margin-top: 10px; |
| | | border-radius: 5px; |
| | | border: 1px solid #dcdfe6; |
| | | margin-bottom: 20px; |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |