|
@@ -164,14 +164,24 @@
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple">发布时间</div></el-col>
|
|
<el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple">发布时间</div></el-col>
|
|
|
- <el-col :span="19"><div class="grid-content bg-purple"> <el-date-picker v-model="dialogForm.fa_bu_shi_jian_" value-format="timestamp" type="date" placeholder="选择日期" :picker-options="{ disabledDate(time) { return time.getTime() > Date.now(); } }" style="width:100%" /></div></el-col>
|
|
|
|
|
|
|
+ <el-col :span="19">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="dialogForm.fa_bu_shi_jian_"
|
|
|
|
|
+ :picker-options="{ disabledDate(time) { return time.getTime() > Date.now(); } }"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ placeholder="选择日期时间"
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
|
|
|
+ style="width:100%"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple">生效时间</div></el-col>
|
|
<el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple">生效时间</div></el-col>
|
|
|
- <el-col :span="19"><div class="grid-content bg-purple"> <el-date-picker v-model="dialogForm.sheng_xiao_shi_" value-format="timestamp" type="date" placeholder="选择日期" :picker-options="{ disabledDate(time) { return time.getTime() <= Date.now(); } }" style="width:100%" /></div></el-col>
|
|
|
|
|
|
|
+ <!-- <el-col :span="19"><div class="grid-content bg-purple"> <el-date-picker v-model="dialogForm.sheng_xiao_shi_" value-format="timestamp" type="date" placeholder="选择日期" :picker-options="{ disabledDate(time) { return time.getTime() <= Date.now(); } }" style="width:100%" /></div></el-col> -->
|
|
|
|
|
+ <el-col :span="19"> <el-date-picker v-model="dialogForm.sheng_xiao_shi_" :picker-options="{ disabledDate(time) { return time.getTime() <= Date.now(); } }" type="date" placeholder="选择日期" style="width:100%" /></el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -420,9 +430,9 @@ export default {
|
|
|
return `${year}-${month}-${day}`
|
|
return `${year}-${month}-${day}`
|
|
|
},
|
|
},
|
|
|
dialogVisibleClick () {
|
|
dialogVisibleClick () {
|
|
|
- // console.log('点击确定', this.dataShow(this.dialogForm.sheng_xiao_shi_))
|
|
|
|
|
|
|
+ console.log('点击确定', this.dialogForm)
|
|
|
this.dialogForm.sheng_xiao_shi_ = this.dataShow(this.dialogForm.sheng_xiao_shi_)
|
|
this.dialogForm.sheng_xiao_shi_ = this.dataShow(this.dialogForm.sheng_xiao_shi_)
|
|
|
- this.dialogForm.fa_bu_shi_jian_ = this.dataShow(this.dialogForm.fa_bu_shi_jian_)
|
|
|
|
|
|
|
+ // this.dialogForm.fa_bu_shi_jian_ = this.dataShow(this.dialogForm.fa_bu_shi_jian_)
|
|
|
const params = {
|
|
const params = {
|
|
|
tableName: 't_wjxxgxb',
|
|
tableName: 't_wjxxgxb',
|
|
|
paramWhere: [this.dialogForm]
|
|
paramWhere: [this.dialogForm]
|
|
@@ -444,19 +454,24 @@ export default {
|
|
|
updateDate (data) {
|
|
updateDate (data) {
|
|
|
console.log('data', data)
|
|
console.log('data', data)
|
|
|
this.dialogVisible1 = true
|
|
this.dialogVisible1 = true
|
|
|
- const sql = `select * from t_wjxxb WHERE id_='${data.row.id}'`
|
|
|
|
|
- this.$common.request('sql', sql).then(res => {
|
|
|
|
|
- console.log('res', res.variables.data[0])
|
|
|
|
|
- this.dialogForm.wen_jian_lei_xing = res.variables.data[0].wen_jian_lei_xing
|
|
|
|
|
- this.dialogForm.wen_jian_bian_hao = res.variables.data[0].wen_jian_bian_hao
|
|
|
|
|
- this.dialogForm.yuan_wen_jian_min = res.variables.data[0].wen_jian_ming_che
|
|
|
|
|
- this.dialogForm.fa_bu_shi_jian_ = res.variables.data[0].fa_bu_shi_jian_
|
|
|
|
|
- // this.dialogForm.wen_jian_fu_jian = res.variables.data[0].wen_jian_fu_jian_
|
|
|
|
|
- this.dialogForm.ji_lu_id_ = res.variables.data[0].id_
|
|
|
|
|
- this.dialogForm.yuan_wen_jian_id_ = res.variables.data[0].wen_jian_fu_jian_
|
|
|
|
|
- }).catch(err => {
|
|
|
|
|
- console.log(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.dialogForm.wen_jian_lei_xing = data.row.wen_jian_xi_lei_
|
|
|
|
|
+ this.dialogForm.wen_jian_bian_hao = data.row.wen_jian_bian_hao
|
|
|
|
|
+ this.dialogForm.yuan_wen_jian_min = data.row.wen_jian_ming_che
|
|
|
|
|
+ // this.dialogForm.fa_bu_shi_jian_ = data.row.fa_bu_shi_jian_
|
|
|
|
|
+ // this.dialogForm.wen_jian_fu_jian = data.row.fu_jian_
|
|
|
|
|
+ // const sql = `select * from t_wjxxb WHERE id_='${data.row.id}'`
|
|
|
|
|
+ // this.$common.request('sql', sql).then(res => {
|
|
|
|
|
+ // console.log('res', res.variables.data[0])
|
|
|
|
|
+ // this.dialogForm.wen_jian_lei_xing = res.variables.data[0].wen_jian_lei_xing
|
|
|
|
|
+ // this.dialogForm.wen_jian_bian_hao = res.variables.data[0].wen_jian_bian_hao
|
|
|
|
|
+ // this.dialogForm.yuan_wen_jian_min = res.variables.data[0].wen_jian_ming_che
|
|
|
|
|
+ // this.dialogForm.fa_bu_shi_jian_ = res.variables.data[0].fa_bu_shi_jian_
|
|
|
|
|
+ // // this.dialogForm.wen_jian_fu_jian = res.variables.data[0].wen_jian_fu_jian_
|
|
|
|
|
+ // this.dialogForm.ji_lu_id_ = res.variables.data[0].id_
|
|
|
|
|
+ // this.dialogForm.yuan_wen_jian_id_ = res.variables.data[0].wen_jian_fu_jian_
|
|
|
|
|
+ // }).catch(err => {
|
|
|
|
|
+ // console.log(err)
|
|
|
|
|
+ // })
|
|
|
},
|
|
},
|
|
|
handleClose (done) {
|
|
handleClose (done) {
|
|
|
this.$confirm('确认关闭?')
|
|
this.$confirm('确认关闭?')
|