| | |
| | | <el-divider></el-divider> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-select v-model="tasktopic" placeholder="请选择新增类型"> |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | | :disabled="!tasktopic" |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="userId" |
| | | prop="userId" |
| | | /> |
| | | <el-table-column label="序号" fixed align="center" key="id" prop="id" /> |
| | | |
| | | <el-table-column |
| | | label="任务名称" |
| | | fixed |
| | | align="center" |
| | | sortable |
| | | key="userName" |
| | | prop="userName" |
| | | key="name" |
| | | prop="name" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="服务模板" |
| | | label="任务描述" |
| | | align="center" |
| | | key="types" |
| | | prop="types" |
| | | key="describe" |
| | | prop="describe" |
| | | /> |
| | | <el-table-column |
| | | label="创建日期" |
| | | label="待执行/总任务" |
| | | align="center" |
| | | key="nickName" |
| | | prop="nickName" |
| | | /> |
| | | <el-table-column |
| | | label="待执行/总数" |
| | | align="center" |
| | | key="phonenumber" |
| | | prop="phonenumber" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span style="margin-left: 10px" |
| | | >{{ scope.row.date }}/{{ scope.row.data }}</span |
| | | > |
| | | </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" |
| | | key="topicnumberaa" |
| | | prop="topicnumberaa" |
| | | sortable |
| | | key="create_by" |
| | | prop="create_by" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="审核时间" |
| | | sortable |
| | | align="center" |
| | | prop="createTime" |
| | | prop="create_time" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | <span>{{ parseTime(scope.row.create_time) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="创建人" |
| | | align="center" |
| | | key="create_by" |
| | | prop="create_by" |
| | | width="120" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="创建时间" |
| | | sortable |
| | | align="center" |
| | | prop="create_time" |
| | | width="160" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.create_time) }}</span> |
| | | </template> |
| | | </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" |
| | |
| | | ><i class="el-icon-s-data"></i>详情</span |
| | | ></el-button |
| | | > |
| | | <el-button |
| | | <!-- <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="handleUpdate(scope.row)" |
| | |
| | | ><span class="button-bb" |
| | | ><i class="el-icon-s-order"></i>报表</span |
| | | ></el-button |
| | | > |
| | | > --> |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | |
| | | resetUserPwd, |
| | | changeUserStatus, |
| | | } from "@/api/system/user"; |
| | | |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | |
| | |
| | | previewvalue: { |
| | | username: "这个医生对你怎么样", |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | label: "宣教服务", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "门诊随访", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "出院随访", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "复诊服务", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "体检通知", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "问卷服务", |
| | | }, |
| | | ], |
| | | tasktopic: null, //新增类型 |
| | | value: [], |
| | | list: [], |
| | | loading: false, |
| | |
| | | this.loading = true; |
| | | listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.addalteropen = true; |
| | | // getUser().then((response) => { |
| | | // this.postOptions = response.posts; |
| | | // this.roleOptions = response.roles; |
| | | // this.title = "新增门诊随访"; |
| | | // this.form.password = this.initPassword; |
| | | // this.$router.push({ |
| | | // path: "/followvisit/tasklist/FollowupDetails/", |
| | | // }); |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: this.tasktopic }, |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const userId = row.userId || this.ids; |
| | | getUser(userId).then((response) => { |
| | | this.form = response.data; |
| | | this.postOptions = response.posts; |
| | | this.roleOptions = response.roles; |
| | | this.$set(this.form, "postIds", response.postIds); |
| | | this.$set(this.form, "roleIds", response.roleIds); |
| | | this.addalteropen = true; |
| | | this.title = "修改用户"; |
| | | this.form.password = ""; |
| | | // const userId = row.userId || this.ids; |
| | | // this.$router.push({ |
| | | // path: "/followvisit/tasklist/FollowupDetails/", |
| | | // query: { id: row.id }, |
| | | // }); |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 2 }, |
| | | }); |
| | | }, |
| | | /** 重置密码按钮操作 */ |