短信库 修改

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 => {
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')
}
},
/** 提交按钮 */

View File

@ -186,7 +186,7 @@
<el-input v-model="form.templateId" placeholder="请输入模板ID" />
</el-form-item>
<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"/> -->
</el-form-item>
@ -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
@ -757,18 +752,23 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
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 = "修改微信模板信息";
this.title = "修改话术信息";
});
}
},
/** 提交按钮 */
submitForm() {
console.log(this.form)
console.log(this.diseaseTypeName)
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {