| | |
| | | <template> |
| | | <basic-container> |
| | | |
| | | <el-header> |
| | | <div style="margin-bottom: 15px"> |
| | | 编码规则: |
| | |
| | | @change="selectHandler"> |
| | | <el-option v-for="(item,index) in queryReleasedList" |
| | | :key="item.oid" |
| | | :label="item.name" |
| | | :label="item.name + ' (' + item.id + ')'" |
| | | :value="item.oid"></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | :data="tableData" |
| | | :header-cell-style="{background:'#FAFAFA',color:'#505050'}" |
| | | border |
| | | style="width: 100%;height: calc(100vh - 320px)" |
| | | style="width: 100%;height: calc(100vh - 315px)" |
| | | @cell-click="cellClickHandler"> |
| | | <el-table-column |
| | | align="center" |
| | |
| | | |
| | | <script> |
| | | import {getList, addSave, editSave, deleteSave} from "@/api/code/codeCharcter" |
| | | import {gridCodeRule} from "@/api/code/codeCharcter" |
| | | import {gridCodeRule} from "@/api/code/mdmrule" |
| | | |
| | | export default { |
| | | name: "usableCharacter", |
| | |
| | | this.characterEditOldValue = row[column.property]; |
| | | if (this.editValueList.includes(row[column.property])) { |
| | | this.$message.warning('请检查字符集是否有重复!') |
| | | } else if (row[column.property] === undefined || row[column.property] === null) { |
| | | this.$message.warning('请检查字符集是否有空值!'); |
| | | } else { |
| | | this.editValueList.push(row[column.property]); |
| | | } |
| | |
| | | async getCodeRule() { |
| | | try { |
| | | // 编码规则已发布数据源 |
| | | const res = await gridCodeRule({["conditionMap" + "[lcStatus_like]"]: "Released"}); |
| | | const res = await gridCodeRule(1,-1); |
| | | this.characterReleasedList = res.data.data.records; |
| | | this.queryReleasedList = this.characterReleasedList; |
| | | this.select = this.characterReleasedList[0].oid; |
| | |
| | | // const targetObject = this.characterReleasedList.find(obj => obj.oid === this.selectValue); |
| | | // const chartValue = targetObject.name; |
| | | getList({codeRuleId: this.select, chartType: "fillerChar", chartValue: this.characterValue}).then(res => { |
| | | console.log(res.data.data); |
| | | // console.log(res.data.data); |
| | | this.tableData = res.data.data; |
| | | this.loading = false; |
| | | }); |