Commit 4ffeacd7 by 田爽

政策法规显示时间

parent 6f2d314b
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.publicdate" v-model="dataForm.publicdate"
value-format='yyyy-MM-dd HH:mm:ss' value-format='yyyy-MM-dd'
type="datetime" type="date"
placeholder="请选择发布"> placeholder="请选择发布">
</el-date-picker> </el-date-picker>
<p v-show="showInfo">{{dataForm.publicdate}}</p> <p v-show="showInfo">{{dataForm.publicdate}}</p>
...@@ -64,13 +64,13 @@ ...@@ -64,13 +64,13 @@
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.startdate" v-model="dataForm.startdate"
value-format='yyyy-MM-dd HH:mm:ss' value-format='yyyy-MM-dd'
type="datetime" type="date"
placeholder="请选择实施日期"> placeholder="请选择实施日期">
</el-date-picker> </el-date-picker>
<p v-show="showInfo">{{dataForm.startdate}}</p> <p v-show="showInfo">{{dataForm.startdate}}</p>
</el-form-item> </el-form-item>
<el-form-item label="备注:" prop="brief"> <el-form-item label="备注:" prop="brief">
<el-input type="textarea" rows="5" v-model="dataForm.brief" placeholder="请输入简介" v-show="!showInfo"></el-input> <el-input type="textarea" rows="5" v-model="dataForm.brief" placeholder="请输入简介" v-show="!showInfo"></el-input>
<p v-show="showInfo">{{dataForm.brief}}</p> <p v-show="showInfo">{{dataForm.brief}}</p>
...@@ -204,8 +204,8 @@ export default { ...@@ -204,8 +204,8 @@ export default {
this.loading = false this.loading = false
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataForm = data.policy this.dataForm = data.policy
this.dataForm.publicdate = data.policy.releasedate // this.dataForm.publicdate = data.policy.releasedate
this.dataForm.startdate = data.policy.updatedate // this.dataForm.startdate = data.policy.updatedate
this.ueditor.value = this.dataForm.content this.ueditor.value = this.dataForm.content
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
......
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