| | |
| | | <template> |
| | | <div style="width: 100%;height: 100%;display: flex;background-color: white;" > |
| | | <div |
| | | style="width: 100%; height: 100%; display: flex; background-color: white" |
| | | > |
| | | <!-- <el-input/> --> |
| | | <vol-box :width="940" :mask="true" :height="500" title="徿 å表" v-model="model"> |
| | | <vol-box |
| | | :width="940" |
| | | :mask="true" |
| | | :height="500" |
| | | title="徿 å表" |
| | | v-model="model" |
| | | > |
| | | <Icons :onSelect="onSelect"></Icons> |
| | | <template #footer> |
| | | <el-button type="primary" size="mini" @click="model = false">确 认</el-button> |
| | | <el-button type="primary" size="mini" @click="model = false" |
| | | >确 认</el-button |
| | | > |
| | | </template> |
| | | </vol-box> |
| | | <vol-box :width="600" :mask="true" :height="270" title="å
¶ä»æé" v-model="actionModel"> |
| | | <vol-form ref="actionForm" :formRules="actionOptions" :formFields="actionFields"> |
| | | <vol-box |
| | | :width="600" |
| | | :mask="true" |
| | | :height="270" |
| | | title="å
¶ä»æé" |
| | | v-model="actionModel" |
| | | > |
| | | <vol-form |
| | | ref="actionForm" |
| | | :formRules="actionOptions" |
| | | :formFields="actionFields" |
| | | > |
| | | <template #header> |
| | | <div> |
| | | <el-alert show-icon type="success"> |
| | |
| | | </template> |
| | | </vol-form> |
| | | <template #footer> |
| | | <el-button type="primary" size="mini" @click="otherAction">确 认</el-button> |
| | | <el-button type="primary" size="mini" @click="otherAction" |
| | | >确 认</el-button |
| | | > |
| | | </template> |
| | | </vol-box> |
| | | |
| | | <!-- v-if="tree.length" --> |
| | | <div class="menu-left"> |
| | | <div class="m-title"><i class="el-icon-warning-outline"></i>èåå表</div> |
| | | <el-scrollbar style="height: calc(100vh - 6.5rem - 40px - 10px); width: 200px"> |
| | | <VolMenu :onSelect="getTreeItem" :list="tree" :isCollapse="false"></VolMenu> |
| | | <el-scrollbar |
| | | style="height: calc(100vh - 6.5rem - 40px - 10px); width: 200px" |
| | | > |
| | | <VolMenu |
| | | :onSelect="getTreeItem" |
| | | :list="tree" |
| | | :isCollapse="false" |
| | | ></VolMenu> |
| | | </el-scrollbar> |
| | | </div> |
| | | <div class="menu-right" style="margin-left: 10px;"> |
| | | <div class="menu-right" style="margin-left: 10px"> |
| | | <el-scrollbar style="height: 100%"> |
| | | <el-alert title="èåé
置说æ" type="warning" :closable="false" show-icon> |
| | | <el-alert |
| | | title="èåé
置说æ" |
| | | type="warning" |
| | | :closable="false" |
| | | show-icon |
| | | > |
| | | <div> |
| | | 1ã妿æ¯ç¨ä»£ç çå¨çæçVue页é¢,Url为Vue项ç®ä¸src->router->viewGrid.js对åºè¡¨åçpath屿§ |
| | | </div> |
| | |
| | | </div> |
| | | </el-alert> |
| | | <div style="padding: 0px 30px 0 20px"> |
| | | <vol-form class="form-content" ref="form" :formRules="options" :formFields="fields"> |
| | | <vol-form |
| | | class="form-content" |
| | | ref="form" |
| | | :formRules="options" |
| | | :formFields="fields" |
| | | > |
| | | </vol-form> |
| | | <div> |
| | | <div class="auth-group"> |
| | | <label style="width: 100px">æéæé®ï¼</label> |
| | | <div class="ck"> |
| | | <el-checkbox-group v-model="actions"> |
| | | <el-checkbox v-for="(item, index) in action" :key="index" :label="item.value">{{ item.text + "(" + |
| | | item.value + ")" }}</el-checkbox> |
| | | <el-checkbox |
| | | v-for="(item, index) in action" |
| | | :key="index" |
| | | :label="item.value" |
| | | >{{ item.text + "(" + item.value + ")" }}</el-checkbox |
| | | > |
| | | </el-checkbox-group> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="padding-left: 100px"> |
| | | <el-button @click="handleCheckAll" size="mini" type="success" plain><i class="el-icon-check"></i>å
¨ |
| | | é</el-button> |
| | | <el-button @click="actionModel = true" size="mini" type="primary" plain><i |
| | | class="el-icon-plus"></i>å
¶ä»æé</el-button> |
| | | <el-button @click="handleCheckAll" size="mini" type="success" plain |
| | | ><i class="el-icon-check"></i>å
¨ é</el-button |
| | | > |
| | | <el-button |
| | | @click="actionModel = true" |
| | | size="mini" |
| | | type="primary" |
| | | plain |
| | | ><i class="el-icon-plus"></i>å
¶ä»æé</el-button |
| | | > |
| | | </div> |
| | | <div class="m-btn"> |
| | | <el-button type="primary" @click="save"><i class="el-icon-check"></i>ä¿å</el-button> |
| | | <el-button type="success" @click="add"><i class="el-icon-plus"></i>æ°å»º</el-button> |
| | | <el-button type="warning" @click="addChild"><i class="el-icon-plus"></i>æ·»å å级</el-button> |
| | | <el-button type="primary" plain @click="addBrother"><i class="el-icon-circle-plus"></i> æ·»å å级</el-button> |
| | | <el-button type="warning" plain @click="delMenu"><i class="el-icon-delete"></i> å é¤èå</el-button> |
| | | <el-button type="primary" @click="save" |
| | | ><i class="el-icon-check"></i>ä¿å</el-button |
| | | > |
| | | <el-button type="success" @click="add" |
| | | ><i class="el-icon-plus"></i>æ°å»º</el-button |
| | | > |
| | | <el-button type="warning" @click="addChild" |
| | | ><i class="el-icon-plus"></i>æ·»å å级</el-button |
| | | > |
| | | <el-button type="primary" plain @click="addBrother" |
| | | ><i class="el-icon-circle-plus"></i> æ·»å å级</el-button |
| | | > |
| | | <el-button type="warning" plain @click="delMenu" |
| | | ><i class="el-icon-delete"></i> å é¤èå</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | |
| | | tigger = true; |
| | | let menuId = this.fields.menuId; |
| | | this.http |
| | | .post("/api/Sys_Menu/delMenu?menuId=" + menuId, {}, "æ£å¨å 餿°æ®....") |
| | | .post( |
| | | "/api/Sys_Menu/delMenu?menuId=" + menuId, |
| | | {}, |
| | | "æ£å¨å 餿°æ®...." |
| | | ) |
| | | .then((x) => { |
| | | if (!x.status) return this.$Message.error(x.message); |
| | | this.$refs.form.reset(); |
| | |
| | | orderNo: this.fields.orderNo, |
| | | parentId: this.fields.parentId, |
| | | }); |
| | | console.log(this.tree) |
| | | console.log(this.tree); |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | onOpenChange(node) { |
| | | if (node.length == 0) return; |
| | | this.getTreeItem(node[node.length > 1 ? node.length - 1 : 0]); |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | created() {}, |
| | | setup() { |
| | | const tree = ref([]); |
| | | const actionValues = ref([]); |
| | |
| | | }); |
| | | const initTree = () => { |
| | | http.post("/api/Sys_Menu/getMenu", {}, true).then((x) => { |
| | | x.forEach(item => { |
| | | item.icon = 'el-icon-menu'; |
| | | }) |
| | | x.forEach((item) => { |
| | | item.icon = "el-icon-menu"; |
| | | }); |
| | | |
| | | tree.value = x; |
| | | }); |
| | |
| | | ]); |
| | | const refForm = ref(); |
| | | const getTreeItem = (node) => { |
| | | http.post("api/Sys_Menu/getTreeItem?menuId=" + node, {}, true).then((x) => { |
| | | http |
| | | .post("api/Sys_Menu/getTreeItem?menuId=" + node, {}, true) |
| | | .then((x) => { |
| | | try { |
| | | fields.value.icon = x.icon; |
| | | if (x.auth) { |
| | |
| | | actionOptions, |
| | | options, |
| | | form: refForm, |
| | | getTreeItem |
| | | getTreeItem, |
| | | }; |
| | | }, |
| | | data() { |
| | |
| | | padding-left: 4px; |
| | | } |
| | | </style> |
| | | |