| | |
| | | // 查询宣教任务列表 |
| | | export function gethetasklist(data) { |
| | | return request({ |
| | | url: "/smartor/hetask/list", |
| | | url: "/smartor/hetask/getPatHeTaskList", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | |
| | | // 查询宣教任务详情列表 |
| | | export function gethetaskinfo(Id) { |
| | | return request({ |
| | | url: "/smartor/hetask/" + Id, |
| | | url: "/smartor/hetask/getInfo" + Id, |
| | | method: "get", |
| | | }); |
| | | } |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | // 新增宣教模版分类树 |
| | | export function addheLibraryAssort(data) { |
| | | return request({ |
| | |
| | | type="success" |
| | | v-for="crux in dynamiccruxs" |
| | | closable |
| | | effect="dark" |
| | | :disable-transitions="false" |
| | | @close="handleClosecrux(crux)" |
| | | > |
| | |
| | | @change="handleInputConfirm" |
| | | filterable |
| | | remote |
| | | allow-create |
| | | reserve-keyword |
| | | default-first-option |
| | | :loading="loading" |
| | |
| | | type="warning" |
| | | v-for="crux in nodynamiccruxs" |
| | | closable |
| | | effect="dark" |
| | | :disable-transitions="false" |
| | | @close="handleClosecrux(crux)" |
| | | > |
| | |
| | | @change="handleInputConfirm" |
| | | filterable |
| | | remote |
| | | allow-create |
| | | reserve-keyword |
| | | default-first-option |
| | | :loading="loading" |
| | |
| | | this.whether = 2; |
| | | console.log(2); |
| | | }, |
| | | handleSelectionChange(selection) { |
| | | $emit("handleSelectionChange", selection); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | :highlight-current-row="true" |
| | | empty-text="暂无数据" |
| | | > |
| | | <el-table-column v-if="multiplechoice" type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | v-if="multiplechoice" |
| | | type="selection" |
| | | width="50" |
| | | align="center" |
| | | /> |
| | | <el-table-column label="序号" align="center" key="id" prop="id" /> |
| | | <el-table-column |
| | | v-for="(item, index) in tableLabel" |
| | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="是否可用" |
| | | align="center" |
| | | key="isavailable" |
| | | prop="isavailable" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="usable" :value="scope.row.isavailable" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-if="center" |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="120" |
| | | class-name="small-padding fixed-width" |
| | |
| | | data() { |
| | | return { |
| | | ids: [], |
| | | mode: [], |
| | | languagelist: [], |
| | | editabshape: [], |
| | | usable: [], |
| | | precedencetype: [], |
| | | }; |
| | | }, |
| | | props: { |
| | |
| | | multiplechoice:{ |
| | | type: Boolean, |
| | | default: true, |
| | | } |
| | | |
| | | }, |
| | | created() {}, |
| | | }, |
| | | created() { |
| | | this.mode = store.getters.mode; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.usable = store.getters.usable; |
| | | this.precedencetype = store.getters.precedencetype; |
| | | this.editabshape = store.getters.editabshape; |
| | | }, |
| | | |
| | | methods: { |
| | | // 数据过滤 |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | /> |
| | | <el-table-column |
| | | label="病历号" |
| | | align="center" |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>轻度骨裂</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="随访状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="随访状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 3, }, |
| | | query: { type: 3 }, |
| | | }); |
| | | }, |
| | | |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | <div>轻度骨裂</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="随访状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="随访方案" |
| | | align="center" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | |
| | | <el-table-column |
| | | label="随访状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 2, }, |
| | | query: { type: 2 }, |
| | | }); |
| | | }, |
| | | |
| | |
| | | path: "/followvisit/record/detailpage/", |
| | | query: { id: "1" }, |
| | | }); |
| | | |
| | | }, |
| | | // 导入按钮 |
| | | toleadExport() {}, |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | /> |
| | | <el-table-column |
| | | label="病历号" |
| | | align="center" |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>轻度骨裂</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="通知状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="通知状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="任务详情" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 1, }, |
| | | query: { type: 1 }, |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" align="center" key="id" prop="id" /> |
| | | <el-table-column label="序号" fixed align="center" key="id" prop="id" /> |
| | | |
| | | <el-table-column |
| | | label="任务名称" |
| | | fixed |
| | | align="center" |
| | | sortable |
| | | key="name" |
| | |
| | | align="center" |
| | | key="nickName" |
| | | prop="nickName" |
| | | /> |
| | | <el-table-column |
| | | label="状态" |
| | | align="center" |
| | | key="phonenumber" |
| | | prop="phonenumber" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="phonenumber" |
| | | prop="phonenumber" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="120" |
| | | class-name="small-padding fixed-width" |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="任务详情" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | resetUserPwd, |
| | | changeUserStatus, |
| | | } from "@/api/system/user"; |
| | | |
| | | |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in sortlist" |
| | | :key="group.id" |
| | | :label="group.assortname" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in sortlist" |
| | | v-for="item in group.heLibraryAssortList" |
| | | :key="item.id" |
| | | :label="item.assortname" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="宣教标题" prop="preachname"> |
| | |
| | | <el-input v-model="ruleForm.preachname"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="宣教描述" prop="preachdescription"> |
| | | <el-form-item label="宣教描述" prop="preachcontent"> |
| | | <div style="width: 30%"> |
| | | <el-input v-model="ruleForm.preachdescription"></el-input> |
| | | <el-input v-model="ruleForm.preachcontent"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="通知变量" prop="name"> |
| | |
| | | <el-button type="success" @click="nextstep('ruleForm')" |
| | | >下一步</el-button |
| | | > |
| | | <el-button @click="resetForm('ruleForm')">重置</el-button> |
| | | <el-button type="success" @click="Departmenttreatment('ruleForm')" |
| | | >保存</el-button |
| | | > |
| | | <el-button type="info" @click="closeFm('ruleForm')">关闭</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | methods: { |
| | | getList() { |
| | | this.loading = true; |
| | | getlibraryinfo({ id: this.$route.query.id }).then((res) => { |
| | | this.ruleForm = res.data; |
| | | this.id = this.$route.query.id; |
| | | getlibraryinfo({ id: this.id }).then((res) => { |
| | | this.ruleForm = res.data[0]; |
| | | |
| | | if (this.ruleForm.deptNames) { |
| | | this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames); |
| | | } |
| | | if (this.ruleForm.suitway) { |
| | | this.ruleForm.suitway = this.ruleForm.suitway.split(","); |
| | | this.variablelist = JSON.parse(this.ruleForm.otherdata) |
| | | } |
| | | this.variablelist = this.ruleForm.otherdata |
| | | ? JSON.parse(this.ruleForm.otherdata) |
| | | : this.variablelist; |
| | | }); |
| | | getheLibraryAssort({}).then((res) => { |
| | | this.sortlist = res.rows; |
| | | console.log(res); |
| | | }); |
| | | listDept(this.queryParams).then((response) => { |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | | }); |
| | | this.loading = false; |
| | | }, |
| | | /** 查询标签列表 */ |
| | | gettabList() { |
| | | const tagqueryParams = { |
| | | pageNum: 1, |
| | | pageSize: 1000, |
| | | tagcategoryid: "0", |
| | | }; |
| | | listtag(tagqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | | }, |
| | | |
| | | submitForm(formName) { |
| | |
| | | this.dynamicTags.forEach((item) => { |
| | | tgs.push(item.tagname); |
| | | }); |
| | | this.ruleForm.labelInfo = tgs.join(","); |
| | | console.log(tgs.length, "tgs"); |
| | | |
| | | this.ruleForm.labelInfo = tgs.length != 0 ? tgs.join(", ") : ""; |
| | | this.ruleForm.otherdata = JSON.stringify(this.variablelist); |
| | | this.ruleForm.suitway = this.ruleForm.suitway.join(","); |
| | | console.log(22); |
| | | this.ruleForm.suitway = |
| | | this.ruleForm.suitway.length != 0 |
| | | ? this.ruleForm.suitway.join(",") |
| | | : ""; |
| | | if (this.id) { |
| | | this.ruleForm.isoperation = 2; |
| | | compilelibrary(this.ruleForm).then((response) => { |
| | |
| | | // 科室处理 |
| | | Departmenttreatment() { |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | console.log(this.tempDetpRelevanceslist); |
| | | const result = this.tempDetpRelevanceslist.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | | console.log(result); |
| | | // id数组查数组对象 |
| | | result.forEach((item) => { |
| | | const condition = this.ruleForm.tempDetpRelevances.some( |
| | |
| | | ); |
| | | if (!condition) { |
| | | listDept({ deptId: item }).then((res) => { |
| | | console.log(res.data[0]); |
| | | res.data[0].type = 2; |
| | | this.ruleForm.tempDetpRelevances.push(res.data[0]); |
| | | }); |
| | | } |
| | | }); |
| | | console.log(this.ruleForm.tempDetpRelevances); |
| | | // 数组对象查id数组 |
| | | this.ruleForm.tempDetpRelevances.forEach((item) => { |
| | | const condition = result.some((obj) => obj === item.deptId); |
| | |
| | | this.ruleForm.tempDetpRelevances[index].delFlag = 1; |
| | | } |
| | | }); |
| | | console.log(this.ruleForm.tempDetpRelevances); |
| | | setTimeout(() => { |
| | | this.submitForm(); |
| | | }, 1000); |
| | |
| | | tagcategoryid: "0", |
| | | }; |
| | | listtag(tagqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | | }, |
| | | handleClosetag(tag) { |
| | | console.log(tag); |
| | | console.log(this.dynamicTags.indexOf(tag)); |
| | | const lindex = this.dynamicTags.indexOf(tag); |
| | | this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); |
| | | this.ruleForm.heLibraryTagList[lindex].isoperation = 3; |
| | |
| | | pageSize: 100, |
| | | }; |
| | | getillnesslist(illnessqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.optionsillness = response.rows; |
| | | }); |
| | | getillness({ outid: this.$route.query.id, type: 6 }).then((res) => { |
| | | this.illnesslist = res.rows; |
| | | console.log(res); |
| | | }); |
| | | }, |
| | | handleCloseillness(tag) { |
| | |
| | | } |
| | | }, |
| | | remoteMethod(value) { |
| | | console.log(value); |
| | | const illnessqueryParams = { |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" 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="preachname" |
| | | prop="preachname" |
| | |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.labelInfo"> |
| | | <span v-for="item in scope.row.labelInfo.split(',')" |
| | | >{{ item }}、 |
| | | </span> |
| | | </div> |
| | | <div v-else> |
| | | <span>无</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.suitway"> |
| | | <span v-for="item in scope.row.suitway.split(',')" |
| | | >{{ item }}、 |
| | | </span> |
| | | </div> |
| | | <div v-else> |
| | | <span>无</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="300" |
| | | class-name="small-padding fixed-width" |
| | |
| | | methods: { |
| | | /** 查询宣教列表 */ |
| | | getList() { |
| | | // this.loading = true; |
| | | this.loading = true; |
| | | getlibrarylist(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | listDept(this.queryParams).then((response) => { |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | |
| | | :border="true" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | type="selection" |
| | | fixed |
| | | width="50" |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="topicid" |
| | | prop="topicid" |
| | | /> |
| | | <el-table-column |
| | | label="题目标题" |
| | | fixed |
| | | align="center" |
| | | key="topic" |
| | | prop="topic" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="250" |
| | | class-name="small-padding fixed-width" |
| | |
| | | > |
| | | </div> |
| | | <div style="margin-left: 8%"> |
| | | <el-form-item label="问题分类"> |
| | | <el-select |
| | | v-model="topicobj.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in classifylist" |
| | | :key="group.id" |
| | | :label="group.name" |
| | | > |
| | | <el-option |
| | | v-for="item in group.svyLibTopicCategoryList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="6" |
| | | ><el-form-item label="题目标题"> |
| | |
| | | <el-input |
| | | style="width: 40vw" |
| | | type="textarea" |
| | | id="questiontext" |
| | | id="topicContent" |
| | | v-model="topicobj.topicContent" |
| | | @focus="handleInput('questiontext')" |
| | | @focus="handleInput('topicContent')" |
| | | placeholder="请输入标题" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | </el-card> |
| | | </div> |
| | | <el-drawer |
| | | title="添加题目" |
| | | title="添加选项" |
| | | :visible.sync="drawer" |
| | | custom-class="demo-drawer" |
| | | width="50%" |
| | | width="66%" |
| | | > |
| | | <div class="preview-left"> |
| | | <el-form |
| | |
| | | compileissue, |
| | | delissueinfo, |
| | | Followupinfo, |
| | | getissueclassify, |
| | | deltargetillness, |
| | | addtargetillness, |
| | | getillnesslist, |
| | |
| | | optionsillness: [], |
| | | illnesslistapi: [], |
| | | illnesslist: [], |
| | | |
| | | classifylist: [], |
| | | optionstag: [], |
| | | xjxsoptions: [], |
| | | usable: [], |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | // 公共方法--------------- |
| | | getIndexInArray(arr, obj) { |
| | | return arr.indexOf(obj); |
| | | }, |
| | | |
| | | // 递归扁平化 |
| | | flattenArray(arr) { |
| | | let result = []; |
| | | arr.forEach((item) => { |
| | | result.push(item); |
| | | if (item.svyLibTopicCategoryList) { |
| | | console.log(2); |
| | | result = result.concat( |
| | | this.flattenArray(item.svyLibTopicCategoryList) |
| | | ); |
| | | delete item.svyLibTopicCategoryList; |
| | | } |
| | | }); |
| | | return result; |
| | | }, |
| | | // ----------------------------- |
| | | // 获取数据 |
| | | getissueinfo() { |
| | | this.id = this.$route.query.id; |
| | |
| | | }); |
| | | getillness({ outid: this.id, type: 4 }).then((res) => { |
| | | this.illnesslist = res.rows; |
| | | }); |
| | | // 分类 |
| | | getissueclassify({}).then((res) => { |
| | | this.classifylist = res.rows; |
| | | }); |
| | | }, |
| | | gettargetInfo() { |
| | |
| | | let inputValueArr = ""; |
| | | let el = document.querySelector("#" + this.currentInputId); |
| | | //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index) |
| | | if (this.currentInputId == "questiontext") { |
| | | inputValueArr = this.indexform.questiontext.split(""); |
| | | if (this.currentInputId == "topicContent") { |
| | | inputValueArr = this.topicobj.topicContent.split(""); |
| | | console.log(123); |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | inputValueArr = this.indexform.nomatchtext.split(""); |
| | | inputValueArr = this.topicobj.nomatchtext.split(""); |
| | | } else if (this.currentInputId == "sliencetext") { |
| | | inputValueArr = this.indexform.sliencetext.split(""); |
| | | inputValueArr = this.topicobj.sliencetext.split(""); |
| | | } else if (this.currentInputId == "noclearlytext") { |
| | | inputValueArr = this.indexform.noclearlytext.split(""); |
| | | inputValueArr = this.topicobj.noclearlytext.split(""); |
| | | } else if (this.currentInputId == "submoduletext") { |
| | | inputValueArr = this.indexform.submoduletext.split(""); |
| | | inputValueArr = this.topicobj.submoduletext.split(""); |
| | | } else { |
| | | return; |
| | | } |
| | |
| | | // 把数组重新转换为字符串并赋值 |
| | | inputValueArr = inputValueArr.join(""); |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "questiontext") { |
| | | this.indexform.questiontext = inputValueArr; |
| | | if (this.currentInputId == "topicContent") { |
| | | this.topicobj.topicContent = inputValueArr; |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | this.indexform.nomatchtext = inputValueArr; |
| | | this.topicobj.nomatchtext = inputValueArr; |
| | | } else if (this.currentInputId == "sliencetext") { |
| | | this.indexform.sliencetext = inputValueArr; |
| | | this.topicobj.sliencetext = inputValueArr; |
| | | } else if (this.currentInputId == "noclearlytext") { |
| | | this.indexform.noclearlytext = inputValueArr; |
| | | this.topicobj.noclearlytext = inputValueArr; |
| | | } else if (this.currentInputId == "submoduletext") { |
| | | this.indexform.submoduletext = inputValueArr; |
| | | this.topicobj.submoduletext = inputValueArr; |
| | | } else { |
| | | return; |
| | | } |
| | |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in optionsclass" |
| | | :key="group.id" |
| | | :label="group.name" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in optionsclass" |
| | | v-for="item in group.svyLibTitleCategoryList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="问卷标题" prop="name"> |
| | |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="topicid" |
| | | prop="topicid" |
| | | key="guid" |
| | | prop="guid" |
| | | /> |
| | | <el-table-column |
| | | label="题目" |
| | |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | width="200" |
| | | width="250" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | type="primary" |
| | | round |
| | | circle |
| | | @click="handleUpdate(scope.row)" |
| | | >修改</el-button |
| | | > |
| | | ></el-button> |
| | | <el-button |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | @click="handleDelete(scope.row)" |
| | | ></el-button> |
| | | <el-button |
| | | @click="syioption(scope.row)" |
| | | type="success" |
| | | icon="el-icon-top" |
| | | circle |
| | | ></el-button> |
| | | <el-button |
| | | @click="xiayioption(scope.row)" |
| | | type="success" |
| | | icon="el-icon-bottom" |
| | | circle |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | compileissue, |
| | | delQtemplateinfo, |
| | | Followupinfo, |
| | | issueinfo, |
| | | getissuelist, |
| | | deltargetillness, |
| | | addtargetillness, |
| | |
| | | data() { |
| | | return { |
| | | sidecolumnrabs: "left", //方向 |
| | | Editprogress: 2, //编辑进度 |
| | | Editprogress: 1, //编辑进度 |
| | | currentVersion: "1.2.3", //当前版本 |
| | | loading: false, // 遮罩层 |
| | | drawer: false, //控制展开 |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | // 公共方法--------------- |
| | | getIndexInArray(arr, obj) { |
| | | return arr.indexOf(obj); |
| | | }, |
| | | // 递归扁平化 |
| | | flattenArray(arr) { |
| | | let result = []; |
| | | arr.forEach((item) => { |
| | | result.push(item); |
| | | if (item.svyLibTitleCategoryList) { |
| | | result = result.concat( |
| | | this.flattenArray(item.svyLibTitleCategoryList) |
| | | ); |
| | | delete item.svyLibTitleCategoryList; |
| | | } |
| | | }); |
| | | return result; |
| | | }, |
| | | // ----------------------------- |
| | | // 获取数据 |
| | | getissueinfo() { |
| | | this.id = this.$route.query.id; |
| | |
| | | listDept(this.queryParams).then((response) => { |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | | }); |
| | | // 分类 |
| | | getQtemplateclassify({}).then((res) => { |
| | | // this.optionsclass = this.flattenArray(res.rows); |
| | | this.optionsclass = res.rows; |
| | | }); |
| | | }, |
| | |
| | | this.ruleForm.svyLibTopics.indexOf(row), |
| | | 1 |
| | | ); |
| | | this.sortFn(); |
| | | }, |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | this.topicobj = row; |
| | | getissuelist({ svyid: row.svyid }).then((res) => { |
| | | this.topicobj = res.rows[0]; |
| | | }); |
| | | }, |
| | | syioption(row) { |
| | | const index = this.getIndexInArray(this.ruleForm.svyLibTopics, row); |
| | | const item = this.ruleForm.svyLibTopics.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.svyLibTopics.splice(index - 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | xiayioption(row) { |
| | | const index = this.getIndexInArray(this.ruleForm.svyLibTopics, row); |
| | | const item = this.ruleForm.svyLibTopics.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.svyLibTopics.splice(index + 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | sortFn() { |
| | | this.ruleForm.svyLibTopics = this.ruleForm.svyLibTopics.map( |
| | | (item, index) => { |
| | | return { |
| | | guid: index + 1, |
| | | svyid: item.svyid, |
| | | topic: item.topic, |
| | | topicContent: item.topicContent, |
| | | }; |
| | | } |
| | | ); |
| | | console.log(this.ruleForm.svyLibTopics); |
| | | }, |
| | | |
| | | // 修改题目信息 |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="svyid" |
| | | prop="svyid" |
| | | /> |
| | | <el-table-column |
| | | label="问卷标题" |
| | | fixed |
| | | align="center" |
| | | key="svyname" |
| | | prop="svyname" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="300" |
| | | class-name="small-padding fixed-width" |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>轻度骨裂</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="通知状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="通知状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="任务详情" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 1, }, |
| | | query: { type: 1 }, |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | fixed |
| | | label="序号" |
| | | align="center" |
| | | key="patid" |
| | | prop="patid" |
| | | /><el-table-column |
| | | fixed |
| | | label="患者姓名" |
| | | align="center" |
| | | key="name" |
| | | prop="name" |
| | | /> |
| | | <el-table-column |
| | | label="床位号" |
| | |
| | | key="Patientnumber" |
| | | prop="Patientnumber" |
| | | /> |
| | | <el-table-column |
| | | label="患者姓名" |
| | | align="center" |
| | | key="name" |
| | | prop="name" |
| | | /> |
| | | |
| | | <el-table-column label="性别" align="center" key="sex" prop="sex"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> |
| | |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="160" |
| | | class-name="small-padding fixed-width" |
| | |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | fixed |
| | | label="序号" |
| | | align="center" |
| | | key="patid" |
| | | prop="patid" |
| | | /> |
| | | <el-table-column |
| | | fixed |
| | | label="姓名" |
| | | align="center" |
| | | key="name" |
| | |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-for="item in scope.row.tagList">{{ item.tagname }} </span> |
| | | <span v-for="item in scope.row.tagList" |
| | | >{{ item.tagname }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="操作" |
| | | align="center" |
| | | width="190" |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="patid" |
| | | prop="patid" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="name" |
| | | prop="name" |
| | | /> |
| | | <el-table-column |
| | | label="患者编号" |
| | |
| | | key="Patientnumber" |
| | | prop="Patientnumber" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="name" prop="name" /> |
| | | <el-table-column label="性别" align="center" key="sex" prop="sex"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="160" |
| | | class-name="small-padding fixed-width" |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="patid" |
| | | prop="patid" |
| | | /> |
| | | <el-table-column label="姓名" fixed align="center" key="name" prop="name" /> |
| | | <el-table-column |
| | | label="体检编号" |
| | | align="center" |
| | | key="Patientnumber" |
| | | prop="Patientnumber" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="name" prop="name" /> |
| | | <el-table-column label="性别" align="center" key="sex" prop="sex"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="160" |
| | | class-name="small-padding fixed-width" |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>团检</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="通知状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="通知状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | fixed |
| | | label="序号" |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | key="id" |
| | | prop="id" |
| | | /> |
| | | |
| | | <el-table-column label="姓名" fixed align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="病历号" |
| | | align="center" |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | <div>轻度骨裂</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="通知状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="宣教内容" |
| | | align="center" |
| | |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="通知状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="任务详情" |
| | | align="center" |
| | | width="200" |
| | |
| | | @pagination="getList" |
| | | /> |
| | | </el-row> |
| | | <!-- 添加或修改门诊宣教对话框 --> |
| | | <el-dialog |
| | | :title="title" |
| | | :visible.sync="addalteropen" |
| | | width="700px" |
| | | append-to-body |
| | | > |
| | | <el-form ref="form" :model="form" label-width="100px"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="任务名称"> |
| | | <el-input v-model="form.name"></el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="所属科室"> |
| | | <el-select v-model="form.region" placeholder="请选择科室"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item></el-col |
| | | ></el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" |
| | | ><el-form-item label="宣教类型"> |
| | | <el-select v-model="form.region" placeholder="请选择宣教类型"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="服务模块"> |
| | | <el-select v-model="form.region" placeholder="请选择模块"> |
| | | <el-option label="区域一" value="shanghai"></el-option> |
| | | <el-option label="区域二" value="beijing"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="门诊宣教要求"> |
| | | <el-input type="textarea" v-model="form.desc"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">提 交</el-button> |
| | | <el-button @click="cancel">返 回</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | resetUserPwd, |
| | | changeUserStatus, |
| | | } from "@/api/system/user"; |
| | | import { gethetasklist, delhetaskinfo } from "@/api/AiCentre/index"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | |
| | |
| | | userList: null, |
| | | // 弹出层标题 |
| | | title: "新增门诊宣教", |
| | | // 是否显示修改、添加弹出层 |
| | | addalteropen: false, |
| | | |
| | | // 部门名称 |
| | | deptName: undefined, |
| | | // 默认密码 |
| | |
| | | value: [], |
| | | list: [], |
| | | loading: false, |
| | | states: [ |
| | | "Alabama", |
| | | "Alaska", |
| | | "Arizona", |
| | | "Arkansas", |
| | | "California", |
| | | "Colorado", |
| | | "Connecticut", |
| | | "Delaware", |
| | | "Florida", |
| | | "Georgia", |
| | | "Hawaii", |
| | | "Idaho", |
| | | "Illinois", |
| | | "Indiana", |
| | | "Iowa", |
| | | "Kansas", |
| | | "Kentucky", |
| | | "Louisiana", |
| | | "Maine", |
| | | "Maryland", |
| | | "Massachusetts", |
| | | "Michigan", |
| | | "Minnesota", |
| | | "Mississippi", |
| | | "Missouri", |
| | | "Montana", |
| | | "Nebraska", |
| | | "Nevada", |
| | | "New Hampshire", |
| | | "New Jersey", |
| | | "New Mexico", |
| | | "New York", |
| | | "North Carolina", |
| | | "North Dakota", |
| | | "Ohio", |
| | | "Oklahoma", |
| | | "Oregon", |
| | | "Pennsylvania", |
| | | "Rhode Island", |
| | | "South Carolina", |
| | | "South Dakota", |
| | | "Tennessee", |
| | | "Texas", |
| | | "Utah", |
| | | "Vermont", |
| | | "Virginia", |
| | | "Washington", |
| | | "West Virginia", |
| | | "Wisconsin", |
| | | "Wyoming", |
| | | ], |
| | | states: ["Alabama", "North Dakota", "Ohio", "Oklahoma", "Oregon", ,], |
| | | pickerOptions: { |
| | | disabledDate(time) { |
| | | return time.getTime() > Date.now(); |
| | |
| | | topqueryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | userName: undefined, |
| | | tagid: undefined, |
| | | topic: undefined, |
| | | }, |
| | | propss: { multiple: true }, |
| | | options: [], |
| | |
| | | /** 查询门诊宣教列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | (response) => { |
| | | gethetasklist(this.topqueryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }); |
| | | }, |
| | | // 查看门诊宣教详情 |
| | | Referencequestion(row) { |
| | |
| | | this.$modal |
| | | .confirm('确认要"' + text + '""' + row.userName + '"用户吗?') |
| | | .then(function () { |
| | | return changeUserStatus(row.userId, row.status); |
| | | return changeUserStatus(row.id, row.status); |
| | | }) |
| | | .then(() => { |
| | | this.$modal.msgSuccess(text + "成功"); |
| | |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | userId: undefined, |
| | | id: undefined, |
| | | deptId: undefined, |
| | | userName: undefined, |
| | | nickName: undefined, |
| | |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 1, }, |
| | | query: { type: 1 }, |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | |
| | | this.$router.push({ |
| | | path: "/followvisit/record/detailpage/", |
| | | query: { id: "1" }, |
| | | }); |
| | | }, |
| | | /** 重置密码按钮操作 */ |
| | | handleResetPwd(row) { |
| | | this.$prompt('请输入"' + row.userName + '"的新密码', "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | closeOnClickModal: false, |
| | | inputPattern: /^.{5,20}$/, |
| | | inputErrorMessage: "用户密码长度必须介于 5 和 20 之间", |
| | | }) |
| | | .then(({ value }) => { |
| | | resetUserPwd(row.userId, value).then((response) => { |
| | | this.$modal.msgSuccess("修改成功,新密码是:" + value); |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | |
| | | /** 提交按钮 */ |
| | | submitForm: function () { |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.form.userId != undefined) { |
| | | updateUser(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addUser(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const userIds = row.userId || this.ids; |
| | | const userIds = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') |
| | | .confirm('是否确认删除用户编号为"' + ids + '"的数据项?') |
| | | .then(function () { |
| | | return delUser(userIds); |
| | | return delhetaskinfo(ids); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | |
| | | </div> |
| | | <div class="jic-value"> |
| | | <el-form ref="form" :model="form" label-width="105px"> |
| | | <el-form-item label="模版名称:"> |
| | | <el-input |
| | | style="width: 220px" |
| | | v-model="form.bt" |
| | | placeholder="请在下方选择" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="发送时间:" v-if="currenttype != 2"> |
| | | <el-date-picker |
| | | v-model="form.name" |
| | |
| | | @handleUpdate="handleUpdate" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :currentList="userList" |
| | | :tableLabel="tableLabelxj" |
| | | :tableLabel="tableLabel" |
| | | :controlsc="false" |
| | | :multiplechoice="false" |
| | | /> |
| | |
| | | <el-alert title="在本阶段选择宣教病人" type="success" effect="dark"> |
| | | </el-alert> |
| | | <div class="leftvlue-jbxx"> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>变量匹配量参</div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <el-table :data="variableList" style="width: 100%"> |
| | | <el-table-column |
| | | prop="variablename" |
| | | align="center" |
| | | label="变量名称" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="character" |
| | | align="center" |
| | | label="匹配符" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="替换值" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.Replacementvalue" |
| | | placeholder="请输入内容" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | @click="variableEdit(scope.$index, scope.row)" |
| | | >编辑</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | @click="variableDelete(scope.$index, scope.row)" |
| | | >删除</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>患者列表</div> |
| | |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | | import { |
| | | getTaskpatient, |
| | | getlibrarylist, |
| | | getFollowuplist, |
| | | getQtemplatelist, |
| | | edithetask, |
| | | addhetask, |
| | | gethetaskinfo, |
| | |
| | | return { |
| | | title: "宣教内容列表", |
| | | currenttype: 1, //1宣教2门诊3出院4复诊5体检6问卷 |
| | | id: "", |
| | | Editprogress: 1, //编辑进度 |
| | | loading: false, // 遮罩层 |
| | | patientloading: false, // 遮罩层 |
| | |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "就诊科室", width: "", prop: "impTemplate" }, |
| | | { label: "入院日期", width: "", prop: "create_time" }, |
| | | { label: "创建人", width: "", prop: "update_by" }, |
| | | { label: "入院日期", width: "", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "", prop: "update_by" }, |
| | | ], |
| | | tableLabelxj: [ |
| | | { label: "宣教名称", width: "", prop: "name" }, |
| | | { label: "宣教类型", width: "", prop: "nametype" }, |
| | | { label: "宣教模版", width: "", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "", prop: "create_time" }, |
| | | { label: "创建人", width: "", prop: "update_by" }, |
| | | { label: "宣教名称", width: "", prop: "preachname" }, |
| | | { label: "宣教描述", width: "", prop: "note" }, |
| | | { label: "宣教形式", width: "", prop: "playType" }, |
| | | { label: "适用方式", width: "", prop: "suitway" }, |
| | | { label: "创建日期", width: "", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "", prop: "update_by" }, |
| | | ], |
| | | tableLabelmz: [ |
| | | { label: "随访名称", width: "118", prop: "name" }, |
| | | { label: "随访名称", width: "118", prop: "templateName" }, |
| | | { label: "随访模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabelcy: [ |
| | | { label: "随访名称", width: "118", prop: "name" }, |
| | | { label: "随访名称", width: "118", prop: "templateName" }, |
| | | { label: "随访计划", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabelfz: [ |
| | | { label: "通知名称", width: "118", prop: "name" }, |
| | | { label: "通知名称", width: "118", prop: "templateName" }, |
| | | { label: "通知模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabeltj: [ |
| | | { label: "通知名称", width: "118", prop: "name" }, |
| | | { label: "通知模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabelwj: [ |
| | | { label: "问卷名称", width: "118", prop: "name" }, |
| | | { label: "问卷模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | // 变量 |
| | | tableLabelvariable: [ |
| | | { label: "变量名称", width: "", prop: "variablename" }, |
| | | { label: "匹配符", width: "", prop: "character" }, |
| | | { label: "替换值", width: "", prop: "Replacementvalue" }, |
| | | ], |
| | | topqueryParams: { |
| | | pageNum: 1, // |
| | |
| | | userList: [], //模版列表 |
| | | patientuserList: [], //选择患者列表 |
| | | sonuserList: [], //选中患者列表 |
| | | variableList: [ |
| | | { |
| | | variablename: "姓名", |
| | | character: "${name}", |
| | | Replacementvalue: "龙傲天", |
| | | }, |
| | | { |
| | | variablename: "地址", |
| | | character: "${dzz}", |
| | | Replacementvalue: "龙宫", |
| | | }, |
| | | { |
| | | variablename: "电话", |
| | | character: "${dhh}", |
| | | Replacementvalue: "八个八", |
| | | }, |
| | | ], //变量列表 |
| | | tasktopic: null, //新增类型 |
| | | form: { |
| | | name: "", |
| | |
| | | resource: "", |
| | | desc: "", |
| | | }, |
| | | options: [ |
| | | { |
| | | value: "选项1", |
| | | label: "黄金糕", |
| | | }, |
| | | { |
| | | value: "选项2", |
| | | label: "双皮奶", |
| | | }, |
| | | { |
| | | value: "选项5", |
| | | label: "北京烤鸭", |
| | | }, |
| | | ], |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | |
| | | components: { SFtable }, |
| | | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | this.Acquisitiontype(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | // 获取当前类型 |
| | | Acquisitiontype() { |
| | | let queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | isavailable: "", |
| | | }; |
| | | getTaskpatient({ allhosp: 1 }).then((res) => { |
| | | console.log(res); |
| | | }); |
| | |
| | | "智能小程序", |
| | | "钉钉", |
| | | ]; |
| | | getlibrarylist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 2) { |
| | | this.title = "随访内容列表"; |
| | | this.tableLabel = this.tableLabelmz; |
| | | this.checkboxlist = ["当面", "纸质", "电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 3) { |
| | | this.title = "随访计划列表"; |
| | | this.tableLabel = this.tableLabelcy; |
| | | this.checkboxlist = ["当面", "纸质", "电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 4) { |
| | | this.title = "通知内容列表"; |
| | | this.tableLabel = this.tableLabelfz; |
| | | this.checkboxlist = ["电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 5) { |
| | | this.title = "通知内容列表"; |
| | | this.tableLabel = this.tableLabeltj; |
| | | this.checkboxlist = ["纸质", "电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 6) { |
| | | this.title = "问卷内容列表"; |
| | | this.tableLabel = this.tableLabelwj; |
| | |
| | | "微信小程序", |
| | | "钉钉", |
| | | ]; |
| | | getQtemplatelist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } |
| | | }, |
| | | // 下一步 |
| | |
| | | console.log(this.userList); |
| | | }); |
| | | }, |
| | | /** 查询患者列表 */ |
| | | // 变量--------------- |
| | | variableEdit(index, row) { |
| | | console.log(index, row); |
| | | }, |
| | | variableDelete(index, row) { |
| | | console.log(index, row); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | |
| | | <el-table-column label="姓名" fixed align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="床号" |
| | | align="center" |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | prop="topicnumberaa" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="发送状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>已发送</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="就诊时间" |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="发送状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>已发送</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | fixed |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | prop="userName" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" key="types" prop="types" /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>轻度骨裂</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="随访状态" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="随访状态" |
| | | fixed="right" |
| | | align="center" |
| | | key="topicnumber" |
| | | prop="topicnumber" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div>未完成</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" 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="isenable" |
| | | prop="isenable" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- deptOptions --> |
| | | <el-row v-if="!measurement"> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="指标分类"> |
| | | <el-select |
| | | v-model="indexform.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in deptOptions" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in group.ivrLibaTargetAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="语言" prop="deptId"> |
| | | <el-select |
| | | v-model="indexform.language" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="是否可用" prop="isAvailable"> |
| | | <el-select |
| | | v-model="indexform.isAvailable" |
| | |
| | | getDeptTree() { |
| | | selectIvrLibaTargetAssortList({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | }); |
| | | }, |
| | | // 筛选节点 |
| | |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in indexAssortlist" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in indexAssortlist" |
| | | v-for="item in group.ivrLibaTemplateAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-table-column |
| | | label="编号" |
| | | align="center" |
| | | key="id" |
| | | prop="id" |
| | | key="guid" |
| | | prop="guid" |
| | | /> |
| | | <el-table-column |
| | | label="标题" |
| | |
| | | <el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="topicobj.questiontitle" |
| | | placeholder="请输入标题" |
| | | placeholder="请从左侧列表选择" |
| | | :disabled="true" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-row :gutter="10"> |
| | |
| | | <el-button type="danger" round>删除</el-button> |
| | | </div> |
| | | </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.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 |
| | | > |
| | | </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> |
| | | </el-form> |
| | |
| | | { value: "1", label: "心外科" }, |
| | | { value: "2", label: "心内科" }, |
| | | ], |
| | | standbylist: [], |
| | | themelist: [], |
| | | languagelist: [], |
| | | courtyardlist: [], |
| | |
| | | |
| | | // 提交 |
| | | |
| | | compileFollowup(this.ruleForm).then((res) => { |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }); |
| | | this.illnesslist.forEach((item, index) => { |
| | | if (!item.id) { |
| | | addtargetillness(item).then((res) => {}); |
| | |
| | | if (this.illnesslistapi.length) { |
| | | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); |
| | | } |
| | | compileFollowup(this.ruleForm).then((res) => { |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | this.$router.go(-1); |
| | | }); |
| | | }, |
| | | // 科室处理 |
| | | Departmenttreatment() { |
| | |
| | | }); |
| | | }, |
| | | handleDelete(item) { |
| | | const index = this.userList.indexOf(item); |
| | | const index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(item); |
| | | if (index !== -1) { |
| | | this.userList.splice(index, 1); // 从索引位置删除一个元素 |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.splice(index, 1); // 从索引位置删除一个元素 |
| | | this.sortFn(); |
| | | } else { |
| | | console.log("未找到该对象"); |
| | | } |
| | | }, |
| | | syioption(row) { |
| | | const index = this.getIndexInArray(this.userList, row); |
| | | const item = this.userList.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.userList.splice(index - 1, 0, item); // 将item插入到索引位置的前一位 |
| | | const index = this.getIndexInArray( |
| | | this.ruleForm.ivrLibaTemplateScriptVOList, |
| | | row |
| | | ); |
| | | const item = this.ruleForm.ivrLibaTemplateScriptVOList.splice( |
| | | index, |
| | | 1 |
| | | )[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.splice(index - 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | xiayioption(row) { |
| | | const index = this.getIndexInArray(this.userList, row); |
| | | const item = this.userList.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.userList.splice(index + 1, 0, item); // 将item插入到索引位置的前一位 |
| | | const index = this.getIndexInArray( |
| | | this.ruleForm.ivrLibaTemplateScriptVOList, |
| | | row |
| | | ); |
| | | const item = this.ruleForm.ivrLibaTemplateScriptVOList.splice( |
| | | index, |
| | | 1 |
| | | )[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.splice(index + 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | sortFn() { |
| | | this.userList = this.userList.map((item, index) => { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => { |
| | | return { |
| | | userid: index + 1, |
| | | userName: item.userName, |
| | | verbaltrick: item.verbaltrick, |
| | | guid: index + 1, |
| | | id: item.id, |
| | | questiontitle: item.questiontitle, |
| | | questionText: item.questionText, |
| | | }; |
| | | }); |
| | | console.log(this.userList); |
| | | console.log(this.ruleForm.ivrLibaTemplateScriptVOList); |
| | | }, |
| | | // --------------------- |
| | | resetForm(formName) { |
| | |
| | | .presentation-right { |
| | | width: 55%; |
| | | max-height: 688px; |
| | | padding: 0 20px; |
| | | margin: 0 20px; |
| | | font-size: 18px; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(32, 32, 32, 0.12), |
| | | 0 0 6px 0 rgba(58, 57, 57, 0.04); |
| | | overflow: auto; |
| | | .headline { |
| | | display: flex; |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" 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="templateName" |
| | | prop="templateName" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" 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" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="250" |
| | | class-name="small-padding fixed-width" |
| | |
| | | <el-form-item label="问题分类" prop="status"> |
| | | <el-select |
| | | v-model="indexform.assortid" |
| | | placeholder="请选择状态" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in questionclass" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in questionclass" |
| | | v-for="item in group.ivrLibaScriptAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | <el-table-column |
| | | label="通知标题" |
| | | fixed |
| | | align="center" |
| | | key="userName" |
| | | prop="userName" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="300" |
| | | class-name="small-padding fixed-width" |