| | |
| | | <template> |
| | | <div> |
| | | <div class="basic">基本信息</div> |
| | | <div class="top-text"> |
| | | <div class="substance"> |
| | | <p>话术主旨:<span>有无复查</span></p> |
| | | <p>问题文本:<span>有无复查</span></p> |
| | | <p>指标种类:<span>有无复查</span></p> |
| | | <p> |
| | | 指标选项:<span>{{ optionvalue }}</span> |
| | | </p> |
| | | <div class="Questionnairemanagement"> |
| | | <!-- 左侧栏 --> |
| | | <div class="sidecolumn"> |
| | | <div style="height: 300px"> |
| | | <el-steps direction="vertical" :active="Editprogress"> |
| | | <el-step title="问题库编辑"></el-step> |
| | | <el-step title="问题指标编辑"></el-step> |
| | | </el-steps> |
| | | </div> |
| | | </div> |
| | | <div class="headline"> |
| | | <div class="basics">问题配置</div> |
| | | <div class="headbottom"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-circle-plus-outline" |
| | | @click="addzbiao" |
| | | >添加指标</el-button |
| | | <!-- 右侧数据 --> |
| | | <div class="leftvlue"> |
| | | <!-- 基本信息 --> |
| | | <div v-if="Editprogress == 1"> |
| | | <div class="leftvlue-jbxx">基本信息</div> |
| | | <el-divider></el-divider> |
| | | <el-form |
| | | ref="form" |
| | | :model="indexform" |
| | | :rules="rules" |
| | | label-width="100px" |
| | | > |
| | | <el-button type="primary" icon="el-icon-s-claim">保存</el-button> |
| | | <el-button type="primary" icon="el-icon-document" |
| | | >更新指标规则至模版</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | <div class="valuetop" v-for="(item, index) in deployList" :key="item.id"> |
| | | <div class="val-text"> |
| | | <div> |
| | | 有无复查 <span>{{ item.name }}</span> |
| | | </div> |
| | | <div class="text-icon" @click="deletei(index)"> |
| | | <i class="el-icon-delete" /> |
| | | </div> |
| | | </div> |
| | | <div class="val-bon"> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-form-item label="指标类型"> |
| | | <el-radio-group v-model="form.resource"> |
| | | <el-radio label="选项"></el-radio> |
| | | <el-radio label="文本"></el-radio> |
| | | <el-radio label="数组"></el-radio> |
| | | </el-radio-group> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="语言" prop="deptId"> |
| | | <el-select |
| | | v-model="indexform.language" |
| | | placeholder="请选择语言" |
| | | > |
| | | <el-option |
| | | v-for="index in languagelist" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="可用状态" prop="status"> |
| | | <el-select v-model="indexform.status" placeholder="请选择状态"> |
| | | <el-option |
| | | v-for="item in qyoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="问题主旨" prop="nickName"> |
| | | <el-input |
| | | v-model="indexform.nickName" |
| | | placeholder="请输入问题主旨" |
| | | maxlength="80" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="版本号" prop="nickName"> |
| | | <el-input |
| | | v-model="indexform.nickName" |
| | | placeholder="请输入" |
| | | maxlength="80" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <div |
| | | style="display: flex; margin-left: 100px; margin-bottom: 10px" |
| | | > |
| | | <div class="tsgname" @click="tsgnameto()">医院名称</div> |
| | | <div class="tsgname" @click="tsgnameto()">医院电话</div> |
| | | <div class="tsgname" @click="tsgnameto()">医院姓名</div> |
| | | <div class="tsgname" @click="tsgnameto()">随访姓名</div> |
| | | <div class="tsgname" @click="tsgnameto()">随访电话</div> |
| | | <div class="tsgname" @click="tsgnameto()">性别</div> |
| | | <div class="tsgname" @click="tsgnameto()">年龄</div> |
| | | <div class="tsgname" @click="tsgnameto()">地址</div> |
| | | </div> |
| | | </el-col></el-row |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="问题文本" prop="verbaltricktext"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | v-model="indexform.userName" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="问题语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-change="handleChange" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | </el-upload> |
| | | <!-- <el-input v-model="indexform.userName" maxlength="30" /> --> |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="无匹配文本" prop="matchtext"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | v-model="indexform.userName" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="无匹配语音" prop="matchyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-change="handleChange" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="无声文本" prop="silenttext"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | v-model="indexform.userName" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="无声语音" prop="silentyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-change="handleChange" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="通用库文本" prop="librarytext"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | v-model="indexform.userName" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="通用库语音" prop="libraryy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-change="handleChange" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="听不清文本" prop="vaguetext"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | v-model="indexform.userName" |
| | | maxlength="30" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="听不清语音" prop="vagueyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-change="handleChange" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | <el-form-item label="通知变量" prop="name"> |
| | | <el-row v-for="item in variablelist"> |
| | | <el-col :span="4"> |
| | | <el-input v-model="item.variable"></el-input> |
| | | </el-col> |
| | | <el-col :span="8" :offset="1"> |
| | | <el-input v-model="item.value"></el-input> |
| | | </el-col> |
| | | <el-col :span="4" :offset="1"> |
| | | <el-button |
| | | type="success" |
| | | icon="el-icon-plus" |
| | | circle |
| | | @click="addvariable(item)" |
| | | ></el-button> |
| | | <el-button |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | @click="delvariable(item)" |
| | | ></el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | <el-form-item label="指标名称"> |
| | | <el-input v-model="form.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="指标值"> |
| | | <el-input v-model="item.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="特殊资源"> |
| | | <el-radio-group v-model="form.resource"> |
| | | <el-radio label="基础"></el-radio> |
| | | <el-radio label="自定义"></el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="基础规则"> |
| | | <el-input type="textarea" v-model="item.valuetop"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="指标说明"> |
| | | <el-input |
| | | v-model="indexform.remark" |
| | | type="textarea" |
| | | placeholder="请输入内容" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="仅限院区" prop="region"> |
| | | <el-select |
| | | v-model="indexform.courtyard" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | class="indexformaa" |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="关联指标" prop="region"> |
| | | <el-select |
| | | v-model="indexform.relevance" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option |
| | | class="indexformaa" |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="nextstep">确 定</el-button> |
| | | <el-button @click="closeFm">关 闭</el-button> |
| | | </div> |
| | | </div> |
| | | <!-- 指标设置 --> |
| | | <div v-if="Editprogress == 2"> |
| | | <div class="leftvlue-jbxx">指标题目设置</div> |
| | | <el-divider></el-divider> |
| | | <el-form |
| | | ref="form" |
| | | :model="indexform" |
| | | :rules="rules" |
| | | label-width="100px" |
| | | > |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="指标名称" prop="deptId"> |
| | | <el-input |
| | | v-model="indexform.name" |
| | | placeholder="请输入指标种类" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="版本号" prop="deptId"> |
| | | <el-input |
| | | v-model="indexform.versions" |
| | | placeholder="请输入指标种类" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="语言" prop="deptId"> |
| | | <el-select |
| | | v-model="indexform.language" |
| | | placeholder="请选择语言" |
| | | > |
| | | <el-option |
| | | v-for="index in languagelist" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="是否可用" prop="deptId"> |
| | | <el-select v-model="indexform.useofstate" placeholder="请选择"> |
| | | <el-option |
| | | v-for="index in qyoptions" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="指标描述" prop="nickName"> |
| | | <el-input |
| | | v-model="indexform.nickName" |
| | | placeholder="请输入指标描述" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-form-item label="标签" prop="desc"> |
| | | <div class="xinz-inf"> |
| | | <el-tag |
| | | :key="tag" |
| | | type="success" |
| | | v-for="tag in dynamicTags" |
| | | closable |
| | | :disable-transitions="false" |
| | | @close="handleClose(tag)" |
| | | > |
| | | {{ tag }} |
| | | </el-tag> |
| | | <el-select |
| | | v-model="inputValue" |
| | | v-if="inputVisible" |
| | | @change="handleInputConfirm" |
| | | filterable |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in optionss" |
| | | :key="item.label" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <el-button |
| | | v-else |
| | | class="button-new-tag" |
| | | size="small" |
| | | @click="showInput" |
| | | >+ 新增标签</el-button |
| | | > |
| | | </div> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="值类型"> |
| | | <el-radio-group v-model="indexform.resource"> |
| | | <el-radio label="选项"></el-radio> |
| | | <el-radio label="文本"></el-radio> |
| | | <el-radio label="数值"></el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="适用疾病" prop="userName"> |
| | | <el-select v-model="indexform.useofstate" placeholder="请选择"> |
| | | <el-option |
| | | v-for="index in qyoptions" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="适用方式" prop="email"> |
| | | <el-select v-model="indexform.useofstate" placeholder="请选择"> |
| | | <el-option |
| | | v-for="index in qyoptions" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-card class="box-card" style="margin-bottom: 20px"> |
| | | <el-table v-loading="loading" :data="testuserList"> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="userid" |
| | | prop="userid" |
| | | width="50" |
| | | /> |
| | | <el-table-column |
| | | label="指标选项" |
| | | align="center" |
| | | key="nickName" |
| | | prop="nickName" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.nickName" |
| | | placeholder="请输入内容" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="解析规则" |
| | | align="center" |
| | | key="aphonenumber" |
| | | prop="aphonenumber" |
| | | width="460" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.aphonenumber" |
| | | placeholder="请输入内容" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | @click="addoption(scope.row)" |
| | | type="success" |
| | | icon="el-icon-circle-plus-outline" |
| | | circle |
| | | ></el-button> |
| | | <el-button |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | @click="deloption(scope.row)" |
| | | ></el-button> |
| | | <el-button |
| | | @click="syioption(scope.row)" |
| | | type="primary" |
| | | icon="el-icon-top" |
| | | circle |
| | | ></el-button> |
| | | <el-button |
| | | @click="xiayioption(scope.row)" |
| | | type="primary" |
| | | icon="el-icon-bottom" |
| | | circle |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="测试输入" prop="nickName"> |
| | | <el-input |
| | | v-model="testvalue" |
| | | placeholder="请输入测试内容" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-button type="success">开始测试</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <div style="margin-bottom: 10px"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="4" |
| | | placeholder="此处展示识别结果" |
| | | v-model="testgovalue" |
| | | > |
| | | </el-input> |
| | | </div> |
| | | <el-button type="primary" @click="laststep()">上一步</el-button> |
| | | <el-button type="info" @click="closeFm('ruleForm')">关闭</el-button> |
| | | <el-button @click="Saveproblem('ruleForm')">保存指标数据</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | optionvalue: "不需要、没有、不知道", |
| | | form: { |
| | | Editprogress: 1, //编辑进度 |
| | | loading: false, // 遮罩层 |
| | | radio: "false", //单选题选中 |
| | | radios: [], //多选题选中 |
| | | radioas: "", //填空题答案 |
| | | dynamicTags: ["标签一", "标签二", "标签三"], |
| | | inputVisible: false, |
| | | inputValue: "", |
| | | testvalue: "", |
| | | testgovalue: "", |
| | | topicobj: {}, |
| | | indexform: {}, |
| | | // 总条数 |
| | | total: 1, |
| | | ruleForm: { |
| | | name: "", |
| | | region: "", |
| | | date1: "", |
| | |
| | | type: [], |
| | | resource: "", |
| | | desc: "", |
| | | templatevalue: "", |
| | | data2: "", |
| | | }, |
| | | deployList: [ |
| | | rules: {}, |
| | | rulesa: {}, |
| | | xjxsoptions: [ |
| | | { |
| | | id: 1, |
| | | name: "有", |
| | | valuetop: |
| | | "(?!.*忘|.*不|.*没)^.*(是|有|对|做|作|检|查|复诊|好|参加|复诊|去(过|好|了|完|医院)|来(过|了|医院))|没错|对呀|可能|(已经|早)去了|开了药|腰带|吊带|要的|(?<!没)有的|表带,10;要,5", |
| | | value: "选项1", |
| | | label: "图文", |
| | | }, |
| | | { |
| | | id: 2, |
| | | name: "不知道", |
| | | valuetop: |
| | | "(不|没|谁|鬼|怎么).*(病|可能|知道|了解|清楚|懂|明白|确认|确定|晓得|知晓|认得|识得|印象|熟悉|记|会|关心|关注|注意|告诉|通知|听)", |
| | | value: "选项2", |
| | | label: "视频", |
| | | }, |
| | | { |
| | | value: "选项3", |
| | | label: "音频", |
| | | }, |
| | | ], |
| | | fileList: [ |
| | | { |
| | | name: "food.jpeg", |
| | | url: "https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100", |
| | | }, |
| | | ], |
| | | qyoptions: [ |
| | | { |
| | | value: 1, |
| | | label: "可用", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "禁用", |
| | | }, |
| | | ], |
| | | options: [ |
| | | { |
| | | value: "选项1", |
| | | label: "疾病指标", |
| | | }, |
| | | { |
| | | value: "选项2", |
| | | label: "入院指标", |
| | | }, |
| | | { |
| | | value: "选项3", |
| | | label: "手术指标", |
| | | }, |
| | | { |
| | | value: "选项4", |
| | | label: "护理指标", |
| | | }, |
| | | ], |
| | | variablelist: [ |
| | | { |
| | | variable: "paitent", |
| | | value: "表示患者的标识", |
| | | }, |
| | | ], |
| | | testuserList: [ |
| | | { |
| | | userid: 1, |
| | | nickName: "贫血", |
| | | aphonenumber: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10", |
| | | }, |
| | | { |
| | | userid: 2, |
| | | nickName: "正常", |
| | | aphonenumber: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10", |
| | | }, |
| | | { |
| | | userid: 55, |
| | | nickName: "非正常", |
| | | aphonenumber: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10", |
| | | }, |
| | | { |
| | | userid: 4, |
| | | nickName: "a正常", |
| | | aphonenumber: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10", |
| | | status: "0", |
| | | }, |
| | | ], |
| | | |
| | | addvalue: "添加题目", |
| | | // 题目表格数据 |
| | | userList: [ |
| | | { |
| | | userid: "1", |
| | | userName: "一号指标", |
| | | }, |
| | | { |
| | | userid: "2", |
| | | userName: "二号指标", |
| | | }, |
| | | { |
| | | userid: "3", |
| | | userName: "三号指标", |
| | | }, |
| | | { |
| | | userid: "4", |
| | | userName: "四号指标", |
| | | }, |
| | | ], |
| | | languagelist: [ |
| | | { |
| | | value: 1, |
| | | label: "普通话", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "粤语", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "英语", |
| | | }, |
| | | ], //语言列表 |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | userName: undefined, |
| | | phonenumber: undefined, |
| | | status: undefined, |
| | | deptId: undefined, |
| | | IDnumber: undefined, |
| | | }, |
| | | }; |
| | | }, |
| | | |
| | | created() {}, |
| | | |
| | | methods: { |
| | | onSubmit() { |
| | | console.log("submit!"); |
| | | }, |
| | | deletei(index) { |
| | | console.log(index); |
| | | this.deployList.splice(index, 1); |
| | | }, |
| | | addzbiao() { |
| | | const ids = this.deployList.length + 1; |
| | | console.log(ids); |
| | | this.deployList.push({ |
| | | id: ids, |
| | | name: "", |
| | | valuetop: "", |
| | | submitForm(formName) { |
| | | this.rules = this.rulesa; |
| | | // 提交 |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | alert("submit!"); |
| | | } else { |
| | | console.log("error submit!!"); |
| | | return false; |
| | | } |
| | | }); |
| | | }, |
| | | // 下一步 |
| | | nextstep() { |
| | | if (this.Editprogress <= 1 && this.indexform.relevance) { |
| | | return this.Editprogress++; |
| | | } else { |
| | | this.$message.warning("请先选择关联指标"); |
| | | } |
| | | }, |
| | | // 上一步 |
| | | laststep() { |
| | | this.Editprogress = this.Editprogress - 1; |
| | | }, |
| | | // 关闭 |
| | | closeFm() { |
| | | this.$confirm("退出不会保留页面内容更改, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | this.$router.go(-1); |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "已取消", |
| | | }); |
| | | }); |
| | | }, |
| | | // 保存题目信息 |
| | | Saveproblem() {}, |
| | | /** 查询题目列表 */ |
| | | getList() { |
| | | // this.loading = true; |
| | | listUser().then((response) => { |
| | | console.log(response); |
| | | // this.userList = response.data; |
| | | // this.total = response.total; |
| | | // this.loading = false; |
| | | console.log(this.userList); |
| | | }); |
| | | // const { rows } = await listUser(); |
| | | // console.log(rows); |
| | | // this.list = rows; |
| | | }, |
| | | // 修改题目信息 |
| | | Submittopicobj() {}, |
| | | // 新增变量 |
| | | addvariable() { |
| | | this.variablelist.push({ |
| | | variable: "", |
| | | value: "", |
| | | }); |
| | | }, |
| | | // 删除变量 |
| | | delvariable(item) { |
| | | const index = this.variablelist.indexOf(item); |
| | | if (index !== -1) { |
| | | this.variablelist.splice(index, 1); // 从索引位置删除一个元素 |
| | | } else { |
| | | console.log("未找到该对象"); |
| | | } |
| | | }, |
| | | // 控制文件 |
| | | handleChange(file, fileList) { |
| | | this.fileList = fileList.slice(-3); |
| | | }, |
| | | // 文件超出个数限制时的钩子 |
| | | handleExceed(files, fileList) { |
| | | this.$message.warning( |
| | | `当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${ |
| | | files.length + fileList.length |
| | | } 个文件` |
| | | ); |
| | | }, |
| | | // 标签----------------- |
| | | handleClose(tag) { |
| | | this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); |
| | | }, |
| | | handleInputConfirm() { |
| | | let inputValue = this.inputValue; |
| | | if (inputValue) { |
| | | this.dynamicTags.push(inputValue); |
| | | } |
| | | this.inputVisible = false; |
| | | this.inputValue = ""; |
| | | }, |
| | | showInput() { |
| | | this.inputVisible = true; |
| | | // 自动获取焦点 |
| | | // this.$nextTick((_) => { |
| | | // this.$refs.saveTagInput.$refs.input.focus(); |
| | | // }); |
| | | }, |
| | | // -------------------------- |
| | | //测试表单 -------------------------- |
| | | addoption() { |
| | | this.testuserList.push({ |
| | | userid: 1, |
| | | nickName: "贫血", |
| | | aphonenumber: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10", |
| | | }); |
| | | this.sortFn(); |
| | | }, |
| | | deloption() { |
| | | const index = this.testuserList.indexOf(item); |
| | | if (index !== -1) { |
| | | this.testuserList.splice(index, 1); // 从索引位置删除一个元素 |
| | | this.sortFn(); |
| | | } else { |
| | | console.log("未找到该对象"); |
| | | } |
| | | }, |
| | | syioption(row) { |
| | | const index = this.getIndexInArray(this.testuserList, row); |
| | | const item = this.testuserList.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.testuserList.splice(index - 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | xiayioption(row) { |
| | | const index = this.getIndexInArray(this.testuserList, row); |
| | | const item = this.testuserList.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.testuserList.splice(index + 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | sortFn() { |
| | | this.testuserList = this.testuserList.map((item, index) => { |
| | | return { |
| | | userid: index + 1, |
| | | nickName: item.nickName, |
| | | aphonenumber: item.aphonenumber, |
| | | }; |
| | | }); |
| | | console.log(this.testuserList); |
| | | }, |
| | | // --------------------- |
| | | // 查询题库 |
| | | handleQuery() {}, |
| | | resetQuery() {}, |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | // 便捷标签 |
| | | tsgnameto() {}, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .top-text { |
| | | margin: 15px; |
| | | margin-top: 0; |
| | | padding: 0 30px 30px 30px; |
| | | background: #f2f5fc; |
| | | .Questionnairemanagement { |
| | | display: flex; |
| | | } |
| | | .sidecolumn { |
| | | width: 300px; |
| | | min-height: 100vh; |
| | | text-align: center; |
| | | // display: flex; |
| | | // margin-top: 20px; |
| | | margin: 20px; |
| | | margin-bottom: 0; |
| | | 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); |
| | | } |
| | | .basic { |
| | | height: 50px; |
| | | margin: 15px; |
| | | margin-bottom: 0; |
| | | padding: 0 20px 20px 20px; |
| | | line-height: 50px; |
| | | background: #92c5f0; |
| | | .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); |
| | | |
| | | .leftvlue-jbxx { |
| | | font-size: 24px; |
| | | border-left: 5px solid #41a1be; |
| | | padding-left: 5px; |
| | | margin: 15px 0; |
| | | } |
| | | } |
| | | .headline { |
| | | .xinz-inf { |
| | | font-size: 18px; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | |
| | | line-height: 48px; |
| | | |
| | | .el-tag + .el-tag { |
| | | margin-left: 10px; |
| | | } |
| | | .button-new-tag { |
| | | margin-left: 10px; |
| | | height: 32px; |
| | | line-height: 30px; |
| | | padding-top: 0; |
| | | padding-bottom: 0; |
| | | } |
| | | .input-new-tag { |
| | | width: 90px; |
| | | margin-left: 10px; |
| | | vertical-align: bottom; |
| | | } |
| | | } |
| | | .button-new-tag { |
| | | margin-left: 10px; |
| | | height: 32px; |
| | | line-height: 30px; |
| | | padding-top: 0; |
| | | padding-bottom: 0; |
| | | } |
| | | .tsgname { |
| | | width: 90px; |
| | | margin-right: 10px; |
| | | text-align: center; |
| | | cursor: pointer; |
| | | height: 40px; |
| | | line-height: 40px; |
| | | background: #7799fa; |
| | | color: #ffff; |
| | | font-size: 18px; |
| | | border-radius: 5px; |
| | | } |
| | | .tsgname:hover { |
| | | background: #3366f5; |
| | | } |
| | | |
| | | ::v-deep .addtopic-input { |
| | | input { |
| | | background: #02a7f0; |
| | | color: #edf1f7; |
| | | width: 150px; |
| | | } |
| | | } |
| | | ::v-deep.el-step.is-vertical .el-step__title { |
| | | font-size: 25px; |
| | | } |
| | | ::v-deep.el-input--medium { |
| | | font-size: 18px !important; |
| | | } |
| | | |
| | | .el-select__tags { |
| | | font-size: 20px; |
| | | max-width: 888px !important; |
| | | } |
| | | ::v-deep.el-radio__inner { |
| | | width: 22px; |
| | | height: 22px; |
| | | } |
| | | // ::v-deep.topic-dev.el-radio__label { |
| | | // font-size: 24px; |
| | | // } |
| | | ::v-deep.el-radio-group { |
| | | span { |
| | | font-size: 24px; |
| | | } |
| | | } |
| | | ::v-deep.upload-demo { |
| | | display: flex; |
| | | height: 50px; |
| | | margin: 15px; |
| | | margin-bottom: 0; |
| | | padding: 0 20px 20px 20px; |
| | | line-height: 50px; |
| | | background: #92c5f0; |
| | | justify-content: space-between; |
| | | } |
| | | .valuetop { |
| | | .val-text { |
| | | display: flex; |
| | | height: 50px; |
| | | margin: 15px; |
| | | margin-bottom: 0; |
| | | // padding: 0 20px 20px 20px; |
| | | padding: 0 20px; |
| | | align-items: center; |
| | | background: #92c5f0; |
| | | justify-content: space-between; |
| | | .text-icon { |
| | | width: 35px; |
| | | height: 35px; |
| | | line-height: 35px; |
| | | text-align: center; |
| | | background: #fafafa; |
| | | cursor: pointer; |
| | | border-radius: 5px; |
| | | } |
| | | } |
| | | .val-bon { |
| | | margin: 15px; |
| | | margin-top: 0; |
| | | padding: 30px; |
| | | background: #f2f5fc; |
| | | 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); |
| | | ::v-deep.el-checkbox-group { |
| | | span { |
| | | font-size: 24px; |
| | | } |
| | | } |
| | | // ::v-deep.el-form-item--medium .el-form-item__content { |
| | | // line-height: 36px; |
| | | // display: flex; |
| | | // } |
| | | </style> |