diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index a5fe82e1..b25d4e28 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -329,8 +329,8 @@ export default { this.dataForm.name = '' this.dataForm.type = '组件服务' this.$http.get('/sys/user/info').then(res => { - console.log('res', res.data.data, !res.data.data.superAdmin, this.$store.state.user.roleIdList) this.superAdmin = res.data.data.superAdmin + }) }, mounted () { @@ -341,7 +341,6 @@ export default { // 置顶 toppingCapacity (item) { this.$http.put('/resource/pin_top/' + item.id).then(res => { - console.log('置顶', res.data.code) if (res.data.code == 0) { this.$message({ message: '置顶成功', @@ -421,7 +420,6 @@ export default { }) this.dataList[index].infoList2 = dataListSinforList }) - console.log('this.dataList', this.dataList) this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 @@ -443,7 +441,6 @@ export default { } }, showDetail (val) { - console.log(val) window.open(window.SITE_CONFIG.previewUrl + '#/details?id=' + val.id) // this.addOrUpdateHandle(id) // this.addOrUpdateVisible = true @@ -491,7 +488,6 @@ export default { this.uuidTwo = this.uuid(13, 16) this.uuidSnum = this.uuidOne + this.uuidTwo this.uuidSnum = this.uuidSnum.replace(/\s+/g, '') - console.log('this.uuidOne', this.uuidSnum) }, showDocument (val) { // 第一步:创建文档 @@ -631,7 +627,6 @@ export default { // 新上架 clear () { this.$router.push(this.routePath) - console.log('清空----------------------------------------') this.notFilled = [] this.showPutOnTheShelfFlag = false this.showPutOnTheShelfFlag2 = false @@ -670,7 +665,6 @@ export default { )[0].children }, changeInfoList (obj) { - console.log(obj, this.submitFrom) this.submitFrom.infoList = this.submitFrom.infoList.filter( (item) => item.attrType !== obj.attrType ) @@ -694,14 +688,12 @@ export default { }, // 完全删除 deleteCompletely (row) { - console.log('完全删除===', row) this.$confirm('确认是否删除?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http.post('/resource/delResBySuAd?id=' + row.id).then(res => { - console.log('删除结果', res.data) if (res.data.code == 0) { this.$message({ type: 'success', @@ -718,7 +710,6 @@ export default { }) }, submitData () { - console.log('提交11111111111===============>', this.putOnTheShelfList, this.submitFrom) const arr = [] this.putOnTheShelfList.map((item) => { item.children.map((child) => { @@ -728,6 +719,7 @@ export default { child.name === '应用场景' || child.name === '功能介绍' ) { + arr.push(child.name) if ( this.submitFrom.infoList.filter( @@ -827,6 +819,7 @@ export default { } }) }) + this.submitFrom.infoList = this.submitFrom.infoList.sort( (a, b) => arr.indexOf(a.attrType) - arr.indexOf(b.attrType) ) @@ -875,7 +868,6 @@ export default { if ((this.radio === '业务组件' || this.radio === '开发组件') && (!this.submitFrom.infoList.filter(val => val.attrType === '组件地址')[0] || !this.submitFrom.infoList.filter(val => val.attrType === '组件地址')[0].attrValue)) { this.notFilled.push('组件地址') } - console.log(this.submitFrom, this.notFilled, '表单验证') if (this.notFilled.length > 0) { this.$message({ message: '请填写必填字段!', @@ -889,8 +881,6 @@ export default { val.attrValue = this.radio } }) - console.log('编辑===============>', this.submitFrom) - console.log(this.submitFrom.infoList, '===============abc') // 去重 const newArr = this.submitFrom.infoList.filter( (element, index, self) => { @@ -914,7 +904,6 @@ export default { }) .catch(() => {}) } else { - console.log('提交11111111111===============>', this.putOnTheShelfList, this.submitFrom) this.$http .post('/resource/insert?source= b', this.submitFrom) .then(({ data: res }) => { @@ -926,7 +915,7 @@ export default { } }) .catch(() => {}) - } + } } }, // 新修改 diff --git a/back/src/views/modules/components/upload/index.vue b/back/src/views/modules/components/upload/index.vue index aaed392d..a0711966 100644 --- a/back/src/views/modules/components/upload/index.vue +++ b/back/src/views/modules/components/upload/index.vue @@ -34,7 +34,7 @@ export default { tip: String, maxCount: Number, data: Array, - list: Array, + list: Object , emitFlag: String, busType: Number }, @@ -46,13 +46,13 @@ export default { }, methods: { handleExceed (file) { - console.log(file) + }, handError (err, file, fileList) { - console.log(err, file, fileList) + }, handlePreview (file) { - console.log(file) + if (file.response) { window.open( window.SITE_CONFIG.previewUrl + @@ -74,7 +74,7 @@ export default { message: file.name + '上传成功', type: 'success' }) - console.log(file, fileList) + this.$emit('changeInfoList', { attrType: this.title, attrValue: file.response.data, @@ -91,7 +91,7 @@ export default { } }, handleRemove (file) { - console.log(file, '删除', this.title) + this.$emit('changeInfoList', { attrType: this.title, attrValue: '', @@ -104,7 +104,7 @@ export default { if (this.list.note1) { this.fileList.push({ name: this.list.note2 || '--', url: this.list.note1 }) } - console.log('上传组件===================>', this.list, this.fileList) + } } diff --git a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue index 3f4e7f4a..91b1b6c7 100644 --- a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue +++ b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue @@ -26,7 +26,7 @@ js: :placeholder="'请选择' + name"> {{ itemSelect.dictLabel }} @@ -38,9 +38,9 @@ js: filterable placeholder="请输入关键词" @change="changeIiem(name,data.note1)" - :loading="loading"> + > @@ -56,7 +56,7 @@ js: > {{ itemSelect.dictLabel }} @@ -66,7 +66,7 @@ js: v-else-if="type === 'checkBox'" > - {{val.dictLabel}} + {{val.dictLabel}} @@ -96,7 +96,7 @@ export default { }, props: { type: String, - data: Array, + data: Object, name: String, value: String, changeField: Array, @@ -107,6 +107,7 @@ export default { }, data () { return { + optionsCopy:[], // 多选放数据的数组 valueCheckBox: [], // 单选数据 @@ -133,7 +134,7 @@ export default { res.data.list.forEach((element) => { dataList.push(element) }) - this.options = dataList + this.optionsCopy = dataList }) .catch(() => {}) } else if (this.data.name === '归属部门' || this.data.name === '所属产品线') { @@ -142,10 +143,9 @@ export default { res.data.data.forEach((element) => { dataList.push(element) }) - this.options = dataList + this.optionsCopy = dataList if (!this.data.note1) { this.$http.get('/sys/user/info').then(({ data: res }) => { - console.log(res.data) this.data.note1 = res.data.deptId }) } @@ -159,7 +159,6 @@ export default { // this.options = dataList if (this.data.note1 == null) { this.$http.get('/sys/user/info').then(({ data: res }) => { - console.log(res.data) this.data.note1 = res.data.realName || '' }) } @@ -173,11 +172,12 @@ export default { // this.options = dataList if (this.data.note1 == null) { this.$http.get('/sys/user/info').then(({ data: res }) => { - console.log(res.data) this.data.note1 = res.data.mobile || '' }) } // }) + }else{ + this.optionsCopy=this.options } }, chekBoxChange (list) { @@ -199,7 +199,6 @@ export default { }, showTypeClick (e) { this.showType = e - console.log(e) this.$emit('show-type', this.showType) } }, diff --git a/back/src/views/modules/putOnTheShelf/components/special.vue b/back/src/views/modules/putOnTheShelf/components/special.vue index 54a6e5be..d9e8d17e 100644 --- a/back/src/views/modules/putOnTheShelf/components/special.vue +++ b/back/src/views/modules/putOnTheShelf/components/special.vue @@ -6,76 +6,71 @@ * @Description: 多条数据特殊处理 -->