Explorar o código

Merge remote-tracking branch 'origin/master'

%!s(int64=5) %!d(string=hai) anos
pai
achega
062c325ccb

+ 9 - 9
ys_vue/src/views/mold/moldDownload.vue

@@ -44,35 +44,35 @@
             <router-link :to="'/moldList/' + scope.row.id" tag="span" style="color: #409eff;cursor: pointer;">{{scope.row.modelName}}</router-link>
             <router-link :to="'/moldList/' + scope.row.id" tag="span" style="color: #409eff;cursor: pointer;">{{scope.row.modelName}}</router-link>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column width="200" label="模具3D图档">
+      <el-table-column width="250" label="模具3D图档">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <span v-if="scope.row.mould3DFiles.length == 0">未上传</span>
           <span v-if="scope.row.mould3DFiles.length == 0">未上传</span>
           <span v-else-if="scope.row.mould3DFilesState">已通过</span>
           <span v-else-if="scope.row.mould3DFilesState">已通过</span>
           <span v-else>未通过</span>
           <span v-else>未通过</span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column width="200" label="模具2D图档">
+      <el-table-column width="250" label="模具2D图档">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <span v-if="scope.row.mould2DFiles.length == 0">未上传</span>
           <span v-if="scope.row.mould2DFiles.length == 0">未上传</span>
           <span v-else-if="scope.row.mould2DFilesState">已通过</span>
           <span v-else-if="scope.row.mould2DFilesState">已通过</span>
           <span v-else>未通过</span>
           <span v-else>未通过</span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column width="200" label="零件3D图档">
+      <el-table-column width="250" label="零件3D图档">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <span v-if="scope.row.sparepart3DFiles.length == 0">未上传</span>
           <span v-if="scope.row.sparepart3DFiles.length == 0">未上传</span>
           <span v-else-if="scope.row.sparepart3DFilesState">已通过</span>
           <span v-else-if="scope.row.sparepart3DFilesState">已通过</span>
           <span v-else>未通过</span>
           <span v-else>未通过</span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column width="200" label="零件2D图档">
+      <el-table-column width="250" label="零件2D图档">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <span v-if="scope.row.sparepart2DFiles.length == 0">未上传</span>
           <span v-if="scope.row.sparepart2DFiles.length == 0">未上传</span>
           <span v-else-if="scope.row.sparepart2DFilesState">已通过</span>
           <span v-else-if="scope.row.sparepart2DFilesState">已通过</span>
           <span v-else>未通过</span>
           <span v-else>未通过</span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column width="200" label="保养方案">
+      <el-table-column width="250" label="保养方案">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <span v-if="scope.row.maintainFiles.length == 0">未上传</span>
           <span v-if="scope.row.maintainFiles.length == 0">未上传</span>
           <span v-else-if="scope.row.maintainFilesState">已通过</span>
           <span v-else-if="scope.row.maintainFilesState">已通过</span>
@@ -218,10 +218,10 @@ export default {
             res => {
             res => {
                 this.listLoading = false;
                 this.listLoading = false;
                 if (res.code == "ok") {
                 if (res.code == "ok") {
-                    // let a = document.createElement('a')
-                    // a.setAttribute('download', res.data.splice("/")[2]);
-                    // a.setAttribute("href", res.data);
-                    // a.click();
+                    let a = document.createElement('a')
+                    a.setAttribute('download', res.data.split("/")[2]);
+                    a.setAttribute("href", res.data);
+                    a.click();
                 } else {
                 } else {
                     this.$message({
                     this.$message({
                         message: res.msg,
                         message: res.msg,

+ 4 - 2
ys_vue/src/views/project/projectDetail.vue

@@ -534,7 +534,8 @@
                 }
                 }
                 this.http.post(this.port.project.getUserById, {
                 this.http.post(this.port.project.getUserById, {
                     companyIds: compIds,
                     companyIds: compIds,
-                    id: this.user.id
+                    id: this.user.id,
+                    projectId: this.detailId
                 } , res => {
                 } , res => {
                     if (res.code == "ok") {
                     if (res.code == "ok") {
                         var list = res.data , assets = [] , produce = [];
                         var list = res.data , assets = [] , produce = [];
@@ -613,7 +614,8 @@
                     str += "," + this.editForm.modelIds[i].produceCompanyId;
                     str += "," + this.editForm.modelIds[i].produceCompanyId;
                 }
                 }
                 param.companyIds = str;
                 param.companyIds = str;
-                param.id = this.user.id
+                param.id = this.user.id;
+                param.projectId = this.detailId;
                 this.http.post(this.port.project.getUserById, param , res => {
                 this.http.post(this.port.project.getUserById, param , res => {
                     if (res.code == "ok") {
                     if (res.code == "ok") {
                         var list = res.data , assets = [] , produce = [];
                         var list = res.data , assets = [] , produce = [];