| | |
| | | <div class="projectintroduction"> |
| | | <div class="item"> |
| | | <div class="itemName">项目名称:</div> |
| | | <div class="itemValue" :title="result.projname"> |
| | | <div class="itemValue" :title="projname"> |
| | | {{ |
| | | result.projname.length > 15 |
| | | ? result.projname.substring(0, 15) |
| | | : result.projname |
| | | projname.length > 15 |
| | | ? projname.substring(0, 15) |
| | | : projname |
| | | }} |
| | | </div> |
| | | </div> |
| | |
| | | <div class="itemName">工程内容:</div> |
| | | <div class="itemValue"> |
| | | {{ |
| | | result.contents.length > 15 |
| | | result.contents && result.contents.length > 15 |
| | | ? result.contents.substring(0, 15) |
| | | : result.contents |
| | | }} |
| | |
| | | remarks: "测试用,内容虚构", |
| | | updateuser: 1, |
| | | }, |
| | | projname: "西气东输三线(中卫-枣阳)", |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | this.getDataList(params) |
| | | }) |
| | | this.$bus.$on("changeProject", name => { |
| | | this.projname = name |
| | | }) |
| | | }, |
| | | methods: { |
| | | async getDataList(params) { |
| | | const res = await selectProjectInfo(params) |
| | | if (res.code == 200) { |
| | | this.result = res.result |
| | | if (res.result.length > 0) { |
| | | this.result = res.result[0] |
| | | } |
| | | } |
| | | }, |
| | | //获取时间 |