Browse Source

Merge branch 'dev-heart0629' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-heart0629

master
jiangyy 3 years ago
parent
commit
12094b8ba1
  1. 8
      src/views/modules/communityParty/article/drafts.vue
  2. 11
      src/views/modules/cpts/base/index.vue

8
src/views/modules/communityParty/article/drafts.vue

@ -104,9 +104,9 @@ export default {
limit: 1, limit: 1,
editDisabled: true, editDisabled: true,
rules: [], rules: [],
value: [], value: () => [],
supKeys: ["imgUrlArr", "imgUrl"], supKeys: ["imgUrlArr", "imgUrl"],
supValues: [[], ""], supValues: [() => [], ""],
beforeImgUpload(file, item, that) { beforeImgUpload(file, item, that) {
console.log(file); console.log(file);
const isLt1M = file.size / 1024 / 1024 < 10; const isLt1M = file.size / 1024 / 1024 < 10;
@ -217,8 +217,8 @@ export default {
label: "以组织名义", label: "以组织名义",
optionList: [ optionList: [
{ {
label: agencyId, label: agencyName,
value: agencyName, value: agencyId,
type: "agency", type: "agency",
}, },
], ],

11
src/views/modules/cpts/base/index.vue

@ -93,10 +93,7 @@
</el-form> </el-form>
</div> </div>
<div <div class="div_table" :style="{ height: maxTableHeight + 130 + 'px' }">
class="div_table"
:style="{ height: maxTableHeight + 130 + 'px' }"
>
<div class="div_btn"> <div class="div_btn">
<el-button <el-button
class="diy-button--add" class="diy-button--add"
@ -142,6 +139,7 @@
</div> </div>
<el-table <el-table
ref="ref_table"
:data="tableData" :data="tableData"
border border
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
@ -447,6 +445,11 @@ export default {
this.computeSearchHeight(); this.computeSearchHeight();
}, },
activated() {
console.log('-------------activated')
this.$refs["ref_table"].doLayout();
},
methods: { methods: {
computeSearchHeight() { computeSearchHeight() {
this.ref_search_height = this.$refs["ref_search"].clientHeight; this.ref_search_height = this.$refs["ref_search"].clientHeight;

Loading…
Cancel
Save