diff --git a/src/common/lang/system/en.js b/src/common/lang/system/en.js index d071ce70..387a5a2b 100644 --- a/src/common/lang/system/en.js +++ b/src/common/lang/system/en.js @@ -74,6 +74,7 @@ module.exports = { linkName: 'Link Name', link: 'Link', isShelf: 'Shelf Or Not', - sort: 'Sort' + sort: 'Sort', + shelfWarn: 'the link is empty please fill in the link first' } } diff --git a/src/common/lang/system/zh.js b/src/common/lang/system/zh.js index 7a4e96d3..a40c5f8d 100644 --- a/src/common/lang/system/zh.js +++ b/src/common/lang/system/zh.js @@ -77,6 +77,7 @@ module.exports = { linkName: '链接名称', link: '链接', isShelf: '是否上架', - sort: '排序' + sort: '排序', + shelfWarn: '链接为空,请先填写链接' } } diff --git a/src/components/selection/UserSelectModal.vue b/src/components/selection/UserSelectModal.vue index 1622a18f..41859c6c 100644 --- a/src/components/selection/UserSelectModal.vue +++ b/src/components/selection/UserSelectModal.vue @@ -10,8 +10,8 @@
-
+
{{ item.realname + '(' + item.workNo + ')' }} - +
@@ -126,6 +126,12 @@ export default { categoryTreeList: [], // 组织机构树 rolesList: [], // 角色下拉框 queryParam: {}, + labelCol: { + span: 1 + }, + wrapperCol: { + span: 22 + }, columns: [ { title: this.$t('user.account'), @@ -190,6 +196,7 @@ export default { if (value) { this.selectedRowKeys = value.split(',') this.getUserListByIds(value) + this.loadData() } }, // 获取组织机构树 @@ -258,20 +265,27 @@ export default { } } else { // 说明是删除了数据 - for (const rowIndex in this.dataSourceRight) { - if (!selectedRows.find(item => item === this.dataSourceRight[rowIndex].id)) { - // 右侧数据在左侧选中不存在则从右侧删掉 - this.dataSourceRight.splice(rowIndex, 1) + if (selectedRowKeys && selectedRowKeys.length > 0) { + // 没有选中数据,说明这一页没有选中数据了 + for (let i = 0; i < this.dataSourceRight.length; i++) { + if (!selectedRowKeys.find(item => item === this.dataSourceRight[i].id)) { + // 表格选中中没有找到这一条数据,说明已经被删了 + this.dataSourceRight.splice(i, 1) + i-- + } } + } else { + this.dataSourceRight = [] } } + console.log(this.dataSourceRight) } else { this.dataSourceRight = selectedRows } }, // 左侧表格改变 leftTableChange (pagination) { - this.ipaginationLeft = pagination + this.ipagination = pagination this.loadData() }, // 根据ids获取用户列表 @@ -306,6 +320,18 @@ export default { this.visible = false this.dataSourceRight = [] this.selectedRowKeys = [] + this.queryParam = {} + this.ipagination = { + current: 1, + pageSize: 5, + pageSizeOptions: ['5', '10', '20', '30', '100', '200'], + showTotal: (total, range) => { + return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip') + }, + showQuickJumper: true, + showSizeChanger: true, + total: 0 + } } } } @@ -337,17 +363,24 @@ export default { } .name-content { display: flex; + flex-wrap: wrap; .name-div { width: auto; padding: 5px 16px; margin-right: 12px; + margin-top: 8px; background: rgba(213, 44, 38, 0.08); border-radius: 4px 4px 4px 4px; opacity: 1; color: #D52C26; + white-space: nowrap; /deep/ .anticon { margin-left: 4px; } } } + +/deep/ .ant-form-item-label{ + min-width: 70px !important; +} diff --git a/src/components/selection/UserSelection.vue b/src/components/selection/UserSelection.vue index db3aee7d..de1e6f44 100644 --- a/src/components/selection/UserSelection.vue +++ b/src/components/selection/UserSelection.vue @@ -5,11 +5,12 @@ :type="inputType" :autosize="true" :rows="1" - readonly="readonly" + disabled class="user-input" :placeholder="placeholder" :value="checkedValue" @click="selectClick" + :title="checkedValue" > @@ -101,7 +102,12 @@ export default { .user-input { resize: none; width: calc(100% - 70px); - pointer-events: none; + } + // 因为需要加title,所以不能把鼠标事件去掉 + /deep/ .ant-input-disabled { + background: #fff; + color: rgba(0, 0, 0, 0.65); + cursor: default; } .button-box { diff --git a/src/views/system/enterpriseLevelMapManage/modules/EnterpriseMapModal.vue b/src/views/system/enterpriseLevelMapManage/modules/EnterpriseMapModal.vue index 27236dc4..c00c0e75 100644 --- a/src/views/system/enterpriseLevelMapManage/modules/EnterpriseMapModal.vue +++ b/src/views/system/enterpriseLevelMapManage/modules/EnterpriseMapModal.vue @@ -13,6 +13,7 @@ 请选择 {{ item }} @@ -31,6 +32,7 @@ v-decorator.trim="[ 'notes', validatorRules.notes]" :placeholder="$t('pleaseEnter')+$t('system.enterpriseLevelMap.remark')" :maxLength="500" + :disabled="true" :rows="4" /> diff --git a/src/views/system/firendshipLinkManage/FriendshipLinkList.vue b/src/views/system/firendshipLinkManage/FriendshipLinkList.vue index 51f6426f..13691c68 100644 --- a/src/views/system/firendshipLinkManage/FriendshipLinkList.vue +++ b/src/views/system/firendshipLinkManage/FriendshipLinkList.vue @@ -71,6 +71,7 @@