| | |
| | | <div class="tool">操作</div> |
| | | </li> |
| | | <li class="type-item" v-for="(item, index) in data" :key="index"> |
| | | <div class="title">{{ item.category.categoryName }}</div> |
| | | <div class="title">{{ item.category?.categoryName || '' }}</div> |
| | | <el-tooltip effect="dark" placement="top"> |
| | | <template #content> |
| | | <p style="max-width: 500px;">{{ item.category.standard }}</p> |
| | | <p style="max-width: 500px;">{{ item.category?.standard || '' }}</p> |
| | | </template> |
| | | <div class="introduction"> |
| | | {{ item.category.standard }} |
| | | {{ item.category?.standard || '' }} |
| | | </div> |
| | | </el-tooltip> |
| | | |
| | | <div class="number">{{ item.category.peopleNum }}人</div> |
| | | <div class="number">{{ item.category?.peopleNum || 0 }}人</div> |
| | | <div class="tool"> |
| | | <el-button type="primary" text icon="el-icon-view" @click="view(item)">查看最终结果</el-button> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | <el-dialog v-model="dialogParams.visible" :title="dialogParams.title"> |
| | | <el-dialog v-model="dialogParams.visible" :title="dialogParams.title" destroy-on-close> |
| | | <avue-crud :option="dialogOption" :table-loading="dialogLoading" :data="dialogParams.data" @on-load="onLoad"> |
| | | <template #menu-row> |
| | | <el-button type="success" plain @click="handleExport">导出当前数据</el-button> |
| | |
| | | column: [ |
| | | { |
| | | label: '姓名', |
| | | prop: 'userName', |
| | | prop: 'user_name', |
| | | type: 'input' |
| | | }, |
| | | { |
| | | label: '部门', |
| | | prop: 'postName', |
| | | prop: 'post_name', |
| | | type: 'input' |
| | | }, |
| | | { |
| | | label: '职位', |
| | | prop: 'deptName', |
| | | prop: 'dept_name', |
| | | type: 'input' |
| | | }, |
| | | // { |
| | | // label: '票数', |
| | | // prop: 'voteNum', |
| | | // type: 'input' |
| | | // } |
| | | { |
| | | label: '票数', |
| | | prop: 'voteNum', |
| | | type: 'input' |
| | | } |
| | | ] |
| | | }, |
| | | dialogParams: { |