| | |
| | | <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); |
| | | }) |
| | | }, |