| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div v-loading="loading"> |
| | | <div class="slot"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="75px"> |
| | | <el-form-item label="项目码类型" prop="projectCodeType"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <el-table |
| | | :data="tableData" |
| | | row-key="id" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <el-dialog width="45%" :title="dialogTitle" @close="closeDialog" :visible.sync="open" :show-close="true" :close-on-click-modal="true" :destroy-on-close="true"> |
| | | <el-form :model="codingRulerForm" :rules="rules" ref="codingRulerForm"> |
| | | <el-form-item label="项目码类型" :label-width="formLabelWidth" prop="projectCodeType"> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | open: false, |
| | | // 选中数组 |
| | | ids: [], |
| | | // //左符号 |
| | | // leftOption:[], |
| | | // //右符号 |
| | | // rightOption:[], |
| | | loading:false, |
| | | } |
| | | }, |
| | | computed:{ |
| | |
| | | }, |
| | | // 获取表格数据 |
| | | getList(){ |
| | | this.loading = true; |
| | | getCodingRulers(this.queryParams).then(res =>{ |
| | | this.tableData = res.data; |
| | | this.total = res.total; |
| | | this.loading = false; |
| | | }) |
| | | |
| | | }, |
| | |
| | | <template v-if="item.slotName === 'importanceType'"> |
| | | <dict-tag :options="dict.type.sys_key_categories" :value="scope.row.importanceType"/> |
| | | </template> |
| | | <!-- planStartTime --> |
| | | <template v-if="item.slotName === 'planStartTime'"> |
| | | {{ scope.row.planStartTime ? scope.row.planStartTime.split('-')[0] + '年' : '' }} |
| | | <!-- plannedStartDate --> |
| | | <template v-if="item.slotName === 'plannedStartDate'"> |
| | | {{ scope.row.plannedStartDate ? scope.row.plannedStartDate.split('-')[0] + '年' : '' }} |
| | | </template> |
| | | <!-- usedStatus插槽 --> |
| | | <template v-if="item.slotName === 'usedStatus'"> |
| | | <dict-tag :options="dict.type.sys_used_status" :value="scope.row.usedStatus"/> |
| | | </template> |
| | | <!-- planStartTime --> |
| | | <template v-else-if="item.slotName === 'planStartTime'"> |
| | | {{ scope.row.planStartTime ? scope.row.planStartTime.split(' ')[0] : '' }} |
| | | </template> |
| | | </template> |
| | | <!-- 转换计划开工样式 空格切割数组 --> |
| | | |
| | | <!-- 默认显示 --> |
| | | <span v-else>{{ scope.row[item.columns] }}</span> |
| | | </template> |