123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <template>
- <!-- 指标和图标审批页面 -->
- <div class="approve-detail detail-wrapper">
- <div class="top">
- <div class="left">
- <div class="item">
- <label class="el-form-item__label">待审批图表数量</label>
- <el-select
- v-model="selectItem"
- style="width: 240px"
- clearable
- multiple
- collapse-tags
- @change="handleChange"
- >
- <el-option
- v-for="item in approvelistOption"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </div>
- <div class="item">
- <label class="el-form-item__label">公开目录</label>
- 一级/二级/三级
- </div>
- </div>
- </div>
- <div class="container">
- <div class="preview-wrapper">
- <div class="edb-detail" v-if="mainType==='edb'">
- <chart-trend-render
- :edbid="102179"
- :isShowChartBasis="true"
- :isAllowSwitchSeason="true"
- :isAllowEditLimit="true"
- ref="createChart"
- />
- </div>
- <div class="chart-detail" v-if="LINK_CHART_URL&&mainType==='chart'">
-
- <iframe :src='`${LINK_CHART_URL}?code=f7067484afd24ffd26904ceddbba98ab`' width='100%' height='450' style='border-width:0px; min-height:450px;'></iframe>
- </div>
- </div>
- <div class="right">
- <div>
- <label>公开理由</label>
- <p class="reason">动物气得我经济法几千万if服务器】服务器【;【; </p>
- </div>
- <div class="tool-btn">
- <el-button type="danger" @click="$parent.changeApprove('reject')"
- v-if="permissionBtn.isShowBtn('approvePermission','reportApprove_reject')">{{$t('AprrovalDetailPage.rejected_btn')}}</el-button>
- <el-button type="primary" @click="$parent.changeApprove('pass')"
- v-if="permissionBtn.isShowBtn('approvePermission','reportApprove_agree')">{{$t('AprrovalDetailPage.agree_btn')}}</el-button>
- <el-button type="primary" plain @click="$router.replace(`/approveList?formType=${formType}&mainType=${mainType}`)">{{$t('AprrovalDetailPage.back_btn')}}</el-button>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import chartDetailDia from '@/views/mychart_manage/components/chartDetailDia.vue'
- import chartTrendRender from '@/views/dataEntry_manage/databaseComponents/chartTrendRender.vue';
- export default {
- components: { chartTrendRender,chartDetailDia },
- computed: {
- LINK_CHART_URL() {
- let url = localStorage.getItem('dynamicOutLinks') ? JSON.parse(localStorage.getItem('dynamicOutLinks')).ChartViewUrl+'/chartshow' : '';
- return url
- }
- },
- props: {
- formType: {
- type: String
- },
- mainType: {
- type: String,
- },
- detail: {
- type: Object
- }
- },
- data() {
- return {
- selectItem:'',
- approvelistOption: []
- }
- },
- methods:{
- handleChange() {
- }
- },
- }
- </script>
- <style scoped lang='scss'>
- .detail-wrapper {
- padding: 20px;
- display: flex;
- flex-direction: column;
- .top {
- display: flex;
- justify-content: space-between;
- .left,.item {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- }
- .left {
- gap: 30px;
- }
- .item {
- max-width: 350px;
- }
- }
- .container {
- display: flex;
- margin-top: 20px;
- flex: 1;
- .preview-wrapper {
- flex: 1;
- border: 1px solid #E9E9EB;
- padding: 30px 20px;
- border-radius: 4px;
- }
- .right {
- margin-left: 20px;
- width: 350px;
- border: 1px solid #E9E9EB;
- padding: 30px 20px;
- border-radius: 4px;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .tool-btn {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- margin-top: 40px;
- }
- .reason {
- margin-top: 20px;
- padding: 10px 20px;
- border: 1px solid #DCDFE6;
- border-radius: 8px;
- }
- }
- }
- }
- </style>
|