| | |
| | | |
| | | export const MasterTable =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/getUIInfoByClassifyOid', |
| | | url: 'api/ubcs-code/mdmEngineController/getUIInfoByClassifyOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | |
| | | |
| | | export const TableData =(params)=>{ |
| | | return request({ |
| | | url: 'api/ubcs-code/ubcs-code/mdmEngineController/gridTableDataByClassifyOid', |
| | | url: 'api/ubcs-code/mdmEngineController/gridTableDataByClassifyOid', |
| | | method: 'get', |
| | | params:{ |
| | | ...params |
| | |
| | | }) |
| | | } |
| | | |
| | | export const getLazyList = (parentId, params) => { |
| | | export const getLazyList = (parentId, params,current, size,) => { |
| | | return request({ |
| | | url: '/api/ubcs-system/dept/lazy-list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | parentId |
| | | parentId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const combination = () => { |
| | | return request({ |
| | | url: '/api/ubcs-system/combination/select', |
| | | method: 'get', |
| | | }) |
| | | } |
| | |
| | | <FormTemplateDialog |
| | | :visible.sync="addvisible" |
| | | :type="add" |
| | | :templateOid="this.templateOid" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | |
| | | <FormTemplateDialog |
| | | :visible.sync="editvisible" |
| | | :type="edit" |
| | | :templateOid="this.templateOids" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="this.codeClassifyOid" |
| | | :codeRuleOid="this.codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | |
| | | <el-button size="small" type="primary" plain>删除</el-button> |
| | | <el-button size="small" type="primary" plain>发布</el-button> |
| | | <el-button size="small" type="primary" plain>数据更改</el-button> |
| | | <el-button size="small" type="primary" plain>回收</el-button> |
| | | <el-button size="small" type="primary" plain @click="huishouHandler">回收</el-button> |
| | | <el-button size="small" type="primary" plain @click="openD">导出 |
| | | <integration-transfer :visible.sync="dialogPush" :data="transferData" |
| | | :props="transferProps" @save="handelTransferSave"></integration-transfer> |
| | | </el-button> |
| | | <el-button size="small" type="primary" plain @click="findvisible=true">查询 |
| | | <advancedQuery :visible.sync="findvisible" :options="this.options"></advancedQuery> |
| | | <advanced-query :visible.sync="findvisible" :options="this.options"></advanced-query> |
| | | </el-button> |
| | | <el-button size="small" type="primary" plain>相似项查询</el-button> |
| | | <el-button size="small" type="primary" plain style="margin-left: 1px;margin-top:10px">刷新</el-button> |
| | | <el-input placeholder="请输入关键字按回车查询" style="width: 180px;margin-left: 5px;margin-top:10px" size="small"></el-input> |
| | | </div> |
| | | <el-row style="height: 700px;width: 100%"> |
| | | <el-table :data="tableData" style="" @cell-click="handleCellClick" max-height="700" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | <el-table :data="tableData" style="" @cell-click="handleCellClick" max-height="700" v-loading="isLoading" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | <el-table-column |
| | | type="selection" |
| | | fixed |
| | |
| | | }, |
| | | tableDataArray:{ |
| | | type:Array, |
| | | default:[] |
| | | }, |
| | | total:{ |
| | | type:String, |
| | | default:"" |
| | | }, |
| | | templateOid:{ |
| | | type:String, |
| | | }, |
| | | tableHeadDataFateher:{ |
| | | type:Array, |
| | | default:[] |
| | | }, |
| | | isLoading:{ |
| | | type:Boolean, |
| | | default:false |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | editingRow:null, |
| | | editShow: "", |
| | | editAttr:"", |
| | | loading: false, |
| | | data: [], |
| | | options:{}, |
| | | option: { |
| | |
| | | }, |
| | | tableData:[], |
| | | tableHeadData:[], |
| | | tableHeadDataFateher:[], |
| | | items:{}, |
| | | seniorQueryColumns:[] |
| | | } |
| | |
| | | this.page.total=newval; |
| | | } |
| | | }, |
| | | tableHeadData:{ |
| | | tableHeadDataFateher:{ |
| | | handler(newval,oldval){ |
| | | this.tableHeadDataFateher=newval |
| | | let List=newval.tableDefineVO.cols[0]; |
| | | List.forEach(item=>{ |
| | | let columnItem = { |
| | | label: item.title, |
| | | prop: item.field, |
| | | type: this.columnType[item.type], |
| | | sortable: item.sort, |
| | | width: item.minWidth |
| | | }; |
| | | this.option.column.push(columnItem); |
| | | this.option.column=this.tableHeadData; |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | huishouHandler(){ |
| | | console.log('tem',this.templateOid) |
| | | console.log('table',this.tableData) |
| | | console.log('tabheadle',this.tableHeadData) |
| | | console.log('tableFather',this.tableHeadDataFateher) |
| | | }, |
| | | openD(){ |
| | | this.dialogPush=true; |
| | | this.getListCodeByClassId() |
| | |
| | | this.page.pageSize=val |
| | | this.$emit('pageSize',val) |
| | | this.CrudRend() |
| | | console.log(this.tableData) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | this.page.currentPage=val |
| | | this.$emit('currentPage',val) |
| | | this.CrudRend() |
| | | console.log(val) |
| | | console.log(this.tableData) |
| | | }, |
| | | // 监听单元格点击事件并存储正在编辑的行 |
| | | handleCellClick(row, column) { |
| | | this.editingRow = row; |
| | | this.editShow = column.property; |
| | | console.log(row) |
| | | this.rowOid=row.oid |
| | | }, |
| | | //删除 |
| | | enumDeleteRow(row) { |
| | | console.log(row) |
| | | this.tableData.splice(row, 1) |
| | | }, |
| | | // 将正在编辑的行的状态变为 null ,即退出编辑状态 |
| | |
| | | this.option.column=this.tableHeadData; |
| | | this.templateOid=res.data.tableDefineVO.oid |
| | | this.$emit('templateOid',this.templateOid) |
| | | console.log(this.templateOid) |
| | | }) |
| | | }) |
| | | } |
| | |
| | | }, |
| | | // 排序 |
| | | sortChange(val) { |
| | | this.loading = true; |
| | | this.isLoading = true; |
| | | let order = "" |
| | | if (val.order == "ascending") { |
| | | order = "asc"; |
| | |
| | | }).then(res => { |
| | | setTimeout(() => { |
| | | this.data = res.data.data; |
| | | this.loading = false; |
| | | this.isLoading = false; |
| | | }, 100); |
| | | }) |
| | | }, |
| | |
| | | this.coderuleoid=res.data[0].attributes.coderuleoid; |
| | | this.$emit("codeClassifyOid", this.codeClassifyOid ) |
| | | this.$emit("coderuleoid", this.coderuleoid ) |
| | | this.TableHeadRends() |
| | | }).catch(res=>{ |
| | | console.log(res) |
| | | }) |
| | |
| | | page: this.currentPage, |
| | | limit: this.pageSize, |
| | | }).then(res => { |
| | | // this.page.total = res.data.total; |
| | | // this.data = res.data.data; |
| | | this.tableDataArray=res.data.data; |
| | | this.$emit('tableDataArray',this.tableDataArray) |
| | | this.$emit('total',res.data.total) |
| | | console.log('table',this.tableDataArray) |
| | | }) |
| | | }, |
| | | //表格头部 |
| | | TableHeadRend(){ |
| | | MasterTable({ |
| | | codeClassifyOid:this.nodeClickList.oid, |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | this.tableHeadDataFateher=res.data; |
| | | this.templateOids=res.data.tableDefineVO.oid |
| | | this.$emit("tableHeadDataFateher",this.tableHeadDataFateher) |
| | | console.log("123",res) |
| | | }) |
| | | }, |
| | | TableHeadRends(){ |
| | | MasterTable({ |
| | | codeClassifyOid:this.codeClassifyOid, |
| | | functionId: 5, |
| | | }).then(res=>{ |
| | | this.tableHeadDataFateher=res.data; |
| | | this.templateOids=res.data.tableDefineVO.oid |
| | | this.$emit("tableHeadDataFateher",this.tableHeadDataFateher) |
| | | console.log("123",res) |
| | | TableHeadRend() { |
| | | return new Promise((resolve,reject)=>{ |
| | | MasterTable({ |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | functionId: 5, |
| | | }).then(res => { |
| | | this.tableHeadDataFateher = res.data; |
| | | this.templateOids = res.data.tableDefineVO.oid; |
| | | this.$emit('tableHeadDataFateher', this.tableHeadDataFateher); |
| | | resolve(); |
| | | }).catch(err=>{ |
| | | reject(err) |
| | | }) |
| | | }) |
| | | }, |
| | | //树点击事件 |
| | | nodeClick(data){ |
| | | this.nodeClickList = data; |
| | | this.TableHeadRend() |
| | | this.TableRend() |
| | | console.log('code',this.nodeClickList.oid) |
| | | console.log('teoid',this.templateOids) |
| | | console.log() |
| | | async nodeClick(data) { |
| | | try { |
| | | this.nodeClickList = data; |
| | | await this.TableHeadRend(); // 先执行 TableHeadRend() |
| | | this.TableRend(); // TableHeadRend() 方法完成后再执行 TableRend() |
| | | this.$emit('nodeClick',this.templateOids) |
| | | console.log(this.templateOids) |
| | | } catch (error) { |
| | | // 处理错误 |
| | | this.$message.error(error) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <attrCrud :ProData="ProData" :crudOid="crudOid" :crudArray="crudArray" :Formlist="Formlist" :codeClassifyOid="codeClassifyOid"></attrCrud> |
| | | </span> |
| | | <span v-else-if="type.prop==='tab2'"> |
| | | <FlowPath code="8b5e2017-990f-454a-9c39-4c4eeeb57553"></FlowPath> |
| | | <FlowPath :code="this.codeClassifyOid"></FlowPath> |
| | | |
| | | </span> |
| | | <span v-else-if="type.prop==='tab3'"> |
| | | <!-- <stage :visible.sync="visibleStage" code="8b5e2017-990f-454a-9c39-4c4eeeb57553"></stage>--> |
| | | <stage :code="this.codeClassifyOid"></stage> |
| | | </span> |
| | | </basic-container> |
| | | |
| | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | |
| | | <!--<template>--> |
| | | <!-- <!– 使用 Element UI 的表格组件展示数据 –>--> |
| | | <!-- <!– 对每行数据渲染一个表格行组件 –>--> |
| | | <!-- <el-table :data="data">--> |
| | | <!-- <el-table-column v-for="column in columns" :key="column.prop" :label="column.label">--> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <template v-if="isEditing(scope.$index, column.prop)">--> |
| | | <!-- <!– 使用自定义输入框,绑定数据并监听 blur 事件 –>--> |
| | | <!-- <el-input v-model="editorModel[scope.$index][column.prop]" ref="editor"--> |
| | | <!-- @blur="onEditorBlur(scope.$index, column.prop)">--> |
| | | <!-- </el-input>--> |
| | | <!-- </template>--> |
| | | <!-- <template v-else>--> |
| | | <!-- <!– 将数据渲染为表格单元格,绑定 click 事件 –>--> |
| | | <!-- <div @click="onCellClick(scope.$index, column.prop)"--> |
| | | <!-- :style="{cursor: 'pointer', backgroundColor: isEditing(scope.$index, column.prop) ? '#F0F0F0' : 'transparent'}">--> |
| | | <!-- {{ scope.row[column.prop] === "" ? '' : scope.row[column.prop] }}--> |
| | | <!-- </div>--> |
| | | <!-- </template>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <!-- </el-table>--> |
| | | <!--</template>--> |
| | | |
| | | <!--<script>--> |
| | | <!--export default {--> |
| | | <!-- data() {--> |
| | | <!-- // 组件的数据,包括表格的数据、列定义和当前正在编辑的行和列--> |
| | | <!-- return {--> |
| | | <!-- data: [--> |
| | | <!-- { id: 1, name: '张三', age: 18, attributegroup: '男', attributeDataTypeText: '广东省深圳市' },--> |
| | | <!-- { id: 2, name: '李四', age: 20, attributegroup: '女', attributeDataTypeText: '北京市海淀区' },--> |
| | | <!-- { id: 3, name: '王五', age: 22, attributegroup: '男', attributeDataTypeText: '上海市浦东新区' },--> |
| | | <!-- { id: 4, name: '赵六', age: 24, attributegroup: '女', attributeDataTypeText: '广东省广州市' }--> |
| | | <!-- ],--> |
| | | <!-- columns: [ // 定义表格的列--> |
| | | <!-- {--> |
| | | <!-- label: "属性英文编号",--> |
| | | <!-- prop: "id",--> |
| | | <!-- fixed: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- labelWidth: 110,--> |
| | | <!-- width: 125,--> |
| | | <!-- sortable: true,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "属性中文名称",--> |
| | | <!-- prop: "name",--> |
| | | <!-- fixed: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- width: 125,--> |
| | | <!-- sortable: true--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "属性分组",--> |
| | | <!-- prop: "attributegroup",--> |
| | | <!-- cell: false,--> |
| | | <!-- sortable: true,--> |
| | | <!-- width: 125,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "类型",--> |
| | | <!-- prop: "attributeDataTypeText",--> |
| | | <!-- cell: false,--> |
| | | <!-- sortable: true,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "列表宽度",--> |
| | | <!-- prop: "attrTableWidth",--> |
| | | <!-- cell: false,--> |
| | | <!-- sortable: true,--> |
| | | <!-- width: 105,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "关键属性",--> |
| | | <!-- prop: "keyattrflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "查询属性",--> |
| | | <!-- prop: "queryattrflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "高级查询属性",--> |
| | | <!-- prop: "seniorqueryattrflag",--> |
| | | <!-- width: 95,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "相似查询属性",--> |
| | | <!-- prop: "samerepeatattrflag",--> |
| | | <!-- width: 95,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "必输",--> |
| | | <!-- prop: "requireflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "表单显示",--> |
| | | <!-- prop: "formdisplayflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "列表显示",--> |
| | | <!-- prop: "tabledisplayflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "只读",--> |
| | | <!-- prop: "readonlyflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "列表排序",--> |
| | | <!-- prop: "sortattrflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | |
| | | <!-- {--> |
| | | <!-- label: "多行文本",--> |
| | | <!-- prop: "textareaflag",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "默认值",--> |
| | | <!-- prop: "defaultvalue",--> |
| | | <!-- sortable: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- width: 95,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "前缀",--> |
| | | <!-- prop: "prefixvalue",--> |
| | | <!-- sortable: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "后缀",--> |
| | | <!-- prop: "suffixvalue",--> |
| | | <!-- sortable: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "组合规则",--> |
| | | <!-- prop: "componentrule",--> |
| | | <!-- sortable: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- width: 105,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "验证规则",--> |
| | | <!-- prop: "verifyrule",--> |
| | | <!-- sortable: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- width: 105,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "时间格式",--> |
| | | <!-- prop: "codedateformat",--> |
| | | <!-- sortable: true,--> |
| | | <!-- width: 105,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "分类注入",--> |
| | | <!-- prop: "classifyinvokelevel",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "枚举注入",--> |
| | | <!-- prop: "enumString",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "级联属性",--> |
| | | <!-- prop: "parentCode",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "参照配置",--> |
| | | <!-- prop: "referConfig",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "级联查询属性",--> |
| | | <!-- prop: "parentQueryAttr",--> |
| | | <!-- width: 105,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "选择库标识",--> |
| | | <!-- prop: "libraryIdentification",--> |
| | | <!-- width: 105,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "填写提示",--> |
| | | <!-- prop: "explain",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "表单显示样式",--> |
| | | <!-- prop: "formdisplaystyle",--> |
| | | <!-- width: 105,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "表格显示样式",--> |
| | | <!-- prop: "tabledisplaystyle",--> |
| | | <!-- width: 105,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "表单超链接",--> |
| | | <!-- prop: "formhref",--> |
| | | <!-- width: 95,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "表格超链接",--> |
| | | <!-- prop: "tablehref",--> |
| | | <!-- width: 95,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "表格显示js",--> |
| | | <!-- prop: "tabledisplayjs",--> |
| | | <!-- width: 95,--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "长度",--> |
| | | <!-- prop: "controllength",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "小数精度",--> |
| | | <!-- prop: "precisionlength",--> |
| | | <!-- cell: false,--> |
| | | <!-- },--> |
| | | <!-- {--> |
| | | <!-- label: "取值范围",--> |
| | | <!-- prop: "valuearea",--> |
| | | <!-- sortable: true,--> |
| | | <!-- cell: false,--> |
| | | <!-- width: 105,--> |
| | | <!-- },--> |
| | | |
| | | <!-- ],--> |
| | | <!-- editingIndex: -1, // 当前正在编辑的行的索引--> |
| | | <!-- editingColumn: '', // 当前正在编辑的列的属性名--> |
| | | <!-- editorModel: [] // 编辑框的数据,使用数组保存每个单元格的数据--> |
| | | <!-- };--> |
| | | <!-- },--> |
| | | <!-- created() {--> |
| | | <!-- // 在组件创建时,初始化编辑框的数据--> |
| | | <!-- this.editorModel = this.data.map(row => {--> |
| | | <!-- const editorRow = {};--> |
| | | <!-- this.columns.forEach(column => {--> |
| | | <!-- editorRow[column.prop] = row[column.prop];--> |
| | | <!-- });--> |
| | | <!-- return editorRow;--> |
| | | <!-- });--> |
| | | <!-- },--> |
| | | <!-- methods: {--> |
| | | <!-- // 单元格点击事件处理函数--> |
| | | <!-- onCellClick(rowIndex, columnProp) {--> |
| | | <!-- if (this.editingIndex >= 0 && this.editingColumn) {--> |
| | | <!-- this.onEditorBlur(this.editingIndex, this.editingColumn);--> |
| | | <!-- return;--> |
| | | <!-- }--> |
| | | |
| | | <!-- const cellValue = this.data[rowIndex][columnProp];--> |
| | | <!-- if (cellValue === undefined || cellValue === null) {--> |
| | | <!-- this.data[rowIndex][columnProp] = '';--> |
| | | <!-- }--> |
| | | |
| | | <!-- this.editingIndex = rowIndex;--> |
| | | <!-- this.editingColumn = columnProp;--> |
| | | |
| | | <!-- this.$nextTick(() => {--> |
| | | <!-- this.$refs.editor.focus();--> |
| | | <!-- });--> |
| | | <!-- },--> |
| | | |
| | | <!-- // 编辑框失焦事件处理函数--> |
| | | <!-- onEditorBlur(rowIndex, columnProp) {--> |
| | | <!-- // 将当前编辑框的数据保存到表格数据中--> |
| | | <!-- const editorValue = this.editorModel[rowIndex][columnProp];--> |
| | | <!-- if (editorValue === '') {--> |
| | | <!-- this.data[rowIndex][columnProp] = undefined;--> |
| | | <!-- } else {--> |
| | | <!-- this.data[rowIndex][columnProp] = editorValue;--> |
| | | <!-- }--> |
| | | |
| | | <!-- this.editingIndex = -1;--> |
| | | <!-- this.editingColumn = '';--> |
| | | <!-- },--> |
| | | <!-- // 判断指定单元格是否在编辑状态--> |
| | | <!-- isEditing(rowIndex, columnProp) {--> |
| | | <!-- return rowIndex === this.editingIndex && columnProp === this.editingColumn;--> |
| | | <!-- }--> |
| | | <!-- }--> |
| | | <!--};--> |
| | | <!--</script>--> |
| | | |
| | | |
| | | <style lang="scss"> |
| | | //修改分类注入对话框公共样式 |
| | | .mydialog .el-dialog__body { |
| | |
| | | </template> |
| | | <!-- 组合规则--> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" @click="isShowformulaEdit=true">组合规则</el-button> |
| | | <formula-editor :visible.sync="isShowformulaEdit" :systemVariableTableData="systemVariableTableData" :thisSceneTableData="thisSceneTableData"></formula-editor> |
| | | <el-button size="small" @click="isShowHandler">组合规则</el-button> |
| | | <formula-editor :visible.sync="isShowformulaEdit" |
| | | :systemVariableTableData="systemVariableTableData" |
| | | :thisSceneTableData="thisSceneTableData" |
| | | @updateFormulaContent="updataFormlaContent" |
| | | ></formula-editor> |
| | | |
| | | </template> |
| | | <!-- 验证规则--> |
| | |
| | | type:Boolean, |
| | | default:false |
| | | }, |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | { |
| | | label: "使用说明", |
| | | prop: "shiyong" |
| | | prop: "description" |
| | | } |
| | | ] |
| | | }, |
| | | //属性验证规则data |
| | | rulesData: [ |
| | | { |
| | | bds: "测试一", |
| | | shiyong: "测试一" |
| | | }, |
| | | {bds: '[\u3000\uff01-\uff5f]+', description: '全角符号'}, |
| | | {bds: '[^\u3000\uff01-\uff5f]+', description: '半角符号'}, |
| | | {bds: '(([-|+]{1}[\\d]+℃~[-|+]{1}[\\d]+℃)|无)', description: '温度范围,示例 -55℃~+125℃'}, |
| | | {bds: '[\\d]{15}|[\\d]{18}|[\\d]{17}X', description: '身份证号码(15或18位数字、17位数字X) '}, |
| | | {bds: '男|女|男性|女性', description: '中文性别'}, |
| | | {bds: '[\\d]+', description: '数字'}, |
| | | {bds: '[a-zA-Z]+', description: '字母'}, |
| | | {bds: '[A-Z]+', description: '大写字母'}, |
| | | {bds: '[a-z]+', description: '小写字母'}, |
| | | {bds: '[0-9a-zA-Z]+', description: '字母、数字组合'}, |
| | | {bds: '((0[\\d]{3}-[\\d]{7})|(0[\\d]{2}-[\\d]{8})|([\\d]{7,8}))', description: '电话号码'}, |
| | | {bds: '-?[1-9]\\d*', description: '整数'}, |
| | | {bds: '[1-9]\\d*', description: '正整数'}, |
| | | {bds: '-[1-9]\\d*', description: '负整数'}, |
| | | {bds: '-[1-9]\\d*|0', description: '非正整数(负整数+0)'}, |
| | | {bds: '[1-9]\\d*|0', description: '非负整数(正整数+0)'}, |
| | | {bds: '-?([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0)', description: '浮点数'}, |
| | | {bds: '[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*', description: '正浮点数'}, |
| | | {bds: '-[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*', description: '负浮点数'}, |
| | | {bds: '[(-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*))|0?\\.0+|0', description: '非正浮点数(负浮点数 + 0)'}, |
| | | {bds: '[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0', description: '非负浮点数(正浮点数 + 0)'}, |
| | | {bds: 'x', description: '字符 x'}, |
| | | {bds: '\\\\', description: '反斜线字符'}, |
| | | {bds: '\\0n', description: '带有八进制值 0 的字符 n (0 <= n <= 7)'}, |
| | | {bds: '\\0nn', description: '带有八进制值 0 的字符 nn (0 <= n <= 7)'}, |
| | | {bds: '\\0mnn', description: '带有八进制值 0 的字符 mnn(0 <= m <= 3、0 <= n <= 7)'}, |
| | | {bds: '\\xhh', description: '带有十六进制值 0x 的字符 hh'}, |
| | | {bds: '\\uhhhh', description: '带有十六进制值 0x 的字符 hhhh'}, |
| | | {bds: '\\t', description: '制表符 (\'\u0009\')'}, |
| | | {bds: '\\n', description: '新行(换行)符 (\'\u000A\')'}, |
| | | {bds: '\\r', description: '回车符 (\'\u000D\')'}, |
| | | {bds: '\\f', description: '换页符 (\'\u000C\')'}, |
| | | {bds: '\\a', description: '报警 (bell) 符 (\'\u0007\')'}, |
| | | {bds: '\\e', description: '转义符 (\'\u001B\')'}, |
| | | {bds: '\\cx', description: '对应于 x 的控制符'}, |
| | | {bds: '[abc]', description: 'a、b 或 c(简单类)'}, |
| | | {bds: '[^abc]', description: '任何字符,除了 a、b 或 c(否定)'}, |
| | | {bds: '[a-zA-Z]', description: 'a 到 z 或 A 到 Z,两头的字母包括在内(范围)'}, |
| | | {bds: '[a-d[m-p]]', description: 'a 到 d 或 m 到 p:[a-dm-p](并集)'}, |
| | | {bds: '[a-z&&[def]]', description: '\td、e 或 f(交集)'}, |
| | | {bds: '[a-z&&[^bc]]', description: 'a 到 z,除了 b 和 c:[ad-z](减去)'}, |
| | | {bds: '[a-z&&[^m-p]]', description: 'a 到 z,而非 m 到 p:[a-lq-z](减去)'}, |
| | | {bds: '.', description: '任何字符(与行结束符可能匹配也可能不匹配)'}, |
| | | {bds: '\\d', description: '数字:[0-9]'}, |
| | | {bds: '\\D', description: '非数字: [^0-9]'}, |
| | | {bds: '\\s', description: '空白字符:[ \\t\\n\x0B\\f\\r]'}, |
| | | {bds: '\\S', description: '非空白字符:[^\\s]'}, |
| | | {bds: '\\w', description: '单词字符:[a-zA-Z_0-9]'}, |
| | | {bds: '\\W', description: '非单词字符:[^\\w]'}, |
| | | {bds: '\\p{Lower}', description: '小写字母字符:[a-z]'}, |
| | | {bds: '\\p{Upper}', description: '大写字母字符:[A-Z]'}, |
| | | {bds: '\\p{ASCII}', description: '所有 ASCII:[\x00-\x7F]'}, |
| | | {bds: '\\p{Alpha}', description: '字母字符:[\\p{Lower}\\p{Upper}]'}, |
| | | {bds: '\\p{Digit}', description: '十进制数字:[0-9]'}, |
| | | {bds: '\\p{Alnum}', description: '字母数字字符:[\\p{Alpha}\\p{Digit}]'}, |
| | | {bds: '\\p{Punct}', description: '标点符号:!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'}, |
| | | {bds: '\\p{Graph}', description: '可见字符:[\\p{Alnum}\\p{Punct}]'}, |
| | | {bds: '\\p{Print}', description: '可打印字符:[\\p{Graph}\x20]'}, |
| | | {bds: '\\p{Blank}', description: '空格或制表符:[ \\t]'}, |
| | | {bds: '\\p{Cntrl}', description: '控制字符:[\x00-\x1F\x7F]'}, |
| | | {bds: '\\p{XDigit}', description: '十六进制数字:[0-9a-fA-F]'}, |
| | | {bds: '\\p{Space}', description: '空白字符:[ \\t\\n\x0B\\f\\r]'}, |
| | | {bds: '\\p{javaLowerCase}', description: '等效于 java.lang.Character.isLowerCase()'}, |
| | | {bds: '\\p{javaUpperCase}', description: '等效于 java.lang.Character.isUpperCase()'}, |
| | | {bds: '\\p{javaWhitespace}', description: '等效于 java.lang.Character.isWhitespace()'}, |
| | | {bds: '\\p{javaMirrored}', description: '等效于 java.lang.Character.isMirrored()'}, |
| | | {bds: '\\p{InGreek}', description: 'Greek 块(简单块)中的字符'}, |
| | | {bds: '\\p{Lu}', description: '大写字母(简单类别)'}, |
| | | {bds: '\\p{Sc}', description: '货币符号'}, |
| | | {bds: '\\P{InGreek}', description: '所有字符,Greek 块中的除外(否定)'}, |
| | | {bds: '[\\p{L}&&[^\\p{Lu}]]', description: '所有字母,大写字母除外(减去)'}, |
| | | {bds: '^', description: '行的开头'}, |
| | | {bds: '$', description: '行的结尾'}, |
| | | {bds: '\\b', description: '单词边界'}, |
| | | {bds: '\\B', description: '非单词边界'}, |
| | | {bds: '\\A', description: '输入的开头'}, |
| | | {bds: '\\G', description: '上一个匹配的结尾'}, |
| | | {bds: '\\Z', description: '输入的结尾,仅用于最后的结束符(如果有的话)'}, |
| | | {bds: '\\z', description: '输入的结尾'}, |
| | | {bds: 'X ?', description: 'X,一次或一次也没有'}, |
| | | {bds: 'X *', description: 'X,零次或多次'}, |
| | | {bds: 'X +', description: 'X,一次或多次'}, |
| | | {bds: 'X {n }', description: 'X,恰好 n 次'}, |
| | | {bds: 'X {n ,}', description: 'X,至少 n 次'}, |
| | | {bds: 'X {n ,m }', description: 'X,至少 n 次,但是不超过 m 次'}, |
| | | {bds: 'X ??', description: 'X,一次或一次也没有'}, |
| | | {bds: 'X *?', description: 'X,零次或多次'}, |
| | | {bds: 'X +?', description: 'X,一次或多次'}, |
| | | {bds: 'X {n }?', description: 'X,恰好 n 次'}, |
| | | {bds: 'X {n ,}?', description: 'X,至少 n 次'}, |
| | | {bds: 'X {n ,m }?', description: 'X,至少 n 次,但是不超过 m 次'}, |
| | | {bds: 'X ?+', description: 'X,一次或一次也没有'}, |
| | | {bds: 'X *+', description: 'X,零次或多次'}, |
| | | {bds: 'X ++', description: 'X,一次或多次'}, |
| | | {bds: 'X {n }+', description: 'X,恰好 n 次'}, |
| | | {bds: 'X {n ,}+', description: 'X,至少 n 次'}, |
| | | {bds: 'X {n ,m }+', description: 'X,至少 n 次,但是不超过 m 次'}, |
| | | {bds: 'XY', description: 'X 后跟 Y'}, |
| | | {bds: 'X |Y', description: 'X 或 Y'}, |
| | | {bds: '(X )', description: 'X,作为捕获组'}, |
| | | {bds: '\\n', description: '任何匹配的 n<sup>th</sup> 捕获组'}, |
| | | {bds: '\\', description: 'Nothing,但是引用以下字符'}, |
| | | {bds: '\\Q', description: 'Nothing,但是引用所有字符,直到 \\E'}, |
| | | {bds: '\\E', description: 'Nothing,但是结束从 \\Q 开始的引用'}, |
| | | {bds: '(?:X )', description: 'X,作为非捕获组'}, |
| | | {bds: '(?idmsux-idmsux)', description: 'Nothing,但是将匹配标志由 on 转为 off'}, |
| | | {bds: '(?idmsux-idmsux:X )', description: 'X,作为带有给定标志 on - off 的非捕获组'}, |
| | | {bds: '(?=X )', description: 'X,通过零宽度的正 lookahead'}, |
| | | {bds: '(?!X )', description: 'X,通过零宽度的负 lookahead'}, |
| | | {bds: '(?<=X )', description: 'X,通过零宽度的正 lookbehind'}, |
| | | {bds: '(?<!X )', description: 'X,通过零宽度的负 lookbehind'}, |
| | | {bds: '(?>X )', description: 'X,作为独立的非捕获组'} |
| | | ], |
| | | // 新增业务类型 |
| | | businessData: [], |
| | | businessOption: { |
| | | indexClassName:"序号", |
| | | indexLabelClassName:'序号', |
| | | index: true, |
| | | border: true, |
| | | addBtn: false, |
| | |
| | | }, |
| | | //验证规则检查 |
| | | rulesExamine() { |
| | | |
| | | if(this.RulesForm.expressionText.test(this.RulesForm.TestContent)){ |
| | | this.$message.success('校验成功') |
| | | } |
| | | }, |
| | | //点击分类注入按钮 |
| | | injectBtn(){ |
| | |
| | | // console.log(res) |
| | | // }) |
| | | }, |
| | | //组合规则 |
| | | isShowHandler(){ |
| | | if(this.CrudSelect.length>1){ |
| | | this.$message.warning('只能选择一条模板属性数据') |
| | | }else if(this.CrudSelect.length<1){ |
| | | this.$message.warning('请选择一条模板属性数据') |
| | | }else if(this.CrudSelect.length === 1){ |
| | | this.isShowformulaEdit=true; |
| | | } |
| | | }, |
| | | //全屏编辑 |
| | | fullscreenHandle(){ |
| | | if(this.crudArray.length<1){ |
| | |
| | | this.attrEditVisible=false; |
| | | console.log(this.attrEditVisible) |
| | | }, |
| | | updataFormlaContent(val){ |
| | | console.log(val) |
| | | this.$set(this.attrRow,'componentRule',val) |
| | | }, |
| | | // 排序 |
| | | sortChange(val) { |
| | | console.log(val) |
| | |
| | | @select="selectHandle" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button plain size="small" type="primary" @click="FindFormVisible = true;">查询</el-button> |
| | | <el-button plain size="small" type="primary" @click="FindeHanler">查询</el-button> |
| | | <el-button plain size="small" type="primary" @click="TemRefresh">刷新</el-button> |
| | | <el-button plain size="small" type="primary" @click="TreeEdit">修改</el-button> |
| | | <el-button plain size="small" type="primary" @click="TreeDel">删除</el-button> |
| | |
| | | inject: [, "crudTreeData"], |
| | | data() { |
| | | return { |
| | | //表格option配置项 |
| | | crudTreeOption: { |
| | | index: true, |
| | | border: true, |
| | | height:180, |
| | | selection:true, |
| | | addBtn:this.addFlag, |
| | | column: [ |
| | | { |
| | | label: "模板编号", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label:"模板名称", |
| | | prop:"name" |
| | | }, |
| | | { |
| | | label: "模板描述", |
| | | prop:"description" |
| | | }, |
| | | { |
| | | label:"版本号", |
| | | prop:"revisionSeq" |
| | | }, |
| | | { |
| | | label:"状态", |
| | | prop:"lcStatusText" |
| | | } |
| | | ] |
| | | }, |
| | | // //表格option配置项 |
| | | // crudTreeOption: { |
| | | // index: true, |
| | | // border: true, |
| | | // height:180, |
| | | // selection:true, |
| | | // addBtn:this.addFlag, |
| | | // column: [ |
| | | // { |
| | | // label: "模板编号", |
| | | // prop: "id" |
| | | // }, |
| | | // { |
| | | // label:"模板名称", |
| | | // prop:"name" |
| | | // }, |
| | | // { |
| | | // label: "模板描述", |
| | | // prop:"description" |
| | | // }, |
| | | // { |
| | | // label:"版本号", |
| | | // prop:"revisionSeq" |
| | | // }, |
| | | // { |
| | | // label:"状态", |
| | | // prop:"lcStatusText" |
| | | // } |
| | | // ] |
| | | // }, |
| | | addFlag:false, |
| | | // 表格当前行id |
| | | crudOid:"", |
| | |
| | | mounted() { |
| | | this.type = this.tabOption.column[0]; |
| | | this.getAttr(); |
| | | console.log('11',this.nodeClickList) |
| | | }, |
| | | computed:{ |
| | | crudTreeOption(){ |
| | | return{ |
| | | index: true, |
| | | indexClassName:"序号", |
| | | indexLabelClassName:'序号', |
| | | border: true, |
| | | height:180, |
| | | selection:true, |
| | | addBtn:this.Formlist.length<=0 && this.nodeClickList != "", |
| | | column: [ |
| | | { |
| | | label: "模板编号", |
| | | prop: "id" |
| | | }, |
| | | { |
| | | label:"模板名称", |
| | | prop:"name" |
| | | }, |
| | | { |
| | | label: "模板描述", |
| | | prop:"description" |
| | | }, |
| | | { |
| | | label:"版本号", |
| | | prop:"revisionSeq" |
| | | }, |
| | | { |
| | | label:"状态", |
| | | prop:"lcStatusText" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //行单选事件 |
| | |
| | | async nodeClick(data) { |
| | | //定义一个模板属性id,数据是模板管理表格里面的oid |
| | | this.nodeClickList = data |
| | | console.log(data.oid) |
| | | console.log(data) |
| | | this.ProData=[] |
| | | try { |
| | | await TreeObjcet(data.oid).then(res => { |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | // 查询 |
| | | FindeHanler(){ |
| | | if(this.nodeClickList != ""){ |
| | | this.FindFormVisible=true |
| | | }else { |
| | | this.$message.warning('请从树上选择一条数据') |
| | | } |
| | | }, |
| | | //克隆模板选择确定 |
| | | Clonehandler(){ |
| | | if(this.CloneSelect.length <= 0){ |
| | |
| | | @click="handleMaintenance(row, index)">维护</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="模板阶段" width="50%" append-to-body="true" :visible.sync="dialogNode"> |
| | | <el-dialog title="模板阶段" width="50%" append-to-body="true" :visible.sync="dialogNode"> |
| | | <avue-crud ref="crud" :table-loading="loading" :data="stageData" :option="stageOption" @on-load="getStagelist" |
| | | @row-click="handleRowStageClick"> |
| | | <template slot-scope="{type,size,row,index}" slot="menu"> |
| | |
| | | }, |
| | | stageOption: { |
| | | ...options, |
| | | height:620, |
| | | column: [ |
| | | { label: '阶段编号', prop: 'taskId' }, |
| | | { label: '阶段名称', prop: 'taskName' }, |
| | |
| | | @coderuleoid="coderuleoidList" |
| | | :pageSize="this.pageSize" |
| | | :currentPage="this.currentPage" |
| | | :templateOid="this.templateOid" |
| | | @tableDataArray="tableDataArrays" |
| | | @tableHeadDataFateher="tableHeadDatas" |
| | | @total="totals" |
| | | @nodeClick="nodeClick" |
| | | ></master-tree> |
| | | </basic-container> |
| | | </el-aside> |
| | |
| | | :coderuleoid="this.coderuleoid" |
| | | @pageSize="pageSizes" |
| | | @currentPage="currentPages" |
| | | @templateOid="templateOids" |
| | | :tableDataArray="tableDataArray" |
| | | :total="this.total" |
| | | :tableHeadDataFateher="this.tableHeadDataFateher" |
| | | :isLoading="isLoading" |
| | | :templateOid="templateOid" |
| | | ></TableCrud> |
| | | </el-main> |
| | | </el-container> |
| | |
| | | templateOid:"", |
| | | tableDataArray:[], |
| | | tableHeadDataFateher:[], |
| | | total:"" |
| | | total:"", |
| | | isLoading: false, |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | currentPages(val){ |
| | | this.currentPage=val |
| | | }, |
| | | templateOids(val){ |
| | | this.templateOid=val |
| | | }, |
| | | tableDataArrays(val){ |
| | | this.tableDataArray=val |
| | | }, |
| | |
| | | }, |
| | | tableHeadDatas(val){ |
| | | this.tableHeadDataFateher=val |
| | | } |
| | | }, |
| | | nodeClick(val){ |
| | | this.templateOid=val; |
| | | console.log('val',val) |
| | | this.isLoading=true; |
| | | setTimeout(() => { |
| | | this.isLoading = false; |
| | | }, 2000); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | // getOnesearch, |
| | | getadd, |
| | | getupdata, |
| | | getremove |
| | | getremove, |
| | | combination |
| | | } from "@/api/system/passwords"; |
| | | export default { |
| | | name: "passwords.vue", |
| | |
| | | message: "请选择组合方法", |
| | | trigger: "blur" |
| | | }], |
| | | dicData: [ |
| | | { |
| | | label: "数字", |
| | | value: '1638024706425188354' |
| | | }, |
| | | { |
| | | label: "符号", |
| | | value: '1638097837516926977' |
| | | }, |
| | | { |
| | | label: "小写字母", |
| | | value: '1638097772983365634' |
| | | }, |
| | | { |
| | | label: "大写字母", |
| | | value: '1638097733707902977' |
| | | }, |
| | | ], |
| | | dicUrl: '/api/ubcs-system/combination/select', |
| | | dicMethod: 'get', |
| | | props: { |
| | | value: "ID", |
| | | label: "NAME", |
| | | }, |
| | | }, |
| | | { |
| | | label: '必填种类', |
| | |
| | | }], |
| | | dicData:[{ |
| | | label:'1种', |
| | | value:0, |
| | | value:1, |
| | | disabled:false |
| | | }, |
| | | { |
| | | label:'2种', |
| | | value:1, |
| | | disabled:false |
| | | }, |
| | | { |
| | | label:'3种', |
| | | value:2, |
| | | disabled:false |
| | | }, |
| | | { |
| | | label:'4种', |
| | | label:'3种', |
| | | value:3, |
| | | disabled:false |
| | | }, |
| | | { |
| | | label:'4种', |
| | | value:4, |
| | | disabled:false |
| | | } |
| | | ] |
| | |
| | | }, |
| | | created() { |
| | | this.onLoad() |
| | | combination().then(res=>{ |
| | | console.log("111",res) |
| | | }) |
| | | }, |
| | | mount() { |
| | | }, |
| | |
| | | }); |
| | | done(row) |
| | | this.onLoad() |
| | | console.log(res) |
| | | }).catch((res)=>{ |
| | | console.log(res) |
| | | this.$message.warning(res) |
| | | }) |
| | | }, |
| | | rowEdit(row){ |
| | |
| | | // this.loading = false; |
| | | // this.selectionClear(); |
| | | console.log(res) |
| | | this.page.total=res.data.data.totalElements |
| | | this.data=res.data.data.content |
| | | this.page.total=res.data.data.total |
| | | this.data=res.data.data.records |
| | | }); |
| | | } |
| | | } |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | <style lang="scss" scoped> |
| | | </style> |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :page.sync="page" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | ref="crud" |
| | |
| | | option: { |
| | | lazy: true, |
| | | tip: false, |
| | | simplePage: true, |
| | | height:'auto', |
| | | maxHeight:600, |
| | | // simplePage: true, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | tree: true, |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | getLazyList(this.parentId, Object.assign(params, this.query)).then(res => { |
| | | this.data = res.data.data; |
| | | getLazyList(this.parentId,Object.assign(params, this.query),this.page.currentPage, this.page.pageSize).then(res => { |
| | | this.data = res.data.data.records; |
| | | this.page.total=res.data.data.total |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | |
| | | treeLoad(tree, treeNode, resolve) { |
| | | const parentId = tree.id; |
| | | getLazyList(parentId).then(res => { |
| | | resolve(res.data.data); |
| | | resolve(res.data.data.records); |
| | | }); |
| | | } |
| | | } |
| | |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | // target: 'http://192.168.1.46:37000', |
| | | target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | target: 'http://192.168.1.104:37000', |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | //target: 'http://192.168.1.51:37000/', |
| | | // target:'http://192.168.1.104:37000', |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | // target: 'https://saber.bladex.vip/api', |
| | | ws: true, |