| | |
| | | <!-- <el-button :disabled="disabledPush" icon="el-icon-plus" size="small" type="primary"--> |
| | | <!-- @click="dialogPush = true">新 增--> |
| | | <!-- </el-button>--> |
| | | <el-button icon="el-icon-check" size="small" type="primary" @click="handleSave">保 存 |
| | | <el-button v-if="permissionList.saveBtn" icon="el-icon-check" size="small" type="primary" |
| | | @click="handleSave">保 存 |
| | | </el-button> |
| | | <el-button icon="el-icon-connection" size="small" type="primary" |
| | | @click="handleSync('all')">同步主模型 |
| | | <el-button v-if="permissionList.allSyncBtn" icon="el-icon-connection" size="small" |
| | | type="primary" @click="handleSync('all')">同步主模型 |
| | | </el-button> |
| | | <el-button icon="el-icon-connection" size="small" type="primary" |
| | | @click="handleSync('one')">同步详细模型 |
| | | <el-button v-if="permissionList.oneSyncBtn" icon="el-icon-connection" size="small" |
| | | type="primary" @click="handleSync('one')">同步详细模型 |
| | | </el-button> |
| | | <el-button icon="el-icon-coordinate" size="small" type="primary" |
| | | @click="handlerAuto">自动填充 |
| | | <el-button v-if="permissionList.autoBtn" icon="el-icon-coordinate" size="small" |
| | | type="primary" @click="handlerAuto">自动填充 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | @row-update="handleUpdate" |
| | | @row-dblclick="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-coordinate" size="small" type="primary" |
| | | @click="handlerBottomAuto">自动填充 |
| | | <el-button v-if="permissionList.bottomAutoBtn" icon="el-icon-coordinate" size="small" |
| | | type="primary" @click="handlerBottomAuto">自动填充 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | <script> |
| | | import integrationTransfer from './integrationTransfer.vue' |
| | | import pinyin from 'js-pinyin' |
| | | import {mapGetters} from "vuex"; |
| | | import { |
| | | referCodeClassifyTree, |
| | | referTree, |
| | |
| | | }, |
| | | targetColumn() { |
| | | return this.optionMapping.column.find(column => column.prop === 'targetAttrName'); |
| | | } |
| | | }, |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | allSyncBtn: this.vaildData(this.permission.integration.integration_allSync, false), |
| | | autoBtn: this.vaildData(this.permission.integration.integration_auto, false), |
| | | bottomAutoBtn: this.vaildData(this.permission.integration.integration_bottomAuto, false), |
| | | oneSyncBtn: this.vaildData(this.permission.integration.integration_oneSync, false), |
| | | saveBtn: this.vaildData(this.permission.integration.integration_save, false), |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | handlerAuto() { |
| | |
| | | } |
| | | }) |
| | | }) |
| | | this.$message.success('填充成功!'); |
| | | this.$message.success('自动填充成功,请确认属性后点击保存!'); |
| | | }) |
| | | .catch(error => { |
| | | console.log(error) |
| | |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | this.$message.success('自动填充成功,请确认属性后点击保存!') |
| | | }) |
| | | }, |
| | | calculateSimilarity(str1, str2) { |
| | |
| | | @size-change="sizeChange" @row-dblclick="handleRowClick" @row-update="handleUpdate" |
| | | @selection-change="selectChange"> |
| | | <template slot="menuLeft"> |
| | | <el-button plain size="small" type="success" @click="savaHandler">保存</el-button> |
| | | <el-button plain size="small" type="primary" @click="syncHandler">同步</el-button> |
| | | <el-button v-if="permissionList.saveBtn" plain size="small" type="success" @click="savaHandler">保存</el-button> |
| | | <el-button v-if="permissionList.syncBtn" plain size="small" type="primary" @click="syncHandler">同步</el-button> |
| | | <span style="width: 200px;display: inline-block"> |
| | | <el-select slot="prepend" v-model="searchSelect" placeholder="请选择" size="small"> |
| | | <el-option v-for="item in searchData" :key="item.prop" :label="item.label" :value="item.prop" |
| | | ></el-option> |
| | | </el-select> |
| | | </span> |
| | | <span style="margin-left: 5px"> |
| | | <el-input v-model="searchValue" class="attrSearch" clearable placeholder="请输入内容" |
| | | prefix-icon="el-icon-search" |
| | | size="small" type="text"></el-input> |
| | | <el-button v-if="permissionList.searchBtn" icon="el-icon-search" plain size="small" type="primary" |
| | | @click="searchHandler"> 搜索</el-button> |
| | | </span> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | <script> |
| | | import {getGroupAttrPoolALlList, editGroupAttr, syncGroupAttrMapping} from '@/api/vciAttrbute' |
| | | import {getPage} from "@/api/omd/OmdAttribute"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: "vciAttribute", |
| | | data() { |
| | | return { |
| | | searchSelect: "groupAttrKey", |
| | | searchValue: '', |
| | | searchData: [ |
| | | { |
| | | label: "集团属性编号", |
| | | prop: "groupAttrKey", |
| | | align: "left", |
| | | display: false, |
| | | width: 200, |
| | | required: true |
| | | }, { |
| | | label: "集团属性名称", |
| | | prop: "groupAttrName", |
| | | align: "left", |
| | | display: false |
| | | } |
| | | ], |
| | | data: [], |
| | | options: { |
| | | height: 'auto', |
| | |
| | | computed: { |
| | | codeMetaColumn() { |
| | | return this.options.column.find(column => column.prop === 'codeMetaAttrName'); |
| | | } |
| | | }, |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | saveBtn: this.vaildData(this.permission.vciAttribute.attribute_save, false), |
| | | syncBtn: this.vaildData(this.permission.vciAttribute.attribute_sync, false), |
| | | searchBtn: this.vaildData(this.permission.vciAttribute.attribute_search, false), |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | searchHandler() { |
| | | console.log(this.searchSelect) |
| | | const params = { |
| | | [`conditionMap[${this.searchSelect}_like]`]: this.searchValue, |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize |
| | | } |
| | | getGroupAttrPoolALlList(params).then(res => { |
| | | const data = res.data.data; |
| | | this.data = data.records; |
| | | this.page.total = data.total; |
| | | }) |
| | | }, |
| | | codeMetaDis() { |
| | | for (const item of this.data) { |
| | | if (item.codeMetaAttrOid && item.codeMetaAttrKey && item.codeMetaAttrName) { |