|  | @@ -12,9 +12,10 @@
 | 
	
		
			
				|  |  |             v-permission="'/helpCategory'"
 | 
	
		
			
				|  |  |             @click="onToUrl()">分类管理</div>
 | 
	
		
			
				|  |  |        <!-- 搜索标题 -->
 | 
	
		
			
				|  |  | -      <el-form :inline="true"
 | 
	
		
			
				|  |  | +      <save-form :inline="true"
 | 
	
		
			
				|  |  |                 class="searchForm"
 | 
	
		
			
				|  |  | -               v-model.trim="searchForm">
 | 
	
		
			
				|  |  | +               @submit="search"
 | 
	
		
			
				|  |  | +               :model="searchForm">
 | 
	
		
			
				|  |  |          <el-form-item prop="hasPracticeCourse">
 | 
	
		
			
				|  |  |            <el-cascader ref="cascader"
 | 
	
		
			
				|  |  |                         :show-all-levels="false"
 | 
	
	
		
			
				|  | @@ -24,10 +25,9 @@
 | 
	
		
			
				|  |  |                         clearable></el-cascader>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |          <el-form-item>
 | 
	
		
			
				|  |  | -          <el-button @click="getList"
 | 
	
		
			
				|  |  | -                     type="danger">搜索</el-button>
 | 
	
		
			
				|  |  | +          <el-button native-type="submit" type="danger">搜索</el-button>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -      </el-form>
 | 
	
		
			
				|  |  | +      </save-form>
 | 
	
		
			
				|  |  |        <div class="tableWrap">
 | 
	
		
			
				|  |  |          <el-table :data="tableList"
 | 
	
		
			
				|  |  |                    :header-cell-style="{background:'#EDEEF0',color:'#444'}">>
 | 
	
	
		
			
				|  | @@ -40,7 +40,12 @@
 | 
	
		
			
				|  |  |                             label="标题"></el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column align="center"
 | 
	
		
			
				|  |  |                             prop="content"
 | 
	
		
			
				|  |  | -                           label="内容"></el-table-column>
 | 
	
		
			
				|  |  | +                           label="内容">
 | 
	
		
			
				|  |  | +            <template slot-scope="scope">
 | 
	
		
			
				|  |  | +              <!-- <overflow-text :text="scope.row.content"></overflow-text> -->
 | 
	
		
			
				|  |  | +              <Tooltip :content="scope.row.content"></Tooltip>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  | +          </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column align="center"
 | 
	
		
			
				|  |  |                             prop="catalog.text"
 | 
	
		
			
				|  |  |                             label="分类名"></el-table-column>
 | 
	
	
		
			
				|  | @@ -56,7 +61,7 @@
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |          </el-table>
 | 
	
		
			
				|  |  | -        <pagination :total="pageInfo.total"
 | 
	
		
			
				|  |  | +        <pagination sync :total.sync="pageInfo.total"
 | 
	
		
			
				|  |  |                      :page.sync="pageInfo.page"
 | 
	
		
			
				|  |  |                      :limit.sync="pageInfo.limit"
 | 
	
		
			
				|  |  |                      :page-sizes="pageInfo.page_size"
 | 
	
	
		
			
				|  | @@ -110,6 +115,7 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import pagination from "@/components/Pagination/index";
 | 
	
		
			
				|  |  | +import Tooltip from '@/components/Tooltip'
 | 
	
		
			
				|  |  |  // import store from '@/store'
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  |    helpCenterCatalogList,
 | 
	
	
		
			
				|  | @@ -118,7 +124,7 @@ import {
 | 
	
		
			
				|  |  |    helpCenterContentDelete
 | 
	
		
			
				|  |  |  } from "@/api/appTenant";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  | -  components: { pagination },
 | 
	
		
			
				|  |  | +  components: { pagination, Tooltip },
 | 
	
		
			
				|  |  |    name: "helpCategory",
 | 
	
		
			
				|  |  |    data () {
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -155,15 +161,15 @@ export default {
 | 
	
		
			
				|  |  |        tempTreeList: []
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  activated () {
 | 
	
		
			
				|  |  | -    this.getList();
 | 
	
		
			
				|  |  | -    this.getTreeList()
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  |    mounted () {
 | 
	
		
			
				|  |  |      this.getList();
 | 
	
		
			
				|  |  |      this.getTreeList()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    search() {
 | 
	
		
			
				|  |  | +      this.pageInfo.page = 1
 | 
	
		
			
				|  |  | +      this.getList()
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      onTypeDelOpeation (row) {
 | 
	
		
			
				|  |  |        this.$confirm('您是否删除该内容?', '提示', {
 | 
	
		
			
				|  |  |          confirmButtonText: '确定',
 | 
	
	
		
			
				|  | @@ -312,7 +318,7 @@ export default {
 | 
	
		
			
				|  |  |          content: null, // 内容
 | 
	
		
			
				|  |  |          catalogId: [], // 分类编号
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.$refs.cascader.handleClear()
 | 
	
		
			
				|  |  | +      this.$refs.formCascader.handleClear()
 | 
	
		
			
				|  |  |        this.$refs[formName].resetFields();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 |