|  |  | 
 |  |  | <template> | 
 |  |  |   <div>问卷统计</div> | 
 |  |  |   <div class="Questionnairemanagement"> | 
 |  |  |     <!-- 左侧栏 --> | 
 |  |  |     <div class="sidecolumn"> | 
 |  |  |       <div class="sidecolumn-top"> | 
 |  |  |         <div class="top-wj">患者范围</div> | 
 |  |  |       </div> | 
 |  |  |  | 
 |  |  |       <div class="bottom-fl"> | 
 |  |  |         <el-tabs | 
 |  |  |           tab-position="right" | 
 |  |  |           v-model="activeName" | 
 |  |  |           @tab-click="handleClick" | 
 |  |  |         > | 
 |  |  |           <el-tab-pane label="全部" name="first"></el-tab-pane> | 
 |  |  |           <el-tab-pane label="住院" name="bhospitalized"></el-tab-pane> | 
 |  |  |           <el-tab-pane label="在院" name="Inhospital"></el-tab-pane> | 
 |  |  |           <el-tab-pane label="门诊" name="outpatient"></el-tab-pane> | 
 |  |  |           <el-tab-pane label="体检" name="physical"></el-tab-pane> | 
 |  |  |         </el-tabs> | 
 |  |  |       </div> | 
 |  |  |     </div> | 
 |  |  |     <!-- 右侧数据 --> | 
 |  |  |     <div class="leftvlue"> | 
 |  |  |       <div class="leftvlue-top"> | 
 |  |  |         <el-tabs v-model="topactiveName" @tab-click="tophandleClick"> | 
 |  |  |           <el-tab-pane name="Local"> | 
 |  |  |             <span class="mulsz" slot="label">按出院病区统计 </span> | 
 |  |  |           </el-tab-pane> | 
 |  |  |           <el-tab-pane name="sharing"> | 
 |  |  |             <span class="mulsz" slot="label">按出院科室统计 </span> | 
 |  |  |           </el-tab-pane> | 
 |  |  |         </el-tabs> | 
 |  |  |       </div> | 
 |  |  |       <div class="leftvlue-bg"> | 
 |  |  |         <el-row :gutter="20"> | 
 |  |  |           <!--标签数据--> | 
 |  |  |           <el-col :span="24" :xs="24"> | 
 |  |  |             <el-form | 
 |  |  |               :model="queryParams" | 
 |  |  |               ref="queryForm" | 
 |  |  |               size="small" | 
 |  |  |               :inline="true" | 
 |  |  |               v-show="showSearch" | 
 |  |  |               label-width="98px" | 
 |  |  |             > | 
 |  |  |               <el-form-item label="医院" prop="userName"> | 
 |  |  |                 <el-select | 
 |  |  |                   v-model="queryParams.value1" | 
 |  |  |                   placeholder="默认是该账号所属医院" | 
 |  |  |                 > | 
 |  |  |                   <el-option | 
 |  |  |                     v-for="item in options" | 
 |  |  |                     :key="item.value" | 
 |  |  |                     :label="item.label" | 
 |  |  |                     :value="item.value" | 
 |  |  |                   > | 
 |  |  |                   </el-option> | 
 |  |  |                 </el-select> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="出院病区" prop="userName"> | 
 |  |  |                 <el-select v-model="queryParams.value2" placeholder="请选择"> | 
 |  |  |                   <el-option | 
 |  |  |                     v-for="item in options" | 
 |  |  |                     :key="item.value" | 
 |  |  |                     :label="item.label" | 
 |  |  |                     :value="item.value" | 
 |  |  |                   > | 
 |  |  |                   </el-option> | 
 |  |  |                 </el-select> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="管理方案" prop="userName"> | 
 |  |  |                 <el-select v-model="queryParams.value3" placeholder="请选择"> | 
 |  |  |                   <el-option | 
 |  |  |                     v-for="item in options" | 
 |  |  |                     :key="item.value" | 
 |  |  |                     :label="item.label" | 
 |  |  |                     :value="item.value" | 
 |  |  |                   > | 
 |  |  |                   </el-option> | 
 |  |  |                 </el-select> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="出院日期" prop="userName"> | 
 |  |  |                 <el-date-picker | 
 |  |  |                   v-model="queryParams.valuetime1" | 
 |  |  |                   align="right" | 
 |  |  |                   type="date" | 
 |  |  |                   placeholder="选择日期" | 
 |  |  |                   :picker-options="pickerOptionsa" | 
 |  |  |                 > | 
 |  |  |                 </el-date-picker> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="计划随访日期" prop="userName"> | 
 |  |  |                 <el-date-picker | 
 |  |  |                   v-model="queryParams.valuetime2" | 
 |  |  |                   align="right" | 
 |  |  |                   type="date" | 
 |  |  |                   placeholder="选择日期" | 
 |  |  |                   :picker-options="pickerOptions" | 
 |  |  |                 > | 
 |  |  |                 </el-date-picker> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="计划随访日期" prop="userName"> | 
 |  |  |                 <el-date-picker | 
 |  |  |                   v-model="queryParams.valuetime2" | 
 |  |  |                   align="right" | 
 |  |  |                   type="date" | 
 |  |  |                   placeholder="选择日期" | 
 |  |  |                   :picker-options="pickerOptions" | 
 |  |  |                 > | 
 |  |  |                 </el-date-picker> | 
 |  |  |               </el-form-item> | 
 |  |  |  | 
 |  |  |               <el-form-item> | 
 |  |  |                 <el-button | 
 |  |  |                   type="primary" | 
 |  |  |                   icon="el-icon-search" | 
 |  |  |                   size="medium" | 
 |  |  |                   @click="handleQuery" | 
 |  |  |                   >搜索</el-button | 
 |  |  |                 > | 
 |  |  |                 <el-button | 
 |  |  |                   icon="el-icon-refresh" | 
 |  |  |                   size="medium" | 
 |  |  |                   @click="resetQuery" | 
 |  |  |                   >重置</el-button | 
 |  |  |                 > | 
 |  |  |               </el-form-item> | 
 |  |  |             </el-form> | 
 |  |  |  | 
 |  |  |             <el-row :gutter="10" class="mb8"> | 
 |  |  |               <el-col :span="1.5"> | 
 |  |  |                 <el-button | 
 |  |  |                   type="primary" | 
 |  |  |                   plain | 
 |  |  |                   icon="el-icon-plus" | 
 |  |  |                   size="medium" | 
 |  |  |                   @click="addladeltag" | 
 |  |  |                   v-hasPermi="['system:user:add']" | 
 |  |  |                   >新增</el-button | 
 |  |  |                 > | 
 |  |  |               </el-col> | 
 |  |  |  | 
 |  |  |               <el-col :span="1.5"> | 
 |  |  |                 <el-button | 
 |  |  |                   type="danger" | 
 |  |  |                   plain | 
 |  |  |                   icon="el-icon-delete" | 
 |  |  |                   size="medium" | 
 |  |  |                   :disabled="multiple" | 
 |  |  |                   @click="handleDelete" | 
 |  |  |                   v-hasPermi="['system:user:remove']" | 
 |  |  |                   >删除</el-button | 
 |  |  |                 > | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="1.5"> | 
 |  |  |                 <div class="documentf"> | 
 |  |  |                   <div class="document"> | 
 |  |  |                     <el-button | 
 |  |  |                       type="warning" | 
 |  |  |                       plain | 
 |  |  |                       icon="el-icon-download" | 
 |  |  |                       size="medium" | 
 |  |  |                       @click="handleExport" | 
 |  |  |                       v-hasPermi="['system:user:export']" | 
 |  |  |                       >导出</el-button | 
 |  |  |                     > | 
 |  |  |                   </div> | 
 |  |  |                 </div> | 
 |  |  |               </el-col> | 
 |  |  |  | 
 |  |  |               <!-- <el-col :span="1.5"> </el-col> --> | 
 |  |  |             </el-row> | 
 |  |  |             <!-- <right-toolbar | 
 |  |  |           :showSearch.sync="showSearch" | 
 |  |  |           @queryTable="getList" | 
 |  |  |           :columns="columns" | 
 |  |  |         ></right-toolbar> --> | 
 |  |  |             <el-table | 
 |  |  |               v-loading="loading" | 
 |  |  |               :data="userList" | 
 |  |  |               :border="true" | 
 |  |  |               @selection-change="handleSelectionChange" | 
 |  |  |             > | 
 |  |  |               <el-table-column type="selection" width="50" align="center" /> | 
 |  |  |               <el-table-column | 
 |  |  |                 fixed | 
 |  |  |                 label="序号" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagid" | 
 |  |  |                 prop="tagid" | 
 |  |  |                 width="50" | 
 |  |  |               /> | 
 |  |  |               <el-table-column | 
 |  |  |                 fixed | 
 |  |  |                 label="出院病区" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagname" | 
 |  |  |                 prop="tagname" | 
 |  |  |                 width="100" | 
 |  |  |                 :show-overflow-tooltip="true" | 
 |  |  |               /> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="问卷" | 
 |  |  |                 align="center" | 
 |  |  |                 key="updateTime" | 
 |  |  |                 prop="updateTime" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |  | 
 |  |  |               <el-table-column | 
 |  |  |                 label="问卷更新日期" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="110" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="管理方案" | 
 |  |  |                 align="center" | 
 |  |  |                 key="isupload" | 
 |  |  |                 prop="isupload" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="随访任务数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="随访完成数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="随访完成率" | 
 |  |  |                 align="center" | 
 |  |  |                 key="isupload" | 
 |  |  |                 prop="isupload" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="AI外呼次数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="AI随访完成数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="AI随访完成率" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="微信发送次数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="微信随访完成数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="微信随访完成率" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="短信发送次数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="短信随访完成数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="短信随访完成率" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="人工随访次数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="100" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="人工随访完成数" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="人工随访完成率" | 
 |  |  |                 align="center" | 
 |  |  |                 key="tagdescription" | 
 |  |  |                 prop="tagdescription" | 
 |  |  |                 width="120" | 
 |  |  |               > | 
 |  |  |               </el-table-column> | 
 |  |  |  | 
 |  |  |               <el-table-column | 
 |  |  |                 fixed="right" | 
 |  |  |                 label="操作" | 
 |  |  |                 align="center" | 
 |  |  |                 width="300" | 
 |  |  |                 class-name="small-padding fixed-width" | 
 |  |  |               > | 
 |  |  |                 <template slot-scope="scope"> | 
 |  |  |                   <el-button | 
 |  |  |                     size="medium" | 
 |  |  |                     type="text" | 
 |  |  |                     @click="handleUpdate(scope.row)" | 
 |  |  |                     v-hasPermi="['system:user:edit']" | 
 |  |  |                     ><span class="button-textxg" | 
 |  |  |                       ><i class="el-icon-s-data"></i>单题统计</span | 
 |  |  |                     ></el-button | 
 |  |  |                   > | 
 |  |  |                   <el-button | 
 |  |  |                     size="medium" | 
 |  |  |                     type="text" | 
 |  |  |                     @click="handleDelete(scope.row)" | 
 |  |  |                     v-hasPermi="['system:user:remove']" | 
 |  |  |                     ><span class="button-textsc" | 
 |  |  |                       ><i class="el-icon-share"></i>随访结果明细</span | 
 |  |  |                     ></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-col> | 
 |  |  |         </el-row> | 
 |  |  |       </div> | 
 |  |  |     </div> | 
 |  |  |     <!-- 单题展示弹框 --> | 
 |  |  |     <el-dialog :visible.sync="topicVisible" width="45%"> | 
 |  |  |       <div class="topicdia"> | 
 |  |  |         <div class="top-text">{{ topicvalue.name }}</div> | 
 |  |  |         <div class="top-mintext">随访完成数{{ topicvalue.number }}</div> | 
 |  |  |         <div style="overflow-x: hidden; overflow-y: auto; max-height: 65vh"> | 
 |  |  |           <div class="ttaabbcc" v-for="item in topiclist" :key="item.name"> | 
 |  |  |             <div class="describe"> | 
 |  |  |               第{{ item.number }}题: {{ item.name }}?<span | 
 |  |  |                 >[{{ item.type == 1 ? "单选题" : "多选题" }}]</span | 
 |  |  |               > | 
 |  |  |             </div> | 
 |  |  |             <div> | 
 |  |  |               <el-table :data="tableData" style="width: 100%"> | 
 |  |  |                 <el-table-column prop="date" label="问题选项"> | 
 |  |  |                 </el-table-column> | 
 |  |  |                 <el-table-column prop="name" label="选择人数"> | 
 |  |  |                 </el-table-column> | 
 |  |  |                 <el-table-column prop="address" label="比例"> </el-table-column> | 
 |  |  |               </el-table> | 
 |  |  |             </div> | 
 |  |  |           </div> | 
 |  |  |         </div> | 
 |  |  |       </div> | 
 |  |  |       <span slot="footer" class="dialog-footer"> | 
 |  |  |         <el-button @click="topicVisible = false">关 闭</el-button> | 
 |  |  |       </span> | 
 |  |  |     </el-dialog> | 
 |  |  |     <!-- 结果统计弹框 --> | 
 |  |  |     <el-dialog title="提示" :visible.sync="consequenceVisible" width="50%"> | 
 |  |  |       <div class="topicdia"> | 
 |  |  |         <div class="top-text" style="margin-bottom: 20px">问卷统计结果</div> | 
 |  |  |         <div> | 
 |  |  |           <el-table :data="tableData" style="width: 100%"> | 
 |  |  |             <el-table-column prop="date" label="患者姓名"> </el-table-column> | 
 |  |  |             <el-table-column prop="namea" label="性别"width="100"> </el-table-column> | 
 |  |  |             <el-table-column prop="namec" label="年龄"> </el-table-column> | 
 |  |  |             <el-table-column prop="named" label="联系方式"> </el-table-column> | 
 |  |  |             <el-table-column prop="namee" label="计划执行时间" width="120"> | 
 |  |  |             </el-table-column> | 
 |  |  |             <el-table-column prop="namex" label="实际完成时间" width="120"> | 
 |  |  |             </el-table-column> | 
 |  |  |             <el-table-column prop="namez" label="完成方式"> </el-table-column> | 
 |  |  |             <el-table-column prop="nameh" label="问卷"> </el-table-column> | 
 |  |  |             <el-table-column prop="namej" label="得分"> </el-table-column> | 
 |  |  |             <!-- 截取几列选项属性名维护数组遍历 --> | 
 |  |  |             <!-- <el-table-column prop="namet"> | 
 |  |  |               <template slot="header" slot-scope="scope"> | 
 |  |  |                 <div>{{ scope.row.name }}<span>[单选题]</span></div> | 
 |  |  |               </template> | 
 |  |  |             </el-table-column> --> | 
 |  |  |           </el-table> | 
 |  |  |         </div> | 
 |  |  |       </div> | 
 |  |  |       <span slot="footer" class="dialog-footer"> | 
 |  |  |         <el-button @click="consequenceVisible = false">取 消</el-button> | 
 |  |  |         <el-button type="primary" @click="consequenceVisible = false" | 
 |  |  |           >确 定</el-button | 
 |  |  |         > | 
 |  |  |       </span> | 
 |  |  |     </el-dialog> | 
 |  |  |   </div> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | <script> | 
 |  |  | import { | 
 |  |  |   toamendtag, | 
 |  |  |   addapitag, | 
 |  |  |   deletetag, | 
 |  |  |   changetagcategory, | 
 |  |  |   listtag, | 
 |  |  | } from "@/api/system/label"; | 
 |  |  |  | 
 |  |  | import Treeselect from "@riophae/vue-treeselect"; | 
 |  |  | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; | 
 |  |  | export default { | 
 |  |  |   name: "questionnaire", | 
 |  |  |   dicts: ["sys_normal_disable", "sys_user_sex"], | 
 |  |  |   components: { Treeselect }, | 
 |  |  |   data() { | 
 |  |  |     return {}; | 
 |  |  |     return { | 
 |  |  |       topactiveName: "Local", //顶部选择 | 
 |  |  |       activeName: "first", | 
 |  |  |       // 遮罩层 | 
 |  |  |       loading: false, | 
 |  |  |       // 选中数组 | 
 |  |  |       ids: [], | 
 |  |  |       // 非单个禁用 | 
 |  |  |       single: true, | 
 |  |  |       // 非多个禁用 | 
 |  |  |       multiple: true, | 
 |  |  |       // 显示搜索条件 | 
 |  |  |       showSearch: true, | 
 |  |  |       idds: "", //分类id | 
 |  |  |       // 总条数 | 
 |  |  |       total: 0, | 
 |  |  |       lstamendtag: false, //是否修改标签 | 
 |  |  |       topicVisible: false, //控制单题弹框 | 
 |  |  |       consequenceVisible: false, //控制结果弹框 | 
 |  |  |       //修改添加标签弹框数据 | 
 |  |  |       tagform: { | 
 |  |  |         isupload: "", | 
 |  |  |         tagname: "", | 
 |  |  |         tagcategoryid: "", | 
 |  |  |         tagdescription: "", | 
 |  |  |       }, | 
 |  |  |       topicvalue: { | 
 |  |  |         name: "骨科随访模板", | 
 |  |  |         number: 222, | 
 |  |  |       }, | 
 |  |  |       classifyform: { | 
 |  |  |         categoryname: "", | 
 |  |  |       }, | 
 |  |  |       topiclist: [ | 
 |  |  |         { | 
 |  |  |           name: "您的身体康复情况如何", | 
 |  |  |           number: 1, | 
 |  |  |           type: 1, | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           name: "您的饮食情况如何", | 
 |  |  |           number: 2, | 
 |  |  |           type: 2, | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           name: "您的恢复情况如何", | 
 |  |  |           number: 3, | 
 |  |  |           type: 1, | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       tableData: [ | 
 |  |  |         { | 
 |  |  |           date: "好", | 
 |  |  |           name: 12, | 
 |  |  |           address: "50%", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           date: "一般", | 
 |  |  |           name: 2, | 
 |  |  |           address: "6.2%", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           date: "差", | 
 |  |  |           name: 0, | 
 |  |  |           address: "0%", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       // 标签表格数据 | 
 |  |  |       userList: [], | 
 |  |  |       // 弹出层标题 | 
 |  |  |       title: "", | 
 |  |  |       // 是否显示弹出层 | 
 |  |  |       open: false, | 
 |  |  |       // 日期范围 | 
 |  |  |       dateRange: [], | 
 |  |  |       // 岗位选项 | 
 |  |  |       postOptions: [], | 
 |  |  |       // 角色选项 | 
 |  |  |       roleOptions: [], | 
 |  |  |       // 表单参数 | 
 |  |  |       form: {}, | 
 |  |  |       forms: { | 
 |  |  |         name: "", | 
 |  |  |       }, | 
 |  |  |       numberlb: 22, | 
 |  |  |       dialogFormVisible: false, //添加、修改类别弹框 | 
 |  |  |       lstamendtagVisible: false, //添加、修改标签弹框 | 
 |  |  |       goQRCodeVisible: false, //二维码弹框 | 
 |  |  |       sidecolumnval: "", //类别搜索 | 
 |  |  |       propss: { multiple: true }, | 
 |  |  |       topqueryParams: {}, //导出筛选条件 | 
 |  |  |       options: [ | 
 |  |  |         { | 
 |  |  |           value: 1, | 
 |  |  |           label: "东南", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 2, | 
 |  |  |           label: "西北", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 3, | 
 |  |  |           label: "仨仨仨", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 4, | 
 |  |  |           label: "六飒飒飒", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       pickerOptions: { | 
 |  |  |         disabledDate(time) { | 
 |  |  |           return time.getTime() < Date.now() - 3600 * 1000 * 24; | 
 |  |  |         }, | 
 |  |  |         shortcuts: [ | 
 |  |  |           { | 
 |  |  |             text: "今天", | 
 |  |  |             onClick(picker) { | 
 |  |  |               picker.$emit("pick", new Date()); | 
 |  |  |             }, | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             text: "昨天", | 
 |  |  |             onClick(picker) { | 
 |  |  |               const date = new Date(); | 
 |  |  |               date.setTime(date.getTime() - 3600 * 1000 * 24); | 
 |  |  |               picker.$emit("pick", date); | 
 |  |  |             }, | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             text: "一周前", | 
 |  |  |             onClick(picker) { | 
 |  |  |               const date = new Date(); | 
 |  |  |               date.setTime(date.getTime() - 3600 * 1000 * 24 * 7); | 
 |  |  |               picker.$emit("pick", date); | 
 |  |  |             }, | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |       }, | 
 |  |  |       pickerOptionsa: { | 
 |  |  |         disabledDate(time) { | 
 |  |  |           return time.getTime() > Date.now(); | 
 |  |  |         }, | 
 |  |  |         shortcuts: [ | 
 |  |  |           { | 
 |  |  |             text: "今天", | 
 |  |  |             onClick(picker) { | 
 |  |  |               picker.$emit("pick", new Date()); | 
 |  |  |             }, | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             text: "昨天", | 
 |  |  |             onClick(picker) { | 
 |  |  |               const date = new Date(); | 
 |  |  |               date.setTime(date.getTime() - 3600 * 1000 * 24); | 
 |  |  |               picker.$emit("pick", date); | 
 |  |  |             }, | 
 |  |  |           }, | 
 |  |  |           { | 
 |  |  |             text: "一周前", | 
 |  |  |             onClick(picker) { | 
 |  |  |               const date = new Date(); | 
 |  |  |               date.setTime(date.getTime() - 3600 * 1000 * 24 * 7); | 
 |  |  |               picker.$emit("pick", date); | 
 |  |  |             }, | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |       }, | 
 |  |  |       // 查询标签列表参数 | 
 |  |  |       queryParams: { | 
 |  |  |         pageNum: 1, | 
 |  |  |         pageSize: 10, | 
 |  |  |         tagname: undefined, | 
 |  |  |         tagdescription: undefined, | 
 |  |  |       }, | 
 |  |  |       // 列信息 | 
 |  |  |       columns: [ | 
 |  |  |         { key: 0, label: `标签编号`, visible: true }, | 
 |  |  |         { key: 1, label: `标签名称`, visible: true }, | 
 |  |  |         { key: 2, label: `标签昵称`, visible: true }, | 
 |  |  |         { key: 3, label: `部门`, visible: true }, | 
 |  |  |         { key: 4, label: `手机号码`, visible: true }, | 
 |  |  |         { key: 5, label: `状态`, visible: true }, | 
 |  |  |         { key: 6, label: `创建时间`, visible: true }, | 
 |  |  |       ], | 
 |  |  |       // 表单校验 | 
 |  |  |       // rules: { | 
 |  |  |       //   userName: [ | 
 |  |  |       //     { required: true, message: "标签名称不能为空", trigger: "blur" }, | 
 |  |  |       //     { | 
 |  |  |       //       min: 2, | 
 |  |  |       //       max: 20, | 
 |  |  |       //       message: "标签名称长度必须介于 2 和 20 之间", | 
 |  |  |       //       trigger: "blur", | 
 |  |  |       //     }, | 
 |  |  |       //   ], | 
 |  |  |       //   nickName: [ | 
 |  |  |       //     { required: true, message: "标签昵称不能为空", trigger: "blur" }, | 
 |  |  |       //   ], | 
 |  |  |       //   password: [ | 
 |  |  |       //     { required: true, message: "标签密码不能为空", trigger: "blur" }, | 
 |  |  |       //     { | 
 |  |  |       //       min: 5, | 
 |  |  |       //       max: 20, | 
 |  |  |       //       message: "标签密码长度必须介于 5 和 20 之间", | 
 |  |  |       //       trigger: "blur", | 
 |  |  |       //     }, | 
 |  |  |       //   ], | 
 |  |  |       //   email: [ | 
 |  |  |       //     { | 
 |  |  |       //       type: "email", | 
 |  |  |       //       message: "请输入正确的邮箱地址", | 
 |  |  |       //       trigger: ["blur", "change"], | 
 |  |  |       //     }, | 
 |  |  |       //   ], | 
 |  |  |       //   phonenumber: [ | 
 |  |  |       //     { | 
 |  |  |       //       pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, | 
 |  |  |       //       message: "请输入正确的手机号码", | 
 |  |  |       //       trigger: "blur", | 
 |  |  |       //     }, | 
 |  |  |       //   ], | 
 |  |  |       //   IDnumber: [ | 
 |  |  |       //     { | 
 |  |  |       //       pattern: | 
 |  |  |       //         /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/, | 
 |  |  |       //       message: "请输入正确的身份证号码", | 
 |  |  |       //       trigger: "blur", | 
 |  |  |       //     }, | 
 |  |  |       //   ], | 
 |  |  |       // }, | 
 |  |  |     }; | 
 |  |  |   }, | 
 |  |  |   watch: {}, | 
 |  |  |   created() { | 
 |  |  |     this.getList(); | 
 |  |  |     this.gitclasify(); | 
 |  |  |   }, | 
 |  |  |  | 
 |  |  |   created() {}, | 
 |  |  |   methods: { | 
 |  |  |     /** 查询标签列表 */ | 
 |  |  |     getList() { | 
 |  |  |       listtag(this.addDateRange(this.queryParams)).then((response) => { | 
 |  |  |         console.log(response); | 
 |  |  |         this.total = response.total; | 
 |  |  |         this.userList = response.rows; | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |     /** 修改标签 */ | 
 |  |  |     handleUpdate(row) { | 
 |  |  |       console.log(row, "修改标签"); | 
 |  |  |       this.lstamendtagVisible = true; | 
 |  |  |       this.lstamendtag = true; | 
 |  |  |       this.tagform = { | 
 |  |  |         isupload: row.isupload, | 
 |  |  |         tagname: row.tagname, | 
 |  |  |         tagcategoryid: row.tagcategoryid, | 
 |  |  |         tagdescription: row.tagdescription, | 
 |  |  |         tagid: row.tagid, | 
 |  |  |       }; | 
 |  |  |     }, | 
 |  |  |     addladeltag() { | 
 |  |  |       this.lstamendtagVisible = true; | 
 |  |  |       this.lstamendtag = false; | 
 |  |  |       this.tagform = { | 
 |  |  |         isupload: "", | 
 |  |  |         tagname: "", | 
 |  |  |         tagcategoryid: "", | 
 |  |  |         tagdescription: "", | 
 |  |  |         tagid: "", | 
 |  |  |       }; | 
 |  |  |     }, | 
 |  |  |     // 添加/修改标签 | 
 |  |  |     Maintenancetag() { | 
 |  |  |       if (this.lstamendtag) { | 
 |  |  |         toamendtag(this.addDateRange(this.tagform)).then((response) => { | 
 |  |  |           console.log(response); | 
 |  |  |           this.getList(); | 
 |  |  |         }); | 
 |  |  |       } else { | 
 |  |  |         addapitag(this.addDateRange(this.tagform)).then((response) => { | 
 |  |  |           console.log(response); | 
 |  |  |           this.getList(); | 
 |  |  |         }); | 
 |  |  |       } | 
 |  |  |       this.tagform = { | 
 |  |  |         isupload: "", | 
 |  |  |         tagname: "", | 
 |  |  |         tagcategoryid: "", | 
 |  |  |         tagdescription: "", | 
 |  |  |         tagid: "", | 
 |  |  |       }; | 
 |  |  |     }, | 
 |  |  |  | 
 |  |  |   methods: {}, | 
 |  |  |     // 表单重置 | 
 |  |  |     reset() { | 
 |  |  |       this.form = { | 
 |  |  |         userId: undefined, | 
 |  |  |         deptId: undefined, | 
 |  |  |         userName: undefined, | 
 |  |  |         nickName: undefined, | 
 |  |  |         password: undefined, | 
 |  |  |         phonenumber: undefined, | 
 |  |  |         email: undefined, | 
 |  |  |         sex: undefined, | 
 |  |  |         status: "0", | 
 |  |  |         remark: undefined, | 
 |  |  |         postIds: [], | 
 |  |  |         roleIds: [], | 
 |  |  |       }; | 
 |  |  |       this.resetForm("form"); | 
 |  |  |     }, | 
 |  |  |     //单题弹框 | 
 |  |  |     handleUpdate() { | 
 |  |  |       this.topicVisible = true; | 
 |  |  |     }, | 
 |  |  |     //结果弹框 | 
 |  |  |     handleDelete() { | 
 |  |  |       this.consequenceVisible = true; | 
 |  |  |     }, | 
 |  |  |     /** 搜索按钮操作 */ | 
 |  |  |     handleQuery() { | 
 |  |  |       this.queryParams.pageNum = 1; | 
 |  |  |       this.getList(); | 
 |  |  |     }, | 
 |  |  |     /** 重置按钮操作 */ | 
 |  |  |     resetQuery() { | 
 |  |  |       this.dateRange = []; | 
 |  |  |       this.resetForm("queryForm"); | 
 |  |  |       this.queryParams.tagname = ""; | 
 |  |  |       this.$refs.tree.setCurrentKey(null); | 
 |  |  |       this.handleQuery(); | 
 |  |  |     }, | 
 |  |  |     // 多选框选中数据 | 
 |  |  |     handleSelectionChange(selection) { | 
 |  |  |       this.ids = selection.map((item) => item.tagid); | 
 |  |  |       this.single = selection.length != 1; | 
 |  |  |       this.multiple = !selection.length; | 
 |  |  |     }, | 
 |  |  |  | 
 |  |  |     /** 导出按钮操作 */ | 
 |  |  |     handleExport() { | 
 |  |  |       this.download( | 
 |  |  |         "base/tag/export", | 
 |  |  |         { | 
 |  |  |           ...this.topqueryParams, | 
 |  |  |         }, | 
 |  |  |         `user_${new Date().getTime()}.xlsx` | 
 |  |  |       ); | 
 |  |  |     }, | 
 |  |  |   }, | 
 |  |  | }; | 
 |  |  | </script> | 
 |  |  |  | 
 |  |  | <style lang="scss" scoped></style> | 
 |  |  | <style lang="scss" scoped> | 
 |  |  | .Questionnairemanagement { | 
 |  |  |   display: flex; | 
 |  |  | } | 
 |  |  | .sidecolumn { | 
 |  |  |   width: 180px; | 
 |  |  |   min-height: 100vh; | 
 |  |  |   text-align: center; | 
 |  |  |   //   display: flex; | 
 |  |  |   margin-top: 20px; | 
 |  |  |   margin: 20px; | 
 |  |  |   padding: 30px; | 
 |  |  |   background: #edf1f7; | 
 |  |  |   border: 1px solid #dcdfe6; | 
 |  |  |   -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
 |  |  |     0 0 6px 0 rgba(0, 0, 0, 0.04); | 
 |  |  |   .sidecolumn-top { | 
 |  |  |     display: flex; | 
 |  |  |     justify-content: space-between; | 
 |  |  |     .top-wj { | 
 |  |  |       font-size: 20px; | 
 |  |  |     } | 
 |  |  |     .top-tj { | 
 |  |  |       font-size: 18px; | 
 |  |  |  | 
 |  |  |       color: rgb(0, 89, 255); | 
 |  |  |       cursor: pointer; | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  |   .center-ss { | 
 |  |  |     margin-top: 30px; | 
 |  |  |     .input-with-select { | 
 |  |  |       height: 40px !important; | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  |   .bottom-fl { | 
 |  |  |     margin-top: 30px; | 
 |  |  |     display: center !important; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | .topicdia { | 
 |  |  |   text-align: center; | 
 |  |  |   margin: 0 20px; | 
 |  |  |  | 
 |  |  |   // overflow: scroll; | 
 |  |  |  | 
 |  |  |   .top-text { | 
 |  |  |     font-size: 25px; | 
 |  |  |     font-weight: 600; | 
 |  |  |   } | 
 |  |  |   .top-mintext { | 
 |  |  |     color: #bdae25; | 
 |  |  |     font-size: 15px; | 
 |  |  |     margin: 10px 0; | 
 |  |  |   } | 
 |  |  |   .ttaabbcc { | 
 |  |  |     // background: #edf1f7; | 
 |  |  |     border: 1px solid #dcdfe6; | 
 |  |  |     -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
 |  |  |       0 0 6px 0 rgba(0, 0, 0, 0.04); | 
 |  |  |     margin: 15px 0; | 
 |  |  |     margin-top: 30px; | 
 |  |  |     padding: 30px; | 
 |  |  |   } | 
 |  |  |   .describe { | 
 |  |  |     text-align: left; | 
 |  |  |     margin-bottom: 20px; | 
 |  |  |     span { | 
 |  |  |       color: rgb(23, 140, 235); | 
 |  |  |       margin-left: 5px; | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | ::v-deep.el-tabs--left, | 
 |  |  | .el-tabs--right { | 
 |  |  |   overflow: hidden; | 
 |  |  |   align-items: center; | 
 |  |  |   display: flex; | 
 |  |  | } | 
 |  |  | ::v-deep.el-input--medium .el-input__inner { | 
 |  |  |   height: 40px !important; | 
 |  |  | } | 
 |  |  | ::v-deep.el-tabs--right .el-tabs__active-bar.is-right { | 
 |  |  |   height: 40px; | 
 |  |  |   width: 5px; | 
 |  |  |   left: 0; | 
 |  |  | } | 
 |  |  | ::v-deep.el-tabs--right .el-tabs__item.is-right { | 
 |  |  |   display: block; | 
 |  |  |   text-align: left; | 
 |  |  |   font-size: 20px; | 
 |  |  | } | 
 |  |  |  | 
 |  |  | .leftvlue { | 
 |  |  |   //   display: flex; | 
 |  |  |   //   flex: 1; | 
 |  |  |   width: 80%; | 
 |  |  |   margin-top: 20px; | 
 |  |  |   //   margin: 20px; | 
 |  |  |   padding: 30px; | 
 |  |  |   background: #ffff; | 
 |  |  |   border: 1px solid #dcdfe6; | 
 |  |  |   -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
 |  |  |     0 0 6px 0 rgba(0, 0, 0, 0.04); | 
 |  |  |   .mulsz { | 
 |  |  |     font-size: 20px; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | .document { | 
 |  |  |   width: 100px; | 
 |  |  |   height: 50px; | 
 |  |  | } | 
 |  |  | .documentf { | 
 |  |  |   display: flex; | 
 |  |  |   justify-content: flex-end; | 
 |  |  | } | 
 |  |  | .button-text { | 
 |  |  |   color: rgb(70, 204, 238); | 
 |  |  | } | 
 |  |  | .button-textck { | 
 |  |  |   color: rgb(39, 167, 67); | 
 |  |  | } | 
 |  |  | .button-textxg { | 
 |  |  |   font-size: 18px; | 
 |  |  |   color: rgb(35, 81, 233); | 
 |  |  | } | 
 |  |  | .button-textsc { | 
 |  |  |   font-size: 18px; | 
 |  |  |  | 
 |  |  |   color: rgb(23, 140, 235); | 
 |  |  | } | 
 |  |  | </style> |