短信库 修改
This commit is contained in:
parent
4a214d068a
commit
977671add8
@ -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')
|
||||
}
|
||||
},
|
||||
/** 提交按钮 */
|
||||
|
||||
@ -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
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user