|  | @@ -1,6 +1,5 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="tabs-container">
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      <el-row :gutter="20">
 | 
	
		
			
				|  |  |        <!--机构数据-->
 | 
	
		
			
				|  |  |        <el-col :span="4" :xs="24">
 | 
	
	
		
			
				|  | @@ -16,7 +15,7 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          <div class="tree-container">
 | 
	
		
			
				|  |  |            <div style="margin-bottom: 10px;">
 | 
	
		
			
				|  |  | -            <el-checkbox v-model="queryParams.checkSub" @change="changeCheckBox">是否关联下级机构</el-checkbox>
 | 
	
		
			
				|  |  | +            <el-checkbox v-model="queryParams.checkSub" @change="changeCheckBox">关联下级</el-checkbox>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |            <el-tree
 | 
	
		
			
				|  |  |              :data="deptOptions"
 | 
	
	
		
			
				|  | @@ -46,6 +45,7 @@
 | 
	
		
			
				|  |  |                range-separator="-"
 | 
	
		
			
				|  |  |                start-placeholder="开始日期"
 | 
	
		
			
				|  |  |                end-placeholder="结束日期"
 | 
	
		
			
				|  |  | +              :clearable="false"
 | 
	
		
			
				|  |  |              ></el-date-picker>
 | 
	
		
			
				|  |  |            </el-form-item>
 | 
	
		
			
				|  |  |            <el-form-item label="营业状态" prop="status">
 | 
	
	
		
			
				|  | @@ -65,7 +65,7 @@
 | 
	
		
			
				|  |  |            </el-form-item>
 | 
	
		
			
				|  |  |            <el-form-item>
 | 
	
		
			
				|  |  |              <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
 | 
	
		
			
				|  |  | -            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
 | 
	
		
			
				|  |  | +            <el-button icon="el-icon-refresh" size="mini" @click="resetForm">重置</el-button>
 | 
	
		
			
				|  |  |            </el-form-item>
 | 
	
		
			
				|  |  |          </el-form>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -93,12 +93,12 @@
 | 
	
		
			
				|  |  |            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
 | 
	
		
			
				|  |  |          </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <el-table v-loading="loading" style="width: auto;" size="nimi" border :data="tableList">
 | 
	
		
			
				|  |  | +        <el-table v-loading="loading" style="width: auto;" size="mini" border :data="tableList">
 | 
	
		
			
				|  |  |            <el-table-column v-if="columns[0].visible" prop="orgName" label="机构"></el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column v-if="columns[1].visible" label="日期" >
 | 
	
		
			
				|  |  |              <span slot-scope="scope">{{scope.row.ymdDate}}</span>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  | -          <el-table-column v-if="columns[2].visible" label="营业状态">
 | 
	
		
			
				|  |  | +          <el-table-column v-if="columns[2].visible" label="营业状态" :width="100">
 | 
	
		
			
				|  |  |              <template slot-scope="r">{{r.row.isEnable?'营业':'歇业'}}</template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column v-if="columns[3].visible" label="上下班时间段">
 | 
	
	
		
			
				|  | @@ -116,7 +116,7 @@
 | 
	
		
			
				|  |  |                <span>{{scope.row.noonbreakStart}}-{{scope.row.noonbreakEnd}}</span>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  | -          <el-table-column v-if="columns[6].visible" prop="modifiedName" label="更新人"></el-table-column>
 | 
	
		
			
				|  |  | +          <el-table-column v-if="columns[6].visible" prop="modifiedName" label="更新人" width="100"></el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column v-if="columns[7].visible" label="更新时间" >
 | 
	
		
			
				|  |  |              <span slot-scope="scope">{{scope.row.updateTime}}</span>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
	
		
			
				|  | @@ -128,10 +128,11 @@
 | 
	
		
			
				|  |  |          </el-table>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          <pagination
 | 
	
		
			
				|  |  | -          v-show="pages.total>0"
 | 
	
		
			
				|  |  | -          :total="pages.total"
 | 
	
		
			
				|  |  | -          :page.sync="pages.pageNum"
 | 
	
		
			
				|  |  | -          :limit.sync="pages.pageSize"
 | 
	
		
			
				|  |  | +          class="pages-box"
 | 
	
		
			
				|  |  | +          v-show="total>0"
 | 
	
		
			
				|  |  | +          :total="total"
 | 
	
		
			
				|  |  | +          :page.sync="queryParams.pageNum"
 | 
	
		
			
				|  |  | +          :limit.sync="queryParams.pageSize"
 | 
	
		
			
				|  |  |            @pagination="getList"
 | 
	
		
			
				|  |  |          />
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
	
		
			
				|  | @@ -146,7 +147,6 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import tableListMixins  from '@/mixins/tableList'
 | 
	
		
			
				|  |  |  import DialogEdit from './dialog.edit'
 | 
	
		
			
				|  |  |  import DialogAdd from './dialog.add'
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -163,10 +163,11 @@ export default {
 | 
	
		
			
				|  |  |    /**  得先引入字典才能使用 */
 | 
	
		
			
				|  |  |    dicts: ['sys_business_type'],
 | 
	
		
			
				|  |  |    /** 引入基础minxins*/
 | 
	
		
			
				|  |  | -  mixins:[tableListMixins],
 | 
	
		
			
				|  |  |    components: {DialogEdit,DialogAdd},
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | +      // 遮罩层
 | 
	
		
			
				|  |  | +      loading: false,
 | 
	
		
			
				|  |  |        //选中的行
 | 
	
		
			
				|  |  |        selectRow:null,
 | 
	
		
			
				|  |  |        // 显示搜索条件
 | 
	
	
		
			
				|  | @@ -187,12 +188,15 @@ export default {
 | 
	
		
			
				|  |  |          label: "name"
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 查询参数
 | 
	
		
			
				|  |  | -      queryParams: {
 | 
	
		
			
				|  |  | +     queryParams: {
 | 
	
		
			
				|  |  |          checkSub: false,
 | 
	
		
			
				|  |  |          orgId: null,
 | 
	
		
			
				|  |  |          isEnable:'1',
 | 
	
		
			
				|  |  | +        pageNum:1,
 | 
	
		
			
				|  |  | +        pageSize:10,
 | 
	
		
			
				|  |  |          range: [formatTime(timeb), formatTime(timea)],
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | +      total:0,
 | 
	
		
			
				|  |  |        // 列信息
 | 
	
		
			
				|  |  |        columns: [
 | 
	
		
			
				|  |  |          { key: 0, label: `机构`, visible: true },
 | 
	
	
		
			
				|  | @@ -231,13 +235,10 @@ export default {
 | 
	
		
			
				|  |  |      /** 查询列表 */
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        this.loading = true;
 | 
	
		
			
				|  |  | -      let data = {
 | 
	
		
			
				|  |  | -        ...this.queryParams,
 | 
	
		
			
				|  |  | -        ...this.pages
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      tableList(data).then(response => {
 | 
	
		
			
				|  |  | +      console.log(this.queryParams,'pages')
 | 
	
		
			
				|  |  | +      tableList(this.queryParams,).then(response => {
 | 
	
		
			
				|  |  |            this.tableList = response.rows;
 | 
	
		
			
				|  |  | -          this.pages.total = response.total;
 | 
	
		
			
				|  |  | +          this.total = response.total;
 | 
	
		
			
				|  |  |            this.loading = false;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        ).catch(err=>{
 | 
	
	
		
			
				|  | @@ -290,9 +291,18 @@ export default {
 | 
	
		
			
				|  |  |          orgId: null,
 | 
	
		
			
				|  |  |          isEnable:'1',
 | 
	
		
			
				|  |  |          range: [formatTime(timeb), formatTime(timea)],
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +      };
 | 
	
		
			
				|  |  | +      this.getList();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    /** 搜索按钮操作 */
 | 
	
		
			
				|  |  | +    handleQuery() {
 | 
	
		
			
				|  |  | +      this.queryParams.pageNum = 1;
 | 
	
		
			
				|  |  | +      this.getList();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  | +<style lang="scss">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +</style>
 |