新增能力
-
能力类型 :{{data.afield_name}}
-
能力领域:{{data.afield_name}}
-
上传文件:{{data.file}}
-
{{data.file}}
+
能力类型 :{{showData.data.afield_name}}
+
能力领域:{{showData.data.afield_name}}
+
上传文件:{{showData.data.file}}
+
{{showData.data.file}}
+
@@ -318,22 +316,29 @@
qtask: {},
detailItem: {},
actionType: null,
+ tableHeight: null,
+ fieldList2: [],
+
};
},
created() {
this.qtaskId = sessionStorage.getItem('qtaskId');
},
mounted() {
- debugger;
+ let height1 = document.getElementsByClassName('app-main')[0].clientHeight;
+ let height2 = document.getElementsByClassName('filterTop')[0].clientHeight;
+ let computedHeight = height1-height2;
+ this.tableHeight = computedHeight/2-54;
this.qtaskId = sessionStorage.getItem('qtaskId');
this.getQtaskDept();
+
+
},
methods: {
+
checkPermission,
getQtaskDept() {
- debugger;
qtaskDetail({qtask: this.qtaskId}).then((res) => {
- debugger;
this.qtaskDepts = res.data.results;
this.qtask = res.data.results[0].qtask_;
});
@@ -351,28 +356,38 @@
},
//操作处理
handleRecord(type, item) {
- debugger;
- if (item.action === 'quali:update' || item.action === 'quali:create') {
- this.data = item;
- this.showData.data = item;
- this.showData.type = item.action;
- this.showData.action = type;
- } else {
- this.data = item;
- this.actionType = type;
- }
- this.drawer = true;
- qactionItem(item.id).then(res => {
+ // debugger;
+ this.showData.data = item;
+ this.showData.type = item.action;
+ this.showData.action = type;
+ this.actionType = type;
+ this.fieldList2 =[];
+ qactionItem(item.id).then(res=>{
+ if (res.code>=200) {
+ debugger;
+ let updateDetail = res.data.update_detail;//更改字段
+ updateDetail.forEach(item=>{
+ this.fieldList2.push(item.field);//所有字段
+ })
+ this.drawer = true;
+ }
debugger;
+ console.log(this.fieldList2)
+ })
+
+ qactionItem(item.id).then(res => {
console.log(res)
})
},
handleDelete(id) {
this.$confirm("确认删除该操作吗?", "提示")
.then(async () => {
- await qactionDelete(id);
- location.reload();
- this.$message.success("成功");
+ await qactionDelete(id).then(res=>{
+ if(res.code>=200&&res.code<400){
+ this.getQactionList();
+ this.$message.success("成功");
+ }
+ });
})
.catch((err) => {
console.error(err);
@@ -381,15 +396,14 @@
//操作确认
confirmClick() {
qactionConfirm(this.data.id).then(res => {
- debugger;
- console.log(res)
- if (res.code === 200) {
+ if (res.code>=200) {
this.drawer = false;
this.getQactionList();
}
})
},
handleDo(data) {
+ console.log(data);
this.drawer = data;
this.getQactionList();
},
diff --git a/client/src/views/ability/quliShow.vue b/client/src/views/ability/quliShow.vue
index 7d85121..d4e1e79 100644
--- a/client/src/views/ability/quliShow.vue
+++ b/client/src/views/ability/quliShow.vue
@@ -1,29 +1,54 @@
-
资质报送详情
-
+ 新增资质
+ 编辑资质
+
{{ data.value2.name }}
+
+ {{data.value2.name1}}
+
{{ data.value2.type }}
+
+ {{data.value2.type1}}
+
国家级
省级
市级
+
+ 国家级
+ 省级
+ 市级
+
{{ data.value2.level }}
+
+ {{data.value2.level1}}
+
{{data.value2.scope}}
+
+ {{data.value2.scope1}}
+
{{data.value2.description}}
+
+ {{data.value2.description1}}
+
- {{ data.value2.name }}
+ {{ data.value2.citys }}
{{ data.value2.province }}
@@ -35,10 +60,82 @@
{{ data.value2.name }}
+
+
+
+ {{ formData.name }}
+
+
+ {{ formData.type }}
+
+
+ 国家级
+ 省级
+ 市级
+
+
+ {{ formData.level }}
+
+
+ {{formData.scope}}
+
+
+ {{formData.description}}
+
+
+ {{ formData.province_name }}{{ formData.city_name }}
+
+
+ {{ formData.province_name }}
+
+
+ {{ formData.city_name }}
+
+
+
+
+
+ {{ formData2.name }}
+
+
+ {{ formData2.type }}
+
+
+ 国家级
+ 省级
+ 市级
+
+
+ {{ formData2.level }}
+
+
+ {{ formData2.scope }}
+
+
+ {{ formData2.description }}
+
+
+ {{ formData2.province_name}}{{ formData2.city_name }}
+
+
+ {{ formData2.province_name}}
+
+
+ {{ formData2.city_name }}
+
+
+
+
@@ -50,31 +147,71 @@