| 
					
				 | 
			
			
				@@ -1,301 +1,342 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-form-item label="企微公司" prop="corpId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-select v-model="queryParams.corpId" placeholder="企微公司" size="small" @change="updateCorpId()"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                v-for="dict in myQwCompanyList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :key="dict.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :label="dict.dictLabel" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :value="dict.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-form-item label="规则名称:" prop="ruleName"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-model="queryParams.ruleName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            placeholder="请输入规则名称" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @keyup.enter.native="handleQuery" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form-item label="企微公司" prop="corpId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-select v-model="queryParams.corpId" placeholder="企微公司" size="small" @change="updateCorpId()"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-for="dict in myQwCompanyList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :key="dict.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :label="dict.dictLabel" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :value="dict.dictValue" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-form-item label="生效成员:" prop="appleUserOne"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-select v-model="queryParams.appleUserOne" filterable clearable placeholder="选择成员" size="small"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-for="dict in userList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :key="dict.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :label="dict.qwUserName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :value="dict.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </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 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            plain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            icon="el-icon-plus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @click="handleAdd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-hasPermi="['qw:autoTags:add']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          >添加规则</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--      <div style="padding:0 0 15px 0">--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--        <el-button--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--          type="primary"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--          size="small"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--          plain--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--          icon="el-icon-plus"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--          @click="handleAdd"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--          v-hasPermi="['shop:tags:add']"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--        >添加规则</el-button>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--      </div>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table v-loading="loading" :data="dayPartingIndexList" border height="550px" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="规则名称" align="center" prop="ruleName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="已打标签总数" align="center" prop="totalNumTagsCount" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="生效成员" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form-item label="规则名称:" prop="ruleName"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          v-model="queryParams.ruleName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          placeholder="请输入规则名称" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          @keyup.enter.native="handleQuery" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form-item label="生效成员:" prop="appleUserOne"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-select v-model="queryParams.appleUserOne" filterable clearable placeholder="选择成员" size="small"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-for="dict in userList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :key="dict.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :label="dict.qwUserName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :value="dict.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </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 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          plain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          icon="el-icon-plus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          @click="handleAdd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          v-hasPermi="['qw:autoTags:add']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        >添加规则</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--      <div style="padding:0 0 15px 0">--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--        <el-button--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--          type="primary"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--          size="small"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--          plain--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--          icon="el-icon-plus"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--          @click="handleAdd"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--          v-hasPermi="['shop:tags:add']"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--        >添加规则</el-button>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--      </div>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-table v-loading="loading" :data="dayPartingIndexList" border height="550px" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="规则名称" align="center" prop="ruleName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="已打标签总数" align="center" prop="totalNumTagsCount" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="生效成员" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                <span v-for="userId in JSON.parse(scope.row.applyUsers)" :key="userId" style="display: inline;width: 300px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-tag :disable-transitions="false"  v-for="list in userList" :key="list.id" style="margin: 3px;" v-if="list.id==userId">{{list.qwUserName}}({{list.nickName}})</el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="添加的标签" align="center" prop="tagIdsName"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div v-for="name in scope.row.tagIdsName" style="display: inline;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-tag type="success">{{ name }}</el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="创建时间" align="center" prop="createTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="规则状态" align="center" prop="isApply"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-switch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-model="scope.row.isApply" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              active-color="#13ce66" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              inactive-color="#ff4949" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              active-value="1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              inactive-value="2" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              @change="switchChange(scope.row)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </el-switch> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-if="scope.row.isApply == '1'" style="margin-left: 10px;color: #13ce66">已启用</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-if="scope.row.isApply == '2'" style="margin-left: 10px;color: #ff4949">已关闭</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              icon="el-icon-edit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              @click="handleDetails(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-hasPermi="['qw:autoTags:query']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            >详情</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              @click="handleDelete(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-hasPermi="['qw:autoTags:remove']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            >删除</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <pagination 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        v-show="total>0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :total="total" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :page.sync="queryParams.pageNum" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :limit.sync="queryParams.pageSize" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        @pagination="getList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <!-- 添加或修改自动打标签主对话框 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-form ref="form" :model="form" :rules="rules" label-position="left"  label-width="120px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div class="app-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="添加的标签" align="center" prop="tagIdsName"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div v-for="name in scope.row.tagIdsName" style="display: inline;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-tag type="success">{{ name }}</el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="创建时间" align="center" prop="createTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="规则状态" align="center" prop="isApply"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-switch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-model="scope.row.isApply" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            active-color="#13ce66" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            inactive-color="#ff4949" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            active-value="1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            inactive-value="2" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @change="switchChange(scope.row)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-switch> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-if="scope.row.isApply == '1'" style="margin-left: 10px;color: #13ce66">已启用</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-if="scope.row.isApply == '2'" style="margin-left: 10px;color: #ff4949">已关闭</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            icon="el-icon-edit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @click="handleUpdate(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-hasPermi="['qw:autoTags:edit']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          >修改成员</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            icon="el-icon-edit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @click="handleDetails(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-hasPermi="['qw:autoTags:query']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          >详情</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @click="handleDelete(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-hasPermi="['qw:autoTags:remove']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          >删除</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <pagination 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      v-show="total>0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :total="total" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :page.sync="queryParams.pageNum" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :limit.sync="queryParams.pageSize" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @pagination="getList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 添加或修改自动打标签主对话框 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form ref="form" :model="form" :rules="rules" label-position="left"  label-width="120px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="app-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span style="font-size: 15px">规则基础信息</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-divider></el-divider> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-alert 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            title="根据规则,当客户在设定时间段内成为企业微信客户,将自动被打上标签" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            style="font-size: 15px;margin-bottom: 2%;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :closable="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            show-icon> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-alert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-form-item label="规则名称:" prop="ruleName" style="width: 400px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-input v-model="form.ruleName" placeholder="请输入规则名称(内部可见)" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-form-item label="生效成员:" prop="applyUsers"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <span style="font-size: 15px">规则基础信息</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-divider></el-divider> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                size="medium" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                icon="el-icon-circle-plus-outline" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                plain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                @click="handlelistUser">请选择使用成员</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-alert 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              title="根据规则,当客户在设定时间段内成为企业微信客户,将自动被打上标签" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              type="warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              style="font-size: 15px;margin-bottom: 2%;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :closable="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              show-icon> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </el-alert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-form-item label="规则名称:" prop="ruleName" style="width: 400px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-input v-model="form.ruleName" placeholder="请输入规则名称(内部可见)" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <el-form-item label="生效成员:" prop="applyUsers"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  size="medium" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  icon="el-icon-circle-plus-outline" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  plain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  @click="handlelistUser">请选择使用成员</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <el-tag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  style="margin-left: 5px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  size="medium" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  :key="list.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  v-for="list in userSelectList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  closable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  :disable-transitions="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  @close="handleClosegroupUser(list)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  {{list.qwUserName}}({{list.nickName}}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                </el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div style="margin-top: 5%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <span style="font-size: 15px">设置打标签的规则</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-divider></el-divider> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-tag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                style="margin-left: 5px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                size="medium" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :key="list.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                v-for="list in userSelectList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                closable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :disable-transitions="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                @close="handleClosegroupUser(list)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                {{list.qwUserName}}({{list.nickName}}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div style="margin-top: 5%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span style="font-size: 15px">设置打标签的规则</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-divider></el-divider> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div  v-for="(item, index) in form.rulesTags"    :key="index" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <div style="background-color: #fbfbfb;padding: 10px;  border: 1px solid #e6e6e6; margin-bottom: 10px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  <el-form ref="rulesTagsFrom" :rules="rulesTagsRules" :model="item" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      <div style="display: flex; align-items: center; flex-wrap: nowrap;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <span style="margin-right: 10px;">规则 {{ index + 1 }}:</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <el-form-item label="为每:" prop="week" style="flex: 8;margin-bottom: 0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <el-select v-model="item.week" remote multiple placeholder="请选择时间" filterable style="width: 350px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <el-option v-for="dict in weekOptions" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <el-form-item prop="startTime" style="margin:0 5px 0 5px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <el-time-select style="width: 120px;" placeholder="起始时间" v-model="item.startTime" :picker-options="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div  v-for="(item, index) in form.rulesTags"    :key="index" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div style="background-color: #fbfbfb;padding: 10px;  border: 1px solid #e6e6e6; margin-bottom: 10px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-form ref="rulesTagsFrom" :rules="rulesTagsRules" :model="item" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <div style="display: flex; align-items: center; flex-wrap: nowrap;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <span style="margin-right: 10px;">规则 {{ index + 1 }}:</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <el-form-item label="为每:" prop="week" style="flex: 8;margin-bottom: 0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <el-select v-model="item.week" remote multiple placeholder="请选择时间" filterable style="width: 350px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <el-option v-for="dict in weekOptions" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <el-form-item prop="startTime" style="margin:0 5px 0 5px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <el-time-select style="width: 120px;" placeholder="起始时间" v-model="item.startTime" :picker-options="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               start: '00:00', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               step: '00:15', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               end: '24:00' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             }"></el-time-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <el-form-item prop="endTime" style="margin:0 5px 0 5px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <el-time-select style="width: 120px;" placeholder="结束时间" v-model="item.endTime" :picker-options="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <el-form-item prop="endTime" style="margin:0 5px 0 5px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <el-time-select style="width: 120px;" placeholder="结束时间" v-model="item.endTime" :picker-options="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               start: '00:00', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               step: '00:15', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               end: '24:00', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                               minTime: item.startTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             }"></el-time-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div style="display: flex; align-items: center;width: 100px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <span>添加的客户</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <div style="display: flex; align-items: center;width: 100px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <span>添加的客户</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <el-form-item prop="tags" style="width: 500px;margin:5px 0 0 8%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <div style="display: flex; align-items: center;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <div style="width: 50px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <span>打上</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <div @click="handleChangeTags(item,index)" style="cursor: pointer; border: 1px solid #e6e6e6; background-color: white; overflow: hidden; flex-grow: 1;width: 390px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div style="min-height: 35px; max-height: 200px; overflow-y: auto;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          <el-tag type="success" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  closable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  :disable-transitions="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  v-for="list in tagListFormIndex[index]" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  :key="list.tagId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  @close="handleCloseTag(list,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  style="margin: 3px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          >{{list.name}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          </el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <div style="width: 70px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <span style="margin:0px 10px;">的标签</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      <el-form-item prop="tags" style="width: 500px;margin:5px 0 0 8%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div style="display: flex; align-items: center;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <div style="width: 50px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <span>打上</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <div @click="handleChangeTags(item,index)" style="cursor: pointer; border: 1px solid #e6e6e6; background-color: white; overflow: hidden; flex-grow: 1;width: 390px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <div style="min-height: 35px; max-height: 200px; overflow-y: auto;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                              <el-tag type="success" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                      closable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                      :disable-transitions="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                      v-for="list in tagListFormIndex[index]" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                      :key="list.tagId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                      @close="handleCloseTag(list,index)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                      style="margin: 3px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                              >{{list.name}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                              </el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <div style="width: 70px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <span style="margin:0px 10px;">的标签</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      <el-form-item prop="remark" style="width: 500px;margin:5px 0 0 8%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div style="display: flex; align-items: center;margin-top: 1%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <div style="width: 50px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <span>并备注</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <el-input v-model="item.remarks" style="width: 300px" placeholder="请输入备注(选填)"></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          <div style="width: 70px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            <el-link v-if="form.rulesTags.length>1" icon="el-icon-delete-solid" @click="delItemList(index)" type="text" style="color: rgb(24, 144, 255);margin-left:10px;height: 40px " ></el-link> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<el-form-item label="备注日期"   prop="isDay" style="width: 500px;margin:5px 0 0 8%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					  <el-switch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					    v-model="item.isDay" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					    :active-value="1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					    :inactive-value="0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					    > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					  </el-switch> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					</el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <el-form-item prop="remark" style="width: 500px;margin:5px 0 0 8%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <div style="display: flex; align-items: center;margin-top: 1%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <div style="width: 50px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <span>并备注</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <el-input v-model="item.remarks" style="width: 300px" placeholder="请输入备注(选填)"></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      <div style="width: 70px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <el-link v-if="form.rulesTags.length>1" icon="el-icon-delete-solid" @click="delItemList(index)" type="text" style="color: rgb(24, 144, 255);margin-left:10px;height: 40px " ></el-link> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <el-form-item label="备注日期"   prop="isDay" style="width: 500px;margin:5px 0 0 8%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <el-switch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      v-model="item.isDay" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      :active-value="1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      :inactive-value="0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </el-switch> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-link type="primary" class="el-icon-plus" :underline="false" @click='addItemList()'>添加其他时段规则(最多7条)</el-link> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="primary" @click="submitForm">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button @click="cancel">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-link type="primary" class="el-icon-plus" :underline="false" @click='addItemList()'>添加其他时段规则(最多7条)</el-link> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" @click="submitForm">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button @click="cancel">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 选择成员账号弹窗   --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-dialog :title="listUser.title" :visible.sync="listUser.open" style="width: 1600px;height: 100%" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <qwUserList ref="QwUserList" @selectUserList="selectUserList"></qwUserList> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-dialog title="添加标签" :visible.sync="tagChange.open" width="800px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <div>搜索标签: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-input v-model="queryTagParams.name" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchTags">搜索</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="primary" icon="el-icon-plus" size="mini" @click="cancelSearchTags">重置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :title="listUser.title" :visible.sync="listUser.open" width="1600px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <qwUserList ref="QwUserList" @selectUserList="selectUserList"></qwUserList> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 选择成员账号弹窗修改   --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :title="listUserUpdate.title" :visible.sync="listUserUpdate.open" width="1600px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <qwUserList ref="QwUserList" @selectUserList="selectUserListUpdate"></qwUserList> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog title="添加标签" :visible.sync="tagChange.open" width="800px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div>搜索标签: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-input v-model="queryTagParams.name" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchTags">搜索</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" icon="el-icon-plus" size="mini" @click="cancelSearchTags">重置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div v-for="item in tagGroupList" :key="item.id" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div style="font-size: 20px;margin-top: 20px;margin-bottom: 20px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span class="name-background">{{ item.name }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <div v-for="item in tagGroupList" :key="item.id" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div style="font-size: 20px;margin-top: 20px;margin-bottom: 20px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span class="name-background">{{ item.name }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div class="tag-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              v-for="tagItem in item.tag" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              class="tag-box" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              @click="tagSelection(tagItem)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :class="{ 'tag-selected': tagItem.isSelected }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              {{ tagItem.name }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <pagination 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          v-show="tagTotal>0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :total="tagTotal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :page.sync="queryTagParams.pageNum" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :limit.sync="queryTagParams.pageSize" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          @pagination="getPageListTagGroup" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="primary" @click="addTagSubmitForm(tagChange.index)">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button @click="addTagCancel(tagChange.index)">重 置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="tag-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-for="tagItem in item.tag" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            class="tag-box" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @click="tagSelection(tagItem)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :class="{ 'tag-selected': tagItem.isSelected }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {{ tagItem.name }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <pagination 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        v-show="tagTotal>0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :total="tagTotal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :page.sync="queryTagParams.pageNum" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :limit.sync="queryTagParams.pageSize" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        @pagination="getPageListTagGroup" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" @click="addTagSubmitForm(tagChange.index)">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button @click="addTagCancel(tagChange.index)">重 置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 分时段详   --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-drawer :title="detailFrom.title" :visible.sync="detailFrom.open" size="75%" style="font-weight: bolder"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <dayPartingIndexDetails :groupIndexFrom="detailListFrom"></dayPartingIndexDetails> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-drawer :title="detailFrom.title" :visible.sync="detailFrom.open" size="75%" style="font-weight: bolder"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <dayPartingIndexDetails :groupIndexFrom="detailListFrom"></dayPartingIndexDetails> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 单独修改员工标签   --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :title="updateUserOpen.title" :visible.sync="updateUserOpen.open" width="500px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form ref="form" :model="form" label-width="100px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-form-item label="选择员工" prop="qwUserIds" style="margin-top: 2%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="medium" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              icon="el-icon-circle-plus-outline" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              plain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              @click="handlelistUserUpdate">请选择使用成员</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-tag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              style="margin-left: 5px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="medium" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :key="id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v-for="id in updateUserOpen.applyUsersUpdate" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              closable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :disable-transitions="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              @close="handleClosegroupUserUpdate(id)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <span v-for="list in userList" :key="list.qwUserId" v-if="list.id==id">{{list.qwUserName}}({{list.nickName}})</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-tag> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div slot="footer" class="dialog-footer" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button  type="primary" @click="submitUpdateAutoTags">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button  @click="cancelAutoTags">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -358,12 +399,31 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         title:"", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         open:false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //选择成员列表 做修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      listUserUpdate:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        title:"", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        open:false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //选择成员列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       userSelectList:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      userSelectListUpdate:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //详情表单参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       detailListFrom:{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //生效成员列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      updateUserOpen:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        title:"修改成员", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        open:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        id:null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        applyUsersUpdate:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //详情抽屉 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       detailFrom:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         open:false, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -386,14 +446,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         value: 5, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         label: '星期五' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      , { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        value: 6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        label: '星期六' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      , { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        value: 7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        label: '星期天' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        , { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          value: 6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          label: '星期六' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        , { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          value: 7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          label: '星期天' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 查询参数 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -446,6 +506,11 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     userSelectList(newList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.form.applyUsers = newList.map(item => item.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    userSelectListUpdate(newList){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.updateUserOpen.applyUsersUpdate = [...newList] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     tagListFormIndex: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       handler(newList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 遍历 tagListFormIndex 并将 tagId 放入对应位置的 tags 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -469,14 +534,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getMyQwCompanyList().then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.myQwCompanyList = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(this.myQwCompanyList!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.queryParams.corpId=this.myQwCompanyList[0].dictValue 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.myQwCompanyList = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(this.myQwCompanyList!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.queryParams.corpId=this.myQwCompanyList[0].dictValue 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.afreshData(this.queryParams.corpId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.afreshData(this.queryParams.corpId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -485,7 +550,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.afreshData(this.queryParams.corpId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 新增按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleAdd() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.reset(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -502,8 +567,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    * 重新获取 部分数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 重新获取 部分数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     afreshData(value){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.resetSearchQueryTag() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -529,11 +594,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //选择群发的企业成员账号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handlelistUser(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$refs.QwUserList.getDetails(this.queryParams.corpId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$refs.QwUserList.getDetails(this.queryParams.corpId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.listUser.title="选择企业成员" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.listUser.open=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //选择群发的企业成员账号做修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handlelistUserUpdate(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$refs.QwUserList.getDetails(this.queryParams.corpId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.listUserUpdate.title="选择企业成员" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.listUserUpdate.open=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //选择的成员账号列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     selectUserList(list){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -547,8 +622,20 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //选择的成员账号列表 修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    selectUserListUpdate(list){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.listUserUpdate.open=false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      list.forEach(obj => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!this.updateUserOpen.applyUsersUpdate.some(item => item == obj.id)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.userSelectListUpdate.push(obj.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleSearchTags(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryTagParams.corpId=this.queryParams.corpId; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -583,6 +670,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //删除一些选择的标签 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleClosegroupUserUpdate(id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const index = this.userSelectListUpdate.findIndex(item => item === id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (index !== -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.userSelectListUpdate.splice(index, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 查询自动打标签主列表 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.loading = true; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -694,6 +790,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.tagListFormIndex.splice(index,1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 取消按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     cancel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.open = false; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -737,6 +834,46 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.handleQuery(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleUpdate(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //所有的员工 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      listUser({corpId:this.queryParams.corpId}).then(res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.userList=res.rows; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 深拷贝表单数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const requestData = { ...row }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      requestData.applyUsers = JSON.parse(row.applyUsers); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.userSelectListUpdate=requestData.applyUsers; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.updateUserOpen.id=requestData.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.updateUserOpen.open=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    submitUpdateAutoTags(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (this.updateUserOpen.id != null && this.updateUserOpen.applyUsersUpdate.length>0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        updateTags({id:this.updateUserOpen.id,applyUsers:JSON.stringify(this.updateUserOpen.applyUsersUpdate)}).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.msgSuccess("修改成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.updateUserOpen.open = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.msgError("修改失败:成员不能为空 或 未选规则"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cancelAutoTags(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.reset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.updateUserOpen.open=false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.updateUserOpen.applyUsersUpdate=[]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.updateUserOpen.id=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.userSelectListUpdate=[]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 详情按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleDetails(row) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -788,8 +925,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       requestData.applyUsers = JSON.stringify(this.form.applyUsers); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       requestData.corpId=this.queryParams.corpId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log("requestData",requestData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.form.id != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         updateTags(requestData).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.msgSuccess("修改成功"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -809,15 +944,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleDelete(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const ids = row.id || this.ids; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$confirm('是否确认删除自动打标签主编号为"' + ids + '"的数据项?', "警告", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          type: "warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }).then(function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          return delTags(ids); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.msgSuccess("删除成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }).catch(() => {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: "warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }).then(function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return delTags(ids); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.msgSuccess("删除成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }).catch(() => {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 |