|
@@ -39,7 +39,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <TableScore :contract-id="contractId" :project-id="projectId" :type="searchFormScore.unitType" />
|
|
|
|
|
|
+ <TableScore :contract-id="contractId" :project-id="projectId" :type="searchFormScore.unitType" :state="state" />
|
|
</HcCardItem>
|
|
</HcCardItem>
|
|
</el-container>
|
|
</el-container>
|
|
<el-aside id="hc_table_aside" class="hc-table-aside">
|
|
<el-aside id="hc_table_aside" class="hc-table-aside">
|
|
@@ -61,8 +61,8 @@
|
|
<el-input v-model="opinionText" style="flex: 1;" :rows="3" placeholder="请输入抽检意见" type="textarea" resize="none" />
|
|
<el-input v-model="opinionText" style="flex: 1;" :rows="3" placeholder="请输入抽检意见" type="textarea" resize="none" />
|
|
<el-button class="ml-4" hc-btn type="primary" :loading="submitLoading" @click="opinionTextEditHihe">保存</el-button>
|
|
<el-button class="ml-4" hc-btn type="primary" :loading="submitLoading" @click="opinionTextEditHihe">保存</el-button>
|
|
</div>
|
|
</div>
|
|
- <div v-if="!opinionTextEdit" class="text-blue text-hover icon-1" @click="opinionTextEditShow">
|
|
|
|
- <HcIcon name="edit-2" />
|
|
|
|
|
|
+ <div v-if="!opinionTextEdit " class="text-blue text-hover icon-1" @click="opinionTextEditShow">
|
|
|
|
+ <HcIcon v-if="!state" name="edit-2" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -97,8 +97,11 @@ const projectInfo = ref(useAppState.getProjectInfo)
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
setSplitRef()
|
|
setSplitRef()
|
|
getScore()
|
|
getScore()
|
|
|
|
+
|
|
|
|
+})
|
|
|
|
+onActivated(()=>{
|
|
|
|
+ getStatus()
|
|
})
|
|
})
|
|
-
|
|
|
|
//初始化设置拖动分割线
|
|
//初始化设置拖动分割线
|
|
const setSplitRef = () => {
|
|
const setSplitRef = () => {
|
|
//配置参考: https://split.js.org/#/?direction=vertical&snapOffset=0
|
|
//配置参考: https://split.js.org/#/?direction=vertical&snapOffset=0
|
|
@@ -115,7 +118,16 @@ const setSplitRef = () => {
|
|
})
|
|
})
|
|
}, 800)
|
|
}, 800)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+//获取是否可以修改
|
|
|
|
+const state = ref(false)
|
|
|
|
+const getStatus = async ()=>{
|
|
|
|
+ const { error, code, data } = await initialgApi.getTable({
|
|
|
|
+ projectId: projectId.value,
|
|
|
|
+ })
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ state.value = data['status'] === 2 ? true : false
|
|
|
|
+ }
|
|
|
|
+}
|
|
const searchFormScore = ref({
|
|
const searchFormScore = ref({
|
|
unitType: '1', score: false,
|
|
unitType: '1', score: false,
|
|
})
|
|
})
|