diff --git a/src/views/ebiz/institutionalPerform/DepartmentOffice.vue b/src/views/ebiz/institutionalPerform/DepartmentOffice.vue index 30dc8918a..5357fe131 100644 --- a/src/views/ebiz/institutionalPerform/DepartmentOffice.vue +++ b/src/views/ebiz/institutionalPerform/DepartmentOffice.vue @@ -80,13 +80,13 @@ 操作 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -115,6 +115,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -357,24 +358,7 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, + mounted() { setInterval(this.getCurrentDate(), 1000 * 60) this.timeVal = this.$route.query.timeVal || '' @@ -428,7 +412,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -437,6 +421,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0; diff --git a/src/views/ebiz/institutionalPerform/DistrictOffice.vue b/src/views/ebiz/institutionalPerform/DistrictOffice.vue index 2c8c13355..4ec21cdc9 100644 --- a/src/views/ebiz/institutionalPerform/DistrictOffice.vue +++ b/src/views/ebiz/institutionalPerform/DistrictOffice.vue @@ -77,13 +77,13 @@ 操作 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -112,6 +112,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -353,24 +354,7 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, + mounted() { setInterval(this.getCurrentDate(), 1000 * 60) this.getlComPremDetil() @@ -426,7 +410,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -435,6 +419,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0; diff --git a/src/views/ebiz/institutionalPerform/GroupOffice.vue b/src/views/ebiz/institutionalPerform/GroupOffice.vue index 4694e2635..53687ae3e 100644 --- a/src/views/ebiz/institutionalPerform/GroupOffice.vue +++ b/src/views/ebiz/institutionalPerform/GroupOffice.vue @@ -77,13 +77,13 @@ 操作 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -112,6 +112,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -354,24 +355,7 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, + mounted() { setInterval(this.getCurrentDate(), 1000 * 60) this.timeVal = this.$route.query.timeVal || '' @@ -425,7 +409,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -434,6 +418,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0; diff --git a/src/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins.js b/src/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins.js new file mode 100644 index 000000000..21a1be84d --- /dev/null +++ b/src/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins.js @@ -0,0 +1,20 @@ +import getApp from '@/assets/js/utils/getApp' +const myMixin = { + methods: { + //页面返回服务页 + appCallBack(data) { + if (data.trigger == 'right_button_click') { + this.$jump({ + flag: 'service' + }) + } + } + }, + created() { + var that = this + + getApp.closeBtn(that) + window.appCallBack = this.appCallBack + } +} +export default myMixin diff --git a/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue b/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue index e6f5437cc..82f8611eb 100644 --- a/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue +++ b/src/views/ebiz/institutionalPerform/InstitutionalManpower/index.vue @@ -56,7 +56,8 @@ import Selectors from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/Selectors' import util from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/util' import { branchOfficeApi } from '@/api/ebiz/branchOffice/branchOffice' -import getApp from '@/assets/js/utils/getApp' + +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins'; import { Tabs, Tab } from 'vant' export default { name: 'InstitutionalManpower', @@ -65,6 +66,7 @@ export default { [Tabs.name]: Tabs, [Tab.name]: Tab }, + mixins: [MinXin], data() { return { sortType: '1', @@ -107,7 +109,7 @@ export default { this.items = [sum1, sum2, sum3, sum4] }) this.items = this.items.map(item => { - return item.toFixed(2) + return item }) } } @@ -209,40 +211,9 @@ export default { }) .catch(err => {}) }, - //页面返回服务页 - appCallBack(data) { - if (data.trigger == 'right_button_click') { - this.$jump({ - flag: 'service' - }) - } - - } - }, - created() { - var that=this - - - getApp.closeBtn(that) - window.appCallBack=this.appCallBack - // setTimeout(() => { - // // eslint-disable-next-line no-undef - // EWebBridge.webCallAppInJs('webview_right_button', { - // btns: [ - // { - // img: 'images/refresh.png', - // route: { - // flag: '', - // extra: { - // url: location.origin + '/#/institutionalPerform/BranchOffice' - // } - // } - // } - // ] - // }) - // }, 1000) - + }, + mounted() { // this.timeVal=this.$route.query.timeVal||"" // this.showText=this.$route.query.showText @@ -304,7 +275,9 @@ export default { table td { text-align: right; padding:8px; - + &:nth-child(2){ + text-align: center; + } } table .title th { diff --git a/src/views/ebiz/institutionalPerform/PersonalOffice.vue b/src/views/ebiz/institutionalPerform/PersonalOffice.vue index 83c4a4f61..2bc5da46e 100644 --- a/src/views/ebiz/institutionalPerform/PersonalOffice.vue +++ b/src/views/ebiz/institutionalPerform/PersonalOffice.vue @@ -76,13 +76,13 @@ 承保件数 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -108,6 +108,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -339,24 +340,7 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, + mounted() { setInterval(this.getCurrentDate(), 1000 * 60) this.timeVal = this.$route.query.timeVal || '' @@ -410,7 +394,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -419,6 +403,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0; diff --git a/src/views/ebiz/institutionalPerform/RegionalOffice.vue b/src/views/ebiz/institutionalPerform/RegionalOffice.vue index e5cb03ca9..b84e3167a 100644 --- a/src/views/ebiz/institutionalPerform/RegionalOffice.vue +++ b/src/views/ebiz/institutionalPerform/RegionalOffice.vue @@ -77,13 +77,13 @@ 操作 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -112,6 +112,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -354,24 +355,7 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, + mounted() { setInterval(this.getCurrentDate(), 1000 * 60) this.timeVal = this.$route.query.timeVal || '' @@ -425,7 +409,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -434,6 +418,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0; diff --git a/src/views/ebiz/institutionalPerform/ServiceDepartOffice.vue b/src/views/ebiz/institutionalPerform/ServiceDepartOffice.vue index 9ef2e806e..950d89b63 100644 --- a/src/views/ebiz/institutionalPerform/ServiceDepartOffice.vue +++ b/src/views/ebiz/institutionalPerform/ServiceDepartOffice.vue @@ -77,13 +77,13 @@ 操作 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -112,6 +112,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -352,24 +353,7 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, + mounted() { setInterval(this.getCurrentDate(), 1000 * 60) this.timeVal = this.$route.query.timeVal || '' @@ -423,7 +407,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -432,6 +416,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0; diff --git a/src/views/ebiz/institutionalPerform/UnderOffice.vue b/src/views/ebiz/institutionalPerform/UnderOffice.vue index 4f90dcc1d..1c1101e9d 100644 --- a/src/views/ebiz/institutionalPerform/UnderOffice.vue +++ b/src/views/ebiz/institutionalPerform/UnderOffice.vue @@ -77,13 +77,13 @@ 操作 - 1 - 合计 - {{ ysbbTotal.toFixed(2) }} - {{ bzbfTotol.toFixed(2) }} - {{ cbbfTotal.toFixed(2) }} - {{ ysjsTotal }} - {{ cbjsTotal }} + 1 + 合计 + {{ ysbbTotal.toFixed(2) }} + {{ bzbfTotol.toFixed(2) }} + {{ cbbfTotal.toFixed(2) }} + {{ ysjsTotal }} + {{ cbjsTotal }} {{ index + 1 }} @@ -112,6 +112,7 @@ import refreshLogo from '@/assets/images/ebiz/refresh.png' import calendar from '@/assets/images/ebiz/calendar.png' import point from '@/assets/images/ebiz/point.png' import { Tabs, Tab } from 'vant' +import MinXin from '@/views/ebiz/institutionalPerform/InstitutionalManpower/components/js/mixins' export default { name: 'districtOffice', components: { @@ -119,6 +120,7 @@ export default { [Tabs.name]: Tabs, [Tab.name]: Tab }, + mixins: [MinXin], data() { return { showText: true, @@ -354,24 +356,6 @@ export default { .catch(err => {}) } }, - created() { - setTimeout(() => { - // eslint-disable-next-line no-undef - EWebBridge.webCallAppInJs('webview_right_button', { - btns: [ - { - img: this.$assetsUrl + 'images/ebiz/refresh.png', - route: { - flag: '', - extra: { - url: location.origin + '/#/institutionalPerform/BranchOffice' - } - } - } - ] - }) - }, 1000) - }, mounted() { // this.timeVal=this.$route.query.timeVal||"" // this.showText=this.$route.query.showText @@ -434,7 +418,7 @@ export default { border-right: 0; } table td { - text-align: center; + text-align: right; border-width: 1px; padding: 8px; // border-style: solid; @@ -443,6 +427,9 @@ export default { border-top: 0; border-left: 0; border-right: 0; + &:nth-child(2) { + text-align: center; + } } table { border: 0;