Merge remote-tracking branch 'origin/master'
| | |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | //近义词查询规则 |
| | | export const codeSynonym = (current,size,lcStatus) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeSynonym/list', |
| | | method: 'get', |
| | | params:{ |
| | | current, |
| | | size, |
| | | lcStatus |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | |
| | | <template> |
| | | <div> |
| | | <div v-if="this.crudArrayFlag" class="app" style="display: flex;flex-wrap: wrap; display: inline-block"> |
| | | <div v-if="this.crudArrayFlag" class="app" style="display: flex;flex-wrap: wrap; display: inline-block;height: 80px"> |
| | | <el-button-group> |
| | | <!--新增--> |
| | | <span v-if="permissionList.busineStatus"> |
| | |
| | | :referConfigOption="referConfigOption" |
| | | @setReferConfigValue="setReferConfigValue" |
| | | ></refer-config-dialog> |
| | | <!--近义词查询规则 --> |
| | | <el-dialog :visible.sync="synonymVisible" append-to-body title="近义词查询规则"> |
| | | <avue-crud :data="synonymData" :option="synonymOption" v-loading="sysonymLoading" @selection-change="sysChange"> |
| | | <template slot="lcStatus" slot-scope="{row}"> |
| | | <el-tag v-if="row.lcStatus === 'Released'" type="success">启用</el-tag> |
| | | <el-tag v-else type="danger">停用</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="sysnonymSubmit">确定</el-button> |
| | | <el-button @click="sysnonymCancel">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {AttrByBtm, gridCodeClassifyTemplateAttr, batchAddSave, copyto, listByFlag} from '@/api/template/templateAttr' |
| | | import {AttrByBtm, gridCodeClassifyTemplateAttr, batchAddSave, copyto, listByFlag,codeSynonym} from '@/api/template/templateAttr' |
| | | import {getList} from "@/api/refer/table"; |
| | | import func from "@/util/func"; |
| | | import {getCurrentInstance} from "vue"; |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | sysSelectData:[], |
| | | sysonymLoading:false, |
| | | synonymOption:{ |
| | | addBtn:false, |
| | | editBtn:false, |
| | | delBtn:false, |
| | | refreshBtn:false, |
| | | columnBtn:false, |
| | | menu:false, |
| | | selection:true, |
| | | column:[ |
| | | { |
| | | label:'编码', |
| | | prop:'id', |
| | | align:'center' |
| | | }, |
| | | { |
| | | label:'名称', |
| | | prop:'name', |
| | | align:'center' |
| | | }, |
| | | { |
| | | label:'源值', |
| | | prop:'sourceValue', |
| | | align:'center' |
| | | }, |
| | | { |
| | | label:'同义词', |
| | | prop:'synonymValue', |
| | | align:'center' |
| | | }, |
| | | { |
| | | label:'启停状态', |
| | | prop:'lcStatus', |
| | | align:'center', |
| | | slot: true |
| | | }, |
| | | ] |
| | | }, |
| | | synonymData:[], |
| | | //近义词查询规则 |
| | | synonymVisible:false, |
| | | //表格高度 |
| | | dynamicHeight: '', |
| | | // 保存单元格状态 |
| | |
| | | edit: "switch" |
| | | }, |
| | | { |
| | | label:'近义词查询规则', |
| | | prop:'sysonymRuleOids', |
| | | cell: false, |
| | | edit: 'refer' |
| | | }, |
| | | { |
| | | label: "相似查重属性", |
| | | prop: "sameRepeatAttrFlag", |
| | | width: 110, |
| | |
| | | if (this.editStyleFlag) { |
| | | return '800px' |
| | | } else { |
| | | return 'calc(100vh - 565px)' |
| | | return 'calc(100vh - 602px)' |
| | | } |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | //近义词查询规则取消 |
| | | sysnonymCancel(){ |
| | | this.synonymVisible = false; |
| | | }, |
| | | //近义词查询规则确定 |
| | | sysnonymSubmit(){ |
| | | if(this.sysSelectData.length <= 0){ |
| | | this.$message.warning('请至少选择一条数据!') |
| | | }else { |
| | | const newArray = this.sysSelectData.map(obj => obj.oid); |
| | | const newString = newArray.join(','); |
| | | this.$set(this.CurrentCell, 'sysonymRuleOids', newString) |
| | | this.AddCellFlag = true; |
| | | this.synonymVisible = false; |
| | | } |
| | | }, |
| | | sysChange(row){ |
| | | this.sysSelectData = row; |
| | | }, |
| | | //新增搜索 |
| | | AddFindHandler() { |
| | | if (this.SelectValue == 'id') { |
| | |
| | | if (this.CurrentCell.attributeGroup !== '') { |
| | | this.attrModel = this.CurrentCell.attributeGroup |
| | | } |
| | | }, |
| | | sysonymRuleOids: () =>{ |
| | | this.sysonymLoading = true |
| | | codeSynonym('1','-1','Released').then(res=>{ |
| | | this.synonymData = res.data.data.records; |
| | | this.sysonymLoading = false; |
| | | }).catch(()=>{ |
| | | this.$message.error('请检查控制台错误信息!') |
| | | }) |
| | | this.synonymVisible = true; |
| | | } |
| | | }; |
| | | |
| | |
| | | <style lang="scss" scoped> |
| | | //固定列高度 |
| | | /deep/ .el-table__fixed { |
| | | height: calc(100vh - 584px) !important; |
| | | height: calc(100vh - 618px) !important; |
| | | } |
| | | |
| | | ///deep/ .el-table__fixed[v-if='editStyleFlag'] { |
| | |
| | | <!-- 左侧菜单--> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="height: calc(100vh - 142px);!important;"> |
| | | <div style="height: calc(100vh - 144px);!important;"> |
| | | <div class="headerCon" style="display: flex; flex-wrap: wrap;margin-bottom: 5px"> |
| | | <el-button v-if="permissionList.TreeAddStatus" plain size="small" type="primary" @click="TreeAdd">添加 |
| | | </el-button> |
| | |
| | | </basic-container> |
| | | </el-aside> |
| | | <el-main> |
| | | <basic-container style="height: calc(100vh - 150px);"> |
| | | <basic-container> |
| | | <!-- 右侧表格--> |
| | | <avue-tabs :option="tabOption" @change="handleChange"></avue-tabs> |
| | | <span v-if="type.prop==='tab1'"> |
| | |
| | | this.crudArray = [] |
| | | try { |
| | | this.requestCount += 1; |
| | | const [res1, res2, res3] = await Promise.all([ |
| | | const [res1, res2] = await Promise.all([ |
| | | getObjectByOid(data.oid), |
| | | gridCodeClassifyTemplate({'conditionMap[codeclassifyoid]': data.oid}), |
| | | ]); |
| | |
| | | <template> |
| | | <div style="height: calc(100vh - 553px)"> |
| | | <div> |
| | | <avue-crud v-if="Formlist.length>0" ref="crud" v-model="form" :data="data" :option="option" :page.sync="page" |
| | | :search.sync="search" :table-loading="loading" @on-load="getDataList" @row-save="handleSave" |
| | | @row-del="handleDelete" @row-update="handleEdit" @refresh-change="handleRefresh" |
| | |
| | | startData: [], |
| | | form: {}, |
| | | option: { |
| | | height: 285, |
| | | height: 'auto', |
| | | calcHeight: 20, |
| | | border: true, |
| | | align: 'center', |
| | | menu: !this.checkStatus || this.crudLCStatus == 'Editing', |
| | |
| | | }, |
| | | data() { |
| | | const options = { |
| | | height:'auto', |
| | | border: true, |
| | | addBtn: false, |
| | | align: 'center', |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <basic-container title="主数据统计"> |
| | | <basic-container title="主数据统计"style="height: 345px;"> |
| | | <Statistic></Statistic> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <basic-container title="待办流程任务"> |
| | | <basic-container title="待办流程任务" style="margin-top: 18px" > |
| | | <avue-crud ref="crud" :data="todoData" :option="todoOption" :page.sync="page" |
| | | :table-loading="loading" |
| | | @on-load="onLoad" |
| | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-col> |
| | | <!-- <el-col :span="8">--> |
| | | <!-- <el-row>--> |
| | | <!-- <basic-container title="消息列表">--> |
| | | <!-- <el-collapse v-model="logActiveNames" @change="handleChange">--> |
| | | <!-- <el-collapse-item v-for="item in noticeData" :title="item.title" :name="item.id">--> |
| | | <!-- <div>{{item.subtitle}}</div>--> |
| | | <!-- </el-collapse-item>--> |
| | | <!-- </el-collapse>--> |
| | | <!-- </basic-container>--> |
| | | <!-- </el-row>--> |
| | | |
| | | <!-- </el-col>--> |
| | | </el-row> |
| | | <el-dialog :before-close="Xdelhandle" :close-on-press-escape="false" :visible.sync="dialogFormVisible" |
| | | append-to-body |
| | |
| | | todoData: [], |
| | | // 代办流程任务option |
| | | todoOption: { |
| | | height: 500, |
| | | height: 'auto', |
| | | calcHeight: 420, |
| | | addBtn: false, |
| | | header: false, |
| | | align: 'center', |