Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
| | |
| | | <el-button plain size="small" type="primary">刷新</el-button> |
| | | <el-input placeholder="请输入关键字按回车查询" size="small" |
| | | style="width: 180px; margin-left: 5px; margin-top: 10px"></el-input> --> |
| | | <el-button plain size="small" type="primary" v-for="(item, index) in masterVrBtnList" :key="index" |
| | | @click="handelBtnClick(item)">{{ |
| | | item.name }}</el-button> |
| | | <el-input placeholder="请输入关键字按回车查询" size="small" |
| | | style="width: 180px; margin-left: 5px; margin-top: 10px"></el-input> |
| | | |
| | | </div> |
| | | <el-row style="height: 700px; width: 100%"> |
| | | <el-table v-loading="isLoading" :data="tableData" max-height="700" style="" @cell-click="handleCellClick" |
| | | @selection-change="handleSelectionChange" @sort-change="sortChange" v-if="tableData.length != 0"> |
| | | <div> |
| | | <el-button v-for="(item, index) in masterVrBtnList" :key="index" plain size="small" type="primary" |
| | | @click="handelBtnClick(item)">{{ |
| | | item.name |
| | | }} |
| | | </el-button> |
| | | <el-input v-model="WupinFindValue" placeholder="请输入关键字按回车查询" |
| | | size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"></el-input> |
| | | </div> |
| | | <el-table v-if="tableData.length != 0" v-loading="isLoading" :data="tableData" max-height="700" style="" |
| | | @cell-click="handleCellClick" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | <el-table-column fixed type="selection" width="55"> </el-table-column> |
| | | <el-table-column fixed label="序号" type="index" width="55"> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in this.tableHeadFindData" :key="item.id" :label="item.label" :prop="item.prop" |
| | | :sortable="item.sortable" :formatter="item.formatter" |
| | | :width="item.label.length >= 4 ? '150' : item.label.length == 3 ? '120' : '90'" :show-overflow-tooltip="true" |
| | | <el-table-column v-for="item in this.tableHeadFindData" :key="item.id" :formatter="item.formatter" :label="item.label" |
| | | :prop="item.prop" :show-overflow-tooltip="true" |
| | | :sortable="item.sortable" |
| | | :width="item.label.length >= 4 ? '150' : item.label.length == 3 ? '120' : '90'" |
| | | align="center"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" :templateOid="templateOid" type="add" :visible.sync="addvisible" @submit="AddSumbit"> |
| | | :disabledProp="disabledProp" :templateOid="templateOid" :visible.sync="addvisible" type="add" |
| | | @submit="AddSumbit"> |
| | | </FormTemplateDialog> |
| | | <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid" type="edit" :title="'修改编码信息'" |
| | | :visible.sync="editvisible" @submit="EditSumbit"></FormTemplateDialog> |
| | | :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid" :title="'修改编码信息'" |
| | | :visible.sync="editvisible" |
| | | type="edit" @submit="EditSumbit"></FormTemplateDialog> |
| | | <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid" :type="edit" :title="'已发布数据更改'" |
| | | :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid" :title="'已发布数据更改'" |
| | | :type="edit" |
| | | :visible.sync="DataVisible"></FormTemplateDialog> |
| | | <set-personnel :visible.sync="visibleFlow" :parameter="this.parameter"></set-personnel> |
| | | <set-personnel :parameter="this.parameter" :visible.sync="visibleFlow"></set-personnel> |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" @echoContion="echoContion"></advanced-query> |
| | | <integration-transfer :data="transferData" :props="transferProps" :visible.sync="dialogPush" |
| | | @save="handelTransferSave"></integration-transfer> |
| | | <ResembleQueryDialog :visible.sync="similarVisible" :templateOid="templateOid" :codeClassifyOid="codeClassifyOid" |
| | | :rowOid="rowOid" :codeRuleOid="this.codeRuleOid"></ResembleQueryDialog> |
| | | <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid" |
| | | :templateOid="templateOid" :visible.sync="similarVisible"></ResembleQueryDialog> |
| | | </div> |
| | | <div class="block" style="display: flex; justify-content: flex-end"> |
| | | <el-pagination :current-page="page.currentPage" :page-size="page.pageSizes" :page-sizes="page.pageSizes" |
| | | :total="page.total" layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" |
| | | :total="page.total" layout="total, sizes, prev, pager, next, jumper" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange"> |
| | | </el-pagination> |
| | | </div> |
| | | <BatchImport v-if="batchImportData.visible" :visible.sync="batchImportData.visible" v-bind="batchImportData"> |
| | | <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible"> |
| | | </BatchImport> |
| | | </basic-container> |
| | | </template> |
| | |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import BatchImport from '@/components/BatchImport' |
| | | import { validatenull } from "@/util/validate"; |
| | | |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | //首页右侧搜索 |
| | | WupinFindValue: "", |
| | | //相似项查询 |
| | | similarVisible: false, |
| | | //发布 |
| | |
| | | }; |
| | | }, |
| | | computed: {}, |
| | | created() { }, |
| | | mounted() { }, |
| | | created() { |
| | | }, |
| | | mounted() { |
| | | }, |
| | | activated() { |
| | | // this.doLayout(); |
| | | }, |
| | |
| | | record.formatter = eval("(" + record.templet + ")"); |
| | | //function(row,column){return row[column.property]=='true' || row[column.property]=='1'?'是':'否'} |
| | | } else if (record.fieldType == "truefalse") { |
| | | record.formatter = function (row, column) { return row[column.property] == 'true' || row[column.property] == '1' ? '是' : '否' } |
| | | record.formatter = function (row, column) { |
| | | return row[column.property] == 'true' || row[column.property] == '1' ? '是' : '否' |
| | | } |
| | | } |
| | | } |
| | | }) |
| | |
| | | }else if(column.property == 'verifyRule'){ |
| | | this.RulesForm.expressionTextt=this.CurrentCell.verifyRule; |
| | | this.rulesVisible=true; |
| | | console.log(this.CurrentCell.verifyRule) |
| | | console.log(this.RulesForm.expressionText) |
| | | } |
| | | }, |
| | | saveRows() { |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 存储的业务类型--> |
| | | <el-dialog :visible.sync="BtmdialogVisible" title="为【相似项查询规则】选取值" append-to-body> |
| | | <el-dialog :visible.sync="BtmdialogVisible" title="为【业务类型】选取值" append-to-body> |
| | | <template> |
| | | <el-select v-model="SelectValue" placeholder="请选择" style="width: 135px !important;"> |
| | | <el-option |
| | |
| | | import {TreeEditSave} from '@/api/template/templateAttr' |
| | | export default { |
| | | name: "classifyTreeform.vue", |
| | | props: ['loneTreeNewForm','flag','Editclose'], |
| | | props: ['loneTreeNewForm','flag','Editclose','TreeFlag'], |
| | | data() { |
| | | return { |
| | | SelectFInd:"", |
| | |
| | | labelWidth:128, |
| | | focus:this.btmFoucus, |
| | | readonly: true, |
| | | hide:this.TreeFlag, |
| | | rules: [{ |
| | | required: true, |
| | | message: "存储的业务类型", |
| | |
| | | }, |
| | | created() { |
| | | }, |
| | | watch:{ |
| | | // TreeFlag:{ |
| | | // handler(newval){ |
| | | // const falg=newval; |
| | | // this.findObject(this.) |
| | | // } |
| | | // } |
| | | }, |
| | | methods: { |
| | | submits(form,done){ |
| | | TreeEditSave(this.loneTreeNewForm).then(res=>{ |
| | |
| | | <el-form-item label="编码规则:" label-width="150px"> |
| | | <el-input v-model="TreeAddform.codeRuleOidName" autocomplete="off" style="width: 585px" @focus="CodeFoucus"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="业务类型:" label-width="150px" v-if="TreeFlag==false"> |
| | | <el-input v-model="TreeAddform.btmTypeName" autocomplete="off" style="width: 585px" @focus="btmFoucus"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="关键属性查询规则:" label-width="150px"> |
| | | <el-input v-model="TreeAddform.codeKeyAttrRepeatOidName" autocomplete="off" @focus="Keyfouce" |
| | | style="width: 585px"></el-input> |
| | |
| | | </el-dialog> |
| | | <!-- 修改对话框--> |
| | | <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="修改分类"> |
| | | <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}"></classifyTreeform> |
| | | <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'" @MasterHandler="MasterHandler" :Editclose=" ()=>{TreeEditFormVisible=false}" :TreeFlag="TreeFlag"></classifyTreeform> |
| | | </el-dialog> |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 业务类型--> |
| | | <el-dialog :visible.sync="BtmdialogVisible" title="为【业务类型规则】选取值" append-to-body> |
| | | <template> |
| | | <el-select v-model="SelectValue" placeholder="请选择" style="width: 135px !important;"> |
| | | <el-option |
| | | v-for="item in SelectOption" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | style="width: 130px"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input style="width: 260px;margin-left: 15px" placeholder="输入值后进行模糊查询" v-model="SelectFInd"></el-input> |
| | | <el-button size="small" type="primary" plain @click="BtmSelectFindeHandler" style="margin-left: 20px">查询</el-button> |
| | | </template> |
| | | <avue-crud :data="BtmData" :option="masterOption" @select="btmSelect"></avue-crud> |
| | | <div style="height: 30px"> |
| | | <div style="display: inline-block;float: left;border: 1px solid #eee;padding: 5px;margin-top: 5px;font-size: 14px " >已设置的值为:[{{this.TreeAddform.btmtypename}}]</div> |
| | | <div style="padding-top: 10px;display: flex; justify-content: flex-end;float: right;overflow: hidden" > |
| | | <el-button type="primary" size="small" @click="btmHandlerClick">确定</el-button> |
| | | <el-button size="small" @click="BtmdialogVisible=false">取消</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </el-main> |
| | | </el-container> |
| | |
| | | inject: [, "crudTreeData"], |
| | | data() { |
| | | return { |
| | | //树节点显示隐藏 |
| | | TreeFlag:false, |
| | | //编码规则 |
| | | MasterdialogVisible:false, |
| | | masterData:[], |
| | |
| | | simData:[], |
| | | SimidialogVisible:false, |
| | | simSelectList:[], |
| | | //业务类型 |
| | | btmName:"", |
| | | btmOid:"", |
| | | BtmData:[], |
| | | BtmdialogVisible:false, |
| | | btmSelectList:[], |
| | | masterOption:{ |
| | | addBtn:false, |
| | | index:true, |
| | |
| | | this.simData=res.data.records; |
| | | }) |
| | | }, |
| | | //业务类型失焦 |
| | | btmFoucus(){ |
| | | this.BtmdialogVisible=true; |
| | | this.btmdefaultRend() |
| | | }, |
| | | //业务类型确定 |
| | | btmHandlerClick(){ |
| | | if(this.btmSelectList.length>1){ |
| | | this.$message.warning('只能选择一条数据') |
| | | }else if(this.btmSelectList.length<=0){ |
| | | this.$message.warning('请选择一条数据') |
| | | }else { |
| | | this.BtmdialogVisible=false; |
| | | this.btmSelectList=[] |
| | | this.$set(this.loneTreeNewForm,'btmtypename',this.btmName ||this.btmOid) |
| | | this.$set(this.loneTreeNewForm,'btmtypeid',this.btmOid) |
| | | this.$emit('MasterHandler',this.loneTreeNewForm) |
| | | } |
| | | }, |
| | | //业务类型查询 |
| | | BtmSelectFindeHandler(){ |
| | | if(this.SelectValue == 'id'){ |
| | | const masterParameter={ |
| | | 'conditionMap[id]':this.SelectFInd |
| | | } |
| | | this.btmdefaultRend(masterParameter); |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | }else if(this.SelectValue == 'name'){ |
| | | const masterParameter={ |
| | | 'conditionMap[name]':this.SelectFInd |
| | | } |
| | | this.btmdefaultRend(masterParameter) |
| | | this.SelectValue="" |
| | | this.SelectFInd="" |
| | | } |
| | | }, |
| | | //业务类型多选 |
| | | btmSelect(row){ |
| | | this.btmSelectList=row; |
| | | this.btmName=row[0].name; |
| | | this.btmOid=row[0].oid; |
| | | }, |
| | | //业务类型接口 |
| | | btmdefaultRend(masterParameter){ |
| | | referDataGrid({valueField:'id',isMuti:'false',...masterParameter}).then(res=>{ |
| | | // console.log(res) |
| | | this.BtmData=res.data.data.records |
| | | }) |
| | | }, |
| | | //子传父 |
| | | MasterHandler(val){ |
| | | this.TreeList=val |
| | |
| | | //树点击事件 |
| | | async nodeClick(data) { |
| | | //定义一个模板属性id,数据是模板管理表格里面的oid |
| | | console.log('树',data) |
| | | if(data.parentId == ""){ |
| | | this.TreeFlag=true; |
| | | } |
| | | this.nodeClickList = data |
| | | this.ProData=[] |
| | | try { |
| | |
| | | </template> |
| | | {{ itemForm.itemData.typeValue }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <!-- <el-descriptions-item> |
| | | <template slot="label"> |
| | | 标签 |
| | | </template> |
| | | {{ itemForm.itemData.hashtag }} |
| | | </el-descriptions-item> |
| | | </el-descriptions-item>--> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 默认值 |
| | |
| | | <template slot="label"> |
| | | 允许为空 |
| | | </template> |
| | | {{ itemForm.itemData.nullable }} |
| | | {{ 'true' == itemForm.itemData.nullable ? '是' : '否'}} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | prop: "name", |
| | | align: "left", |
| | | display: false |
| | | }, { |
| | | },/* { |
| | | label: "标签", |
| | | prop: "hashtag", |
| | | // hide: true, |
| | | display: false |
| | | }, { |
| | | },*/ { |
| | | label: "是否使用枚举", |
| | | prop: "usingDict", |
| | | type: "switch", |
| | |
| | | }, |
| | | addSave() { |
| | | this.$refs.originalAdd.showSubmitDialog = true; |
| | | this.$refs.originalAdd.attribute = {}; |
| | | const newAttr = {}; |
| | | newAttr.nullable = true; |
| | | this.$refs.originalAdd.attribute = newAttr; |
| | | }, |
| | | updateSave(row,index) { |
| | | this.selectRow = index; |
| | |
| | | // this.refreshChange() |
| | | }, |
| | | deleteSave(row,index) { |
| | | console.log(row); |
| | | this.$confirm("删除元数据将无法被恢复, 是否继续?", "提示", { |
| | | iconClass: 'el-icon-question', |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | showClose: true, |
| | | type: "warning" |
| | | }).then(() => { |
| | | remove(row.oid).then(res => { |
| | | this.$message.success("删除成功"); |
| | | this.refreshChange(); |
| | | }); |
| | | }); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="标签" label-width="100px"> |
| | | <!-- <el-form-item label="标签" label-width="100px"> |
| | | <el-input v-model="attribute.hashtag"></el-input> |
| | | </el-form-item> |
| | | </el-form-item>--> |
| | | <el-form-item label="默认值" label-width="100px"> |
| | | <el-input v-model="attribute.defaultValue"></el-input> |
| | | </el-form-item> |