diff --git a/src/assets/img/add.png b/src/assets/img/add.png new file mode 100644 index 00000000..59a8922f Binary files /dev/null and b/src/assets/img/add.png differ diff --git a/src/assets/scss/modules/management/categoryMain.scss b/src/assets/scss/modules/management/categoryMain.scss new file mode 100644 index 00000000..e5135aad --- /dev/null +++ b/src/assets/scss/modules/management/categoryMain.scss @@ -0,0 +1,157 @@ +.div_main { + box-sizing: border-box; + height: 100%; + width: 100%; + background: #ffffff; + border-radius: 5px; + padding: 35px 0 15px; +} +.div_tip { + font-size: 24px; + font-family: PingFang SC; + font-weight: bold; + color: #333333; + margin-left: 42px; +} +.div_list { + box-sizing: border-box; + margin-top: 5px; + height: calc(100vh - 210px); +} + +.div_all_list { + height: calc(100vh - 260px); +} + +.div_room { + // height: calc(88vh - 40px); + // margin-top: 9px; + display: flex; + flex-wrap: wrap; + justify-content: flex-start; + margin-left: 42px; + // margin: 0 21px 0 21px; + + .item { + width: 340px; + height: 120px; + background: #ffffff; + box-shadow: 0px 0px 17px 3px #eaeaea; + border-radius: 6px; + margin: 15px 25px 15px 0; + display: flex; + position: relative; + + .item_category { + width: 100%; + display: flex; + align-items: center; + padding: 17px 16px; + > img { + width: 86px; + height: 86px; + } + .item_content { + margin-left: 16px; + width: 100%; + text-align: left; + display: flex; + flex-direction: column; + justify-content: flex-start; + + .item_count { + font-size: 28px; + font-family: PingFang SC; + font-weight: bold; + color: #333333; + } + .item_row2 { + margin-top: 21px; + display: flex; + justify-content: space-between; + + .row_left { + font-size: 20px; + font-family: PingFang SC; + font-weight: 500; + color: #202020; + } + + .row_right { + margin: 5px 10px 0 0; + font-size: 16px; + font-family: PingFang SC; + font-weight: 500; + text-decoration: underline; + color: #00a7a9; + cursor: pointer; + } + } + } + + > span { + margin-left: 16px; + font-size: 24px; + } + } + + .item_add { + cursor: pointer; + font-size: 24px; + font-family: PingFang SC; + font-weight: 500; + color: #333333; + display: flex; + align-items: center; + padding: 17px 16px; + + > img { + width: 86px; + height: 86px; + } + + > span { + font-size: 24px; + font-family: PingFang SC; + font-weight: 500; + color: #333333; + + margin-left: 16px; + } + } + + .icon_circle { + cursor: pointer; + position: absolute; + top: -10px; + right: -10px; + height: 23px; + width: 23px; + background-color: #ffffff; + border-radius: 50%; + border: 1px solid #a5a5a5; + } + + .icon_sel { + cursor: pointer; + background-color: #6bb9f8; + border: 1px solid #6bb9f8; + } + } +} + +.div_room::after { + content: ''; + flex: 1; +} + +.div_btn { + margin-top: 15px; + display: flex; + width: 100%; + justify-content: center; + + .btn_right { + margin-left: 50px; + } +} diff --git a/src/views/components/resiChangeRecord.vue b/src/views/components/resiChangeRecord.vue new file mode 100644 index 00000000..20066386 --- /dev/null +++ b/src/views/components/resiChangeRecord.vue @@ -0,0 +1,297 @@ + + + + diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 53fc6314..2e31ee63 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -207,10 +207,14 @@ export default { formList: { type: Array, default: () => [] + }, + columnName: { + type: String, + default: '' } }, data() { - let initForm = (arr) => { + let initForm = (arr, columnName) => { let _form = {} // console.log('formInfo', obj) // if (Object.keys(obj).length > 0) { @@ -218,12 +222,19 @@ export default { // return _form // } arr.forEach((item) => { - _form[item.columnName] = '' + if (columnName && columnName === item.columnName) _form[item.columnName] = '1' + else _form[item.columnName] = '' }) return _form } - let form = initForm(this.formList) - let tempFormList = [...this.formList] + let form = initForm(this.formList, this.columnName) + let tempFormList = this.formList.map(item => { + + return { + ...item, + isChange: this.columnName && this.columnName === item.columnName ? true : false + } + }) let constForm = { ...form, GRID_ID: '', @@ -339,6 +350,7 @@ export default { // console.log('formcccc---', this.form) this.getGridList() this.getValiheList() + if (this.columnName) this.handleChangeForm(this.columnName) }, methods: { initForm() { diff --git a/src/views/components/resiTransfer.vue b/src/views/components/resiTransfer.vue new file mode 100644 index 00000000..c942aa09 --- /dev/null +++ b/src/views/components/resiTransfer.vue @@ -0,0 +1,479 @@ + + + + + \ No newline at end of file diff --git a/src/views/main.vue b/src/views/main.vue index 5129af68..f452d699 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -1,8 +1,7 @@