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

dd

parent 0b3d06b6
...@@ -4,10 +4,7 @@ ...@@ -4,10 +4,7 @@
<Sider width="300" v-if="showMenu"> <Sider width="300" v-if="showMenu">
<div class="p-list"> <div class="p-list">
<h3> <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"> <Dropdown @on-click="clickItem">
<a href="javascript:void(0)"> <a href="javascript:void(0)">
{{downName}} {{downName}}
...@@ -23,7 +20,7 @@ ...@@ -23,7 +20,7 @@
</Dropdown> </Dropdown>
<div class="fr mr10 mt10"> <div class="fr mr10 mt10">
<ButtonGroup class="fr ddi" size="small"> <ButtonGroup class="fr ddi" size="small">
<!-- <Button icon="md-add" title="新增顶级" @click="addNew"></Button> -->
<Button <Button
:icon="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'" :icon="expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
@click="toggle" @click="toggle"
...@@ -76,8 +73,7 @@ export default { ...@@ -76,8 +73,7 @@ export default {
categoryId: 0, categoryId: 0,
rootCategoryId: 0, rootCategoryId: 0,
ids: [], ids: [],
addChange: true, addChange: true
codeRuleId:0,
}, },
downName: "请选择类型", downName: "请选择类型",
modal: false, modal: false,
...@@ -86,7 +82,7 @@ export default { ...@@ -86,7 +82,7 @@ export default {
detail: null, detail: null,
showMenu: true, showMenu: true,
dataList: [], dataList: [],
// codeRuleId: "" codeRuleId: ""
}; };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
...@@ -98,9 +94,9 @@ export default { ...@@ -98,9 +94,9 @@ export default {
}, },
methods: { methods: {
clickItem(val) { clickItem(val) {
this.nodeInfo.codeRuleId = val; this.codeRuleId = val;
this.model8 = val; this.model8 = val;
this.loadTree( this.nodeInfo.codeRuleId); this.loadTree(this.codeRuleId);
this.cityList.forEach(e => { this.cityList.forEach(e => {
if (val == e.id) { if (val == e.id) {
this.downName = e.name; this.downName = e.name;
...@@ -117,20 +113,26 @@ export default { ...@@ -117,20 +113,26 @@ export default {
this.cityList = r.result.items; this.cityList = r.result.items;
this.downName = this.cityList[0].name; this.downName = this.cityList[0].name;
this.model8 = this.cityList[0].id; 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); this.loadTree(this.nodeInfo.codeRuleId);
}); });
}, },
// chnangeClick(val){
// this.codeRuleId = val;
// this.loadTree(this.codeRuleId);
// },
showMenuFn() { showMenuFn() {
//this.$Message.info("展开左侧树") //this.$Message.info("展开左侧树")
this.showMenu = true; this.showMenu = true;
}, },
ok(row) { ok(row) {
this.loadTree(this.codeRuleId); 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() { cancel() {
this.curId = 0; 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