|
@@ -241,12 +241,18 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item prop="name" style="margin-top:10px;" label="知识分类">
|
|
<a-form-item prop="name" style="margin-top:10px;" label="知识分类">
|
|
<a-cascader v-model="categoryValue"
|
|
<a-cascader v-model="categoryValue"
|
|
|
|
+ :popupStyle="{
|
|
|
|
+ maxWidth: '40vw',
|
|
|
|
+ 'overflow-x': 'auto'
|
|
|
|
+ }"
|
|
|
|
+ :getPopupContainer="triggerNode => { return triggerNode.parentNode }"
|
|
:options="classifyListAdd"
|
|
:options="classifyListAdd"
|
|
:fieldNames="{ label: 'name', value: 'pkId', children: 'children' }"
|
|
:fieldNames="{ label: 'name', value: 'pkId', children: 'children' }"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@change="onChange"
|
|
@change="onChange"
|
|
@popupVisibleChange="popupVisibleChange"
|
|
@popupVisibleChange="popupVisibleChange"
|
|
- popupClassName="knowledgeCascader">
|
|
|
|
|
|
+ popupClassName="knowledgeCascader"
|
|
|
|
+ class="scroll-ckunk">
|
|
</a-cascader>
|
|
</a-cascader>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item prop="name" style="margin-top:10px;" label="选择知识">
|
|
<a-form-item prop="name" style="margin-top:10px;" label="选择知识">
|
|
@@ -403,7 +409,8 @@ export default {
|
|
yelpPageSize:10,
|
|
yelpPageSize:10,
|
|
yelpDataList:[],
|
|
yelpDataList:[],
|
|
yelpPageTotle:0,
|
|
yelpPageTotle:0,
|
|
- scope: 2
|
|
|
|
|
|
+ scope: 2,
|
|
|
|
+ widthVar: 400
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeRouteLeave(to, from, next) {
|
|
beforeRouteLeave(to, from, next) {
|
|
@@ -446,6 +453,7 @@ export default {
|
|
// 将排序后的结果重新赋值
|
|
// 将排序后的结果重新赋值
|
|
//this.albumArr = result.value.list;
|
|
//this.albumArr = result.value.list;
|
|
});
|
|
});
|
|
|
|
+
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
//this.dataList = this.albumArr[this.albumIndex].dataList
|
|
//this.dataList = this.albumArr[this.albumIndex].dataList
|
|
@@ -764,6 +772,18 @@ export default {
|
|
pkId:undefined,
|
|
pkId:undefined,
|
|
}
|
|
}
|
|
this.categoryValue=''
|
|
this.categoryValue=''
|
|
|
|
+
|
|
|
|
+ // let innerWidth = window.innerWidth
|
|
|
|
+
|
|
|
|
+ // this.widthVar = innerWidth/30
|
|
|
|
+
|
|
|
|
+ setInterval(() => {
|
|
|
|
+ document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
|
|
|
|
+ el.onclick = function() {
|
|
|
|
+ document.querySelector('.ant-cascader-menus').scrollLeft = 2048
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }, 1000)
|
|
},
|
|
},
|
|
//增加知识
|
|
//增加知识
|
|
handleOkAdd(){
|
|
handleOkAdd(){
|
|
@@ -1490,4 +1510,15 @@ export default {
|
|
height: 1.2vw;
|
|
height: 1.2vw;
|
|
margin-left: 0.6vw;
|
|
margin-left: 0.6vw;
|
|
}
|
|
}
|
|
|
|
+</style>
|
|
|
|
+<style scoped>
|
|
|
|
+/deep/ .ant-cascader-menus {
|
|
|
|
+ left: 0!important;
|
|
|
|
+}
|
|
|
|
+/deep/ .ant-cascader-menu:last-child {
|
|
|
|
+ margin-right: 0!important;
|
|
|
|
+}
|
|
|
|
+/deep/ .ant-modal-wrap {
|
|
|
|
+ overflow: inherit;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|