diff --git a/src/api/manage/template.js b/src/api/manage/template.js new file mode 100644 index 0000000..355a966 --- /dev/null +++ b/src/api/manage/template.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +// 查询微信模板信息列表 +export function listTemplate(query) { + return request({ + url: '/manage/template/list', + method: 'get', + params: query + }) +} + +// 查询微信模板信息详细 +export function getTemplate(id) { + return request({ + url: '/manage/template/' + id, + method: 'get' + }) +} + +// 新增微信模板信息 +export function addTemplate(data) { + return request({ + url: '/manage/template/add', + method: 'post', + data: data + }) +} + +// 修改微信模板信息 +export function updateTemplate(data) { + return request({ + url: '/manage/template/edit', + method: 'put', + data: data + }) +} + +// 删除微信模板信息 +export function delTemplate(id) { + return request({ + url: '/manage/template/remove/' + id, + method: 'delete' + }) +} +// 左侧微信列表 +export function listWechatTemplateNum(query) { + return request({ + url: '/system/department/listWechatTemplateNum', + method: 'get', + params: query + }) +} +// 适用任务类型 + +export function typelist(dictType) { + return request({ + url: '/system/dict/data/type/'+dictType, + method: 'get', + }) +} diff --git a/src/api/operationInfo/operationInfo.js b/src/api/operationInfo/operationInfo.js index f516bab..bb86481 100644 --- a/src/api/operationInfo/operationInfo.js +++ b/src/api/operationInfo/operationInfo.js @@ -12,7 +12,7 @@ export function listOperationInfo(query) { // 查询手术信息详细 export function getOperationInfo(id) { return request({ - url: '/operationInfo/operationInfo/' + id, + url: '/manage/operationInfo/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getOperationInfo(id) { // 新增手术信息 export function addOperationInfo(data) { return request({ - url: '/operationInfo/operationInfo/add', + url: '/manage/operationInfo/add', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addOperationInfo(data) { // 修改手术信息 export function updateOperationInfo(data) { return request({ - url: '/operationInfo/operationInfo/edit', + url: '/manage/operationInfo/edit', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateOperationInfo(data) { // 删除手术信息 export function delOperationInfo(id) { return request({ - url: '/operationInfo/operationInfo/remove/' + id, + url: '/manage/operationInfo/remove/' + id, method: 'delete' }) } diff --git a/src/views/manage/script/index.vue b/src/views/manage/script/index.vue index 0540779..491a889 100644 --- a/src/views/manage/script/index.vue +++ b/src/views/manage/script/index.vue @@ -839,11 +839,7 @@ export default { } else { console.log(this.departmentName, '00000') this.diseaseshowst = true; - // if(this.itemname){ - // this.querydisease.departmentId=this.itemname - // }else{ this.querydisease.departmentId = this.form.departmentId - // } this.infodisease() } }, @@ -1036,9 +1032,6 @@ export default { if (this.form.id != null) { this.form.departmentName = this.departmentName this.form.diseaseTypeName = this.diseaseTypeName - - console.log(this.form) - updateScript(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; @@ -1052,16 +1045,13 @@ export default { this.form.diseaseTypeName = this.diseaseTypeName } if(this.itemname){ - console.log('000000000000') + this.form.departmentName = this.departmentName this.form.departmentId=this.itemname }else{ - console.log('222222222') - this.form.departmentName = this.departmentName - } addScript(this.form).then(response => { this.$modal.msgSuccess("新增成功"); @@ -1070,8 +1060,6 @@ export default { }); } - - // } } }); }, @@ -1098,6 +1086,16 @@ export default { return delScript(ids); }).then(() => { this.getList(); + + var quer={ + pageNum: 1, + pageSize: 10, + } + listScript(quer).then(response => { + this.count = response.total; + + }); + this.Departmentlist(); this.$modal.msgSuccess("删除成功"); }).catch(() => { }); }, diff --git a/src/views/manage/template/index.vue b/src/views/manage/template/index.vue new file mode 100644 index 0000000..aa631e9 --- /dev/null +++ b/src/views/manage/template/index.vue @@ -0,0 +1,876 @@ + + + + diff --git a/src/views/operationInfo/operationInfo/index.vue b/src/views/operationInfo/operationInfo/index.vue index 1adafc1..7b17555 100644 --- a/src/views/operationInfo/operationInfo/index.vue +++ b/src/views/operationInfo/operationInfo/index.vue @@ -186,43 +186,7 @@ 取 消 - - - - -
将文件拖到此处,或点击上传
-
- 仅允许导入xls、xlsx格式文件。 - 下载模板 -
-
- -
+ @@ -341,7 +305,6 @@ export default { // 左侧科室 itemdata(item) { if (item) { - console.log(item, '9999') this.itemname = item.id this.form.departmentId = this.itemname this.form.departmentName = item.departmentName @@ -355,41 +318,6 @@ export default { } }, - /** 导入按钮操作 */ - handleImport() { - this.upload.title = "导入手术名称"; - this.upload.open = true; - }, - /** 下载模板操作 */ - importTemplate() { - this.download( - "system/user/importTemplate", - {}, - `user_template_${new Date().getTime()}.xlsx` - ); - }, - // 文件上传中处理 - handleFileUploadProgress(event, file, fileList) { - this.upload.isUploading = true; - }, - // 文件上传成功处理 - handleFileSuccess(response, file, fileList) { - this.upload.open = false; - this.upload.isUploading = false; - this.$refs.upload.clearFiles(); - this.$alert( - "
" + - response.msg + - "
", - "导入结果", - { dangerouslyUseHTMLString: true } - ); - this.getList(); - }, - // 提交上传文件 - submitFileForm() { - this.$refs.upload.submit(); - }, // 左侧科室 Departmentlist() { this.loading = true; @@ -533,6 +461,15 @@ export default { return delOperationInfo(ids); }).then(() => { this.getList(); + var quer={ + pageNum: 1, + pageSize: 10, + } + listOperationInfo(quer).then(response => { + this.count = response.total; + this.loading = false; + }); + this.Departmentlist(); this.$modal.msgSuccess("删除成功"); }).catch(() => { }); },