| | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="备注" prop="userMemo"> |
| | | <el-input v-model="detailsRow.userMemo" placeholder="请输入备注" clearable |
| | | :style="{ width: '100%' }"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | | </el-row> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | methods: |
| | | { |
| | | exportList(){ |
| | | this.$http({ |
| | | url:'/api/user/exp', |
| | | responseType: 'blob', |
| | | method: 'post', |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | this.$message.success('操作成功'); |
| | | let time = new Date() |
| | | let deathdate =time.toLocaleDateString() |
| | | const blob = new Blob([res.data], { |
| | | type: "application/vnd.ms-excel;charset=utf-8", |
| | | }); |
| | | if (window.navigator.msSaveBlob) { |
| | | window.navigator.msSaveBlob(blob, deathdate + ".xlsx"); |
| | | } else { |
| | | const url = window.URL.createObjectURL(blob); |
| | | const link = document.createElement("a"); |
| | | link.style.display = "none"; |
| | | link.href = url; |
| | | link.download = deathdate + ".xlsx"; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | } |
| | | }) |
| | | this.$http({ |
| | | url:'/api/user/exp', |
| | | responseType: 'blob', |
| | | method: 'post', |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | this.$message.success('操作成功'); |
| | | let time = new Date() |
| | | let deathdate =time.toLocaleDateString() |
| | | const blob = new Blob([res.data], { |
| | | type: "application/vnd.ms-excel;charset=utf-8", |
| | | }); |
| | | if (window.navigator.msSaveBlob) { |
| | | window.navigator.msSaveBlob(blob, deathdate + ".xlsx"); |
| | | } else { |
| | | const url = window.URL.createObjectURL(blob); |
| | | const link = document.createElement("a"); |
| | | link.style.display = "none"; |
| | | link.href = url; |
| | | link.download = deathdate + ".xlsx"; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | } |
| | | }) |
| | | }, |
| | | handleToManager(data) { |
| | | toManager(data.id).then(res => { |
| | |
| | | }, |
| | | update() { |
| | | this.$http.put('/api/user', this.detailsRow).then(res => { |
| | | this.$message({ |
| | | message: '编辑成功', |
| | | type: 'success' |
| | | } |
| | | ) |
| | | this.search(); |
| | | console.log(res) |
| | | if (res.data.code == 200){ |
| | | this.$message({ |
| | | message: '编辑成功', |
| | | type: 'success' |
| | | } |
| | | ) |
| | | this.search(); |
| | | }else { |
| | | this.$message.error(res.data.msg) |
| | | this.search(); |
| | | } |
| | | |
| | | } |
| | | ); |
| | | this.detailsVisible = false; |