Browse Source

代码提交

master
juwei001 1 year ago
parent
commit
12481397b6
  1. 77
      src/views/next/dialog-module/hsyf-left/company/attractions.vue

77
src/views/next/dialog-module/hsyf-left/company/attractions.vue

@ -213,66 +213,66 @@
</template> </template>
<script> <script>
import { mapGetters, mapActions } from 'vuex' import { mapGetters, mapActions } from "vuex";
import { partyPlacePage, partyPlace } from '@/api/hsyf' import { partyPlacePage, partyPlace } from "@/api/hsyf";
export default { export default {
name: '', name: "",
data () { data() {
return { return {
dialogTitle: '移风阵地', dialogTitle: "移风阵地",
currentId: '1', currentId: "1",
dataList: [], dataList: [],
titles: { titles: {
4: '干部队伍建设', 4: "干部队伍建设",
5: '战斗堡垒筑牢', 5: "战斗堡垒筑牢",
6: '强村共富先行', 6: "强村共富先行",
7: '党建品牌打造' 7: "党建品牌打造",
}, },
info: { description: '' }, info: { description: "" },
loading: false loading: false,
} };
}, },
computed: { computed: {
...mapGetters(['hsyfAttractions', 'djType']) ...mapGetters(["hsyfAttractions", "djType"]),
}, },
watch: { watch: {
djType (value) { djType(value) {
this.getData() this.getData();
} },
}, },
components: {}, components: {},
mounted () {}, mounted() {},
created () { created() {
if (this.djType) { if (this.djType) {
this.getData() this.getData();
} }
}, },
methods: { methods: {
...mapActions({ ...mapActions({
showGlobalDialog: 'showGlobalDialog' showGlobalDialog: "showGlobalDialog",
}), }),
getData () { getData() {
partyPlacePage({ page: 1, limit: 100, type: this.djType }).then((res) => { partyPlacePage({ page: 1, limit: 100, type: this.djType }).then((res) => {
this.currentId = res.data.list.id this.currentId = res.data.list.id;
this.dataList = res.data.list this.dataList = res.data.list;
if (this.dataList.length > 0) { if (this.dataList.length > 0) {
this.onDatils(this.dataList[0]) this.onDatils(this.dataList[0]);
} else { } else {
this.info = { description: '' } this.info = { description: "" };
} }
}) });
}, },
closeDialog () { closeDialog() {
this.showGlobalDialog('') this.showGlobalDialog("");
}, },
onDatils (item) { onDatils(item) {
this.currentId = item.id this.currentId = item.id;
partyPlace(item.id).then((res) => { partyPlace(item.id).then((res) => {
this.info = res.data this.info = res.data;
}) });
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -360,7 +360,7 @@ export default {
); );
&-list { &-list {
&-item { &-item {
width: 272px; width: 248px;
height: 44px; height: 44px;
line-height: 44px; line-height: 44px;
font-size: 16px; font-size: 16px;
@ -368,6 +368,9 @@ export default {
font-weight: 500; font-weight: 500;
color: #fbe9c5; color: #fbe9c5;
font-family: PingFang SC; font-family: PingFang SC;
overflow: hidden; /* 隐藏超出的内容 */
text-overflow: ellipsis; /* 显示省略号 */
white-space: nowrap;
} }
.action { .action {
color: #ffffff; color: #ffffff;

Loading…
Cancel
Save