wenbobowen 4 年之前
父節點
當前提交
a05379d907

+ 1 - 1
src/views/projectManage/onlineproblem/create/component/base.vue

@@ -10,7 +10,7 @@
         :multiple="d.multiple"
         :value="data[d.key]"
         :requried="d.requried"
-        :item-styles="item.length > 1 && { width: '200px' }"
+        :item-styles="item.length > 1 ? { width: '200px' } : {}"
         @onChange="(e) => $emit('onChange', d.key, e )"
         @remoteMethod="(e) => remoteMethod(d.key, e, d.utilName)"
       />

+ 3 - 0
src/views/projectManage/onlineproblem/index.vue

@@ -33,6 +33,8 @@ export default {
   },
   methods: {
     async listSearch(data) {
+      this.chartData = {}
+      this.dataList = []
       const res = await getlist({ ...data, bizId: this.$store.state.global.bizId })
       if (res.code === 200) {
         this.dataList = res.data.list || []
@@ -42,6 +44,7 @@ export default {
       if (key) {
         this.chartSearchData[key] = value
       }
+      this.dataList = []
       const chartData = await getChartData({ ...this.chartSearchData, bizId: this.$store.state.global.bizId })
       this.chartData = chartData.data
       this.chartListSearch(chartData.data.data[0].code)