|
@@ -205,7 +205,7 @@
|
|
|
{{ item.title | ellipsis_title }}
|
|
|
<!-- </el-tooltip> -->
|
|
|
<br>
|
|
|
- {{ item.mtime }}
|
|
|
+ {{ item.mtime | dateStr }}
|
|
|
</div>
|
|
|
<p style="white-space:pre-line;">{{ item.description }}</p></li>
|
|
|
</ul>
|
|
@@ -358,7 +358,10 @@
|
|
|
<el-button type="primary" @click="Milepost_Submission(form)">提 交</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="修改项目" :visible.sync="modify_project" width="70%">
|
|
|
+ <el-dialog :visible.sync="modify_project" width="70%">
|
|
|
+ <div style="margin: 0% 7% 2% 2%; font-size: 18px; white-space: nowrap;color:rgba(51,59,74,1);">
|
|
|
+ <b style="color: #409EFF;margin: 0 0.5%;font-weight: 600; ">I</b>{{ '修改项目' }}
|
|
|
+ </div>
|
|
|
<el-form
|
|
|
ref="project_from"
|
|
|
:model="project_from"
|
|
@@ -573,6 +576,12 @@ export default {
|
|
|
RequirementCreate
|
|
|
},
|
|
|
filters: {
|
|
|
+ dateStr(value) {
|
|
|
+ if (!value) return ''
|
|
|
+ var date = value.split('T')
|
|
|
+ var a = date[1].split('.')
|
|
|
+ return date[0] + ' ' + a[0]
|
|
|
+ },
|
|
|
ellipsis(value) {
|
|
|
if (!value) return ''
|
|
|
if (value.length > 20) {
|
|
@@ -847,8 +856,12 @@ export default {
|
|
|
// 里程碑(提交)
|
|
|
this.$refs['form'].validate(valid => {
|
|
|
if (valid) {
|
|
|
- var milestone = e
|
|
|
+ var milestone = {}
|
|
|
milestone.projectId = this.projectId[1]
|
|
|
+ milestone.id = e.id
|
|
|
+ milestone.title = e.title
|
|
|
+ milestone.mtime = e.mtime
|
|
|
+ milestone.description = e.description
|
|
|
var user = {
|
|
|
name: this.userNames,
|
|
|
ename: this.userInformation,
|
|
@@ -1064,6 +1077,10 @@ export default {
|
|
|
border-radius: 8px;
|
|
|
}
|
|
|
|
|
|
+.el-dialog__header {
|
|
|
+ padding: 0px 0px 0px;
|
|
|
+}
|
|
|
+
|
|
|
.footer {
|
|
|
text-align: right;
|
|
|
margin: 1%;
|