| | |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: "/api/blade-place/place/page", |
| | | url: "/api/blade-placePractitioner/placePractitioner/page", |
| | | method: "get", |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: "/api/blade-practitioner/practitioner/remove", |
| | | url: "/api/blade-placePractitioner/placePractitioner/remove", |
| | | method: "post", |
| | | params: { |
| | | ids, |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="form" |
| | | :permission="permissionList" @row-save="rowSave" :before-open="beforeOpen" @search-change="searchChange" |
| | | :permission="permissionList" @row-save="rowSave" @row-del="rowDel" :before-open="beforeOpen" @search-change="searchChange" |
| | | @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{row, size}" slot="age"> |
| | |
| | | |
| | | export default { |
| | | data() { |
| | | |
| | | //手机号格式校验 |
| | | let validatorPhone = function (rule, value, callback) { |
| | | if (value) { |
| | |
| | | datetime: "", |
| | | selectionList: [], |
| | | option: { |
| | | // header:true, |
| | | labelWidth: 120, |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 120, |
| | | // menu: false, |
| | | menuWidth: 160, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | border: true, |
| | | //stripe:true, |
| | | addBtn: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | editBtn: false, |
| | | delBtn: true, |
| | | // selection: true, |
| | | dialogClickModal: false, |
| | | // menuFixed: 'right', |
| | | delBtn: false, |
| | | column: [{ |
| | | overHidden: true, |
| | | label: "姓名", |
| | |
| | | return { |
| | | // addBtn: this.vaildData(this.permission.place_add, true), |
| | | viewBtn: this.vaildData(this.permission.place_practitioner_view, true), |
| | | delBtn: this.vaildData(this.permission.place_practitioner_delete, false), |
| | | delBtn: this.vaildData(this.permission.place_practitioner_delete, true), |
| | | // editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | |
| | | location: data[2] |
| | | } |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | auditCur(row) { |
| | | this.curAuditRow = row |