| | |
| | | </div> |
| | | </div> |
| | | <div class="addBtn"> |
| | | <el-button type="primary" @click="handleUpdateImageResource(null,'create')" |
| | | >新增</el-button |
| | | > |
| | | </div> |
| | | <el-button |
| | | type="primary" |
| | | @click="handleUpdateImageResource(null, 'create')" |
| | | >新增</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | </header> |
| | | <main> |
| | |
| | | </div> |
| | | <!-- 数据展示 --> |
| | | <el-table |
| | | border |
| | | stripe |
| | | border |
| | | stripe |
| | | ref="multipleTable" |
| | | :header-cell-style="{ |
| | | 'background':'#F5F5F5', |
| | | background: '#F5F5F5', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | | }" |
| | |
| | | :row-class-name="tableRowClassName" |
| | | @selection-change="tableChange" |
| | | > |
| | | <el-table-column type="selection" min-width="5" :selectable="selectable"> </el-table-column> |
| | | <el-table-column |
| | | type="selection" |
| | | min-width="5" |
| | | :selectable="selectable" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="所属事件编号" min-width="18"> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="问题类别" min-width="8"> |
| | |
| | | >查看</span |
| | | > |
| | | <span v-if="mystatus === 3" class="line">|</span> |
| | | <span v-if="mystatus === 3" @click="handleUdeletepdateImageResource(scope.row, 'update')" |
| | | <span |
| | | v-if="mystatus === 3" |
| | | @click="handleUdeletepdateImageResource(scope.row, 'update')" |
| | | >修改</span |
| | | > |
| | | <span v-if="mystatus === 3" class="line">|</span> |
| | | <span v-if="mystatus === 3" @click="handleDelete(scope.row)">删除</span> |
| | | <span v-if="mystatus === 3" class="line">|</span> |
| | | <span v-if="mystatus === 3" @click="handleDelete(scope.row)" |
| | | >删除</span |
| | | > |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | > |
| | | </div> |
| | | <div class="funsItem"> |
| | | <el-select |
| | | v-model="myIdx" |
| | | placeholder="批量操作" |
| | | > |
| | | <el-select v-model="myIdx" placeholder="批量操作"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | |
| | | // 批量删除 |
| | | mulDelete(idArr) { |
| | | this.$confirm("您确定要批量删除图片吗?") |
| | | .then((_) => { |
| | | this.$axios({ |
| | | method: "delete", |
| | | url: "/sccg/image_resources/deletion_batch?ids=" + idArr, |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "批量删除图片成功", |
| | | }); |
| | | this.getImageResourceList(); |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | | message: res.message, |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | }); |
| | | .then((_) => { |
| | | this.$axios({ |
| | | method: "delete", |
| | | url: "/sccg/image_resources/deletion_batch?ids=" + idArr, |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "批量删除图片成功", |
| | | }); |
| | | this.getImageResourceList(); |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | | message: res.message, |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | // 执行下拉框操作 |
| | | selectChange(list) { |
| | | if (this.tempList.length !== 0) { |
| | | this.preMyIdx = list; |
| | | this.mulDelete(this.tempList); |
| | | this.preMyIdx = list; |
| | | this.mulDelete(this.tempList); |
| | | } else { |
| | | this.myIdx = this.preMyIdx; |
| | | this.$message({ |
| | |
| | | }, |
| | | // 更改违规/违建 |
| | | changeTypeChecked(data) { |
| | | this.typeList.forEach(item => { |
| | | this.typeList.forEach((item) => { |
| | | item.checked = data.name === item.name; |
| | | }) |
| | | const checkedType = this.typeList.find(item => item.checked); |
| | | }); |
| | | const checkedType = this.typeList.find((item) => item.checked); |
| | | this.mystatus = +checkedType.value; |
| | | this.size = checkedType.value; |
| | | this.getImageResourceList(); |
| | |
| | | getEventSource(value) { |
| | | return EVENT_SOURCE.find((item) => item.value === value); |
| | | }, |
| | | selectable(row,index){ |
| | | if(this.mystatus == '1'){ |
| | | return false;//禁用状态 |
| | | }else{ |
| | | return true;//非禁用状态 |
| | | } |
| | | selectable(row, index) { |
| | | if (this.mystatus == "1") { |
| | | return false; //禁用状态 |
| | | } else { |
| | | return true; //非禁用状态 |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | .is-active { |
| | | // background-color: #070f22; |
| | | border-radius: 4px; |
| | | color: #333; |
| | | color: #333; |
| | | font-size: 500; |
| | | } |
| | | } |
| | |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | padding: 0; |
| | | .funs-first{ |
| | | margin-left: 0!important; |
| | | .funs-first { |
| | | margin-left: 0 !important; |
| | | } |
| | | .funs-sp { |
| | | border: 1px solid #DCDFE6; |
| | | border: 1px solid #dcdfe6; |
| | | } |
| | | |
| | | .funs { |
| | |
| | | |
| | | .operation { |
| | | display: flex; |
| | | |
| | | color: var(--operation-color); |
| | | .line { |
| | | padding: 0 5px; |
| | | } |