shanbinzhang 2 months ago
parent
commit
596d35089e

+ 1 - 1
src/views/dataEntry_manage/adjustdata/adjustData.vue

@@ -302,7 +302,7 @@ export default {
         return frequencySelectList(['半年度'])
     },
     isCreator() {
-			return this.edbInfoDetail.SysUserId === parseInt(localStorage.getItem('AdminId'));
+			return this.edbInfoDetail.SysUserId===parseInt(localStorage.getItem('AdminId')) || !this.edb_id;
 		}
   },
 

+ 1 - 1
src/views/dataEntry_manage/codecount/index.vue

@@ -198,7 +198,7 @@ export default {
 		},
 
 		isCreator() {
-			return this.edbInfoDetail.SysUserId === parseInt(localStorage.getItem('AdminId'));
+			return this.edbInfoDetail.SysUserId === parseInt(localStorage.getItem('AdminId')) || !this.$route.query.edbid;
 		}
 	},
 	data () {

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/computedDialog.vue

@@ -209,7 +209,7 @@
 				<el-form-item :label="$t('Edb.Detail.e_unit')" prop="unit">
 					<selectUnit v-model="formData.unit" style="width: 340px" />
 				</el-form-item>
-				<el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="calulateForm.isCreator">
+				<el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="!calulateForm.edb_id||calulateForm.isCreator">
 					<cascader
 						v-model="formData.menu"
 						:options="options"

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/diffusionIndexDia.vue

@@ -110,7 +110,7 @@
 				:disabled="type===53"
 			/>
           </el-form-item>
-          <el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" style="margin-right: 40px;" v-if="operationForm.isCreator">
+          <el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" style="margin-right: 40px;" v-if="!operationForm.edb_id||operationForm.isCreator">
 						<cascader
 							v-model="formData.menu"
 							:options="options"

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/fittingResidueDia.vue

@@ -147,7 +147,7 @@
           style="width: 70%"
           :placeholder="$t('Edb.InputHolderAll.input_name')"></el-input>
         </el-form-item>
-        <el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="operationForm.isCreator">
+        <el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="!operationForm.edb_id||operationForm.isCreator">
 		  		<cascader
             v-model="formData.menu"
             :options="options"

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/jointTargetDia.vue

@@ -196,7 +196,7 @@
 				style="width: 70%"
 				:placeholder="$t('Edb.InputHolderAll.input_name')"></el-input>
 			</el-form-item>
-			<el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="params.isCreator">
+			<el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="!params.edb_id||params.isCreator">
 				<cascader
 					v-model="formData.menu"
 					:options="menuOptions"

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/operationDialog.vue

@@ -183,7 +183,7 @@
 							/>
 						</el-form-item>
 						<!-- 指标目录 -->
-						<el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="operationForm.isCreator">
+						<el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="!operationForm.edb_id||operationForm.isCreator">
 							<cascader
 								v-model="formData.menu"
 								:options="options"

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/smoothEdbDialog.vue

@@ -134,7 +134,7 @@
                                     style="width: 340px" 
                                 />
                             </el-form-item>
-                            <el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="operationForm.isCreator">
+                            <el-form-item :label="$t('Edb.Detail.e_menu')" prop="menu" v-if="!operationForm.edb_id||operationForm.isCreator">
                                 <cascader
                                 v-if="isOpenSmooth"
                                 v-model="formData.menu"

+ 1 - 1
src/views/dataEntry_manage/databaseList.vue

@@ -2020,7 +2020,7 @@ export default {
 			} else  {
 				// 多指标求和求平均
 				if([81,82].includes(type)){
-					this.operationForm={...res,view,isCreator: res.EdbInfoDetail.SysUserId===this.roleId}
+					this.operationForm={...res,view,isCreator: res.EdbInfoDetail.SysUserId===this.roleId,edb_id: res.EdbInfoDetail.EdbInfoId}
 					this.showBatchComputedPop=true
 					return
 				}