|
@@ -24,7 +24,7 @@
|
|
|
<section class="section-item">
|
|
|
<div class="top">
|
|
|
<label>选择品种</label>
|
|
|
- <el-button type="text">品种管理</el-button>
|
|
|
+ <el-button type="text" @click="setDialogOpen('variety')">品种管理</el-button>
|
|
|
</div>
|
|
|
<div class="list">
|
|
|
<el-tag
|
|
@@ -42,7 +42,7 @@
|
|
|
<section class="section-item">
|
|
|
<div class="top">
|
|
|
<label>标签配置</label>
|
|
|
- <el-button type="text">标签管理</el-button>
|
|
|
+ <el-button type="text" @click="setDialogOpen('tag')">标签管理</el-button>
|
|
|
</div>
|
|
|
<div class="list">
|
|
|
<el-tag
|
|
@@ -145,9 +145,21 @@
|
|
|
</div> -->
|
|
|
</div>
|
|
|
|
|
|
+ <!-- 管理弹窗 -->
|
|
|
+ <tagSetDialog
|
|
|
+ :isShow.sync="isShowSetDia"
|
|
|
+ :type="dialogType"
|
|
|
+ :dataList="dialogType==='variety'?varietyOptions:tagOptions"
|
|
|
+ />
|
|
|
+
|
|
|
+ <!-- 标签指标配置 -->
|
|
|
+ <tagRelationDialog
|
|
|
+ :isShow.sync="isShowTagRelationDia"
|
|
|
+ />
|
|
|
+
|
|
|
<!-- 操作说明 -->
|
|
|
<ExplainDialog
|
|
|
- textArrName="statisticFeatureListTextArr"
|
|
|
+ textArrName="crossVarietyAnalisisTextArr"
|
|
|
:show-explain="showExplain"
|
|
|
@close="showExplain = false"
|
|
|
/>
|
|
@@ -155,17 +167,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {yearSelector} from '@/utils/defaultOptions';
|
|
|
import {statisticFeatureInterface} from '@/api/modules/chartRelevanceApi';
|
|
|
import { chartSetMixin } from '@/views/dataEntry_manage/mixins/chartPublic';
|
|
|
import Chart from '@/views/dataEntry_manage/components/chart';
|
|
|
import ExplainDialog from '../components/explainDialog.vue';
|
|
|
-import chartFormSection from './components/chartFormSection.vue'
|
|
|
+import chartFormSection from './components/chartFormSection.vue';
|
|
|
+import tagSetDialog from './components/tagSetDialog.vue';
|
|
|
+import tagRelationDialog from './components/tagRelationDialog.vue';
|
|
|
export default {
|
|
|
components: {
|
|
|
ExplainDialog,
|
|
|
Chart,
|
|
|
- chartFormSection
|
|
|
+ chartFormSection,
|
|
|
+ tagSetDialog,
|
|
|
+ tagRelationDialog
|
|
|
},
|
|
|
directives: {
|
|
|
drag(el, bindings) {
|
|
@@ -203,6 +218,8 @@ export default {
|
|
|
SysUserRealName: '还真'
|
|
|
},
|
|
|
|
|
|
+ showExplain: false,
|
|
|
+
|
|
|
checkedVariety: [],
|
|
|
varietyOptions: [
|
|
|
{label: '螺纹'},
|
|
@@ -218,7 +235,12 @@ export default {
|
|
|
{label:'库存'},
|
|
|
{label:'进口'},
|
|
|
{label:'产量'},
|
|
|
- ]
|
|
|
+ ],
|
|
|
+
|
|
|
+ isShowSetDia: false,//管理弹窗
|
|
|
+ dialogType: '',
|
|
|
+
|
|
|
+ isShowTagRelationDia: true,//标签指标管理弹窗
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -233,8 +255,14 @@ export default {
|
|
|
},
|
|
|
|
|
|
/* 打开标签关联弹窗 */
|
|
|
- setTagRelationOpen() {
|
|
|
+ setTagRelationOpen(item) {
|
|
|
+
|
|
|
+ },
|
|
|
|
|
|
+ /* 标签管理 */
|
|
|
+ setDialogOpen(type) {
|
|
|
+ this.dialogType = type;
|
|
|
+ this.isShowSetDia = true;
|
|
|
},
|
|
|
|
|
|
/* 保存图表 */
|
|
@@ -242,7 +270,6 @@ export default {
|
|
|
|
|
|
},
|
|
|
|
|
|
-
|
|
|
reloadRightWid() {
|
|
|
let total_wid = $('#box')[0].offsetWidth;
|
|
|
let left = $('#left')[0].offsetWidth;
|
|
@@ -334,7 +361,7 @@ export default {
|
|
|
.list {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- height: 200px;
|
|
|
+ max-height: 200px;
|
|
|
overflow-y: auto;
|
|
|
gap: 8px;
|
|
|
.tag {
|
|
@@ -372,9 +399,10 @@ export default {
|
|
|
}
|
|
|
.right-cont {
|
|
|
width: 80%;
|
|
|
-
|
|
|
+ overflow-x: auto;
|
|
|
.chart-min-cont {
|
|
|
background: #fff;
|
|
|
+ min-width: 880px;
|
|
|
height: calc(100vh - 118px);
|
|
|
overflow-y: auto;
|
|
|
display: flex;
|