| | |
| | | <el-button plain size="small" type="primary" @click="editHandler" |
| | | >编辑 |
| | | </el-button> |
| | | <el-button plain size="small" type="primary">批量导入申请</el-button> |
| | | <el-button plain size="small" type="primary">历史数据导入</el-button> |
| | | <el-button plain size="small" type="primary">批量申请编码</el-button> |
| | | <el-button plain size="small" type="primary" @click="openBatchImport('batchImportApply')">批量导入申请</el-button> |
| | | <el-button plain size="small" type="primary" @click="openBatchImport('historyImport')">历史数据导入</el-button> |
| | | <el-button plain size="small" type="primary" @click="openBatchImport('batchApplyCode')">批量申请编码</el-button> |
| | | <el-button plain size="small" type="primary">批量发布</el-button> |
| | | <el-button plain size="small" type="primary">查看流程历史</el-button> |
| | | <el-button plain size="small" type="primary">删除</el-button> |
| | |
| | | :prop="item.prop" |
| | | :sortable="item.sortable" |
| | | :formatter="formatBoolean" |
| | | :width="item.label.length >=4 ?'150':item.label.length==3 ?'120':'90'" |
| | | :show-overflow-tooltip="true" |
| | | align="center" |
| | | > |
| | | <!-- 编辑和展示逻辑 --> |
| | | <!-- <template slot-scope="{ row }">--> |
| | |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <BatchImport v-if="batchImportData.visible" :visible.sync="batchImportData.visible" v-bind="batchImportData"></BatchImport> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | import integrationTransfer from "@/views/integration/integrationTransfer"; |
| | | import SetPersonnel from "@/components/template/SetPersonnel"; |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import BatchImport from '@/components/BatchImport' |
| | | export default { |
| | | components: { |
| | | integrationTransfer, |
| | | SetPersonnel, |
| | | ResembleQueryDialog, |
| | | BatchImport |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | seniorQueryColumns: [], |
| | | selectRow: [], |
| | | userName: "", |
| | | batchImportData: { |
| | | visible: false, |
| | | type: '', |
| | | codeClassifyOid: '' |
| | | } |
| | | }; |
| | | }, |
| | | computed: {}, |
| | |
| | | this.doLayout(); |
| | | }, |
| | | watch: { |
| | | tableHeadDataFateher:{ |
| | | handler(newval,oldval){ |
| | | this.options=newval.tableDefineVO.seniorQueryColumns |
| | | } |
| | | }, |
| | | codeClassifyOid: { |
| | | handler(newval, oldval) { |
| | | this.codeClassifyOid = newval; |
| | |
| | | // 转换数据true和false |
| | | formatBoolean(row, column) { |
| | | if (column.property === "xiaoshouwl" |
| | | ||column.property === "shifoupihaoguanli" |
| | | ||column.property === "caigouwl" |
| | | ||column.property === "kucunwl" |
| | | ||column.property === "shifoupihaoguanli" |
| | | ||column.property === "caigouwl" |
| | | ||column.property === "kucunwl" |
| | | ||column.property === "passing") { |
| | | return row[column.property] =='true'? "是" : "否"; |
| | | } |
| | |
| | | this.rowOid = ""; |
| | | } |
| | | this.selectRow = row; |
| | | this.parameter.ids = []; |
| | | row.forEach((item) => { |
| | | this.parameter.ids.push(item.oid); |
| | | }); |
| | |
| | | ...val, |
| | | }).then((res) => { |
| | | console.log(res); |
| | | this.tableData=res.data.data; |
| | | this.page.total=res.data.total |
| | | }); |
| | | }, |
| | | //相似项查询 |
| | |
| | | EditSumbit(val) { |
| | | this.editvisible = false; |
| | | }, |
| | | openBatchImport(type) { |
| | | this.batchImportData.visible = true |
| | | this.batchImportData.type = type |
| | | this.batchImportData.codeClassifyOid = this.codeClassifyOid |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | background-color: #f5f7fa !important; |
| | | } |
| | | } |
| | | |
| | | /deep/ .el-button { |
| | | margin: 0 10px 10px 0; |
| | | } |
| | | |
| | | |
| | | </style> |