¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | // ä¸å¡ç±»å䏿æ¥è¯¢ |
| | | export function getBtmDatasByPage(page, limit, params) { |
| | | return request({ |
| | | url: "/api/uiManagerController/getBtmDatasByPage", |
| | | method: "get", |
| | | params: { |
| | | page, |
| | | limit, |
| | | ...params |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // éæ©æ¨¡æ¿ä¸ææ¥è¯¢ |
| | | export function getPortalVIDatasByPage(page, limit, params) { |
| | | return request({ |
| | | url: "/api/uiManagerController/getPortalVIDatasByPage", |
| | | method: "get", |
| | | params: { |
| | | page, |
| | | limit, |
| | | ...params |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // æ¥è¯¢æ¨¡æ¿ä¸ææ¥è¯¢ |
| | | export function getQTInfoDatasByPage(page, limit, params) { |
| | | return request({ |
| | | url: "/api/uiManagerController/getQTInfoDatasByPage", |
| | | method: "get", |
| | | params: { |
| | | page, |
| | | limit, |
| | | ...params |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // æé®è®¾è®¡å¯¹è¯æ¡å·¦ä¾§æ æ¥è¯¢ |
| | | export function getTabButtons(params) { |
| | | return request({ |
| | | url: "/api/uiManagerController/getTabButtons", |
| | | method: "get", |
| | | params |
| | | }); |
| | | } |
| | | |
| | | // æé®è®¾è®¡å¯¹è¯æ¡æ·»å |
| | | export function addTapButton(params) { |
| | | return request({ |
| | | url: "/api/uiManagerController/addTapButton", |
| | | method: "post", |
| | | data:params |
| | | }); |
| | | } |
| | | |
| | | // æé®è®¾è®¡å¯¹è¯æ¡æ·»å |
| | | export function updateTapButton(params) { |
| | | return request({ |
| | | url: "/api/uiManagerController/updateTapButton", |
| | | method: "put", |
| | | data:params |
| | | }); |
| | | } |
| | |
| | | <template slot="label"> |
| | | åç§° |
| | | </template> |
| | | {{ lastItem.id }} |
| | | <div style="width: 330px"> |
| | | {{ lastItem.id }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æ ç¾ |
| | | </template> |
| | | <div style="width: 330px"> |
| | | {{ lastItem.name }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æè¿° |
| | | </template> |
| | | <div style="width: 330px"> |
| | | {{ lastItem.description }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | <template slot="label"> |
| | | å
许为空 |
| | | </template> |
| | | <div style="width: 330px"> |
| | | <el-tag :type="lastItem.nullableFlag ? 'success' : 'danger'"> |
| | | {{ lastItem.nullableFlag ? 'æ¯' : 'å¦' }} |
| | | </el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="accuracy"> |
| | | <template slot="label"> |
| | |
| | | <template slot="label"> |
| | | é¿åº¦ |
| | | </template> |
| | | <div style="width: 330px"> |
| | | {{ lastItem.attrLength }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é»è®¤å¼ |
| | | </template> |
| | | <div style="width: 330px"> |
| | | {{ lastItem.defaultValue }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | |
| | | <template slot="label"> |
| | | å½åç±»å |
| | | </template> |
| | | <div style="width: 345px"> |
| | | {{ lastItem.version ? '龿¥ç±»å' : 'ä¸å¡ç±»å' }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å½åç±»åå¼ |
| | | </template> |
| | | <div style="width: 345px"> |
| | | {{ lastItem.version ? lastItem.linkTypeName : lastItem.btmTypeId }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="lastItem.version"> |
| | | <template slot="label"> |
| | | å½åçæ¬æ¬¡ |
| | | </template> |
| | | <div style="width: 345px"> |
| | | {{ lastItem.version }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | ä½¿ç¨æä¸¾ |
| | | </template> |
| | | <div style="width: 345px"> |
| | | <el-tag :type="lastItem.enumId ? 'success' : 'danger'"> |
| | | {{ lastItem.enumId ? 'æ¯' : 'å¦' }} |
| | | </el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å½åæä¸¾ç±»å |
| | | </template> |
| | | <div style="width: 345px"> |
| | | {{ lastItem.enumId }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | <template slot="label"> |
| | | ä½¿ç¨æä¸¾ |
| | | </template> |
| | | <div style="width: 330px"> |
| | | <el-tag :type="lastItem.enumFlag ? 'success' : 'danger'"> |
| | | {{ lastItem.enumFlag ? 'æ¯' : 'å¦' }} |
| | | </el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æä¸¾ç±»å |
| | | </template> |
| | | <div style="width: 330px"> |
| | | {{ lastItem.enumFlag }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | åå¼èå´ |
| | | </template> |
| | | <div style="width: 330px; height: 80px;overflow: auto"> |
| | | <div style="width: 345px; height: 80px;overflow: auto"> |
| | | <el-tag v-for="item in rangeList" plain style="margin: 5px">{{ item }}</el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | |
| | | <template> |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div ref="TreeBox" style="height: calc(100vh - 144px);!important;"> |
| | | <div class="headerCon"> |
| | | <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">å建 |
| | | </el-button> |
| | | <el-button icon="el-icon-edit" plain size="small" type="primary" @click="editClickHandler">ä¿®æ¹ |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delClickHandler">å é¤ |
| | | </el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">å¯¼åº |
| | | </el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="uploadClickHandler">导å
¥ |
| | | </el-button> |
| | | <el-button class="smallBtn" plain size="small" type="primary" |
| | | @click="checkViewClickHandler">æ¥ç使ç¨èå´ |
| | | </el-button> |
| | | </div> |
| | | <!-- 左侧æ --> |
| | | <div style="height: calc(100vh - 260px);"> |
| | | <avue-tree :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | | </avue-tree> |
| | | </div> |
| | | </div> |
| | | </basic-container> |
| | | </el-aside> |
| | | |
| | | <el-main> |
| | | <basic-container> |
| | | <el-descriptions :column="1" border class="margin-top" size="medium" title="屿§ä¿¡æ¯"> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.id"></i> |
| | | åç§° |
| | | </template> |
| | | <el-tag v-if="nodeRow.id">{{ nodeRow.id }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.name"></i> |
| | | æ ç¾ |
| | | </template> |
| | | <el-tag v-if="nodeRow.name">{{ nodeRow.name }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.jump"></i> |
| | | è·³è·å符 |
| | | </template> |
| | | <el-tag v-if="nodeRow.jumpCharacter">{{ nodeRow.jumpCharacter }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.init"></i> |
| | | åå§å¼ |
| | | </template> |
| | | <el-tag v-if="nodeRow.initialValue">{{ nodeRow.initialValue }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.length"></i> |
| | | æ¥é¿ |
| | | </template> |
| | | <el-tag v-if="nodeRow.stepLength">{{ nodeRow.stepLength }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.left"></i> |
| | | åç¼ |
| | | </template> |
| | | <el-tag v-if="nodeRow.prefixion">{{ nodeRow.prefixion }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.right"></i> |
| | | åç¼ |
| | | </template> |
| | | <el-tag v-if="nodeRow.suffix">{{ nodeRow.suffix }}</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :contentStyle="descriptionOption.contentStyle" |
| | | :labelStyle="descriptionOption.labelStyle"> |
| | | <template slot="label"> |
| | | <i :class="icons.desc"></i> |
| | | æè¿° |
| | | </template> |
| | | <el-tag v-if="nodeRow.description">{{ nodeRow.description }}</el-tag> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="crud" |
| | | :data="data" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | @refresh-change="getTableList" |
| | | @selection-change="selectChange" |
| | | @row-click="rowClickHandler"> |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">å建</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">å¯¼åº |
| | | </el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="uploadClickHandler">导å
¥ |
| | | </el-button> |
| | | <el-button icon="el-icon-view" plain size="small" type="primary" |
| | | @click="checkViewClickHandler">æ¥ç使ç¨èå´ |
| | | </el-button> |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="editClickHandler(scope.row)">ç¼è¾ |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="delClickHandler(scope.row)">å é¤ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <!-- æ°å¢ ä¿®æ¹ --> |
| | | <el-dialog |
| | | v-dialogDrag |
| | |
| | | |
| | | <!-- 导å
¥ --> |
| | | <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="导å
¥" |
| | | @updata="getTreeList"></upload-file> |
| | | @updata="getTableList"></upload-file> |
| | | |
| | | <!-- æ¥ç使ç¨èå´ --> |
| | | <el-dialog |
| | |
| | | > |
| | | </avue-crud> |
| | | </el-dialog> |
| | | </el-container> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | data: [], |
| | | option: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | calcHeight: -30, |
| | | column: [ |
| | | { |
| | | label: 'åç§°', |
| | | prop: 'id', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'æ ç¾', |
| | | prop: 'name', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'è·³è·å符', |
| | | prop: 'jumpCharacter', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'åå§å¼', |
| | | prop: 'initialValue', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'æ¥é¿', |
| | | prop: 'stepLength', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'åç¼', |
| | | prop: 'prefixion', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'åç¼', |
| | | prop: 'suffix', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | | sortable: true, |
| | | }, |
| | | ] |
| | | }, |
| | | checkViewVisible: false, |
| | | checkViewData: [], |
| | | checkViewDataSearch: [], |
| | |
| | | right: 'el-icon-caret-right', |
| | | desc: 'el-icon-chat-line-square' |
| | | }, |
| | | selectList: [], |
| | | lastIndex: null, |
| | | } |
| | | }, |
| | | created() { |
| | | this.getTreeList(); |
| | | this.getTableList(); |
| | | }, |
| | | methods: { |
| | | // å·¦ä¾§æ æ¥è¯¢ |
| | | getTreeList() { |
| | | getTableList() { |
| | | this.loading = true; |
| | | getVersionRuleAllList().then(res => { |
| | | const data = res.data.data; |
| | | this.treeData = data; |
| | | this.data = data; |
| | | this.loading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }); |
| | | }, |
| | | |
| | | // 左侧æ è¡ç¹å» |
| | | nodeClick(row) { |
| | | this.nodeRow = row; |
| | | }, |
| | | |
| | | // å建æé® |
| | |
| | | }, |
| | | |
| | | // ä¿®æ¹æé® |
| | | editClickHandler() { |
| | | if (func.isEmptyObject(this.nodeRow)) { |
| | | this.$message.error('请è³å°éæ©ä¸æ¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | editClickHandler(row) { |
| | | this.form = {...row}; |
| | | this.visible = true; |
| | | this.dialogTitle = 'edit'; |
| | | this.form = this.nodeRow; |
| | | }, |
| | | |
| | | // æ°å¢ä¿®æ¹å¯¹è¯æ¡å
³é |
| | |
| | | saveFunction(this.form).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTreeList(); |
| | | this.getTableList(); |
| | | this.visible = false; |
| | | } else { |
| | | this.$message.error(res.data.obj); |
| | |
| | | }, |
| | | |
| | | // å é¤æé® |
| | | delClickHandler() { |
| | | if (func.isEmptyObject(this.nodeRow)) { |
| | | this.$message.error('请è³å°éæ©ä¸æ¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | delClickHandler(row) { |
| | | this.$confirm('æ¨ç¡®å®è¦å é¤æéæ©çæ°æ®åï¼', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const list = [this.nodeRow]; |
| | | const list = [row]; |
| | | deleteVersionRule(list).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTreeList(); |
| | | this.nodeRow = {}; |
| | | this.getTableList(); |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | |
| | | |
| | | // å¯¼åº |
| | | exportClickHandler() { |
| | | if (func.isEmptyObject(this.nodeRow)) { |
| | | if (this.selectList.length <= 0) { |
| | | this.$message.error('请è³å°éæ©ä¸æ¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | |
| | | exportVersionRule({vrNames: this.nodeRow.id}).then(res => { |
| | | if (this.selectList.length > 1) { |
| | | this.$message.error('åªè½éæ©ä¸æ¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | |
| | | exportVersionRule({vrNames: this.selectList[0].id}).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('å¯¼åºæå'); |
| | | }).catch(err => { |
| | |
| | | |
| | | // æ¥ç使ç¨èå´ |
| | | checkViewClickHandler() { |
| | | if (func.isEmptyObject(this.nodeRow)) { |
| | | if (this.selectList.length <= 0) { |
| | | this.$message.error('请è³å°éæ©ä¸æ¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | getUsedVersionRuleList({vrName: this.nodeRow.id}).then(res => { |
| | | |
| | | if (this.selectList.length > 1) { |
| | | this.$message.error('åªè½éæ©ä¸æ¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | getUsedVersionRuleList({vrName: this.selectList[0].id}).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.checkViewVisible = true; |
| | | const data = res.data.data; |
| | |
| | | checkHandleReset() { |
| | | this.checkViewData = this.checkViewDataSearch; |
| | | }, |
| | | |
| | | // éæ©æ¡ |
| | | selectChange(row) { |
| | | this.selectList = row; |
| | | }, |
| | | |
| | | // ç¹å»è¡ |
| | | rowClickHandler(row) { |
| | | func.rowClickHandler( |
| | | row, |
| | | this.$refs.crud, |
| | | this.lastIndex, |
| | | (newIndex) => { |
| | | this.lastIndex = newIndex; |
| | | }, |
| | | () => { |
| | | this.selectList = []; |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-container> |
| | | |
| | | <el-aside> |
| | | <basic-container> |
| | | <!-- 左侧æ --> |
| | | <div style="height:580px"> |
| | | <avue-tree |
| | | ref="tree" |
| | | v-model="treeForm" |
| | | :data="treeData" |
| | | :option="treeOption" |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | | </avue-tree> |
| | | </div> |
| | | </basic-container> |
| | | </el-aside> |
| | | |
| | | <el-main> |
| | | <basic-container> |
| | | <div> |
| | | <avue-crud |
| | | ref="crud" |
| | | v-model="form" |
| | | :data="data" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="tableLoading" |
| | | @search-change="handleSearch" |
| | | @search-reset="handleReset" |
| | | @refresh-change="handleRefresh" |
| | | @selection-change="selectChangeHandler" |
| | | @row-click="rowClickHandler"> |
| | | <template slot="plTypeType" slot-scope="{row}"> |
| | | <el-tag :type="row.plTypeType === 'business' ? '' : 'success'"> |
| | | {{ row.plTypeType === 'business' ? 'ä¸å¡ç±»å' : '龿¥ç±»å' }} |
| | | </el-tag> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | </div> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | | |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getActionTree, |
| | | getActionTableData, |
| | | saveAction, |
| | | updateAction, |
| | | exportAction, |
| | | deleteAction, |
| | | getPLActionParam, |
| | | savePLActionParam, |
| | | updatePLActionParam, |
| | | deletePLActionParam, |
| | | saveActionCls, |
| | | updateActionCls, |
| | | deleteActionCls |
| | | } from '@/api/UI/Action/api' |
| | | import func from "@/util/func"; |
| | | import basicOption from "@/util/basic-option"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | currenRow: {}, // actionå½åè¡ä¿¡æ¯ |
| | | topMethodsObj: { |
| | | select: true, |
| | | all: true, |
| | | page: false |
| | | }, |
| | | transferTitle: ['æªéæ©', '已鿩'], |
| | | leftRoleData: [], |
| | | rightRoleData: [], |
| | | form: {}, |
| | | bottomTableLoading: false, |
| | | bottomData: [], |
| | | bottomOption: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | calcHeight: -30, |
| | | selection: false, |
| | | refreshBtn: false, |
| | | // height:'auto', |
| | | column: [ |
| | | { |
| | | label: 'åæ°åç§°', |
| | | prop: 'name', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请è¾å
¥åæ°åç§°', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | }, |
| | | { |
| | | label: 'æç¤ºä¿¡æ¯', |
| | | prop: 'description', |
| | | span: 24, |
| | | type: 'textarea', |
| | | rows: 4 |
| | | }, |
| | | ], |
| | | }, |
| | | tableLoading: false, |
| | | lastIndex: null, |
| | | selectList: [], |
| | | data: [], |
| | | option: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | height: 'auto', |
| | | highlightCurrentRow: true, |
| | | column: [ |
| | | { |
| | | label: 'ç¼å·', |
| | | prop: 'plCode', |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请è¾å
¥ç¼å·', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'åç§°', |
| | | prop: 'plName', |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请è¾å
¥åç§°', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '类路å¾', |
| | | prop: 'plCSClass', |
| | | search: true, |
| | | overHidden: true, |
| | | }, |
| | | { |
| | | label: 'åç±»', |
| | | prop: 'plActionCls', |
| | | type: 'tree', |
| | | hide: true, |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'childs' |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©åç±»', |
| | | trigger: 'blur' |
| | | } |
| | | ], |
| | | dicData: [] |
| | | }, |
| | | { |
| | | label: '龿¥å°å', |
| | | prop: 'plBSUrl', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'plTypeType', |
| | | search: true, |
| | | type: 'select', |
| | | dicData: [{ |
| | | label: 'ä¸å¡ç±»å', |
| | | value: 'business' |
| | | }, { |
| | | label: '龿¥ç±»å', |
| | | value: 'link' |
| | | }], |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: 'è¯·éæ©ç±»å', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'plDesc', |
| | | search: true, |
| | | overHidden: true, |
| | | }, |
| | | ] |
| | | }, |
| | | treeNodeRow: {}, |
| | | treeForm: {}, |
| | | treeOption: { |
| | | addBtn: false, |
| | | defaultExpandedKeys: ['root'], |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'childs' |
| | | }, |
| | | formOption: { |
| | | column: [ |
| | | { |
| | | label: 'åç±»åç§°', |
| | | prop: 'name', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请è¾å
¥åç±»åç§°', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'åç±»åºå·', |
| | | prop: 'serialno', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请è¾å
¥åç±»åºå·', |
| | | trigger: 'blur' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: 'å建è
', |
| | | prop: 'creator', |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label: 'å建æ¶é´', |
| | | prop: 'createTime', |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label: 'ç¶ä¸»ç±»', |
| | | prop: 'pidName', |
| | | readonly: true, |
| | | }, |
| | | { |
| | | label: '夿³¨', |
| | | prop: 'description' |
| | | }, |
| | | ], |
| | | } |
| | | }, |
| | | treeData: [], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getTreeList(); |
| | | }, |
| | | methods: { |
| | | // 左侧æ è¯·æ± |
| | | getTreeList(status) { |
| | | const params = { |
| | | isExp: status ? true : false |
| | | } |
| | | getActionTree(params).then(res => { |
| | | const data = res.data.obj; |
| | | this.treeData = [data]; |
| | | const selectTreeData = this.option.column.find(item => item.prop === 'plActionCls'); // æ¾å°actionæ·»å åç±»æ |
| | | selectTreeData.dicData = [data]; |
| | | }) |
| | | }, |
| | | |
| | | // 左侧æ è¡ç¹å» |
| | | nodeClick(row) { |
| | | this.treeNodeRow = row; |
| | | this.getRightTableList(row); |
| | | this.bottomData = []; |
| | | }, |
| | | |
| | | // 头é¨å·æ°æé® |
| | | handleRefresh() { |
| | | if (func.isEmptyObject(this.treeNodeRow)) { |
| | | return; |
| | | } |
| | | this.getRightTableList(this.treeNodeRow); |
| | | }, |
| | | |
| | | // å³ä¾§è¡¨æ ¼ä¿¡æ¯ |
| | | getRightTableList(row) { |
| | | this.tableLoading = true; |
| | | const params = { |
| | | plactioncls: row.id |
| | | } |
| | | getActionTableData(params).then(res => { |
| | | const data = res.data.data; |
| | | this.data = data; |
| | | this.tableLoading = false; |
| | | }) |
| | | }, |
| | | |
| | | // è¡¨æ ¼å¤é |
| | | selectChangeHandler(row) { |
| | | this.selectList = row; |
| | | }, |
| | | |
| | | // è¡ç¹å» |
| | | rowClickHandler(row) { |
| | | this.currenRow = row; |
| | | func.rowClickHandler( |
| | | row, |
| | | this.$refs.crud, |
| | | this.lastIndex, |
| | | (newIndex) => { |
| | | this.lastIndex = newIndex; |
| | | }, |
| | | () => { |
| | | this.selectList = []; |
| | | } |
| | | ); |
| | | |
| | | // 请æ±action䏿¹åæ°åè¡¨æ°æ® |
| | | this.getBottomList(row); |
| | | }, |
| | | |
| | | // æç´¢ |
| | | handleSearch(params, done) { |
| | | if (func.isEmptyObject(this.treeNodeRow)) { |
| | | this.$message.error('请å
å¨å·¦ä¾§éæ©èç¹åæä½'); |
| | | return done(); |
| | | } |
| | | this.tableLoading = true; |
| | | const apiParams = { |
| | | plactioncls: this.treeNodeRow.id === 'root' ? '' : this.treeNodeRow.id, |
| | | ...params |
| | | } |
| | | |
| | | getActionTableData(apiParams).then(res => { |
| | | const data = res.data.data; |
| | | this.data = data; |
| | | this.tableLoading = false; |
| | | }) |
| | | done(); |
| | | }, |
| | | |
| | | // éç½®æç´¢æ¡ä»¶ |
| | | handleReset() { |
| | | if (func.isEmptyObject(this.treeNodeRow)) { |
| | | this.$message.error('请å
å¨å·¦ä¾§éæ©èç¹åæä½'); |
| | | return; |
| | | } |
| | | this.getRightTableList(this.treeNodeRow); |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | ::v-deep { |
| | | .el-scrollbar__wrap { |
| | | overflow: auto !important; |
| | | } |
| | | |
| | | .headerCon { |
| | | .el-button { |
| | | width: 82px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .headerCon { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | margin-bottom: 5px; |
| | | |
| | | .el-button + .el-button { |
| | | margin-left: 5px; |
| | | } |
| | | |
| | | .el-button { |
| | | margin-top: 5px; |
| | | } |
| | | } |
| | | |
| | | .headerCon > .el-button:nth-child(4) { |
| | | margin-left: 0; |
| | | } |
| | | |
| | | .headerCon > .el-button:nth-child(7) { |
| | | margin-left: 0; |
| | | } |
| | | |
| | | .smallBtn { |
| | | width: 82px; |
| | | text-align: center; |
| | | padding-left: 4.5px; |
| | | } |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <div> |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="crud" |
| | | v-model="form" |
| | |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="é
ç½®æé®" |
| | | width="70%" |
| | | width="75%" |
| | | @close="dialogClose"> |
| | | <el-container> |
| | | <el-container v-loading="dialogLoading"> |
| | | <el-header style="height: 40px !important;"> |
| | | <div style="display: flex"> |
| | | <el-button :disabled="!disabledBtn" plain size="mini" type="primary" @click="addClickBtnHandler">æ·»å |
| | |
| | | |
| | | <el-form-item label="Actionï¼" prop="Action"> |
| | | <el-col :span="14"> |
| | | <el-input v-model="basicForm.actionOId" :readonly="disabledBtn"></el-input> |
| | | <el-input v-model="basicForm.actionName" :readonly="disabledBtn" @focus="actionFoucus"></el-input> |
| | | </el-col> |
| | | </el-form-item> |
| | | |
| | |
| | | </el-container> |
| | | </el-container> |
| | | </el-dialog> |
| | | </div> |
| | | <el-dialog |
| | | v-dialogDrag |
| | | :visible.sync="btnActionVisible" |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="鿩Action" |
| | | width="70%"> |
| | | <action-dialog></action-dialog> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | addTapButton, |
| | | updateTapButton, getTabByContextIdAndType |
| | | } from "@/api/UI/uiDefine"; |
| | | import actionDialog from '@/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action'; |
| | | |
| | | export default { |
| | | props: { |
| | |
| | | default: () => "auto" |
| | | } |
| | | }, |
| | | components: { |
| | | actionDialog |
| | | }, |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | btnActionVisible: false, |
| | | dialogLoading: false, |
| | | saveType: '', |
| | | disabledBtn: true, |
| | | paramsData: [], |
| | |
| | | moveUp() { |
| | | const index = this.findIndexByEventValue(this.FormData, this.formDataRow.eventValue); |
| | | if (index > 0) { |
| | | // ä½¿ç¨ splice æ¹æ³æ¥æ¨¡æäº¤æ¢ |
| | | const temp = this.FormData.splice(index - 1, 1, this.FormData[index])[0]; // ç§»é¤ index-1 çå
ç´ ï¼å¹¶å¨ç¸åä½ç½®æå
¥ index çå
ç´ ï¼è¿å被移é¤çå
ç´ |
| | | // ä½¿ç¨ splice æ¥æ¨¡æäº¤æ¢ |
| | | const temp = this.FormData.splice(index - 1, 1, this.FormData[index])[0]; // ç§»é¤ index-1 çå
ç´ å¹¶å¨ç¸åä½ç½®æå
¥ index çå
ç´ è¿å被移é¤çå
ç´ |
| | | this.FormData.splice(index, 1, temp); // å¨ index ä½ç½®æå
¥ä¹å被移é¤çå
ç´ |
| | | } |
| | | }, |
| | |
| | | // æé®è®¾è®¡ä¿®æ¹ |
| | | editClickBtnHandler() { |
| | | if (func.isEmptyObject(this.nodeTreeRow)) { |
| | | this.$message.error('è¯·éæ©èç¹è¿è¡æ·»å '); |
| | | this.$message.error('è¯·éæ©èç¹è¿è¡ä¿®æ¹'); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | // æé®è®¾è®¡ä¿å |
| | | saveClickBtnHandler() { |
| | | this.dialogLoading = true; |
| | | const saveFunction = this.saveType === 'add' ? addTapButton : updateTapButton; |
| | | const bottomParams = {}; |
| | | if (this.paramsData.length > 0) { |
| | |
| | | this.getTabBtnTree(); |
| | | this.basicForm = {}; |
| | | this.paramsData = []; |
| | | this.dialogLoading = false; |
| | | } |
| | | }).catch(err => { |
| | | this.dialogLoading = false; |
| | | }) |
| | | }, |
| | | |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // 鿩action |
| | | actionFoucus() { |
| | | this.btnActionVisible = true; |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <el-tag v-else type="danger">æªå¯ç¨</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <bottom-table :sourceData="selectList[0]" :height="'280px'" style="margin-top: 15px;"></bottom-table> |
| | | <bottom-table :height="'280px'" :sourceData="selectList[0]" style="margin-top: 15px;"></bottom-table> |
| | | <!-- å建ç¼è¾èªå®ä¹å¯¹è¯æ¡ --> |
| | | <el-dialog |
| | | v-dialogDrag |
| | | v-loading="dialogLoading" |
| | | :close-on-click-modal="false" |
| | | :title="dialogType === 'add' ? ' å建 页ç¾' : 'ç¼è¾ 页ç¾'" |
| | | :visible.sync="dialogVisible" |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | :close-on-click-modal="false" |
| | | width="800px" |
| | | @close="dialogClose" |
| | | > |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ¯å¦å¯ç¨" prop="plIsOpen"> |
| | | <el-switch v-model="form.plIsOpen" :active-value="1" :inactive-value="0" active-color="#13ce66" inactive-color="#ff4949"></el-switch> |
| | | <el-switch v-model="form.plIsOpen" :active-value="1" :inactive-value="0" active-color="#13ce66" |
| | | inactive-color="#ff4949"></el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="æ¾ç¤ºè¡¨è¾¾å¼ï¼" prop="plOpenExpression"> |
| | | <el-input type="textarea" :rows="3" v-model="form.plOpenExpression"></el-input> |
| | | <el-input v-model="form.plOpenExpression" :rows="3" type="textarea"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å½é
åæ åï¼" prop="plLabel"> |
| | | <el-input type="textarea" :rows="1" v-model="form.plLabel"></el-input> |
| | | <el-input v-model="form.plLabel" :rows="1" type="textarea"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°ï¼" prop="plDesc"> |
| | | <el-input type="textarea" :rows="1" v-model="form.plDesc"></el-input> |
| | | <el-input v-model="form.plDesc" :rows="1" type="textarea"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="UIè§£æç±»ï¼" prop="plUIParser"> |
| | | <el-input type="textarea" :rows="2" v-model="form.plUIParser"></el-input> |
| | | <el-input v-model="form.plUIParser" :rows="2" type="textarea"></el-input> |
| | | </el-form-item> |
| | | <div class="tip"> |
| | | <div style="color: #D40000">示ä¾ï¼java_cs:xxx;java_bs:xxx;net_cs:xxx;net_bs:xxx;mobile_cs:xxx;mobile_bs:xxx;</div> |
| | | <div style="color: #D40000">示ä¾ï¼java_cs:xxx;java_bs:xxx;net_cs:xxx;net_bs:xxx;mobile_cs:xxx;mobile_bs:xxx; |
| | | </div> |
| | | <div>1ãç¨è±æåè§åå·;åéåç»å¼ã</div> |
| | | <div>2ãæ¯ç»ç¨è±æåè§åå·:åéå䏿å±å±æ§åç§°å屿§å¼ã</div> |
| | | <div>3ãå
¶ä¸çxxxæ¯åç§è§£æç±»ç宿´ç±»ååç§°ï¼å®å
¨éå®åï¼ã</div> |
| | | <div>4ãè¾å
¥æ¶ï¼ä¸è¦æ²å车æ¢è¡ã</div> |
| | | </div> |
| | | <el-form-item label="æå±å±æ§ï¼" prop="plExtAttr"> |
| | | <el-input type="textarea" :rows="2" v-model="form.plExtAttr"></el-input> |
| | | <el-input v-model="form.plExtAttr" :rows="2" type="textarea"></el-input> |
| | | </el-form-item> |
| | | <div class="tip"> |
| | | <div style="color: #D40000">示ä¾ï¼ext1:xx;ext2:xx;ext3:xxx;ext4:xxx;extn:xxx</div> |
| | |
| | | import bottomTable from "./bottomTable/index"; |
| | | |
| | | export default { |
| | | name: "plShow", |
| | | name: "plShow", |
| | | props: { |
| | | uiDefineData: { |
| | | type: Object, |
| | | default: {} |
| | | }, |
| | | }, |
| | | components:{bottomTable}, |
| | | components: {bottomTable}, |
| | | data() { |
| | | return { |
| | | uiDefineOid:'', |
| | | uiDefineOid: '', |
| | | areaType: '', |
| | | tableLoading: false, |
| | | selectList: [], |
| | | option: { |
| | | ...basicOption, |
| | | height:'300px', |
| | | height: '300px', |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | index:false, |
| | | menuWidth:160, |
| | | align:'left', |
| | | index: false, |
| | | menuWidth: 160, |
| | | align: 'left', |
| | | column: [{ |
| | | label: 'åºå·', |
| | | prop: 'plSeq', |
| | | width:60 |
| | | width: 60 |
| | | }, { |
| | | label: 'ç¼ç ', |
| | | prop: 'plCode', |
| | | width:180 |
| | | width: 180 |
| | | }, { |
| | | label: 'åç§°', |
| | | prop: 'plName', |
| | | width:200 |
| | | width: 200 |
| | | }, { |
| | | label: 'æ¯å¦å¯ç¨', |
| | | prop: 'plIsOpen', |
| | | align:'center', |
| | | align: 'center', |
| | | width: 90 |
| | | }, { |
| | | label: 'æ¾ç¤ºè¡¨è¾¾å¼', |
| | | prop: 'plOpenExpression', |
| | | overHidden:true, |
| | | width:300 |
| | | overHidden: true, |
| | | width: 300 |
| | | }, { |
| | | label: 'UIè§£æç±»', |
| | | prop: 'plUIParser' |
| | |
| | | plSeq: '', |
| | | plCode: '', |
| | | plName: '', |
| | | plIsOpen:0, |
| | | plOpenExpression:'', |
| | | plLabel:'', |
| | | plUIParser:'', |
| | | plExtAttr:'', |
| | | plDesc:'' |
| | | plIsOpen: 0, |
| | | plOpenExpression: '', |
| | | plLabel: '', |
| | | plUIParser: '', |
| | | plExtAttr: '', |
| | | plDesc: '' |
| | | }, |
| | | rules: { |
| | | plName: [{ |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | uiDefineData:{ |
| | | uiDefineData: { |
| | | handler(val) { |
| | | if(val && val.plOId) { |
| | | if (val && val.plOId) { |
| | | if (val.plIsShowNavigator) { |
| | | this.areaType = '1'; |
| | | }else if(val.plIsShowForm){ |
| | | } else if (val.plIsShowForm) { |
| | | this.areaType = '2' |
| | | }else{ |
| | | } else { |
| | | this.areaType = '3' |
| | | } |
| | | this.getTableList() |
| | | } |
| | | }, |
| | | immediate: true, |
| | | deep:true |
| | | deep: true |
| | | } |
| | | }, |
| | | created() { |
| | | this.uiDefineOid=this.$route.params.uiDefineOid; |
| | | this.uiDefineOid = this.$route.params.uiDefineOid; |
| | | }, |
| | | methods: { |
| | | handleClick(tab, event) { |
| | | this.getTableList() |
| | | }, |
| | | getTableList(){ |
| | | getTableList() { |
| | | const params = { |
| | | contextId:this.uiDefineData.plOId, |
| | | areaType:this.areaType |
| | | contextId: this.uiDefineData.plOId, |
| | | areaType: this.areaType |
| | | } |
| | | getTabByContextIdAndType( params).then(res => { |
| | | getTabByContextIdAndType(params).then(res => { |
| | | this.data = res.data.data; |
| | | this.selectList=[]; |
| | | this.selectList = []; |
| | | this.$refs.crud.clearSelection(); |
| | | this.tableLoading = false; |
| | | }) |
| | |
| | | ); |
| | | }, |
| | | //å建 |
| | | addHandler(){ |
| | | this.form={ |
| | | addHandler() { |
| | | this.form = { |
| | | plSeq: '', |
| | | plCode: '', |
| | | plName: '', |
| | | plIsOpen:0, |
| | | plOpenExpression:'', |
| | | plLabel:'', |
| | | plUIParser:'', |
| | | plExtAttr:'', |
| | | plDesc:'' |
| | | plIsOpen: 0, |
| | | plOpenExpression: '', |
| | | plLabel: '', |
| | | plUIParser: '', |
| | | plExtAttr: '', |
| | | plDesc: '' |
| | | }; |
| | | this.dialogType = 'add'; |
| | | this.dialogVisible = true; |
| | | }, |
| | | editHandler(){ |
| | | if(this.selectList.length!=0){ |
| | | editHandler() { |
| | | if (this.selectList.length != 0) { |
| | | this.rowEditBtnClick(this.selectList[0]); |
| | | }else { |
| | | } else { |
| | | this.$message.error('è¯·éæ©ä¸æ¡æ°æ®è¿è¡ç¼è¾'); |
| | | } |
| | | }, |
| | | delHandler(){ |
| | | delHandler() { |
| | | if (this.selectList.length <= 0) { |
| | | this.$message.error('请è³å°éæ©ä¸æ¡æ°æ®'); |
| | | return; |
| | |
| | | }, |
| | | // ç¼è¾æé® |
| | | rowEditBtnClick(row) { |
| | | this.form=row; |
| | | this.form = row; |
| | | this.dialogType = 'edit'; |
| | | this.dialogVisible = true; |
| | | }, |
| | |
| | | this.form = { |
| | | plName: '', |
| | | plCode: '', |
| | | plDesc:'', |
| | | plDesc: '', |
| | | plIsShow: [], |
| | | } |
| | | }, |
| | | // ä¿åé¡µç¾ |
| | | saveHandler() { |
| | | this.$refs.form.validate((valid,done) => { |
| | | this.$refs.form.validate((valid, done) => { |
| | | if (valid) { |
| | | const params = { |
| | | plAreaType:parseInt(this.areaType), |
| | | plContextOId:this.uiDefineData.plOId, |
| | | plAreaType: parseInt(this.areaType), |
| | | plContextOId: this.uiDefineData.plOId, |
| | | ...this.form |
| | | } |
| | | if (this.dialogType === 'add') { |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .tip{ |
| | | .tip { |
| | | font-size: 12px; |
| | | color: #909399; |
| | | margin: -13px 0 10px 100px; |