scorpio hace 2 años
padre
commit
bdbfdc472a

+ 7 - 5
src/views/home/component/dash.vue

@@ -85,7 +85,7 @@
     >
       <template #menu="{ row }">
         <el-button
-          v-if="user.info.viewStage !== 1"
+          v-if="user.info.viewStage !== 1 && dataType === 'asset'"
           icon="Upload"
           type="primary"
           text
@@ -103,7 +103,7 @@
           type="primary"
           icon="el-icon-upload"
           @click="projectReport(row)"
-          >上报
+          >上报审核
         </el-button>
         <el-button
           text
@@ -498,7 +498,7 @@ export default {
             width: 100
           },
           {
-            label: '状态',
+            label: '项目状态',
             prop: 'report_type',
             width: 170,
             slot: true
@@ -545,7 +545,8 @@ export default {
       owerQuery: {},
       projectStageQuery: {},
       selectList: [],
-      dev: false
+      dev: false,
+      dataType: 'project'
     }
   },
   created() {
@@ -554,6 +555,7 @@ export default {
     const indexLabel = this.option.column.findIndex(
       sub => sub.prop === 'responsible_unit'
     )
+    this.dataType = localStorage.getItem('data-type')
     if (this.user.info.viewStage === 1) {
       // 发改
       this.option.column[index].hide = true
@@ -708,7 +710,7 @@ export default {
      * @param res
      */
     projectReport(res) {
-      this.$confirm('确认上报审核?').then(ele => {
+      this.$confirm('确认上报至管理员进行审核?').then(ele => {
         if (ele === 'confirm') {
           this.$api.project.upReportType({ id: res.id }).then(res => {
             if (res.code === 200) {

+ 1 - 0
src/views/home/component/owner_serach.vue

@@ -419,6 +419,7 @@ export default {
       this.form.planStorageTime = ''
       this.form.storageTime = ''
       this.form.projectYear = ''
+      this.form.reportType = ''
       this.time1 = null
       this.time2 = null
       this.deptName = '机构选择'