e4f52ae2 by 任超

style;审批意见

1 parent 2b5a3c37
......@@ -134,6 +134,7 @@ export default {
.ls-title {
padding: 16px;
color: #ffffff;
font-size: 16px;
background: linear-gradient(3deg, #409EFF, #a7cbee);
}
......
......@@ -135,6 +135,7 @@ export default {
padding: 16px;
color: #ffffff;
background: linear-gradient(3deg, #409EFF, #a7cbee);
font-size: 16px;
}
.ls-title .svg-icon {
......
......@@ -3,9 +3,7 @@
<dialogBox title="常用意见" :fullscreen="false" width="60%" isMain v-model="value" @closeDialog="closeDialog"
:isButton="false">
<el-button type="primary" native-type="submit" @click="openDialog()">新增常用</el-button>
<lb-table :page-size="pageData.size" heightNumSetting :current-page.sync="pageData.current"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="columns" :data="tableData.data">
<lb-table heightNumSetting :pagination="false" :column="columns" :data="tableData.data">
</lb-table>
<div style="height:15px"></div>
</dialogBox>
......@@ -27,11 +25,9 @@
</div>
</template>
<script>
import table from "@/utils/mixin/table";
import { getUserCommonOpinion, addUserCommonOpinion, delUserCommonOpinion } from "@/api/fqsq.js"
export default {
components: {},
mixins: [table],
props: {
value: { type: Boolean, default: false },
},
......@@ -76,13 +72,12 @@ export default {
}
},
mounted () {
this.queryClick()
this.getList()
},
methods: {
queryClick () {
getUserCommonOpinion(this.pageData).then(res => {
let { total, records } = res.result
this.tableData.total = total;
getList () {
getUserCommonOpinion().then(res => {
let { records } = res.result
this.tableData.data = records ? records : []
})
},
......@@ -99,7 +94,6 @@ export default {
}
})
} else {
// console.log('error submit!!');
return false;
}
});
......@@ -128,7 +122,7 @@ export default {
delUserCommonOpinion({ bsmOpinion: item.bsmOpinion }).then(res => {
if (res.code == 200) {
this.$message.success("删除成功")
this.queryClick()
this.getList()
} else {
this.$message.error(res.message)
}
......