Commit c8cb93fe authored by 仇晓婷's avatar 仇晓婷

dd

parent 0b3d06b6
......@@ -4,10 +4,7 @@
<Sider width="300" v-if="showMenu">
<div class="p-list">
<h3>
<!-- <Select v-model="model8" clearable style="width:130px;float:left;margin-top:8px" @on-change='chnangeClick' placeholder="请选择类型">
<Option v-for="item in cityList" :value="item.id" :key="item.id">{{ item.name }}</Option>
</Select>
</Select>-->
<Dropdown @on-click="clickItem">
<a href="javascript:void(0)">
{{downName}}
......@@ -23,7 +20,7 @@
</Dropdown>
<div class="fr mr10 mt10">
<ButtonGroup class="fr ddi" size="small">
<!-- <Button icon="md-add" title="新增顶级" @click="addNew"></Button> -->
<Button
:icon="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
@click="toggle"
......@@ -76,8 +73,7 @@ export default {
categoryId: 0,
rootCategoryId: 0,
ids: [],
addChange: true,
codeRuleId:0,
addChange: true
},
downName: "请选择类型",
modal: false,
......@@ -86,7 +82,7 @@ export default {
detail: null,
showMenu: true,
dataList: [],
// codeRuleId: ""
codeRuleId: ""
};
},
async fetch({ store, params }) {
......@@ -98,9 +94,9 @@ export default {
},
methods: {
clickItem(val) {
this.nodeInfo.codeRuleId = val;
this.codeRuleId = val;
this.model8 = val;
this.loadTree( this.nodeInfo.codeRuleId);
this.loadTree(this.codeRuleId);
this.cityList.forEach(e => {
if (val == e.id) {
this.downName = e.name;
......@@ -117,20 +113,26 @@ export default {
this.cityList = r.result.items;
this.downName = this.cityList[0].name;
this.model8 = this.cityList[0].id;
// this.nodeInfo.codeRuleId = this.cityList[0].id;
this.nodeInfo.codeRuleId = this.cityList[0].id;
this.loadTree(this.nodeInfo.codeRuleId);
});
},
// chnangeClick(val){
// this.codeRuleId = val;
// this.loadTree(this.codeRuleId);
// },
showMenuFn() {
//this.$Message.info("展开左侧树")
this.showMenu = true;
},
ok(row) {
this.loadTree(this.codeRuleId);
// this.modal = false;
// this.curId = 0;
// if (row) {
// this.dataList.map((e, index) => {
// if (e.id == row.id) {
// this.$set(this.$refs.dataTable.dataColumns, index, row);
// }
// });
// }
},
cancel() {
this.curId = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment