| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | viewBtn: true, |
| | | dialogWidth: 900, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //行选中时高亮 |
| | | column: [ |
| | | |
| | | { |
| | | label: "租户ID", |
| | | prop: "tenantId", |
| | |
| | | type: 'upload', |
| | | listType: 'picture-img', |
| | | dataType: 'string', |
| | | action: '/api/blade-resource/oss/endpoint/put-file', |
| | | action: '/api/ubcs-resource/oss/endpoint/put-file', |
| | | propsHttp: { |
| | | res: 'data', |
| | | url: 'link', |
| | |
| | | search: true, |
| | | span: 24, |
| | | type: "select", |
| | | dicUrl: "/api/blade-develop/datasource/select", |
| | | dicUrl: "/api/ubcs-develop/datasource/select", |
| | | props: { |
| | | label: "name", |
| | | value: "id" |
| | |
| | | search: true, |
| | | span: 24, |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/tenant-package/select", |
| | | dicUrl: "/api/ubcs-system/tenant-package/select", |
| | | props: { |
| | | label: "packageName", |
| | | value: "id" |
| | |
| | | |
| | | created() { |
| | | // 获取到true还是false直接赋值,定义方法会就是获取不到,不知道什么问题,强制用JSON.parse会在后面追加一个disabled,所以直接获取。后期如果添加cloumn会出现bug,用foreach循环出column在判断type是否等于radio,然后将单独radio的disabled改为res.data.data |
| | | this.$axios.get('/api/blade-system/tenant/find-ssa-enable').then(res => { |
| | | this.$axios.get('/api/ubcs-system/tenant/find-ssa-enable').then(res => { |
| | | this.option.column[6].disabled= res.data.data |
| | | }); |
| | | }, |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //选中当前行 |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |