| | |
| | | <!-- dialog -->
|
| | | <el-dialog class="prop_dialog" v-if="isRender" :title="dialogTitle" :visible.sync="asyncVisible" width="660px"
|
| | | @close="closeForm">
|
| | |
|
| | | <cpnForm :form-config="formConfig"></cpnForm>
|
| | | <!-- form组件未开发完 -->
|
| | | <!-- <cpnForm :form-config="formConfig"></cpnForm> -->
|
| | |
|
| | | <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="auto" class="rule_form">
|
| | | <el-form-item label="项目名称:" prop="proId">
|
| | |
| | | <script>
|
| | | import {throttle} from '../../plugins/public'; // 导入节流、动态切换组件尺寸方法
|
| | | import cpnTable from '@/components/element/Table'
|
| | | import cpnForm from '@/components/element/Form'
|
| | | // import cpnForm from '@/components/element/Form'
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | |
| | | }
|
| | | ]
|
| | | },
|
| | | // formConfig: {
|
| | | // formModels: {
|
| | | // proId: '', // 项目名称id
|
| | | // mileage: '', // 起讫里程
|
| | | // unitProjectName: '', // 单位工程名称
|
| | | // segmentAdmin: '', // 需求负责人
|
| | | // shieldEnp: '', // 盾构单位
|
| | | // startTime: null, // 开始时间
|
| | | // endTime: null, // 结束时间
|
| | | // duration: '', // 工期
|
| | | // station: '', // 站点
|
| | | // segmentList: [], // 标段需求
|
| | | // },
|
| | | // formItems: [
|
| | | // {
|
| | | // type: 'input', label: '用户id'
|
| | | // },
|
| | | // {
|
| | | // type: 'input', label: '用户名'
|
| | | // },
|
| | |
|
| | | formConfig: {
|
| | | formModels: {
|
| | | proId: '', // 项目名称id
|
| | | mileage: '', // 起讫里程
|
| | | unitProjectName: '', // 单位工程名称
|
| | | segmentAdmin: '', // 需求负责人
|
| | | shieldEnp: '', // 盾构单位
|
| | | startTime: null, // 开始时间
|
| | | endTime: null, // 结束时间
|
| | | duration: '', // 工期
|
| | | station: '', // 站点
|
| | | segmentList: [], // 标段需求
|
| | | },
|
| | | formItems: [
|
| | | {
|
| | | type: 'input', label: '用户id'
|
| | | },
|
| | | {
|
| | | type: 'input', label: '用户名'
|
| | | },
|
| | |
|
| | | {
|
| | | type: 'input', label: '真实姓名'
|
| | | },
|
| | | {
|
| | | type: 'input', label: '电话号码'
|
| | | },
|
| | | {
|
| | | type: 'select', label: '用户状态', options: [
|
| | | {label: '禁用', value: 0},
|
| | | {label: '启用', value: 1}
|
| | | ]
|
| | | },
|
| | | {
|
| | | type: 'datepicker', label: '创建时间', otherOptions: {
|
| | | startPlaceholder: '开始时间',
|
| | | endPlaceholder: '结束时间',
|
| | | type: 'daterange',
|
| | | 'unlink-panels': true
|
| | | }
|
| | | }
|
| | | ],
|
| | | itemColLayout: {
|
| | | span: 8
|
| | | }
|
| | | }
|
| | | // {
|
| | | // type: 'input', label: '真实姓名'
|
| | | // },
|
| | | // {
|
| | | // type: 'input', label: '电话号码'
|
| | | // },
|
| | | // {
|
| | | // type: 'select', label: '用户状态', options: [
|
| | | // {label: '禁用', value: 0},
|
| | | // {label: '启用', value: 1}
|
| | | // ]
|
| | | // },
|
| | | // {
|
| | | // type: 'datepicker', label: '创建时间', otherOptions: {
|
| | | // startPlaceholder: '开始时间',
|
| | | // endPlaceholder: '结束时间',
|
| | | // type: 'daterange',
|
| | | // 'unlink-panels': true
|
| | | // }
|
| | | // }
|
| | | // ],
|
| | | // itemColLayout: {
|
| | | // span: 8
|
| | | // }
|
| | | // }
|
| | | }
|
| | | },
|
| | | components: {
|
| | | cpnTable,
|
| | | cpnForm
|
| | | // cpnForm
|
| | | },
|
| | | computed: {
|
| | | isUpdate() {
|