| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="main"> |
| | | <div class="top"> |
| | | <div class="testbox"> |
| | | <div> |
| | | <!-- <el-button plain size="small" type="primary" @click="addvisible = true">增加 |
| | |
| | | </div> |
| | | <el-row style="height: 700px; width: 100%"> |
| | | <div> |
| | | <el-button v-for="(item, index) in masterVrBtnList" :key="index" plain size="small" type="primary" |
| | | <el-button v-for="(item, index) in masterVrBtnList" :key="index" plain size="small" type="primary" v-if="!['PREVIEW', 'DELETEFILE', 'revisefile', 'DOWNLOADFILE', 'UPLOADFILE'].includes(item.uniqueFlag)" |
| | | @click="handelBtnClick(item)">{{ |
| | | item.name |
| | | }} |
| | |
| | | size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"></el-input> |
| | | </div> |
| | | <el-table v-if="tableData.length != 0" v-loading="isLoading" :data="tableData" max-height="700" style="" |
| | | @cell-click="handleCellClick" @row-click="handleRowClick" @selection-change="handleSelectionChange" @select="handleSelection" @sort-change="sortChange"> |
| | | @cell-click="handleCellClick" @selection-change="handleSelectionChange" @sort-change="sortChange"> |
| | | <el-table-column fixed type="selection" width="55"></el-table-column> |
| | | <el-table-column fixed label="序号" type="index" width="55"> |
| | | </el-table-column> |
| | |
| | | </div> |
| | | <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible"> |
| | | </BatchImport> |
| | | </div> |
| | | <div class="bottom"> |
| | | <el-collapse v-model="visibleNames" accordion> |
| | | <el-collapse-item title="附件列表" name="1"> |
| | | <fileInHtml :options="fileOptions"></fileInHtml> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | | </div> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import {MasterTable, TableData, FindData} from "@/api/GetItem"; |
| | | import {MasterTable, TableData, FindData,addSaveCode,editSaveCode} from "@/api/GetItem"; |
| | | import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; |
| | | import integrationTransfer from "@/views/integration/integrationTransfer"; |
| | | import SetPersonnel from "@/components/template/SetPersonnel"; |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import BatchImport from '@/components/BatchImport' |
| | | import {validatenull} from "@/util/validate"; |
| | | import fileInHtml from "@/components/file/inHtml.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | SetPersonnel, |
| | | ResembleQueryDialog, |
| | | BatchImport, |
| | | fileInHtml |
| | | // fileInHtml |
| | | }, |
| | | name: "Crud.vue", |
| | | props: { |
| | |
| | | } |
| | | }, |
| | | visibleNames:[], |
| | | visibleFile:false, |
| | | visibleFlow: false, |
| | | transferData: [], |
| | | transferProps: { |
| | |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | }, |
| | | mounted() { |
| | |
| | | } |
| | | }, |
| | | //增加保存 |
| | | AddSumbit() { |
| | | AddSumbit(val) { |
| | | this.addvisible = false; |
| | | console.log(val) |
| | | addSaveCode(val).then(res=>{ |
| | | console.log(res) |
| | | this.onLoad() |
| | | }) |
| | | }, |
| | | EditSumbit(val) { |
| | | this.editvisible = false; |
| | | console.log(val) |
| | | editSaveCode(val).then(res=>{ |
| | | console.log(res) |
| | | this.onLoad() |
| | | }) |
| | | }, |
| | | openBatchImport(type) { |
| | | this.batchImportData.visible = true |