修改上传接口及tab切换样式

prod
吕天方 1 year ago
parent 03e1f06c5c
commit 46ae546fd1

@ -29,7 +29,7 @@
} }
.mb8 { .mb8 {
margin-bottom: 8px; margin-bottom: 0px;
} }
.ml5 { .ml5 {

@ -1826,7 +1826,7 @@ export default {
let data = {}; let data = {};
data.name = response.originalFilename; data.name = response.originalFilename;
data.url = response.url; data.url = response.url;
this.uploadList.push(data) this.uploadListOne.push(data)
// this.form.fileListOne = this.fileListOne // this.form.fileListOne = this.fileListOne
this.$set(this.form, 'fileListOne', this.fileListOne) this.$set(this.form, 'fileListOne', this.fileListOne)
// console.log('this.fileListOne: ', this.fileListOne); // console.log('this.fileListOne: ', this.fileListOne);

@ -31,7 +31,12 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row class="mb8" id="I-rowOne"> <el-row class="mb8" id="I-rowOne">
<el-col :span="1.5"> <el-radio-group v-model="radio" @change="toggleOptions">
<el-radio-button label="">全部</el-radio-button>
<el-radio-button label="0">待审批</el-radio-button>
<el-radio-button label="1,2">已审批</el-radio-button>
</el-radio-group>
<!-- <el-col :span="1.5">
<el-button <el-button
type="info" type="info"
plain plain
@ -54,7 +59,7 @@
size="mini" size="mini"
@click="toggleOptions('1,2')" @click="toggleOptions('1,2')"
>已审批</el-button> >已审批</el-button>
</el-col> </el-col> -->
</el-row> </el-row>
<el-table <el-table
@ -229,10 +234,12 @@ export default {
fileList: [], fileList: [],
uploadList: [], uploadList: [],
tabHeader: undefined, tabHeader: undefined,
radio: '',
}; };
}, },
mounted() { mounted() {
this.cancalDebounce(); this.cancalDebounce();
// console.log(this.deptId,"deptId");
window.addEventListener('resize', this.cancalDebounce); window.addEventListener('resize', this.cancalDebounce);
}, },
destroyed() { destroyed() {
@ -283,6 +290,7 @@ export default {
}, },
/** 切换审批项 */ /** 切换审批项 */
toggleOptions(value) { toggleOptions(value) {
console.log(value);
this.queryParams.approvalStatusStr = value this.queryParams.approvalStatusStr = value
this.handleQuery(); this.handleQuery();
}, },
@ -383,21 +391,21 @@ list-style: none; /* 清除列表项前的标记 */
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.search_btn { // .search_btn {
position: absolute; // position: absolute;
top: 20px; // top: 20px;
right: 18px; // right: 18px;
.btn { // .btn {
background-color: #f1d78c; // background-color: #f1d78c;
border: none; // border: none;
color: #000; // color: #000;
} // }
} // }
.btn { // .btn {
background-color: #f1d78c; // background-color: #f1d78c;
border: none; // border: none;
color: #000; // color: #000;
} // }
/* 悬浮 */ /* 悬浮 */
// ::v-deep .el-button:hover { // ::v-deep .el-button:hover {
// /* background: linear-gradient(#0165eb, #018ff2, #00b7f9) !important; */ // /* background: linear-gradient(#0165eb, #018ff2, #00b7f9) !important; */

Loading…
Cancel
Save