licp
2024-06-07 32a95699e59c5c65e18c08643266c9cbfa380ee4
优化设备明细、检验任务附件权限
已修改3个文件
41 ■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/a6-device-management.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -356,7 +356,7 @@
      :data="{
        orderId:id
      }"
      v-show="state==1"
      v-show="state==1&&fileAdd"
      :on-success="handleSuccessUp" :show-file-list="false"
        accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' :headers="headers" :on-change="beforeUpload"
        :on-error="onError" ref='upload'>
@@ -475,6 +475,7 @@
    },
    data() {
      return {
        fileAdd:false,
        sampleVisible: false,
        taskVisible: false,
        submitLoading: false,
@@ -520,6 +521,11 @@
          init:false,
          do: [
          {
                        id: 'handleDown',
                        font: '下载',
                        type: 'text',
                        method: 'handleDown'
                    },{
                        id: 'delete',
                        font: '删除',
                        type: 'text',
@@ -527,12 +533,7 @@
            disabFun: (row, index) => {
                                return this.state!=1
                            }
                    }, {
                        id: 'handleDown',
                        font: '下载',
                        type: 'text',
                        method: 'handleDown'
                    },
                    }
          ],
          isPage: false,
          linkEvent: {},
@@ -618,6 +619,7 @@
      this.getComparisonList()
      this.getAuthorizedPerson()
      this.scrollInit()
      this.getPower()
    },
    watch: {
      id(val) {
@@ -681,6 +683,23 @@
      }
    },
    methods: {
      getPower(){
        let power = JSON.parse(sessionStorage.getItem('power'))
        let fileDel = false
        let fileAdd = false
        for (var i = 0; i < power.length; i++) {
                    if (power[i].menuMethod == 'uploadFile') {
                        fileAdd = true
                    }
                    if (power[i].menuMethod == 'delfile') {
                        fileDel = true
                    }
                }
        if (!fileDel) {
                    this.componentData0.do.splice(1, 1)
                }
        this.fileAdd = fileAdd
      },
      async getCurrentProduct(id,type){
        this.tableLoading = true;
        let res = await this.$axios.post(this.$api.insOrderPlan.getInsProduct+'?id='+id+'&type='+type+'&laboratory='+this.sonLaboratory)
src/components/view/a6-device-management.vue
@@ -578,6 +578,7 @@
                let up = false
                let del = false
                let add = false
        let config = false
                for (var i = 0; i < power.length; i++) {
                    if (power[i].menuMethod == 'upDeviceParameter') {
                        up = true
@@ -588,6 +589,12 @@
                    if (power[i].menuMethod == 'addDeviceParameter') {
                        add = true
                    }
          if (power[i].menuMethod == 'numberCollect') {
                        config = true
                    }
                }
        if (!config) {
                    this.componentData.do.splice(2, 1)
                }
                if (!up) {
                    this.componentData.do.splice(1, 1)
src/main.js
@@ -17,7 +17,6 @@
Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80";
const javaApi = 'http://192.168.11.200:8001';//李
// const javaApi = 'http://192.168.144.249:8001';//张
// const javaApi = 'http://172.20.10.3:8001';//姜
// const javaApi = 'http://192.168.11.2:8001';//柴
//  const javaApi = 'http://127.0.0.1:8001';//晏
// const javaApi = 'http://114.132.189.42:1234';//测试服