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>
......
......@@ -226,7 +226,7 @@
</div>
</div>
</div>
<xxxx v-if="!bjztFlag"></xxxx>
<!-- 右键菜单弹出框 -->
......@@ -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) {
......@@ -584,7 +585,7 @@ export default {
getHbsm(data, type) {
if (type) {
// 双击
} else {
//单击 TO DO
this.bsms = data;
......@@ -594,7 +595,7 @@ export default {
getQsztList(data, type) {
if (type) {
// 双击
} else {
//单击 TO DO
this.qsztList = data;
......
......@@ -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
}
})
},
......@@ -643,16 +643,16 @@ export default {
self.fghbChoosedList.push(hs);
break;
case 'isFwsxbg':
break;
case 'isCxlz':
break;
case 'isLpb':
this.$parent.getHbsm(this.hbsmList, false);
this.$parent.getQsztList(this.hqsztList, false);
break;
default:
break;
}
......@@ -664,10 +664,10 @@ export default {
self.fghbChoosedList = self.fghbChoosedList.filter(i=>i!=hs)
break;
case 'isFwsxbg':
break;
case 'isCxlz':
break;
case 'isLpb':
this.hbsmList = this.hbsmList.filter(i=>i!=bsm);
......@@ -675,7 +675,7 @@ export default {
this.$parent.getHbsm(this.hbsmList, false);
this.$parent.getQsztList(this.hqsztList, false);
break;
default:
break;
}
......@@ -692,7 +692,7 @@ export default {
this.$refs.hbj.getHInfo(this.hbsm);
});
// if (this.isHbfg) {
// }else{
// this.hbsmList.push(bsm); // 将户bsm放进hbsmList
// this.$parent.getHbsm(bsm, true);
......@@ -781,7 +781,7 @@ export default {
this.rightClickFlag = type;
this.lpbChVisible = true;
break;
default:
break;
}
......@@ -800,7 +800,7 @@ export default {
if (e.target.className.indexOf("tdSelect") == -1) {
//未选中→选中
e.target.className += " tdSelect"; //加边框
this.cbsmList.push(item.bsm);
this.cbsmList.push(item.bsm);
} else {
//选中→未选中
e.target.className = "floor";
......@@ -808,7 +808,7 @@ export default {
}
this.$parent.getCbsm(this.cbsmList);
}else{
}
},
//关闭右键菜单
......@@ -901,7 +901,7 @@ export default {
type: "warning",
})
.then(() => {
//确定合并 调用合并接口 this.hbsmList为选中户bsm数组 TO DO
//确定合并 调用合并接口 this.hbsmList为选中户bsm数组 TO DO
let params = {
"newuserbsm": "",
"oldBsms": olbBsms,
......@@ -972,7 +972,7 @@ export default {
});
}
}).catch((error) => {
});
}).catch(() => {
......@@ -1191,7 +1191,7 @@ export default {
width: calc(100% - 32px);
height: 40px;
// background-color: darkorange;
}
}
.mt30{
......