大宝管理后台代码
jhzh
2024-04-07 8477322adb238a81c46ffdc1fbf83628713aa389
src/views/newshares/newshareslist.vue
@@ -214,7 +214,7 @@
              </a-date-picker>
            </a-form-item>
          </a-col>
         <!-- <a-col :md="12" :lg="12" :sm="12">
          <!-- <a-col :md="12" :lg="12" :sm="12">
            <a-form-item label="预估价格" :labelCol="labelCol" :wrapperCol="wrapperCol">
              <a-input
                placeholder="请输入预估价格"
@@ -290,7 +290,7 @@
                    customRender: (text, row, index) => {
                        return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
                    }
                },{
                }, {
                    title: '上市时间',
                    dataIndex: 'listDate',
                    align: 'center',
@@ -305,7 +305,7 @@
                    scopedSlots: { customRender: 'action' }
                }
            ],
            disabledDate:true,
            disabledDate: true,
            // 表头
            pagination: {
                total: 0,
@@ -341,7 +341,7 @@
            addUserdialog: false,
            addUserDialogloading: false,
            fields: ['name', 'code', 'price', 'orderNumber', 'zt', 'subscribeTime', 'subscriptionTime', 'type', 'stockType', 'code','pe','listDate'],
            fields: ['name', 'code', 'price', 'orderNumber', 'zt', 'subscribeTime', 'subscriptionTime', 'type', 'stockType', 'code', 'pe', 'listDate'],
            currentdetail: '',
            subscribeTime: '',
            subscriptionTime: ''
@@ -384,14 +384,13 @@
        geteditStock (val) {
            this.currentdetail = val
            this.addUserdialog = true
            var currentTime = new Date();
            var currentTime = new Date()
            this.fields.forEach(v => this.addUserform.getFieldDecorator(v))
            this.addUserform.setFieldsValue(pick(val, this.fields))
            this.addUserform.setFieldsValue({ subscriptionTime: moment(val.subscriptionTime?val.subscriptionTime:currentTime).format('YYYY-MM-DD HH:mm:ss') })
            this.addUserform.setFieldsValue({ subscribeTime: moment(val.subscribeTime?val.subscribeTime:currentTime).format('YYYY-MM-DD HH:mm:ss') })
            this.addUserform.setFieldsValue({ subscriptionTime: moment(val.subscriptionTime ? val.subscriptionTime : currentTime).format('YYYY-MM-DD HH:mm:ss') })
            this.addUserform.setFieldsValue({ subscribeTime: moment(val.subscribeTime ? val.subscribeTime : currentTime).format('YYYY-MM-DD HH:mm:ss') })
             // this.subscribeTime = moment(val.subscribeTime).format('YYYY-MM-DD HH:mm:ss')
             // this.subscriptionTime  = moment(val.subscriptionTime).format('YYYY-MM-DD HH:mm:ss')
        },
        CanceladdUserdialog () {
            this.addUserdialog = false
@@ -400,7 +399,7 @@
        },
        OkaddUserdialog () {
            const form = this.$refs.addUserform.form
            form.validateFields((errors, values) => {
                if (!errors) {
                    if (this.currentdetail != '') {