diff --git a/src/views/manage/script/index.vue b/src/views/manage/script/index.vue
index eed5307..7396528 100644
--- a/src/views/manage/script/index.vue
+++ b/src/views/manage/script/index.vue
@@ -1003,13 +1003,10 @@ export default {
getScript(id).then(response => {
this.form = response.data;
this.diseaseTypeName = response.data.diseaseTypeName
- // this.form.diseaseTypeId=response.data.diseaseTypeId
- // this.form.departmentId = response.data.departmentId
this.departmentName = response.data.departmentName
this.open = true;
this.title = "修改话术信息";
});
- console.log(this.form,'00000')
}
},
/** 提交按钮 */
diff --git a/src/views/manage/template/index.vue b/src/views/manage/template/index.vue
index 220a5f3..9d6f9c6 100644
--- a/src/views/manage/template/index.vue
+++ b/src/views/manage/template/index.vue
@@ -186,7 +186,7 @@
-
+
@@ -587,7 +587,7 @@ export default {
listWechatTemplateNum(this.querydepartmen).then(response => {
this.DepartmentoList = response.data;
// this.count=this.DepartmentoList.length
- console.log(this.DepartmentoList)
+
// this.total = response.total;
this.loading = false;
@@ -597,7 +597,7 @@ export default {
// 左侧科室
itemdata(item) {
if (item) {
- console.log(item, '9999')
+
this.itemname = item.id
this.departmentName = item.departmentName
this.loading = true;
@@ -646,7 +646,6 @@ export default {
nurseclick(row) {
this.form.departmentId = row.departmentCode;
this.departmentName = row.departmentName;
- console.log(this.departmentName, '0000')
this.innerVisibleshow = false;
},
@@ -662,12 +661,10 @@ export default {
},
// 点击病种
clickdisease() {
- console.log(this.form)
if (this.departmentName == '请选择科室') {
this.$modal.msgError("请先选择科室");
} else {
- console.log(this.departmentName, '00000')
this.diseaseshowst = true;
this.querydisease.departmentId = this.form.departmentId
this.infodisease()
@@ -678,7 +675,6 @@ export default {
this.form.diseaseTypeId = row.diseaseTypeCode;
this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false;
- console.log(this.diseaseTypeName, '1121000')
},
// 重置
@@ -740,7 +736,6 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
- console.log(this.form)
if (this.itemname) {
this.form.departmentName = this.departmentName
this.form.departmentId=this.itemname
@@ -755,20 +750,25 @@ export default {
this.open = true;
this.title = "新增微信模板";
},
- /** 修改按钮操作 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids
- getTemplate(id).then(response => {
- this.form = response.data;
- this.open = true;
- this.title = "修改微信模板信息";
- });
+ /** 修改按钮操作 */
+ handleUpdate(row) {
+ if (!this.itemname) {
+ this.$modal.msgError("请先选择科室");
+ } else {
+ // this.reset();
+ const id = row.id || this.ids
+ // this.getDisease();
+ getTemplate(id).then(response => {
+ this.form = response.data;
+ this.diseaseTypeName = response.data.diseaseTypeName
+ this.departmentName = response.data.departmentName
+ this.open = true;
+ this.title = "修改话术信息";
+ });
+ }
},
/** 提交按钮 */
submitForm() {
- console.log(this.form)
- console.log(this.diseaseTypeName)
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {