Commit 77cc3e6f authored by 盖献康's avatar 盖献康

检查管理-bug

parent dc1af00c
......@@ -419,3 +419,15 @@ input::-webkit-input-placeholder {
outline: none;
border-color: #5FB54B;
}
.el-tabs__active-bar {
background-color: #5FB54B;
}
.el-tabs__item.is-active {
color: #5FB54B;
}
.el-tabs__item:hover {
color: #5FB54B;
cursor: pointer;
}
......@@ -8,15 +8,15 @@
<span>关于我们:</span>
</el-col>
<el-col v-if="isEdit===true" :span="19">
<rich-text v-model="privacyPolicy.content" :height="500" />
<rich-text v-model="privacyPolicy.content" :height="500" :content="'请输入关于我们'" />
</el-col>
<el-col v-if="isEdit===false" :span="19">
<rich-text v-model="privacyPolicy.content" :height="500" :read-only="true" />
<rich-text v-model="privacyPolicy.content" :height="500" :read-only="true" :content="'请输入关于我们'" />
</el-col>
</el-row>
<el-row v-show="isEdit">
<el-col style="display: flex;justify-content: left;margin: 20px 0 0 135px">
<el-button type="primary" @click="submit">提 交</el-button>
<el-button class="queryBtn" @click="submit">提 交</el-button>
</el-col>
</el-row>
</div>
......@@ -64,14 +64,14 @@ export default {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('修改成功')
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('修改成功')
this.$modal.msgSuccess('编辑成功')
}
})
}
......
......@@ -8,15 +8,15 @@
<span>用户协议:</span>
</el-col>
<el-col v-if="isEdit===true" :span="19">
<rich-text v-model="privacyPolicy.content" :height="500" />
<rich-text v-model="privacyPolicy.content" :height="500" :content="'请输入隐私政策'" />
</el-col>
<el-col v-if="isEdit===false" :span="19">
<rich-text v-model="privacyPolicy.content" :height="500" :read-only="true" />
<rich-text v-model="privacyPolicy.content" :height="500" :read-only="true" :content="'请输入隐私政策'" />
</el-col>
</el-row>
<el-row v-show="isEdit">
<el-col style="display: flex;justify-content: left;margin: 20px 0 0 135px">
<el-button type="primary" @click="submit">提 交</el-button>
<el-button class="queryBtn" @click="submit">提 交</el-button>
</el-col>
</el-row>
</div>
......@@ -64,14 +64,14 @@ export default {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('修改成功')
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('修改成功')
this.$modal.msgSuccess('编辑成功')
}
})
}
......
......@@ -55,6 +55,10 @@ export default {
type: {
type: String,
default: 'url'
},
content: {
type: String,
default: '请输入内容'
}
},
data() {
......@@ -84,7 +88,7 @@ export default {
// ["link", "image", "video"] // 链接、图片、视频
]
},
placeholder: '请输入内容',
placeholder: this.content,
readOnly: this.readOnly
}
}
......
......@@ -8,15 +8,15 @@
<span>用户协议:</span>
</el-col>
<el-col v-if="isEdit===true" :span="19">
<rich-text v-model="privacyPolicy.content" :height="500" />
<rich-text v-model="privacyPolicy.content" :height="500" :content="'请输入用户协议'" />
</el-col>
<el-col v-if="isEdit===false" :span="19">
<rich-text v-model="privacyPolicy.content" :height="500" :read-only="true" />
<rich-text v-model="privacyPolicy.content" :height="500" :content="'请输入用户协议'" :read-only="true" />
</el-col>
</el-row>
<el-row v-show="isEdit">
<el-col style="display: flex;justify-content: left;margin: 20px 0 0 135px">
<el-button type="primary" @click="submit">提 交</el-button>
<el-button class="queryBtn" @click="submit">提 交</el-button>
</el-col>
</el-row>
</div>
......@@ -64,14 +64,14 @@ export default {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('修改成功')
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('修改成功')
this.$modal.msgSuccess('编辑成功')
}
})
}
......
......@@ -84,7 +84,7 @@
<el-table v-loading="loading" :data="manageList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center" prop="petOwnersId" />
<el-table-column label="序号" type="index" align="center" prop="petOwnersId" />
<el-table-column label="检查类型" align="center" prop="petNickname" />
<el-table-column label="检查项目" align="center" prop="petBreed" />
<el-table-column label="宠物昵称" align="center" prop="petSex" />
......
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