Commit c6342626 authored by daywrite's avatar daywrite

解决第一轮bug

parent 9ba66384
.accounts-app {
label.el-form-item__label {
font-size: 12px;
position:relative;
font-weight: normal;
}
.is-required-end > .el-form-item__label:after {
content: "*";
color: #eb7567;
vertical-align: middle;
position:absolute;
top: 3px;
right: 3px;
}
.color-649FD7 {
color: #649FD7
}
......@@ -13,7 +26,7 @@
margin-bottom:2px;
}
.el-form-item__content {
line-height:5px;
// line-height:5px;
}
.el-checkbox__label {
color: white;
......
.schedule-app {
label.el-form-item__label {
font-size: 12px;
position:relative;
font-weight: normal;
}
.is-required-end > .el-form-item__label:after {
content: "*";
color: #eb7567;
vertical-align: middle;
position:absolute;
top: 3px;
right: 3px;
}
.mb20 {
margin-bottom:20px;
}
......
<template>
<section class="ec-page-wrapper" style="overflow: hidden; padding-bottom: 0px;">
<el-form label-width="120px" ref="form" :rules="rules" :model="model" class="ec-create-form">
<el-form-item label="姓名:" prop="name" class="ec-clear-left is-required">
<el-form-item label="姓名" prop="name" class="ec-clear-left is-required-end">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.name">
</el-input>
</el-form-item>
<el-form-item label="电子邮箱:" prop="email" class="ec-clear-left is-required">
<el-form-item label="电子邮箱" prop="email" class="ec-clear-left is-required-end">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.email">
</el-input>
</el-form-item>
<el-form-item label="性别:" prop="sex" class="ec-clear-left ec-form-item-lg is-required">
<el-form-item label="性别" prop="sex" class="ec-clear-left ec-form-item-lg is-required-end">
<el-select v-model="model.sex" size="small" placeholder="请选择">
<el-option v-for="(option, optKey) in accountSexArray"
:key="optKey"
......@@ -23,7 +23,7 @@
:value="option.key"></el-option>
</el-select>
</el-form-item>
<el-form-item label="生日:" prop="birth_date" class="ec-clear-left">
<el-form-item label="生日" prop="birth_date" class="ec-clear-left is-required-end">
<el-date-picker
size="small"
v-model="model.birth_date"
......@@ -33,7 +33,7 @@
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="入职日期:" prop="entry_date" class="ec-clear-left">
<el-form-item label="入职日期" prop="entry_date" class="ec-clear-left is-required-end">
<el-date-picker
size="small"
v-model="model.entry_date"
......@@ -43,7 +43,7 @@
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="部门:" prop="department_id" class="ec-clear-left ec-form-item-lg is-required">
<el-form-item label="部门" prop="department_id" class="ec-clear-left ec-form-item-lg is-required-end">
<el-select v-model="model.department_id" size="small" placeholder="请选择">
<el-option v-for="(option, optKey) in accountDepartmentIds"
:key="optKey"
......@@ -51,7 +51,7 @@
:value="option.key"></el-option>
</el-select>
</el-form-item>
<el-form-item label="职位:" prop="department_position_id" class="ec-clear-left ec-form-item-lg is-required">
<el-form-item label="职位" prop="department_position_id" class="ec-clear-left ec-form-item-lg is-required-end">
<el-select v-model="model.department_position_id" size="small" placeholder="请选择">
<el-option v-for="(option, optKey) in options.depPosIds"
:key="optKey"
......@@ -59,14 +59,14 @@
:value="option.key"></el-option>
</el-select>
</el-form-item>
<el-form-item label="手机:" prop="mobile" class="ec-clear-left is-required">
<el-form-item label="手机" prop="mobile" class="ec-clear-left">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.mobile">
</el-input>
</el-form-item>
<el-form-item label="座机:" prop="telephone_area_code" class="ec-clear-left is-required">
<el-form-item label="座机" prop="telephone_area_code" class="ec-clear-left">
<el-input
class="ec-input-normal"
size="mini"
......@@ -82,46 +82,46 @@
<el-input
class="ec-input-normal"
size="mini"
style="width: 100px;"
style="width: 97px;"
v-model.trim="model.telephone_extension_number">
</el-input>
</el-form-item>
<el-form-item label="身份证号码:" prop="id_number" class="ec-clear-left is-required">
<el-form-item label="身份证号码" prop="id_number" class="ec-clear-left">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.id_number">
</el-input>
</el-form-item>
<el-form-item label="籍贯:" prop="native_place" class="ec-clear-left is-required">
<el-form-item label="籍贯" prop="native_place" class="ec-clear-left">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.native_place">
</el-input>
</el-form-item>
<el-form-item label="毕业院校:" prop="graduate_school" class="ec-clear-left is-required">
<el-form-item label="毕业院校" prop="graduate_school" class="ec-clear-left">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.graduate_school">
</el-input>
</el-form-item>
<el-form-item label="专业:" prop="specialty" class="ec-clear-left is-required">
<el-form-item label="专业" prop="specialty" class="ec-clear-left">
<el-input
class="ec-input-normal"
size="mini"
v-model.trim="model.specialty">
</el-input>
</el-form-item>
<el-form-item label="学历:" prop="education" class="ec-clear-left is-required">
<el-form-item label="学历" prop="education" class="ec-clear-left">
<el-input
size="mini"
class="ec-input-normal"
v-model.trim="model.education">
</el-input>
</el-form-item>
<el-form-item label="用户角色:" prop="userRoles" class="ec-clear-left is-required">
<el-form-item label="用户角色" prop="userRoles" class="ec-clear-left is-required-end">
<el-checkbox-group v-model="model.userRoles">
<el-checkbox v-for="sItem in accountUserRoles" :key="sItem.name" :label="sItem.key"> {{ sItem.name }} </el-checkbox>
</el-checkbox-group>
......
......@@ -264,7 +264,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
requestAPI(api[`delete${this.type}`], { id })
requestAPI(api[`deleteaccount`], { id })
.then((res) => {
this.$message.success(`${deleteTip}成功`)
this._reload()
......
......@@ -70,7 +70,7 @@ export default {
save () {
let _params = Object.assign({}, setModule(this.model, 'Documents'))
let _apiUrl = !this.model.id ? api.saveDocNew : api.saveDocEdit
let _apiUrl = !this.model.id ? api.saveCaseNew : api.saveCaseEdit
!this.model.id && delete _params['Documents[id]']
this.$refs['form']._validate(() => {
requestAPI(Object.assign(_apiUrl, { method: 'POST' }), _params)
......
......@@ -83,11 +83,11 @@
<el-col :span="6" :xs="24">
<span class="obear-schedule-right__content border-dc3545">Case说明</span><span>{{ item.description }}</span>
</el-col>
<el-col :span="6" :xs="24">
<el-col :span="2" :xs="24">
</el-col>
<el-col :span="3" :xs="24">
<el-col :span="2" :xs="24">
</el-col>
<el-col :span="9" :xs="24">
<el-col :span="14" :xs="24" style="text-align: right;">
<slot name="opearate">
</slot>
</el-col>
......
......@@ -55,9 +55,9 @@
<el-col :span="6" :xs="24">
<span class="obear-schedule-right__content">情况说明</span><span>{{ item.complete_description }}</span>
</el-col>
<el-col :span="6" :xs="24">
<el-col :span="2" :xs="24">
</el-col>
<el-col :span="6" :xs="24">
<el-col :span="10" :xs="24" style="text-align: right">
<slot name="opearate">
</slot>
</el-col>
......
<template>
<section class="ec-page-wrapper" style="overflow: hidden; padding-bottom: 0px;">
<el-form label-width="120px" ref="form" :rules="rules" :model="model" class="ec-create-form">
<el-form label-width="140px" ref="form" :rules="rules" :model="model" class="ec-create-form">
<el-form-item label="客户名称" prop="actName" class="ec-clear-left" v-if="isCreate">
<dep-select
:query="model"
:inputWidth="340"
:startLoadInitial="false"/>
</el-form-item>
<el-form-item label="待办事项内容" prop="schedule_title" class="ec-clear-left ec-form-item-lg is-required fontWhite">
<el-form-item label="待办事项内容" prop="schedule_title" class="ec-clear-left ec-form-item-lg is-required-end fontWhite">
<el-input
class="ec-input-normal"
type="textarea"
......@@ -16,7 +16,7 @@
</el-input>
<span class="tips">待办事项内容不能为空</span>
</el-form-item>
<el-form-item label="待办时间" prop="time_type" class="ec-clear-left">
<el-form-item label="待办时间" prop="time_type" class="ec-clear-left is-required-end">
<el-select v-model="model.time_type" placeholder="请选择" size="small">
<el-option
v-for="item in timeTypeArray"
......@@ -70,7 +70,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="负责人" prop="created_by" class="ec-clear-left">
<el-form-item label="负责人" prop="created_by" class="ec-clear-left is-required-end">
<el-select v-model="model.created_by" placeholder="请选择" size="small">
<el-option
v-for="item in createdByArray"
......@@ -80,7 +80,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="是否共享" prop="is_public" class="ec-clear-left">
<el-form-item label="是否共享" prop="is_public" class="ec-clear-left is-required-end">
<single-radio
:form-item="model.is_public"
:options-list="is_public_array"
......
......@@ -186,7 +186,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
requestAPI(api[`delete${this.type}`], { id })
requestAPI(api[`deleteservice`], { id })
.then((res) => {
this.$message.success(`${deleteTip}成功`)
this._reload()
......
......@@ -61,7 +61,7 @@ export default {
},
deleteEvent (item) {
this.$parent.deleteEvent(item)
this.$parent.deleteEvent(item.id)
}
}
}
......
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