| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="construction-view"> |
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px"> |
| | | <el-form-item label="软件名称" prop="name"> |
| | | <el-input |
| | |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['oa:system:add']" |
| | | >新增 |
| | | </el-button> |
| | | </el-col> |
| | |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['oa:system:edit']" |
| | | >修改 |
| | | </el-button> |
| | | </el-col> |
| | |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['oa:system:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </el-col> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="软件名称" align="center" prop="name"/> |
| | | <el-table-column label="版本" align="center" prop="edition"/> |
| | | <el-table-column label="功能描述" align="center" prop="functionDescription"/> |
| | | <el-table-column label="授权方式" align="center" prop="authorizationMethod_dictText"/> |
| | | <el-table-column label="授权数量" align="center" prop="authorizedQuantity"/> |
| | | <el-table-column label="载体服务器" align="center" prop="serverId_dictText"/> |
| | | <el-table-column label="施工批次" align="center" prop="constructionBatchId_dictText"/> |
| | | <el-table-column label="生产厂商" align="center" prop="manufacturerId_dictText"/> |
| | | <el-table-column label="备注" align="center" prop="remarks"/> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="版本" min-width="180" align="center" prop="edition"/> |
| | | <el-table-column label="功能描述" min-width="180" align="center" prop="functionDescription"/> |
| | | <el-table-column label="授权方式" min-width="180" align="center" prop="authorizationMethod_dictText"/> |
| | | <el-table-column label="授权数量" min-width="180" align="center" prop="authorizedQuantity"/> |
| | | <el-table-column label="载体服务器" align="center" prop="serverId_dictText"> |
| | | <template slot-scope="scope"> |
| | | <el-link type="primary" @click="serverClick(scope.row)">{{scope.row.serverId_dictText}}</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="施工批次" min-width="180" align="center" prop="constructionBatchId_dictText"/> |
| | | <el-table-column label="生产厂商" min-width="220" align="center" prop="manufacturerId_dictText"/> |
| | | <el-table-column label="备注" align="center" min-width="180" prop="remarks"/> |
| | | <el-table-column label="操作" align="center" fixed="right" width="220" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['oa:system:edit']" |
| | | >修改 |
| | | </el-button> |
| | | <el-button |
| | |
| | | class="del-btn" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['oa:system:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </template> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="功能描述" prop="functionDescription"> |
| | | <el-input v-model="form.functionDescription" :rows="8" maxlength="64" show-word-limit type="textarea" |
| | | <el-input v-model="form.functionDescription" :rows="8" maxlength="512" show-word-limit type="textarea" |
| | | placeholder="请输入内容"/> |
| | | </el-form-item> |
| | | <el-row> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="备注" prop="remarks"> |
| | | <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容"/> |
| | | <el-input v-model="form.remarks" :rows="8" maxlength="512" show-word-limit type="textarea" placeholder="请输入内容"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </Dialog> |
| | | |
| | | <!-- 服务器 --> |
| | | <Dialog title="服务器" :visible.sync="serverOpen" width="700px" :append-to-body="true" :destroy-on-close="true"> |
| | | <server-form v-if="serverOpen" :serverId="serverId"></server-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="serverOpen = false">关 闭</el-button> |
| | | </div> |
| | | </Dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import manufacturer from "../../components/manufacturer"; |
| | | import nvr from "../../components/nvr"; |
| | | import server from '../../components/server' |
| | | import serverForm from '../../components/server/form' |
| | | |
| | | export default { |
| | | name: "System", |
| | |
| | | constructionBatch, |
| | | manufacturer, |
| | | nvr, |
| | | server |
| | | server, |
| | | serverForm |
| | | }, |
| | | props: { |
| | | schoolId: { |
| | |
| | | ], |
| | | }, |
| | | disabled: false, |
| | | fileOpen: false |
| | | fileOpen: false, |
| | | serverOpen: false, |
| | | serverId: undefined |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除软件系统编号为"' + ids + '"的数据项?').then(() => { |
| | | this.$modal.confirm('是否确认删除?').then(() => { |
| | | this.loading = true; |
| | | return delSystem(ids); |
| | | }).then(() => { |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('oa/system/export', { |
| | | ...this.queryParams |
| | | }, `system_${new Date().getTime()}.xlsx`) |
| | | serverClick(row) { |
| | | this.serverId = row.serverId; |
| | | this.serverOpen = true; |
| | | } |
| | | } |
| | | }; |