Commit c5fcce14 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents ffd81dd3 7596f471
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
>+ 添加词汇</el-button >+ 添加词汇</el-button
> >
</div> </div>
<div class="mt20"> <!-- <div class="mt20">
<p class="title mb20">空白打印材料展示数量</p> <p class="title mb20">空白打印材料展示数量</p>
<el-input <el-input
size="small" size="small"
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
> >
<template slot="suffix"></template> <template slot="suffix"></template>
</el-input> </el-input>
</div> </div> -->
<div class="mt50"> <div class="mt50">
<el-button size="small" type="primary" @click="handleOk" <el-button size="small" type="primary" @click="handleOk"
>确定</el-button >确定</el-button
...@@ -84,13 +84,12 @@ export default { ...@@ -84,13 +84,12 @@ export default {
data() { data() {
return { return {
siteId: local.getLocal("sampleSiteId") siteId: local.getLocal("sampleSiteId")
? local.getLocal("sampleSiteId") ? local.getLocal("sampleSiteId")
: "", : "",
inputVisible: false, inputVisible: false,
inputValue: "", inputValue: "",
baseSetInfo: { baseSetInfo: {
hotwords: [], hotwords: [],
printDisplay: "",
}, },
}; };
}, },
...@@ -101,13 +100,11 @@ export default { ...@@ -101,13 +100,11 @@ export default {
// 获取基础设置 // 获取基础设置
async getBaseSetInfo() { async getBaseSetInfo() {
let res = await getBaseSetInfo({ let res = await getBaseSetInfo({
siteId: this.siteId siteId: this.siteId,
}); });
console.log("res:",res)
if (res.data.code === 1) { if (res.data.code === 1) {
console.log("len:",res.data.data.data) if (res.data.data.data.length > 0) {
if(res.data.data.data.length>0){ this.baseSetInfo.hotwords = res.data.data.data[0].hotwords.split(",");
this.baseSetInfo.hotwords=res.data.data.data[0].hotwords.split(",")
this.baseSetInfo.printDisplay = res.data.data.data[0].printDisplay; this.baseSetInfo.printDisplay = res.data.data.data[0].printDisplay;
} }
} }
...@@ -142,7 +139,7 @@ export default { ...@@ -142,7 +139,7 @@ export default {
let res = await saveBaseSet({ let res = await saveBaseSet({
...this.baseSetInfo, ...this.baseSetInfo,
hotwords: this.baseSetInfo.hotwords.join(","), hotwords: this.baseSetInfo.hotwords.join(","),
siteId:this.siteId siteId: this.siteId,
}); });
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
......
...@@ -154,7 +154,6 @@ export default { ...@@ -154,7 +154,6 @@ export default {
handleChange(val) { handleChange(val) {
let name = this.departmentList.find((v) => v.deptNumber === val).name; let name = this.departmentList.find((v) => v.deptNumber === val).name;
this.form.deptName = name; this.form.deptName = name;
console.log(this.form.deptName);
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment