| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 新增随访模版分类树 |
| | | export function editFollowupclassify(data) { |
| | | return request({ |
| | | url: "/smartor/templateassort/edit", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // 删除随访模版分类 |
| | | export function delFollowupclassify(Id) { |
| | | return request({ |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 新增问卷模版分类 |
| | | export function editQtemplateclassify(data) { |
| | | return request({ |
| | | url: "/smartor/svyLibTitleCategory/edit", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // 删除问卷模版分类 |
| | | export function delQtemplateclassify(Id) { |
| | | return request({ |
| | |
| | | }); |
| | | } |
| | | // 新增指标分类树 |
| | | export function edittreeselectIvrLibaTargetAssort(data) { |
| | | return request({ |
| | | url: "/smartor/assort/edit", |
| | | method: "post", |
| | | data:data, |
| | | }); |
| | | } |
| | | // 新增指标分类树 |
| | | export function gettagerlist(data) { |
| | | return request({ |
| | | url: "/smartor/target/list", |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 新增宣教模版分类树 |
| | | export function editheLibraryAssort(data) { |
| | | return request({ |
| | | url: "/smartor/heLibraryAssort/edit", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // 删除宣教模版分类 |
| | | export function delheLibraryAssort(Id) { |
| | | return request({ |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 新增问卷问题分类 |
| | | export function editissueclassify(data) { |
| | | return request({ |
| | | url: "/smartor/svyLibTopicCategory/edit", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // 删除问卷问题分类 |
| | | export function delissueclassify(Id) { |
| | | return request({ |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="qyoptions" :value="scope.row.usestate" /> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | } |
| | | return "手动"; |
| | | } |
| | | if (column.property === "createTime") { |
| | | return dayjs(cellValue).format("YYYY.MM.DD HH:mm:ss"); |
| | | if ( |
| | | column.property === "createTime" || |
| | | column.property === "inhosptime" |
| | | ) { |
| | | if (cellValue === null) { |
| | | return ""; |
| | | } |
| | | return dayjs(cellValue).format("YYYY-MM-DD "); |
| | | } |
| | | return cellValue; |
| | | }, |
| | |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | |
| | | ], |
| | | |
| | | // 值类型 |
| | | valuetype: (state) => [ |
| | | { |
| | | value: "1", |
| | | value: 1, |
| | | label: "选项", |
| | | raw: { |
| | | cssClass: "", |
| | |
| | | }, |
| | | }, |
| | | { |
| | | value: "2", |
| | | value: 2, |
| | | label: "文本", |
| | | raw: { |
| | | cssClass: "", |
| | |
| | | }, |
| | | }, |
| | | { |
| | | value: "3", |
| | | value: 3, |
| | | label: "数值", |
| | | raw: { |
| | | cssClass: "", |
| | |
| | | }, |
| | | }, |
| | | ], |
| | | // 值类型(列表展示) |
| | | valuetypelb: (state) => [ |
| | | { |
| | | value: '1', |
| | | label: "选项", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | { |
| | | value: '2', |
| | | label: "文本", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | { |
| | | value: '3', |
| | | label: "数值", |
| | | raw: { |
| | | cssClass: "", |
| | | listClass: "", |
| | | }, |
| | | }, |
| | | ], |
| | | // 是否可用 |
| | | usable: (state) => [ |
| | | { |
| | |
| | | > |
| | | </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> |
| | | </el-tree> |
| | | </div> |
| | |
| | | </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> |
| | |
| | | getheLibraryAssort, |
| | | delheLibraryAssort, |
| | | addheLibraryAssort, |
| | | editheLibraryAssort, |
| | | addtargetillness, |
| | | getlibrarylist, |
| | | dellibraryinfo, |
| | |
| | | getDeptTree() { |
| | | getheLibraryAssort({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editheLibraryAssort(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) { |
| | |
| | | > |
| | | <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> |
| | |
| | | </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> |
| | |
| | | getissueclassify, |
| | | delissueclassify, |
| | | addissueclassify, |
| | | editissueclassify, |
| | | getissuelist, |
| | | issueinfo, |
| | | compileissue, |
| | |
| | | getDeptTree() { |
| | | getissueclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editissueclassify(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) { |
| | |
| | | 题目设置详情 |
| | | <span style="margin-left: 30px" |
| | | ><el-button type="primary" @click="compileissue" |
| | | >保存</el-button |
| | | >保 存</el-button |
| | | ></span |
| | | ><span style="margin-left: 30px" |
| | | ><el-button type="success" round @click="drawer = true" |
| | | >+选择指标</el-button |
| | | ></span |
| | | > |
| | | </div> |
| | |
| | | <el-col :span="6" |
| | | ><el-form-item label="题目类型"> |
| | | <el-select |
| | | v-model="topicobj.topictype" |
| | | v-model="topicobj.valueType" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option |
| | | class="topicobjaa" |
| | | v-for="item in xjxsoptions" |
| | | v-for="item in valuetype" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | </el-col></el-row |
| | | > --> |
| | | </div> |
| | | |
| | | <div class="headline"> |
| | | 选项设置<span style="margin-left: 30px" |
| | | ><el-button type="primary" round @click="addoption" |
| | | >+新增</el-button |
| | | ></span |
| | | ><span style="margin-left: 30px" |
| | | ><el-button type="success" round @click="drawer = true" |
| | | >+选择指标</el-button |
| | | ></span |
| | | <div v-if="topicobj.valueType == 1"> |
| | | <div class="headline"> |
| | | 选项设置<span style="margin-left: 30px" |
| | | ><el-button type="primary" round @click="addoption" |
| | | >+新增</el-button |
| | | ></span |
| | | > |
| | | </div> |
| | | <div |
| | | class="topicxq" |
| | | v-for="item in topicobj.svyLibTopicoptions" |
| | | v-if="item.isoperation != 3" |
| | | > |
| | | </div> |
| | | <div |
| | | class="topicxq" |
| | | v-for="item in topicobj.svyLibTopicoptions" |
| | | v-if="item.isoperation != 3" |
| | | > |
| | | <el-row :gutter="10"> |
| | | <el-col :span="11" |
| | | ><el-form-item label="选项"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入选项" |
| | | v-model="item.optioncontent" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="11" |
| | | ><el-form-item label="分值"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="item.score" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="2"> |
| | | <el-button |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | @click="deletexuanx(item)" |
| | | ></el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="11" |
| | | ><el-form-item label="选项"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入选项" |
| | | v-model="item.optioncontent" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="11" |
| | | ><el-form-item label="分值"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="item.score" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="2"> |
| | | <el-button |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | @click="deletexuanx(item)" |
| | | ></el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-form-item label="选中提示"> |
| | | <el-input |
| | | style="width: 40vw" |
| | | type="textarea" |
| | | autosize |
| | | placeholder="请输入内容" |
| | | v-model="item.prompt" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-form-item label="选中提示"> |
| | | <el-input |
| | | style="width: 40vw" |
| | | type="textarea" |
| | | autosize |
| | | placeholder="请输入内容" |
| | | v-model="item.prompt" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-form> |
| | | </el-card> |
| | |
| | | type="text" |
| | | @click="selectlabel(scope.row)" |
| | | ><span class="button-textxg" |
| | | ><i class="el-icon-circle-plus-outline"></i>添加</span |
| | | ><i class="el-icon-circle-plus-outline"></i>选择</span |
| | | ></el-button |
| | | > |
| | | </template> |
| | |
| | | illnesslist: [], |
| | | classifylist: [], |
| | | optionstag: [], |
| | | xjxsoptions: [], |
| | | valuetype: [], |
| | | usable: [], |
| | | mode: [], //方式 |
| | | }; |
| | |
| | | this.mode = store.getters.mode; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.usable = store.getters.usable; |
| | | this.xjxsoptions = store.getters.xjxsoptions; |
| | | this.valuetype = store.getters.valuetype; |
| | | this.required = store.getters.required; |
| | | }, |
| | | |
| | |
| | | // 获取数据 |
| | | getissueinfo() { |
| | | this.id = this.$route.query.id; |
| | | // 分类 |
| | | getissueclassify({}).then((res) => { |
| | | this.classifylist = res.rows; |
| | | }); |
| | | if (!this.id) { |
| | | return; |
| | | } |
| | |
| | | getillness({ outid: this.id, type: 4 }).then((res) => { |
| | | this.illnesslist = res.rows; |
| | | }); |
| | | // 分类 |
| | | getissueclassify({}).then((res) => { |
| | | this.classifylist = res.rows; |
| | | }); |
| | | |
| | | }, |
| | | gettargetInfo() { |
| | | gettargetInfo(this.queryParams).then((res) => { |
| | |
| | | }, |
| | | // 选择指标 |
| | | selectlabel(row) { |
| | | const labellist = row.targetoptionList; |
| | | labellist.forEach((item) => { |
| | | this.topicobj.svyLibTopicoptions.push({ |
| | | optioncontent: item.targetvalue, |
| | | isoperation: 1, |
| | | }); |
| | | }); |
| | | this.$modal |
| | | .confirm( |
| | | '是否选择标题为"' + row.targetname + '"的指标并替换填充问题信息?' |
| | | ) |
| | | .then(() => { |
| | | console.log(row); |
| | | console.log(this.topicobj); |
| | | this.topicobj.topic = row.targetname; |
| | | this.topicobj.valueType = row.valueType; |
| | | this.topicobj.topicContent = row.targetdesc; |
| | | this.topicobj.isavailable = "0"; |
| | | this.topicobj.language = "普通话"; |
| | | this.topicobj.svyLibTopicoptions = []; |
| | | const labellist = row.targetoptionList; |
| | | labellist.forEach((item) => { |
| | | this.topicobj.svyLibTopicoptions.push({ |
| | | optioncontent: item.targetvalue, |
| | | isoperation: 1, |
| | | }); |
| | | }); |
| | | this.drawer = false; |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | |
| | | // 标签----------------- |
| | |
| | | illnesslist: [], |
| | | tempDetpRelevanceslist: [], |
| | | optionstag: [], |
| | | xjxsoptions: [], |
| | | valuetype: [], |
| | | usable: [], |
| | | required: [], |
| | | mode: [], //方式 |
| | |
| | | this.languagelist = store.getters.languagelist; |
| | | this.usable = store.getters.usable; |
| | | this.required = store.getters.required; |
| | | this.xjxsoptions = store.getters.xjxsoptions; |
| | | this.valuetype = store.getters.valuetype; |
| | | this.courtyardlist = store.getters.courtyardlist; |
| | | }, |
| | | |
| | |
| | | > |
| | | <span class="custom-tree-node" slot-scope="{ node, data }"> |
| | | <span>{{ node.label }}</span> |
| | | <span v-if="node.id > 0"> |
| | | <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> |
| | |
| | | </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> |
| | |
| | | getQtemplateclassify, |
| | | delQtemplateclassify, |
| | | addQtemplateclassify, |
| | | editQtemplateclassify, |
| | | getQtemplatelist, |
| | | issueinfo, |
| | | compileissue, |
| | |
| | | getDeptTree() { |
| | | getQtemplateclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editQtemplateclassify(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) { |
| | |
| | | <el-form-item label="患者名称:"> |
| | | <el-input v-model="patientqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="患者来源" prop="status"> |
| | | <!-- <el-form-item label="患者来源" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="出院科室" prop="status"> |
| | | </el-form-item> --> |
| | | <el-form-item label="就诊科室" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | <el-option-group |
| | | v-for="group in topicoptions[0].children" |
| | | :key="group.deptName" |
| | | :label="group.deptName" |
| | | > |
| | | </el-option> |
| | | <el-option |
| | | v-for="item in group.children" |
| | | :key="item.deptId" |
| | | :label="item.deptName" |
| | | :value="item.deptId" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="出院病区" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | |
| | | { label: "患者名称", width: "", prop: "name" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "就诊科室", width: "", prop: "impTemplate" }, |
| | | { label: "入院日期", width: "", prop: "uploadTime" }, |
| | | { label: "就诊科室", width: "", prop: "deptName" }, |
| | | { label: "入院日期", width: "", prop: "inhosptime" }, |
| | | { label: "创建人(缺)", width: "", prop: "update_by" }, |
| | | ], |
| | | tableLabelxj: [ |
| | |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | }, |
| | | topicoptions: [], |
| | | topicoptions: [{ children: [{ children: [] }] }], |
| | | showSearch: true, // |
| | | total: 0, // |
| | | sontotal: 0, // |
| | |
| | | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.form.type = this.$route.query.type; |
| | | this.Getdetails(); |
| | | this.form.hospType = this.$route.query.type; |
| | | this.listDept(); |
| | | this.Getdetails(); |
| | | this.Acquisitiontype(); |
| | | }, |
| | | |
| | |
| | | // 保存 |
| | | submitForm(formName) { |
| | | this.form.serviceform = this.checkList.join(","); |
| | | this.form.type = this.currenttype; |
| | | this.form.hospType = this.currenttype; |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "姓名" && item.name !== "电话" && item.name !== "地址" |
| | |
| | | console.log(this.ids); |
| | | }, |
| | | getList() {}, |
| | | handleQuery() {}, |
| | | handleQuery() { |
| | | this.handleAddpatient(); |
| | | }, |
| | | resetQuery() {}, |
| | | handleClosehz() { |
| | | this.dialogVisiblepatient = false; |
| | |
| | | // 获取科室列表 |
| | | listDept() { |
| | | listDept().then((res) => { |
| | | this.topicoptions = res.data; |
| | | this.topicoptions = this.handleTree(res.data, "deptId"); |
| | | console.log(this.topicoptions, "topicoptions"); |
| | | }); |
| | | }, |
| | |
| | | > |
| | | <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> |
| | |
| | | label="值类型" |
| | | fixed |
| | | align="center" |
| | | key="isenable" |
| | | prop="isenable" |
| | | key="valueType" |
| | | prop="valueType" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="valuetype" :value="scope.row.isenable" /> |
| | | <dict-tag :options="valuetypelb" :value="scope.row.valueType" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <el-form-item label="版本号" prop="deptId"> |
| | | <el-input |
| | | v-model="indexform.version" |
| | | placeholder="请输入指标种类" |
| | | placeholder="默认1.0" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <el-row v-if="!measurement"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="值类型"> |
| | | <el-radio-group v-model="indexform.isenable"> |
| | | <el-radio-group v-model="indexform.valueType"> |
| | | <el-radio :label="1">选项</el-radio> |
| | | <el-radio :label="2">文本</el-radio> |
| | | <el-radio :label="3">数值</el-radio> |
| | |
| | | v-for="index in mode" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-card |
| | | class="box-card" |
| | | style="margin-bottom: 20px" |
| | | v-if="indexform.isenable == 1" |
| | | v-if="indexform.valueType == 1" |
| | | > |
| | | <Regular |
| | | :TargetoptionList="testuserList" |
| | |
| | | @syioption="syioption" |
| | | @xiayioption="xiayioption" |
| | | /> |
| | | |
| | | </el-card> |
| | | <div v-if="indexform.isenable == 2"> |
| | | <div v-if="indexform.valueType == 2"> |
| | | <el-form-item label="收集信息"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="填入收集信息" |
| | | v-model="indexform.textarea" |
| | | v-model="indexform.reply" |
| | | maxlength="50" |
| | | show-word-limit |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </div> |
| | | <div v-if="indexform.isenable == 3"> |
| | | <div v-if="indexform.valueType == 3"> |
| | | <el-form-item label="收集信息"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="填入收集信息" |
| | | v-model="indexform.textarea" |
| | | v-model="indexform.reply" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | |
| | | </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> |
| | |
| | | addtargetillness, |
| | | selectIvrLibaTargetAssortList, |
| | | addtreeselectIvrLibaTargetAssort, |
| | | edittreeselectIvrLibaTargetAssort, |
| | | delselectIvrLibaTargetAssort, |
| | | } from "@/api/AiCentre/index"; |
| | | import { getToken } from "@/utils/auth"; |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | valuetypelb:[], |
| | | |
| | | // 表单校验 |
| | | rules: {}, |
| | |
| | | this.gettabList(); |
| | | this.getDeptTree(); |
| | | this.mode = store.getters.mode; |
| | | this.valuetype = store.getters.valuetype; |
| | | this.valuetypelb = store.getters.valuetypelb; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.qyoptions = store.getters.usable; |
| | | }, |
| | |
| | | getDeptTree() { |
| | | selectIvrLibaTargetAssortList({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | // 筛选节点 |
| | |
| | | }, |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | edittreeselectIvrLibaTargetAssort(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; |
| | | }, |
| | | handleNodeClick(data) { |
| | | this.queryParams.assortid = data.id; |
| | |
| | | this.targetoptionList |
| | | ); |
| | | if (valid) { |
| | | if (!this.indexform.version) this.indexform.version = "1.0"; |
| | | if (this.indexform.id != undefined) { |
| | | this.indexform.isoperation = 2; |
| | | gettargetInfoedit(this.indexform).then((response) => { |
| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="是否可用"> |
| | | ><el-form-item label="取值类型"> |
| | | <el-select |
| | | v-model="topicobj.isavailable" |
| | | v-model="topicobj.isEnable" |
| | | placeholder="请选择" |
| | | :disabled="true" |
| | | > |
| | | <el-option |
| | | v-for="item in usable" |
| | | v-for="item in valuetype" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <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="topicxq" v-if="topicobj.isEnable == 2 || topicobj.isEnable == 3"> |
| | | <el-row> |
| | | <el-col :span="20"> |
| | | <el-form-item label="收集内容"> |
| | | <el-input |
| | | style="width: 400px;" |
| | | type="textarea" |
| | | v-model="topicobj.value" |
| | | placeholder="问题收集内容" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div v-else> |
| | | <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> --> |
| | | </div> |
| | | </div> |
| | | |
| | | <Regular |
| | | :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList" |
| | | @deloption="deloption" |
| | | :controlsc="false" |
| | | /> |
| | | <!-- 无匹配类型 --> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="无匹配话术"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="topicobj.nomatchtext" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="(默认)无声" |
| | | v-model="topicobj.text" |
| | | maxlength="10" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | 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 |
| | | <Regular |
| | | :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList" |
| | | @deloption="deloption" |
| | | :controlsc="false" |
| | | /> |
| | | <!-- 无匹配类型 --> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="无匹配话术"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="topicobj.nomatchtext" |
| | | show-word-limit |
| | | > |
| | | </el-upload> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | </div> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="听不清话术"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="topicobj.noclearlytext" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="(默认)无声" |
| | | v-model="topicobj.text" |
| | | maxlength="10" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | 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-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="(默认)无声" |
| | | v-model="topicobj.text" |
| | | maxlength="10" |
| | | show-word-limit |
| | | > |
| | | </el-upload> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | </div> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="静默话术"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="topicobj.sliencetext" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="(默认)无声" |
| | | v-model="topicobj.text" |
| | | maxlength="10" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | 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-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-change="handleChange" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | </el-upload> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | </div> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="听不清话术"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="topicobj.noclearlytext" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="(默认)无声" |
| | | v-model="topicobj.text" |
| | | maxlength="10" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | 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> |
| | | </div> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="静默话术"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入" |
| | | v-model="topicobj.sliencetext" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="处理"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="(默认)无声" |
| | | v-model="topicobj.text" |
| | | maxlength="10" |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | 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> |
| | | </div> |
| | | </div> |
| | | </el-form> |
| | | </el-card> |
| | |
| | | precedencetype: [], |
| | | usable: [], |
| | | required: [], |
| | | valuetype: [], |
| | | mode: [], |
| | | inputVisible: false, |
| | | inputVisibleillness: false, |
| | |
| | | this.mode = store.getters.mode; |
| | | this.usable = store.getters.usable; |
| | | this.required = store.getters.required; |
| | | this.valuetype = store.getters.valuetype; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.courtyardlist = store.getters.courtyardlist; |
| | | this.precedencetype = store.getters.precedencetype; |
| | |
| | | if (row.ivrLibaScriptTargetoptionList.length) { |
| | | console.log(11); |
| | | this.topicobj = row; |
| | | this.topicobj.isEnable = row.valueType; |
| | | } else { |
| | | getverbaltrick({ id: row.id }).then((res) => { |
| | | if (res.data) { |
| | |
| | | > |
| | | <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> |
| | |
| | | </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> |
| | |
| | | getFollowupclassify, |
| | | delFollowupclassify, |
| | | addFollowupclassify, |
| | | editFollowupclassify, |
| | | addtargetillness, |
| | | getvFollowup, |
| | | compileFollowup, |
| | |
| | | getDeptTree() { |
| | | getFollowupclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editFollowupclassify(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) { |
| | |
| | | > |
| | | <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> |
| | |
| | | <el-table-column |
| | | label="问题文本" |
| | | align="center" |
| | | key="questiontext" |
| | | prop="questiontext" |
| | | key="questionText" |
| | | prop="questionText" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | |
| | | </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> |
| | |
| | | getverbaltricklist, |
| | | verbaltrickinfo, |
| | | delverbaltrickinfo, |
| | | getverbaltrick, |
| | | compileverbaltrickclassify, |
| | | getillnesslist, |
| | | illnesslistget, |
| | | getillness, |
| | |
| | | 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) { |
| | |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | id="questiontext" |
| | | v-model.sync="indexform.questiontext" |
| | | v-model.sync="indexform.questionText" |
| | | @focus="handleInput('questiontext')" |
| | | maxlength="30" |
| | | /> |
| | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="值类型"> |
| | | <el-radio-group v-model="indexform.isenable"> |
| | | <el-radio-group v-model="indexform.valueType"> |
| | | <el-radio :label="1">选项</el-radio> |
| | | <el-radio :label="2">文本</el-radio> |
| | | <el-radio :label="3">数值</el-radio> |
| | |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | |
| | | <!-- <el-card class="box-card" style="margin-bottom: 20px"> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="indexform.ivrLibaScriptTargetoptionList" |
| | | > |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="guid" |
| | | prop="guid" |
| | | width="50" |
| | | <div v-if="indexform.valueType == 1"> |
| | | <el-card class="box-card" style="margin-bottom: 20px"> |
| | | <Regular |
| | | :TargetoptionList="indexform.ivrLibaScriptTargetoptionList" |
| | | @addoption="addoption" |
| | | @deloption="deloption" |
| | | @syioption="syioption" |
| | | @xiayioption="xiayioption" |
| | | /> |
| | | <el-table-column |
| | | label="指标选项" |
| | | align="center" |
| | | key="targetvalue" |
| | | prop="targetvalue" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | </el-card> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="测试输入" prop="targetvalue"> |
| | | <el-input |
| | | v-model="scope.row.targetvalue" |
| | | placeholder="请输入内容" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="解析规则" |
| | | align="center" |
| | | key="targetregex" |
| | | prop="targetregex" |
| | | width="460" |
| | | :show-overflow-tooltip="true" |
| | | 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> |
| | | <div style="margin-bottom: 20px"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="4" |
| | | placeholder="此处展示识别结果" |
| | | v-model="testgovalue" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.targetregex" |
| | | 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-card class="box-card" style="margin-bottom: 20px"> |
| | | <Regular |
| | | :TargetoptionList="indexform.ivrLibaScriptTargetoptionList" |
| | | @addoption="addoption" |
| | | @deloption="deloption" |
| | | @syioption="syioption" |
| | | @xiayioption="xiayioption" |
| | | /> |
| | | </el-card> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="测试输入" prop="targetvalue"> |
| | | <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-input> |
| | | </div> |
| | | </div> |
| | | <div style="margin-bottom: 20px" v-else> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="4" |
| | | placeholder="此处展示收集信息" |
| | | v-model="testgovalue" |
| | | > |
| | | </el-input> |
| | | </div> |
| | | </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()">关闭</el-button> |
| | | <el-button @click="Saveproblem()">保存数据</el-button> |
| | |
| | | this.dynamicTags = this.indexform.ivrLibaScriptTagList.map( |
| | | this.processElement |
| | | ); |
| | | this.targetlist = [ |
| | | { |
| | | id: this.indexform.targetid, |
| | | targetname: this.indexform.targetname, |
| | | }, |
| | | ]; |
| | | |
| | | // this.targetlist = [ |
| | | // { |
| | | // id: this.indexform.targetid, |
| | | // targetname: this.indexform.targetname, |
| | | // }, |
| | | // ]; |
| | | }); |
| | | } |
| | | gettargetInfolist({ pageSize: 100, pageNum: 1 }).then((res) => { |
| | | this.targetlist = res.rows; |
| | | }); |
| | | // 树 |
| | | getbaltrickclassify({}).then((res) => { |
| | | this.questionclass = res.rows; |
| | |
| | | |
| | | this.indexform.isoperation = 2; |
| | | console.log(this.dellist); |
| | | this.indexform.ivrLibaScriptTargetoptionList=this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist); |
| | | this.indexform.ivrLibaScriptTargetoptionList = |
| | | this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist); |
| | | compileverbaltrick(this.indexform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("修改成功"); |
| | |
| | | targetchange(res) { |
| | | console.log(res); |
| | | gettargetInfo({ id: res }).then((res) => { |
| | | this.indexform.targetname = res.rows[0].targetname; |
| | | console.log(res.rows[0]); |
| | | this.$modal |
| | | .confirm('是否添加"' + this.indexform.targetname + '"指标的选项?') |
| | | .confirm('是否添加"' + res.rows[0].targetname + '"指标的选项?') |
| | | .then(() => { |
| | | this.indexform.valueType = res.rows[0].valueType; |
| | | this.indexform.questiontitle = res.rows[0].targetname; |
| | | this.indexform.targetname = res.rows[0].targetname; |
| | | this.indexform.questionText = res.rows[0].targetdesc; |
| | | this.indexform.isAvailable = "0"; |
| | | this.indexform.language = "普通话"; |
| | | this.indexform.isenable = res.rows[0].isenable; |
| | | console.log(res.rows[0].targetoptionList); |
| | | this.$forceUpdate() |
| | | res.rows[0].targetoptionList.forEach((item) => { |
| | | item.isoperation = 1; |
| | | this.indexform.ivrLibaScriptTargetoptionList.push(item); |
| | |
| | | // 下一步 |
| | | nextstep() { |
| | | if (this.Editprogress <= 1) { |
| | | if (this.indexform.targetid) { |
| | | return this.Editprogress++; |
| | | } else { |
| | | this.$message.warning("请先选择关联指标"); |
| | | } |
| | | // if (this.indexform.targetid) { |
| | | return this.Editprogress++; |
| | | // } else { |
| | | // this.$message.warning("请先选择关联指标"); |
| | | // } |
| | | } else { |
| | | } |
| | | }, |
| | |
| | | inputValueArr = inputValueArr.join(""); |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "questiontext") { |
| | | this.indexform.questiontext = inputValueArr; |
| | | this.indexform.questionText = inputValueArr; |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | this.indexform.nomatchtext = inputValueArr; |
| | | } else if (this.currentInputId == "sliencetext") { |