10062067 by weimo934

feat():属性导入修改

1 parent 5374e1e6
......@@ -72,10 +72,10 @@
<el-col :span="7" style="display: inline-block;">
<el-select v-model="dzhbhData.xzqbsm" value-key="xzqbsm" placeholder="行政区" @change="changeXzq(dzhbhData.xzqbsm)" disabled>
<el-option
v-for="item in xzq"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
v-for="xzqItem in xzq"
:key="xzqItem.bsm"
:label="xzqItem.mc"
:value="xzqItem.bsm">
</el-option>
</el-select>
</el-col>
......@@ -83,10 +83,10 @@
<el-col :span="7">
<el-select v-model="dzhbhData.djqbsm" placeholder="地籍区" @change="changeDjq(dzhbhData.djqbsm)" disabled>
<el-option
v-for="item in djq"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
v-for="djqItem in djq"
:key="djqItem.bsm"
:label="djqItem.mc"
:value="djqItem.bsm">
</el-option>
</el-select>
</el-col>
......@@ -94,10 +94,10 @@
<el-col :span="8">
<el-select v-model="dzhbhData.djzqbsm" placeholder="地籍子区" @change="$forceUpdate()" disabled>
<el-option
v-for="item in djzq"
:key="item.bsm"
:label="item.mc"
:value="item.bsm">
v-for="djzqItem in djzq"
:key="djzqItem.bsm"
:label="djzqItem.mc"
:value="djzqItem.bsm">
</el-option>
</el-select>
</el-col>
......
......@@ -14,16 +14,19 @@
:show-file-list="false"
multiple
>
<el-button type="primary">上传</el-button>
<el-button type="primary" icon="iconfont iconshangchuan">上传</el-button>
<el-button type="primary" @click="downloadTemplate">下载模板</el-button>
<!-- <a href=`/api/tx/excelGeo/template?type=${dylx}`>下载模板</a>-->
</el-upload>
</div>
<ul>
<li v-for="(item,index) in errorData" :key="index">{{item}}</li>
</ul>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确 定</el-button>
</span>
</el-dialog>
</div>
......@@ -59,6 +62,12 @@
this.$store.state.sxdrType = '';
},
methods: {
cancel(){
this.close()
},
confirm(){
console.log("确定....")
},
loading() {
this.$store.state.sxdrType = this.dylx;
},
......@@ -71,7 +80,7 @@
this.reset();
},
downloadTemplate() {
window.open(`/api/tx/excelGeo/template?type=` + this.dylx);
window.open(`/api/tx/excelGeo/template?type=${this.dylx}`);
},
uploadSuccess(res, file, fileList) {
this.errorData = [];
......
......@@ -14,7 +14,7 @@
:on-exceed="handleExceed"
:disabled="isDisabled"
>
<el-button size="small" type="primary" :disabled="isDisabled" >上传</el-button>
<el-button size="small" type="primary" :disabled="isDisabled" icon="iconfont iconshangchuan">上传</el-button>
</el-upload>
<table border="2">
<tr>
......
......@@ -364,7 +364,7 @@
</tr>
</table>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled">保存</el-button>
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="el-icon-search">保存</el-button>
<el-button type="primary" @click="submitZDxx" :disabled="disabled">提交</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
......
......@@ -423,7 +423,8 @@ export default {
}
},
loading(){
this.getLpbMenuTree(this.$store.state.zrzbsm);
//this.getLpbMenuTree(this.$store.state.zrzbsm);
this.getlpbData();
},
openPlC(){
if (this.cbsmList.length <= 0) {
......
......@@ -621,7 +621,7 @@ export default {
this.$nextTick(()=>{
this.lpbContentWidth = this.zdyWidth > this.ljzWidth ?this.zdyWidth - 20 : this.ljzWidth-20;
if (this.lpbContentWidth == 0) {
this.lpbContentWidth = this.$refs.lpbContent.offsetWidth
//his.lpbContentWidth = this.$refs.lpbContent.offsetWidth
}
})
},
......