| | |
| | | > |
| | | <span class="custom-tree-node" slot-scope="{ node, data }"> |
| | | <span>{{ node.label }}</span> |
| | | <span> |
| | | <span v-if="data.id > 0"> |
| | | <el-button |
| | | type="text" |
| | | icon="el-icon-delete" |
| | |
| | | size="mini" |
| | | @click="() => remove(node, data)" |
| | | > |
| | | </el-button> |
| | | </span> |
| | | <span v-if="data.id > 0"> |
| | | <el-button |
| | | type="text" |
| | | circle |
| | | size="mini" |
| | | @click="() => altertag(node, data)" |
| | | ><span class="button-textxg" |
| | | ><i class="el-icon-edit-outline"></i |
| | | ></span> |
| | | </el-button> |
| | | </span> |
| | | </span> |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" fixed align="center" key="id" prop="id" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="id" |
| | | prop="id" |
| | | /> |
| | | <el-table-column |
| | | label="问题主题" |
| | | fixed |
| | | align="center" |
| | | key="questiontitle" |
| | | prop="questiontitle" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="问题文本" |
| | | align="center" |
| | | key="questiontext" |
| | | prop="questiontext" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | |
| | | <el-table-column |
| | | label="问题语音" |
| | | align="center" |
| | | key="questionvoice" |
| | | prop="questionvoice" |
| | | key="scriptVoice" |
| | | prop="scriptVoice" |
| | | width="200" |
| | | /><el-table-column |
| | | label="关联指标" |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible = false">取 消</el-button> |
| | | <el-button @click="getDeptTree()">取 消</el-button> |
| | | <el-button type="primary" @click="submitsidecolumn">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | <el-button type="primary" @click="confirmillness">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 随访题目预览 --> |
| | | <el-dialog title="随访题目预览" :visible.sync="topicVisible" width="50%"> |
| | | <div class="preview-left"> |
| | | <div v-if="topicform.valueType == 1"> |
| | | <div class="dev-text"> |
| | | [单选]<span>{{ topicform.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="topicform.asrtext"> |
| | | <el-radio |
| | | v-for="( |
| | | topicforms, index |
| | | ) in topicform.ivrLibaScriptTargetoptionList" |
| | | :key="topicforms.targetvalue" |
| | | :label="topicforms.targetvalue" |
| | | >{{ topicforms.targetvalue }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div class="scriptTopic-dev" v-if="topicform.valueType == 2"> |
| | | <div class="dev-text"> |
| | | [多选]<span>{{ topicform.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-checkbox-group v-model="topicform.remark"> |
| | | <el-checkbox |
| | | v-for="( |
| | | topicforms, index |
| | | ) in topicform.ivrLibaScriptTargetoptionList" |
| | | :key="topicforms.targetvalue" |
| | | :label="topicforms.targetvalue" |
| | | >{{ topicforms.targetvalue }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | </div> |
| | | <div class="scriptTopic-dev" v-if="topicform.valueType == 3"> |
| | | <div class="dev-text"> |
| | | [填空]<span>{{ topicform.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-input placeholder="请输入答案" v-model="radioas" clearable> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | getverbaltricklist, |
| | | verbaltrickinfo, |
| | | delverbaltrickinfo, |
| | | getverbaltrick, |
| | | delverbaltrickinfo, |
| | | compileverbaltrickclassify, |
| | | getillnesslist, |
| | | illnesslistget, |
| | | getillness, |
| | |
| | | total: 0, |
| | | namequestionnaire: "", |
| | | haoquestionnaire: "", |
| | | topicform: { |
| | | scriptContent: "", |
| | | }, |
| | | idds: "", |
| | | amendtag: false, //是否修改类别 |
| | | dialogFormVisible: false, //修改添加类别弹框 |
| | | topicVisible: false, //预览弹框 |
| | | indexid: null, |
| | | inputValue: "", |
| | | inputVisible: false, |
| | |
| | | getDeptTree() { |
| | | getbaltrickclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | compileverbaltrickclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | return; |
| | | } |
| | | let calssvalue = {}; |
| | | if ( |
| | | this.classifyform.pid && |
| | |
| | | .catch(() => {}); |
| | | } |
| | | }, |
| | | altertag(a, b) { |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主分类"; |
| | | } else { |
| | | this.radio = "子分类"; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | |
| | | // 筛选节点 |
| | | filterNode(value, data) { |
| | |
| | | }, |
| | | |
| | | // 预览 |
| | | preview(row) {}, |
| | | preview(row) { |
| | | getverbaltrick({ id: row.id }).then((res) => { |
| | | this.topicform = res.data; |
| | | console.log(this.topicform); |
| | | this.topicVisible = true; |
| | | }); |
| | | }, |
| | | // 疾病----------------------- |
| | | illnessUpdate(row) { |
| | | this.illnessVisible = true; |
| | |
| | | margin-top: 20px; |
| | | margin: 20px; |
| | | padding: 30px; |
| | | background: #edf1f7; |
| | | background: #fff; |
| | | 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); |
| | |
| | | font-size: 20px; |
| | | cursor: pointer; |
| | | } |
| | | ::v-deep .el-tree { |
| | | position: relative; |
| | | cursor: default; |
| | | border-radius: 5px; |
| | | background: #eff8fe; |
| | | color: #606266; |
| | | border: 1px solid #bbe1fa; |
| | | // 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-tree--highlight-current |
| | | .el-tree-node.is-current |
| | | > .el-tree-node__content { |
| | | background-color: #7799fb; |
| | | color: #fff; |
| | | } |
| | | ::v-deep .el-button--mini.is-circle { |
| | | padding: 7px; |
| | | margin: 0; |
| | |
| | | font-size: 20px; |
| | | } |
| | | } |
| | | .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); |
| | | |
| | | .dev-text { |
| | | margin-bottom: 10px; |
| | | text-align: left; |
| | | font-size: 22px; |
| | | } |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | | .dev-text { |
| | | margin-bottom: 10px; |
| | | } |
| | | } |
| | | } |
| | | .button-text { |
| | | color: rgb(70, 204, 238); |
| | | } |