短信库 修改

This commit is contained in:
shidongli 2024-02-28 16:28:04 +08:00
parent 4a214d068a
commit 977671add8
2 changed files with 19 additions and 22 deletions

View File

@ -1003,13 +1003,10 @@ export default {
getScript(id).then(response => { getScript(id).then(response => {
this.form = response.data; this.form = response.data;
this.diseaseTypeName = response.data.diseaseTypeName this.diseaseTypeName = response.data.diseaseTypeName
// this.form.diseaseTypeId=response.data.diseaseTypeId
// this.form.departmentId = response.data.departmentId
this.departmentName = response.data.departmentName this.departmentName = response.data.departmentName
this.open = true; this.open = true;
this.title = "修改话术信息"; this.title = "修改话术信息";
}); });
console.log(this.form,'00000')
} }
}, },
/** 提交按钮 */ /** 提交按钮 */

View File

@ -186,7 +186,7 @@
<el-input v-model="form.templateId" placeholder="请输入模板ID" /> <el-input v-model="form.templateId" placeholder="请输入模板ID" />
</el-form-item> </el-form-item>
<el-form-item label="模板内容" prop="templateContent"> <el-form-item label="模板内容" prop="templateContent">
<el-input v-model="form.templateContent" placeholder="请输入模板ID" /> <el-input v-model="form.templateContent" placeholder="请输入模板内容" type="textarea" />
<!-- <editor v-model="form.templateContent" :min-height="192"/> --> <!-- <editor v-model="form.templateContent" :min-height="192"/> -->
</el-form-item> </el-form-item>
@ -587,7 +587,7 @@ export default {
listWechatTemplateNum(this.querydepartmen).then(response => { listWechatTemplateNum(this.querydepartmen).then(response => {
this.DepartmentoList = response.data; this.DepartmentoList = response.data;
// this.count=this.DepartmentoList.length // this.count=this.DepartmentoList.length
console.log(this.DepartmentoList)
// this.total = response.total; // this.total = response.total;
this.loading = false; this.loading = false;
@ -597,7 +597,7 @@ export default {
// //
itemdata(item) { itemdata(item) {
if (item) { if (item) {
console.log(item, '9999')
this.itemname = item.id this.itemname = item.id
this.departmentName = item.departmentName this.departmentName = item.departmentName
this.loading = true; this.loading = true;
@ -646,7 +646,6 @@ export default {
nurseclick(row) { nurseclick(row) {
this.form.departmentId = row.departmentCode; this.form.departmentId = row.departmentCode;
this.departmentName = row.departmentName; this.departmentName = row.departmentName;
console.log(this.departmentName, '0000')
this.innerVisibleshow = false; this.innerVisibleshow = false;
}, },
@ -662,12 +661,10 @@ export default {
}, },
// //
clickdisease() { clickdisease() {
console.log(this.form)
if (this.departmentName == '请选择科室') { if (this.departmentName == '请选择科室') {
this.$modal.msgError("请先选择科室"); this.$modal.msgError("请先选择科室");
} else { } else {
console.log(this.departmentName, '00000')
this.diseaseshowst = true; this.diseaseshowst = true;
this.querydisease.departmentId = this.form.departmentId this.querydisease.departmentId = this.form.departmentId
this.infodisease() this.infodisease()
@ -678,7 +675,6 @@ export default {
this.form.diseaseTypeId = row.diseaseTypeCode; this.form.diseaseTypeId = row.diseaseTypeCode;
this.diseaseTypeName = row.diseaseTypeName; this.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false; this.diseaseshowst = false;
console.log(this.diseaseTypeName, '1121000')
}, },
// //
@ -740,7 +736,6 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
console.log(this.form)
if (this.itemname) { if (this.itemname) {
this.form.departmentName = this.departmentName this.form.departmentName = this.departmentName
this.form.departmentId=this.itemname this.form.departmentId=this.itemname
@ -755,20 +750,25 @@ export default {
this.open = true; this.open = true;
this.title = "新增微信模板"; this.title = "新增微信模板";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); if (!this.itemname) {
const id = row.id || this.ids this.$modal.msgError("请先选择科室");
getTemplate(id).then(response => { } else {
this.form = response.data; // this.reset();
this.open = true; const id = row.id || this.ids
this.title = "修改微信模板信息"; // 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() { submitForm() {
console.log(this.form)
console.log(this.diseaseTypeName)
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {