|  |  |  | 
|---|
|  |  |  | <!-- 左侧栏 --> | 
|---|
|  |  |  | <div class="sidecolumn"> | 
|---|
|  |  |  | <div class="sidecolumn-top"> | 
|---|
|  |  |  | <div class="top-wj">问卷类型</div> | 
|---|
|  |  |  | <div class="top-tj" @click="dialogFormVisible = true">+添加</div> | 
|---|
|  |  |  | <div class="top-wj">问卷分类</div> | 
|---|
|  |  |  | <div class="top-tj" @click="Newcategory">+添加</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="center-ss"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | 
|---|
|  |  |  | v-show="showSearch" | 
|---|
|  |  |  | label-width="98px" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-form-item label="问卷名称" prop="userName"> | 
|---|
|  |  |  | <el-form-item label="问卷名称" prop="svyname"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | v-model="queryParams.userName" | 
|---|
|  |  |  | v-model="queryParams.svyname" | 
|---|
|  |  |  | placeholder="请输入" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | style="width: 200px" | 
|---|
|  |  |  | @keyup.enter.native="handleQuery" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="适用科室" prop="region"> | 
|---|
|  |  |  | <el-cascader | 
|---|
|  |  |  | v-model="queryParams.administrative" | 
|---|
|  |  |  | :options="deptList" | 
|---|
|  |  |  | :props="props" | 
|---|
|  |  |  | :show-all-levels="false" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <template slot-scope="{ node, data }"> | 
|---|
|  |  |  | <span>{{ data.deptName }}</span> | 
|---|
|  |  |  | <span v-if="!node.isLeaf"> | 
|---|
|  |  |  | ({{ data.children.length }}) | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-cascader> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="通知内容" prop="userName"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | v-model="queryParams.userNamevalue" | 
|---|
|  |  |  | placeholder="请输入" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | style="width: 200px" | 
|---|
|  |  |  | @keyup.enter.native="handleQuery" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="适用方式" prop="shape"> | 
|---|
|  |  |  | <el-cascader | 
|---|
|  |  |  | v-model="queryParams.shapevalue" | 
|---|
|  |  |  | :options="editableTabs" | 
|---|
|  |  |  | :props="propss" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | ></el-cascader> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="内容形式" prop="classify"> | 
|---|
|  |  |  | <el-form-item label="适用院区" prop="region"> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | v-model="queryParams.classifyvalue" | 
|---|
|  |  |  | placeholder="请选择" | 
|---|
|  |  |  | v-model="campus" | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | multiple | 
|---|
|  |  |  | filterable | 
|---|
|  |  |  | placeholder="请选择分类" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="(item, index) in editableTabs" | 
|---|
|  |  |  | :key="index++" | 
|---|
|  |  |  | :label="item.title" | 
|---|
|  |  |  | :value="index++" | 
|---|
|  |  |  | v-for="item in courtyardlist" | 
|---|
|  |  |  | :key="item.label" | 
|---|
|  |  |  | :label="item.label" | 
|---|
|  |  |  | :value="item.label" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | <el-form-item label="问卷描述" prop="userName"> | 
|---|
|  |  |  | <el-input | 
|---|
|  |  |  | v-model="queryParams.description" | 
|---|
|  |  |  | placeholder="请输入" | 
|---|
|  |  |  | clearable | 
|---|
|  |  |  | style="width: 200px" | 
|---|
|  |  |  | @keyup.enter.native="handleQuery" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-form-item label="可用状态" prop="classify"> | 
|---|
|  |  |  | <el-select | 
|---|
|  |  |  | v-model="queryParams.classifyvalue" | 
|---|
|  |  |  | placeholder="请选择" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-select v-model="queryParams.isenable" placeholder="请选择"> | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="(item, index) in editableTabs" | 
|---|
|  |  |  | :key="index++" | 
|---|
|  |  |  | :label="item.title" | 
|---|
|  |  |  | :value="index++" | 
|---|
|  |  |  | v-for="(item, index) in qyoptions" | 
|---|
|  |  |  | :key="item.value" | 
|---|
|  |  |  | :label="item.label" | 
|---|
|  |  |  | :value="item.value" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-option> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | 
|---|
|  |  |  | icon="el-icon-plus" | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | @click="handleAdd" | 
|---|
|  |  |  | v-hasPermi="['system:user:add']" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | >新增</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | :disabled="multiple" | 
|---|
|  |  |  | @click="handleDelete" | 
|---|
|  |  |  | v-hasPermi="['system:user:remove']" | 
|---|
|  |  |  | >删除</el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | 
|---|
|  |  |  | @selection-change="handleSelectionChange" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-table-column type="selection" width="50" align="center" /> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | <!-- <el-table-column | 
|---|
|  |  |  | label="序号" | 
|---|
|  |  |  | fixed | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | key="svyid" | 
|---|
|  |  |  | prop="svyid" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | /> --> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="问卷标题" | 
|---|
|  |  |  | label="问卷名称" | 
|---|
|  |  |  | fixed | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | key="svyname" | 
|---|
|  |  |  | 
|---|
|  |  |  | width="160" | 
|---|
|  |  |  | :show-overflow-tooltip="true" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="版本" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | key="version" | 
|---|
|  |  |  | prop="version" | 
|---|
|  |  |  | :show-overflow-tooltip="true" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="主要内容" | 
|---|
|  |  |  | label="问卷描述" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | key="description" | 
|---|
|  |  |  | prop="description" | 
|---|
|  |  |  | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | type="text" | 
|---|
|  |  |  | @click="illnessUpdate(scope.row)" | 
|---|
|  |  |  | v-hasPermi="['system:user:edit']" | 
|---|
|  |  |  | ><span class="button-textxg" | 
|---|
|  |  |  | ><i class="el-icon-date"></i>详情</span | 
|---|
|  |  |  | ></el-button | 
|---|
|  |  |  | 
|---|
|  |  |  | :show-overflow-tooltip="true" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <template slot-scope="scope"> | 
|---|
|  |  |  | <span v-for="item in scope.row.labelInfo.split(',')" | 
|---|
|  |  |  | >{{ item }}、 | 
|---|
|  |  |  | <span v-for="item in scope.row.svyLibTemplateTagList" | 
|---|
|  |  |  | >{{ item.tagname }}、 | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="可用" | 
|---|
|  |  |  | label="是否可用" | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | key="isenable" | 
|---|
|  |  |  | prop="isenable" | 
|---|
|  |  |  | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | type="text" | 
|---|
|  |  |  | @click="goQRCode(scope.row)" | 
|---|
|  |  |  | v-hasPermi="['system:user:edit']" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <span class="button-text" | 
|---|
|  |  |  | ><i class="el-icon-edit"></i>二维码</span | 
|---|
|  |  |  | ><i class="el-icon-edit"></i>预览</span | 
|---|
|  |  |  | ></el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | <!-- <el-button | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | type="text" | 
|---|
|  |  |  | @click="ViewQuestionnaire(scope.row)" | 
|---|
|  |  |  | v-hasPermi="['system:user:edit']" | 
|---|
|  |  |  | ><span class="button-textck" | 
|---|
|  |  |  | ><i class="el-icon-edit"></i>查看</span | 
|---|
|  |  |  | ></el-button | 
|---|
|  |  |  | > | 
|---|
|  |  |  | > --> | 
|---|
|  |  |  | <el-button | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | type="text" | 
|---|
|  |  |  | @click="handleUpdate(scope.row)" | 
|---|
|  |  |  | v-hasPermi="['system:user:edit']" | 
|---|
|  |  |  | ><span class="button-textxg" | 
|---|
|  |  |  | ><i class="el-icon-edit"></i>修改</span | 
|---|
|  |  |  | ></el-button | 
|---|
|  |  |  | 
|---|
|  |  |  | size="medium" | 
|---|
|  |  |  | type="text" | 
|---|
|  |  |  | @click="handleDelete(scope.row)" | 
|---|
|  |  |  | v-hasPermi="['system:user:remove']" | 
|---|
|  |  |  | ><span class="button-textsc" | 
|---|
|  |  |  | ><i class="el-icon-edit"></i>删除</span | 
|---|
|  |  |  | ></el-button | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- 添加类别弹框 --> | 
|---|
|  |  |  | <el-dialog title="新增类别" width="30%" :visible.sync="dialogFormVisible"> | 
|---|
|  |  |  | <el-dialog title="类别编辑" width="30%" :visible.sync="dialogFormVisible"> | 
|---|
|  |  |  | <div style="text-align: center; margin-bottom: 20px"> | 
|---|
|  |  |  | <el-radio-group v-model="radio"> | 
|---|
|  |  |  | <el-radio-button label="主分类"></el-radio-button> | 
|---|
|  |  |  | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </el-dialog> | 
|---|
|  |  |  | <!-- 二维码展示弹框 --> | 
|---|
|  |  |  | <el-dialog width="30%" :visible.sync="goQRCodeVisible"> | 
|---|
|  |  |  | <!-- <el-dialog width="30%" :visible.sync="goQRCodeVisible"> | 
|---|
|  |  |  | <div class="qrcode-dialo"> | 
|---|
|  |  |  | <div class="qrcode-text"> | 
|---|
|  |  |  | {{ namequestionnaire }}<span>{{ haoquestionnaire }}</span> | 
|---|
|  |  |  | 
|---|
|  |  |  | src="D:/qrcode/fc9a1fa37e394ac3ac606bf6b77b17c3" | 
|---|
|  |  |  | fit="cover" | 
|---|
|  |  |  | ></el-image> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-dialog> --> | 
|---|
|  |  |  | <!-- 问卷模板预览 --> | 
|---|
|  |  |  | <el-dialog title="随访题目预览" :visible.sync="topicVisible" width="50%"> | 
|---|
|  |  |  | <div class="preview-left"> | 
|---|
|  |  |  | <!-- 单选 --> | 
|---|
|  |  |  | <div v-for="item in topicform.svyTemplateLibScripts"> | 
|---|
|  |  |  | <div | 
|---|
|  |  |  | class="scriptTopic-dev" | 
|---|
|  |  |  | :key="item.sort" | 
|---|
|  |  |  | v-if="item.scriptType == 1" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <div class="dev-text"> | 
|---|
|  |  |  | {{ item.sort }}、[单选]<span>{{ item.scriptContent }}</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="dev-xx"> | 
|---|
|  |  |  | <el-radio-group v-model="item.remark"> | 
|---|
|  |  |  | <el-radio | 
|---|
|  |  |  | v-for="(items, index) in item.svyLibTemplateTargetoptions" | 
|---|
|  |  |  | :key="index" | 
|---|
|  |  |  | :label="index" | 
|---|
|  |  |  | >{{ items.optioncontent }}</el-radio | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </el-radio-group> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- 多选 --> | 
|---|
|  |  |  | <div | 
|---|
|  |  |  | class="scriptTopic-dev" | 
|---|
|  |  |  | :key="item.sort" | 
|---|
|  |  |  | v-if="item.scriptType == 2" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <div class="dev-text"> | 
|---|
|  |  |  | {{ item.sort }}、[多选]<span>{{ item.scriptContent }}</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="dev-xx"> | 
|---|
|  |  |  | <el-checkbox-group v-model="qremark"> | 
|---|
|  |  |  | <el-checkbox | 
|---|
|  |  |  | v-for="(items, index) in item.svyLibTemplateTargetoptions" | 
|---|
|  |  |  | :key="index" | 
|---|
|  |  |  | :label="index" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | {{ items.optioncontent }} | 
|---|
|  |  |  | </el-checkbox> | 
|---|
|  |  |  | </el-checkbox-group> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- 填空 --> | 
|---|
|  |  |  | <div | 
|---|
|  |  |  | class="scriptTopic-dev" | 
|---|
|  |  |  | :key="item.sort" | 
|---|
|  |  |  | v-if="item.scriptType == 4" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <div class="dev-text"> | 
|---|
|  |  |  | {{ item.sort }}、[问答]<span>{{ item.scriptContent }}</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="dev-xx"> | 
|---|
|  |  |  | <el-input placeholder="请输入答案" v-model="radioas" clearable> | 
|---|
|  |  |  | </el-input> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </el-dialog> | 
|---|
|  |  |  | 
|---|
|  |  |  | addQtemplateclassify, | 
|---|
|  |  |  | editQtemplateclassify, | 
|---|
|  |  |  | getQtemplatelist, | 
|---|
|  |  |  | issueinfo, | 
|---|
|  |  |  | getQtemplateobj, | 
|---|
|  |  |  | compileissue, | 
|---|
|  |  |  | delQtemplateinfo, | 
|---|
|  |  |  | Followupinfo, | 
|---|
|  |  |  | 
|---|
|  |  |  | loading: false, | 
|---|
|  |  |  | // 选中数组 | 
|---|
|  |  |  | ids: [], | 
|---|
|  |  |  | qremark: [], | 
|---|
|  |  |  | // 非单个禁用 | 
|---|
|  |  |  | single: true, | 
|---|
|  |  |  | // 非多个禁用 | 
|---|
|  |  |  | 
|---|
|  |  |  | namequestionnaire: "", | 
|---|
|  |  |  | haoquestionnaire: "", | 
|---|
|  |  |  | QRcodeurl: "", | 
|---|
|  |  |  | courtyardlist: "", | 
|---|
|  |  |  | // 用户表格数据 | 
|---|
|  |  |  | userList: [], | 
|---|
|  |  |  |  | 
|---|
|  |  |  | campus: [], | 
|---|
|  |  |  | // 日期范围 | 
|---|
|  |  |  | dateRange: [], | 
|---|
|  |  |  | // 岗位选项 | 
|---|
|  |  |  | 
|---|
|  |  |  | roleOptions: [], | 
|---|
|  |  |  | // 表单参数 | 
|---|
|  |  |  | form: {}, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | title: "类别编辑", | 
|---|
|  |  |  | sidecolumnform: {}, //添加类别表单 | 
|---|
|  |  |  | goQRCodeVisible: false, //二维码弹框 | 
|---|
|  |  |  | sidecolumnval: "", //类别搜索 | 
|---|
|  |  |  | 
|---|
|  |  |  | idds: "", | 
|---|
|  |  |  | amendtag: false, //是否修改类别 | 
|---|
|  |  |  | dialogFormVisible: false, //修改添加类别弹框 | 
|---|
|  |  |  | topicVisible: false, // | 
|---|
|  |  |  | topicform: {}, | 
|---|
|  |  |  | classifyform: {}, //类别表单 | 
|---|
|  |  |  | indexid: null, | 
|---|
|  |  |  | inputValue: "", | 
|---|
|  |  |  | radio: "主分类", | 
|---|
|  |  |  | zufon: true, | 
|---|
|  |  |  | zifon: true, | 
|---|
|  |  |  | inputVisible: false, | 
|---|
|  |  |  | illnessVisible: false, //指标疾病弹框 | 
|---|
|  |  |  | deptOptions: [], | 
|---|
|  |  |  | 
|---|
|  |  |  | illnesslistapi: [], | 
|---|
|  |  |  | illnesslist: [], | 
|---|
|  |  |  | defaultProps: { | 
|---|
|  |  |  | children: "svyLibTitleCategoryList", | 
|---|
|  |  |  | children: "svyLibTemplateCategoryList", | 
|---|
|  |  |  | label: "name", | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | deptList: [], | 
|---|
|  |  |  | 
|---|
|  |  |  | this.languagelist = store.getters.languagelist; | 
|---|
|  |  |  | this.qyoptions = store.getters.usable; | 
|---|
|  |  |  | this.editableTabs = store.getters.editableTabs; | 
|---|
|  |  |  | this.courtyardlist = store.getters.courtyardlist; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | goQRCode(row) { | 
|---|
|  |  |  | getQRcode({ | 
|---|
|  |  |  | url: "/outsideChain?param1=KHRYDSSuTpwGWDhAS6OnpfxObRZf8fd/TIagYWPvDuyku+MjtrWt1efC1htoBDc+G4QP2UOWPNitAO4TwH4oIQ==¶m2=CP/xYqwqDhWACt2aQ/HOwhgRM62Lh4/1upwYDl7dmKSuiaa4zRzMgu7rmRztiwQj2YvJ1KAX1zBTpUAIdxPvUA==", | 
|---|
|  |  |  | }).then((res) => { | 
|---|
|  |  |  | console.log(res); | 
|---|
|  |  |  | this.QRcodeurl = "D:/qrcode/fc9a1fa37e394ac3ac606bf6b77b17c3"; | 
|---|
|  |  |  | getQtemplateobj({ svyid: row.svyid }).then((res) => { | 
|---|
|  |  |  | this.topicform = res.rows[0]; | 
|---|
|  |  |  | console.log(this.topicform); | 
|---|
|  |  |  | this.topicVisible = true; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.goQRCodeVisible = true; | 
|---|
|  |  |  | this.namequestionnaire = row.userName; | 
|---|
|  |  |  | this.haoquestionnaire = row.nickName; | 
|---|
|  |  |  | // getQRcode({ | 
|---|
|  |  |  | //   url: "/outsideChain?param1=KHRYDSSuTpwGWDhAS6OnpfxObRZf8fd/TIagYWPvDuyku+MjtrWt1efC1htoBDc+G4QP2UOWPNitAO4TwH4oIQ==¶m2=CP/xYqwqDhWACt2aQ/HOwhgRM62Lh4/1upwYDl7dmKSuiaa4zRzMgu7rmRztiwQj2YvJ1KAX1zBTpUAIdxPvUA==", | 
|---|
|  |  |  | // }).then((res) => { | 
|---|
|  |  |  | //   console.log(res); | 
|---|
|  |  |  | //   this.QRcodeurl = "D:/qrcode/fc9a1fa37e394ac3ac606bf6b77b17c3"; | 
|---|
|  |  |  | // }); | 
|---|
|  |  |  | // this.goQRCodeVisible = true; | 
|---|
|  |  |  | // this.namequestionnaire = row.userName; | 
|---|
|  |  |  | // this.haoquestionnaire = row.nickName; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 表单重置 | 
|---|
|  |  |  | reset() { | 
|---|
|  |  |  | 
|---|
|  |  |  | /** 搜索按钮操作 */ | 
|---|
|  |  |  | handleQuery() { | 
|---|
|  |  |  | this.queryParams.pageNum = 1; | 
|---|
|  |  |  | this.queryParams.campus = this.campus.join(","); | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | /** 重置按钮操作 */ | 
|---|
|  |  |  | 
|---|
|  |  |  | /** 新增按钮操作 */ | 
|---|
|  |  |  | handleAdd() { | 
|---|
|  |  |  | this.$router.push({ | 
|---|
|  |  |  | path: "/knowledge/questionnaire/compilequer/", | 
|---|
|  |  |  | path: "/knowledge/questionnaireinfo/", | 
|---|
|  |  |  | query: { categoryid: this.queryParams.categoryid }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | /** 修改按钮操作 */ | 
|---|
|  |  |  | handleUpdate(row) { | 
|---|
|  |  |  | this.$router.push({ | 
|---|
|  |  |  | path: "/knowledge/questionnaire/compilequer/", | 
|---|
|  |  |  | path: "/knowledge/questionnaireinfo/", | 
|---|
|  |  |  | query: { id: row.svyid }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | const index = this.deptOptions.findIndex( | 
|---|
|  |  |  | (obj) => obj.id == this.classifyform.pid | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | console.log(this.deptOptions[index]); | 
|---|
|  |  |  | calssvalue = this.deptOptions[index]; | 
|---|
|  |  |  | calssvalue.svyLibTitleCategoryList.push(this.classifyform); | 
|---|
|  |  |  | calssvalue.svyLibTemplateCategoryList.push(this.classifyform); | 
|---|
|  |  |  | } else if (this.radio == "主分类" && this.classifyform.name) { | 
|---|
|  |  |  | this.classifyform.pid = null; | 
|---|
|  |  |  | this.classifyform.svyLibTitleCategoryList = []; | 
|---|
|  |  |  | this.classifyform.svyLibTemplateCategoryList = []; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return this.$modal.msgError("请填写完整信息"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.dialogFormVisible = true; | 
|---|
|  |  |  | if (!b.pid) { | 
|---|
|  |  |  | this.radio = "主分类"; | 
|---|
|  |  |  | this.title = "修改主分类"; | 
|---|
|  |  |  | this.zufon = false; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.radio = "子分类"; | 
|---|
|  |  |  | this.title = "修改子分类"; | 
|---|
|  |  |  | this.zifon = false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.classifyform = b; | 
|---|
|  |  |  | this.dialogFormVisible = true; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | Newcategory(){ | 
|---|
|  |  |  | this.classifyform= {}, //类别表单 | 
|---|
|  |  |  | this.radio = "主分类"; | 
|---|
|  |  |  | this.dialogFormVisible = true | 
|---|
|  |  |  | this.zifon = true; | 
|---|
|  |  |  | this.zufon = true; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 筛选节点 | 
|---|
|  |  |  | 
|---|
|  |  |  | return data.name.indexOf(value) !== -1; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleNodeClick(data) { | 
|---|
|  |  |  | this.queryParams.assortid = data.id; | 
|---|
|  |  |  | if (data.svyLibTemplateCategoryList) return; | 
|---|
|  |  |  | this.queryParams.categoryid = data.id; | 
|---|
|  |  |  | this.getList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | this.multiple = !selection.length; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 删除按钮操作 */ | 
|---|
|  |  |  | handleDelete(row) { | 
|---|
|  |  |  | const svyids = row.svyid || this.ids; | 
|---|
|  |  |  | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .sidecolumn { | 
|---|
|  |  |  | width: 300px; | 
|---|
|  |  |  | width: 400px; | 
|---|
|  |  |  | min-height: 100vh; | 
|---|
|  |  |  | text-align: center; | 
|---|
|  |  |  | //   display: flex; | 
|---|
|  |  |  | 
|---|
|  |  |  | vertical-align: bottom; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .preview-left { | 
|---|
|  |  |  | margin: 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); | 
|---|
|  |  |  | .scriptTopic-dev { | 
|---|
|  |  |  | margin-bottom: 25px; | 
|---|
|  |  |  | font-size: 20px !important; | 
|---|
|  |  |  | .dev-text { | 
|---|
|  |  |  | margin-bottom: 10px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ::v-deep .el-tree-node__content { | 
|---|
|  |  |  | display: -webkit-box; | 
|---|