| | |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="400px" label="操作" fixed="right" align="center"> |
| | | <el-table-column :width="deptAdmin() ? '310px' : '400px'" label="操作" fixed="right" align="center"> |
| | | <template slot-scope="{row}"> |
| | | <el-button size="mini" @click="changeStatus(row)" class="link-left"> |
| | | <el-button size="mini" v-if="!deptAdmin()" @click="changeStatus(row)" class="link-left"> |
| | | {{ statusBtnFormatter(row.status) }} |
| | | </el-button> |
| | | <router-link :to="{path:'/user/student/edit', query:{id:row.id}}" class="link-left"> |
| | |
| | | <el-button size="mini" @click="status(row)" class="link-left">状态</el-button> |
| | | <el-button type="primary" size="mini" @click="transposition(row)" class="link-left">调动</el-button> |
| | | <el-popconfirm title="确认删除吗" @confirm="deleteUser(row)"> |
| | | <el-button slot="reference" size="mini" type="danger" class="link-left">删除</el-button> |
| | | <el-button v-if="!deptAdmin()" slot="reference" size="mini" type="danger" class="link-left">删除</el-button> |
| | | </el-popconfirm> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | <el-input type="textarea" maxlength="100" show-word-limit :autosize="{ minRows: 4}" :rows="2" v-model="examine.reason" placeholder="请输入情况说明" style="margin-top: 30px;"></el-input> |
| | | <upload v-show="form.contentType" ref="upload" :fileUrl="form.contentUrl" :fileType="form.contentType" |
| | | :fileSizeLimitM="1024" :uploadNum="1" @getUploadUrl="getUploadUrl" @removeFile="removeFile" style="margin-top: 30px;"/> |
| | | <upload :fileUrl="examine.contentUrl" :fileSizeLimitM="1024" :uploadNum="1" @getUploadUrl="getUploadAttachmentUrl" @removeFile="removeAttachmentFile" style="margin-top: 30px;"/> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="submitExamine">确 定</el-button> |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | |
| | | form: { |
| | | contentType: 'file', |
| | | subject: '', |
| | | belongType: 2, |
| | | contentUrl: [], |
| | | attachment: [], |
| | | temp: [] |
| | | }, |
| | | user:{}, |
| | | statusVisible: false, |
| | | upLoadUrl:'/api/admin/user/import', |
| | |
| | | departmentId: [], |
| | | departmentIds: '', |
| | | nowDepartmentIds: '', |
| | | contentUrl: [], |
| | | attachment: '' |
| | | }, |
| | | title: '部门调动', |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | removeFile() { |
| | | this.examine.attachment = []; |
| | | deptAdmin() { |
| | | return sessionStorage.getItem('deptAdmin') === '1' |
| | | }, |
| | | getUploadUrl(uploadData) { |
| | | removeAttachmentFile(fileList, fileName) { |
| | | this.examine.attachment = JSON.stringify(fileList.filter(item => item.name !== fileName)); |
| | | this.examine.contentUrl = fileList.filter(item => item.name !== fileName); |
| | | }, |
| | | getUploadAttachmentUrl(uploadData) { |
| | | this.examine.attachment = JSON.stringify(uploadData); |
| | | this.examine.contentUrl = uploadData; |
| | | }, |
| | | submitExamine() { |
| | | this.examine.departmentIds = this.examine.departmentId.join(',') |