| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.dataUpObj.entryTime')"> |
| | | <el-date-picker |
| | | v-model.trim="formInline.gather" |
| | | :picker-options="pickerOptions" |
| | | type="datetime" |
| | | placeholder="请选择" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <input id="uploadfile" @change= "handleFileChange" type="file" name="file" multiple="multiple" accept=".xls,.xlsx,.mdb,.shp.zip,.gdb.zip" style="display: none"></input> |
| | | <el-button icon="el-icon-document-add" @click="fileSelect" class="primary">{{ |
| | | <!-- <el-button icon="el-icon-document-add" @click="fileSelect" class="primary">{{ |
| | | $t('common.file') |
| | | }}</el-button> |
| | | }}</el-button> --> |
| | | |
| | | <el-input v-model="formInline.fileName" disabled> |
| | | <template slot="append"> |
| | | <el-button v-if="formInline.fileName == '未选择文件'" |
| | | type="info" |
| | | @click="fileSelect"> |
| | | 选择文件 |
| | | </el-button> |
| | | <el-button |
| | | v-else |
| | | type="info" |
| | | @click="clearFileSelect" |
| | | > |
| | | 重置 |
| | | </el-button> |
| | | </template> |
| | | </el-input> |
| | | |
| | | |
| | | |
| | | </el-form-item> |
| | | <br /> |
| | | <el-form-item :label="$t('dataManage.dataUpObj.describe')"> |
| | |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | |
| | | width="55"> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | width="70px" |
| | | fixed |
| | | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="name" |
| | | :label="$t('common.name')" |
| | | fixed |
| | | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="dirName" |
| | | :label="$t('dataManage.dataUpObj.catalogue')" |
| | | fixed |
| | | |
| | | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="depName" |
| | | :label="$t('dataManage.dataUpObj.company')" |
| | | fixed |
| | | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="verName" |
| | | :label="$t('dataManage.dataUpObj.versionNo')" |
| | | fixed |
| | | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="type" |
| | | :label="$t('common.type')" |
| | | fixed |
| | | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | fixed |
| | | |
| | | :formatter="changeSizeFile" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | :label="$t('dataManage.dataUpObj.tableName')" |
| | | fixed |
| | | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <a @click="detail(scope.row)" >{{ |
| | |
| | | align="center" |
| | | prop="createTime" |
| | | :label="$t('dataManage.vmobj.createontime')" |
| | | |
| | | :formatter="changetimeFile" |
| | | /> |
| | | </el-table> |
| | |
| | | <el-dialog |
| | | :title="$t('dataManage.datawarehousing')" |
| | | :visible.sync="dialogWarehousing" |
| | | width="50%" |
| | | width="70%" |
| | | :before-close="handleWareClose" |
| | | > |
| | | <div class="dialogBox"> |
| | |
| | | </div> |
| | | <div class="transFarBox"> |
| | | <ul> |
| | | <li @click="singleElection2(item)" v-for="(item, i) in tableWareTwo" :class="{ active: activeName2 == item.entity }">{{item.tabDesc}} ( {{item.tab}})</li> |
| | | <li @click="singleElection2(item)" v-for="(item, i) in tableWareTwo" :class="{ active: activeName2 == item.entity }">{{item.tabDesc}} ( {{item.ns}}.{{item.tab}})</li> |
| | | </ul> |
| | | </div> |
| | | <div class="tarnsbtton"> |
| | |
| | | </div> |
| | | <div class="transFarBox"> |
| | | <ul> |
| | | <li @click="singleElection3(i)" v-for="(item, i) in tableWareThree" :class="{ active: activeName3 ==( item.tab+i)}">{{item.tab}} ( {{item.tabDesc}}:{{item.entity}} )</li> |
| | | <li @click="singleElection3(i)" v-for="(item, i) in tableWareThree" :class="{ active: activeName3 ==( item.tab+i)}">{{item.tab}} ( {{item.tabDesc}} {{item.ns}}.{{item.tabs}} )</li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | formWarehousing: { |
| | | name:'' |
| | | name: '', |
| | | |
| | | }, |
| | | waretableData:[], |
| | | activeTabName:'first', |
| | |
| | | formInline: { |
| | | verid: '', |
| | | gather: '', |
| | | fileName:'未选择文件' |
| | | }, |
| | | tableWareOne: [], |
| | | tableWareTwo: [], |
| | |
| | | this.$message.error('字段列表调用失败'); |
| | | return |
| | | } |
| | | var val_data= data.result; |
| | | for(var i in val_data){ |
| | | if(val_data[i].alias.indexOf('ID') != -1){ |
| | | val_data[i].alias = val_data[i].alias.replace('ID','') |
| | | } |
| | | } |
| | | this.dialogVisible = true; |
| | | this.attributeData =data.result; |
| | | this.attributeData = val_data; |
| | | |
| | | this.listLoader={ |
| | | id:res.id, |
| | | pageIndex:1, |
| | |
| | | if(data1.code != 200){ |
| | | this.$message.error('字段列表调用失败'); |
| | | return |
| | | } |
| | | var val = data1.result; |
| | | for(var i in val){ |
| | | val[i].createuser = val[i].createName; |
| | | val[i].depid= val[i].depName; |
| | | val[i].dirid= val[i].dirName; |
| | | val[i].verid= val[i].verName; |
| | | val[i].updateuser= val[i].updateName; |
| | | if(val[i].createtime != null){ |
| | | val[i].createtime= this.changetimeLayer(val[i].createtime ) |
| | | } |
| | | if(val[i].updatetime != null){ |
| | | val[i].updatetime= this.changetimeLayer(val[i].updatetime ) |
| | | } |
| | | } |
| | | this.dbTableData =data1.result; |
| | | this.count1 = data1.count; |
| | |
| | | this.getDataLoaderSelectDbData(); |
| | | }, |
| | | |
| | | |
| | | |
| | | changetimeFile(res){ |
| | | |
| | | //shijianchuo是整数,否则要parseInt转换 |
| | | var time = new Date(res.createTime); |
| | | changetimeLayer(res){ |
| | | var time = new Date(res ); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | |
| | | ':' + |
| | | s |
| | | ); |
| | | }, |
| | | |
| | | changetimeFile(res) { |
| | | return this.changetimeLayer(res.createTime) |
| | | }, |
| | | //格式化时间 |
| | | add0(m) { |
| | |
| | | std.push(val1[i].tab) |
| | | val1[i].entity = val2[j].entity; |
| | | val1[i].tabDesc= val2[j].tabDesc; |
| | | val1[i].tabs=val2[j].tab; |
| | | val1[i].ns=val2[j].ns; |
| | | |
| | | this.tableWareThree.push(val1[i]); |
| | | } |
| | | } |
| | |
| | | message: '数据上传成功', |
| | | type: 'success' |
| | | }); |
| | | |
| | | this.clearFileSelect(); |
| | | }, |
| | | error: (rs) => { |
| | | this.$message.error('数据上传失败'); |
| | | this.clearFileSelect(); |
| | | } |
| | | }); |
| | | |
| | |
| | | fileSelect() { |
| | | $("#uploadfile").click(); |
| | | }, |
| | | handleFileChange() { |
| | | var fs = document.getElementById("uploadfile"); |
| | | handleFileChange(event) { |
| | | |
| | | // var fs = document.getElementById("uploadfile"); |
| | | var f = event.currentTarget.files[0] |
| | | this.formInline.fileName = f.name; |
| | | |
| | | }, |
| | | clearFileSelect(){ |
| | | this.formInline.fileName="未选择文件"; |
| | | document.getElementById("uploadfile").value = ""; |
| | | }, |
| | | //当前时间获取 |
| | | timeDefault() { |
| | |
| | | background-color: #216fe6; |
| | | } |
| | | } |
| | | |
| | | } |
| | | .primary { |
| | | background: #409eff; |