取消
@@ -300,6 +317,14 @@
+
+
+
+
+
+
+ 上传文件
+
+ 可上传压缩包.zip,图片.jpg、.png等文件
+
+
+
+
取消
@@ -447,6 +508,14 @@
+
+
+
+
-
+
-
+
-
+
+
+
+ 上传文件
+
+ 可上传压缩包.zip,图片.jpg、.png等文件
+
+
+
取消
@@ -505,6 +591,28 @@
确认
+
+
+
+
+
+
+
+
+
+
+
@@ -520,7 +628,8 @@
createAbility,
updateService,
provinceLists,
- cityLists
+ cityLists,
+ qactionItem
} from "@/api/ability";
import {getDictList} from "@/api/dict";
import {genTree} from "@/utils";
@@ -577,19 +686,26 @@
qualiForm: {
name: "",
type: "",
- grade: null,
+ grade: "",
scope: "",
level: "",
province: "",
city: "",
description: "",
+ end_date: "",
citys: [],
},
+ citysName:'',
+ city_name:'',
+ province_name:'',
abilityForm: {
atype: '',
afield: '',
file: '',
num: '',
+ num2: '',
+ num3: '',
+ num4: '',
qtask: '',
},
rule: {
@@ -641,8 +757,8 @@
getDictList({type__code: "field_type", is_used: true}).then((res) => {
this.afieldOptions = genTree(res.data);
});
- getDictList({type__code: "quality_type", is_used: true}).then((res) => {
- this.atypeOptions = genTree(res.data);
+ getDictList({type__code: "quality_type", is_used: true}).then((res1) => {
+ this.atypeOptions = genTree(res1.data);
});
},
getProvince() {
@@ -675,19 +791,20 @@
this.cityOptions = res.data.results;
})
},
- handlePreview(file) {
- if ("url" in file) {
- window.open(file.url);
- } else {
- window.open(file.response.data.path);
- }
- },
handleUpSuccess(res, file, filelist) {
this.abilityForm.file = res.data.id;
},
handleRemove(file, filelist) {
this.abilityForm.file = null;
},
+
+ handleUpSuccessQuality(res, file, filelist) {
+ this.qualiForm.file = res.data.id;
+ },
+ //删除资质文件
+ handleRemoveQuality(file, filelist) {
+ this.qualiForm.file = null;
+ },
checkPermission,
getTableList() {
this.listLoading = true;
@@ -776,26 +893,31 @@
},
//编辑资质
handleEdit(row) {
-
+ this.city_name = '';
+ this.province_name = '';
+ this.citysName = '';
this.showForm = true;
- this.qualiForm.id = row.id;
- this.qualiForm.name = row.name;
- this.qualiForm.type = row.type;
- this.qualiForm.grade = row.grade;
- this.qualiForm.scope = row.scope;
- this.qualiForm.level = row.level;
- this.qualiForm.province_name = row.province_name?row.province_name:'';
- this.qualiForm.city_name = row.city_name?row.city_name:'';
- this.qualiForm.description = row.description;
- this.qualiForm.citys = null;
+ this.qualiForm.id =row.id?row.id:'';
+ this.qualiForm.name = row.name?row.name:'';
+ this.qualiForm.type = row.type?row.type:'';
+ this.qualiForm.grade = row.grade?row.grade:'';
+ this.qualiForm.scope = row.scope?row.scope:'';
+ this.qualiForm.level = row.level?row.level:'';
+ this.qualiForm.province = row.province?row.province:'';
+ this.qualiForm.end_date = row.end_date?row.end_date:'';
+ this.province_name = row.province_name?row.province_name:'';
+ this.qualiForm.city = row.city?row.city:'';
+ this.qualiForm.file = row.file?row.file:'';
+ this.city_name = row.city_name?row.city_name:'';
+ this.qualiForm.description = row.description?row.description:'';
+ this.qualiForm.citys = row.citys?row.citys:[];
if(row.citys_&&row.citys_.length>0){
let citys = '';
row.citys_.forEach(item=>{
citys = citys+item.name;
- })
- this.qualiForm.citys = citys;
+ });
+ this.citysName = citys;
}
-
},
//新增能力
abilityCreate() {
@@ -808,10 +930,24 @@
if (valid) {
let obj = new Object();
obj.qtask = that.qtask;
- obj.value2 = that.qualiForm;
- if (obj.value2.grade === '') {
- obj.value2.grade = null;
+
+ let value2 = new Object();
+ for (let [key, value] of Object.entries(that.qualiForm)) {
+ console.log(key,value);
+ if(value!==''&&value!==null&&value!==undefined){
+ value2[key] = value;
+ }
}
+ value2.citys.forEach((item,index)=>{
+ value2.citys[index] = parseInt(item);
+ });
+ obj.value2 = value2;
+ debugger;
+ console.log(obj);
+ console.log(obj.value2);
+ console.log(obj.value2.citys);
+ debugger;
+
const isEdit = that.dialogType === "edit";
if (isEdit) {
updateQuali(obj).then((res) => {
@@ -855,6 +991,13 @@
}
});
},
+ /* handleDetail(id){
+ let that = this;
+ that.drawer = true;
+ qactionItem(id).then(res=>{
+ that.recordData = res.data.update_detail;
+ })
+ },*/
//删除操作
handleDelete(id) {
let that = this;
diff --git a/client/src/views/ability/qualityTaskDo.vue b/client/src/views/ability/qualityTaskDo.vue
index 2a2d167..da0d271 100644
--- a/client/src/views/ability/qualityTaskDo.vue
+++ b/client/src/views/ability/qualityTaskDo.vue
@@ -178,8 +178,11 @@
-
- {{scope.row.name}}
+
+ {{scope.row.file_.name}}
+
+
+ {{scope.row.value1.file_.name}}
@@ -243,8 +246,8 @@
新增能力
能力类型 :{{atype_name}}
能力领域:{{afield_name}}
-
上传文件:{{showData.data.file}}
-
{{showData.data.file}}
+
上传文件:{{showData.data.file_.name}}
+
{{showData.data.file_.name}}
{{ data.level }}
+
+ {{data.end_date}}
+
{{data.scope}}
@@ -37,8 +40,13 @@
{{ data.city_name }}
+
+ {{data.file_.name}}
+
+ {{data.file_.name}}
+
原始数据:
{{ formData.level }}
+
+ {{ formData.end_date}}
+
{{formData.scope}}
@@ -64,7 +75,7 @@
{{formData.description}}
- {{item.name}}
+ {{item.name}}
{{ formData.province_name }}
@@ -72,8 +83,13 @@
{{ formData.city_name }}
+
+ {{formData.file_.name}}
+
+ {{formData.file_.name}}
+
更改后数据:
{{ formData2.scope }}
+
+ {{ formData2.end_date}}
+
{{ formData2.description }}
- {{item.name}}
+ {{item.name}}
@@ -108,7 +127,10 @@
{{ formData2.city_name }}
-
+
+ {{formData2.file_.name}}
+
+ {{formData2.file_.name}}
diff --git a/client/src/views/testvideo/upload.vue b/client/src/views/testvideo/upload.vue
index 160ca0c..31987ae 100644
--- a/client/src/views/testvideo/upload.vue
+++ b/client/src/views/testvideo/upload.vue
@@ -1,32 +1,120 @@
-
- 新增
-
- 搜索
- 重置
-
-
+
+
+
+
+ 视频分类
+
+
+
+
+
+
+ 新增
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+ {{ showTypeOptions[scope.row.category] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+