| | |
| | | <template> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-configAuditReport-configAuditReport}"> |
| | | <zt-table-wraper query-url="/configAuditReport/ConfigAuditReport/page" delete-url="/configAuditReport/ConfigAuditReport" v-slot="{ table }"> |
| | | <zt-table-wraper query-url="/configAuditReport/ConfigAuditReport/page" delete-url="/configAuditReport/ConfigAuditReport/deleteConfigAudit" v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item> |
| | | <el-input v-model="dataForm.code" placeholder="请输入编号" clearable></el-input> |
| | |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}" border @selection-change="table.selectionChangeHandle"> |
| | | <el-table-column type="selection" width="40"/> |
| | | <el-table-column prop="code" label="编号"/> |
| | | <el-table-column prop="softwareIdentity" label="编号"/> |
| | | <el-table-column prop="softwareName" label="编号"/> |
| | | <zt-table-column-handle :table="table" edit-perm="configAuditReport:update" delete-perm="configAuditReport::delete"/> |
| | | <el-table-column prop="softwareName" label="项目名称"/> |
| | | <el-table-column prop="softwareIdentity" label="项目标识"/> |
| | | <zt-table-column-handle :table="table" edit-perm="configAuditReport:update" delete-perm="configAuditReport::delete"> |
| | | <template v-slot="{ row }"> |
| | | <zt-table-button size="small" v-show = "row.accessoryMap" type="primary" |
| | | @click="preview(row)">预览 |
| | | </zt-table-button> |
| | | </template> |
| | | </zt-table-column-handle> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update ref="addOrUpdate" @refreshDataList="table.query"/> |
| | |
| | | @refreshDataList="table.query" |
| | | @setProjectInfo="openAddWin"> |
| | | </ProjectSelect> |
| | | <Preview ref="view" :pageMarkerfun="ConfigAuditReport"></Preview> |
| | | </zt-table-wraper> |
| | | </div> |
| | | </el-card> |
| | |
| | | <script> |
| | | import AddOrUpdate from './ConfigAuditReport-AddOrUpdate' |
| | | import ProjectSelect from "../project/Project-select"; |
| | | import Preview from '@/views/pages/view' |
| | | export default { |
| | | data() { |
| | | return { |
| | | ConfigAuditReport:'ConfigAuditReport', |
| | | dataForm: { |
| | | code: '', |
| | | softwareIdentity: '', |
| | |
| | | }, |
| | | components: { |
| | | AddOrUpdate, |
| | | ProjectSelect |
| | | ProjectSelect, |
| | | Preview |
| | | }, |
| | | methods:{ |
| | | add() { |
| | |
| | | // this.$refs.addOrUpdate.$refs.dialog.init(null, {id: null, projectId: row.id}) |
| | | this.$refs.addOrUpdate.$refs.dialog.init(null, {id: null, projectId: row.id}) |
| | | }, |
| | | preview(row){ |
| | | this.$refs.view.openAccessoryFormatSingle(row) |
| | | } |
| | | } |
| | | } |
| | | </script> |