修改文字
This commit is contained in:
parent
7b956f5ef5
commit
4d0cb487e1
|
@ -3,4 +3,5 @@ ENV = 'production'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
|
VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
|
||||||
|
#VUE_APP_BASE_API = 'http://47.95.0.242:2222/api'
|
||||||
|
|
||||||
|
|
|
@ -155,6 +155,13 @@ export function updateQtask(id,data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function deleteQtask(id) {
|
||||||
|
return request({
|
||||||
|
url:`/ability/qtask/${id}/`,
|
||||||
|
method:'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function qtaskStart(id) {
|
export function qtaskStart(id) {
|
||||||
return request({
|
return request({
|
||||||
url:`/ability/qtask/${id}/start/`,
|
url:`/ability/qtask/${id}/start/`,
|
||||||
|
|
|
@ -289,11 +289,11 @@
|
||||||
label-position="right"
|
label-position="right"
|
||||||
:rules="rule"
|
:rules="rule"
|
||||||
>
|
>
|
||||||
<el-form-item label="资质认定" prop="type">
|
<el-form-item label="资质名称" prop="type">
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
v-model="qualiForm.type"
|
v-model="qualiForm.type"
|
||||||
placeholder="资质认定"
|
placeholder="资质名称"
|
||||||
@change="qualiTypeChange"
|
@change="qualiTypeChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -304,8 +304,8 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资质名称" prop="name" v-if="qualiForm.type==='OTHER'">
|
<el-form-item label="具体名称" prop="name" v-if="qualiForm.type==='OTHER'">
|
||||||
<el-input v-model="qualiForm.name" placeholder="资质名称"/>
|
<el-input v-model="qualiForm.name" placeholder="具体名称"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资质类型" v-if="qualiForm.type==='CMA'">
|
<el-form-item label="资质类型" v-if="qualiForm.type==='CMA'">
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -494,11 +494,11 @@
|
||||||
label-position="right"
|
label-position="right"
|
||||||
:rules="rule"
|
:rules="rule"
|
||||||
>
|
>
|
||||||
<el-form-item label="资质认定" prop="type">
|
<el-form-item label="资质名称" prop="type">
|
||||||
<el-select
|
<el-select
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
v-model="qualiForm.type"
|
v-model="qualiForm.type"
|
||||||
placeholder="资质认定"
|
placeholder="资质名称"
|
||||||
@change="qualiTypeChange"
|
@change="qualiTypeChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -509,8 +509,8 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资质名称" prop="name" v-if="qualiForm.type==='OTHER'">
|
<el-form-item label="具体名称" prop="name" v-if="qualiForm.type==='OTHER'">
|
||||||
<el-input v-model="qualiForm.name" placeholder="资质名称"/>
|
<el-input v-model="qualiForm.name" placeholder="具体名称"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资质类型" v-if="qualiForm.type==='CMA'">
|
<el-form-item label="资质类型" v-if="qualiForm.type==='CMA'">
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -728,7 +728,7 @@
|
||||||
cityLists,
|
cityLists,
|
||||||
qactionItem,
|
qactionItem,
|
||||||
qualiNoChange,
|
qualiNoChange,
|
||||||
abilityNoChange
|
abilityNoChange,
|
||||||
} from "@/api/ability";
|
} from "@/api/ability";
|
||||||
import {getDictList} from "@/api/dict";
|
import {getDictList} from "@/api/dict";
|
||||||
import {genTree} from "@/utils";
|
import {genTree} from "@/utils";
|
||||||
|
|
|
@ -65,18 +65,23 @@
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleClick(scope)"
|
@click="handleClick(scope)"
|
||||||
>执行</el-link>
|
>执行</el-link>
|
||||||
<!-- <el-link
|
<el-link
|
||||||
v-if="scope.row.state==='待发布'"
|
v-if="scope.row.state!='已关闭'"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleEdit(scope)"
|
@click="handleEdit(scope)"
|
||||||
>编辑</el-link>-->
|
>编辑</el-link>
|
||||||
<el-link
|
<el-link
|
||||||
v-if="scope.row.state==='待发布'"
|
v-if="scope.row.state==='待发布'"
|
||||||
type="warning"
|
type="warning"
|
||||||
size="small"
|
size="small"
|
||||||
@click="handleStart(scope)"
|
@click="handleStart(scope)"
|
||||||
>发布</el-link>
|
>发布</el-link>
|
||||||
|
<el-link
|
||||||
|
type="danger"
|
||||||
|
size="small"
|
||||||
|
@click="handleDelete(scope)"
|
||||||
|
>删除</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -135,7 +140,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getOrgList } from "@/api/org";
|
import { getOrgList } from "@/api/org";
|
||||||
import {getQtask,createQtask,updateQtask,qtaskStart} from "@/api/ability";
|
import {getQtask,createQtask,updateQtask,qtaskStart, deleteQtask} from "@/api/ability";
|
||||||
import {genTree} from "@/utils";
|
import {genTree} from "@/utils";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||||
|
@ -280,6 +285,22 @@
|
||||||
resetFilter() {
|
resetFilter() {
|
||||||
this.pageForm.search = '';
|
this.pageForm.search = '';
|
||||||
this.getQtaskList();
|
this.getQtaskList();
|
||||||
|
},
|
||||||
|
//删除操作
|
||||||
|
handleDelete(scope) {
|
||||||
|
let that = this;
|
||||||
|
that.$confirm("确认删除吗?", "提示")
|
||||||
|
.then(async () => {
|
||||||
|
await deleteQtask(scope.row.id).then(res => {
|
||||||
|
if (res.code >= 200 && res.code < 400) {
|
||||||
|
that.getQtaskList();
|
||||||
|
that.$message.success("成功");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -278,6 +278,10 @@
|
||||||
<p style="font-size: 20px;font-weight: bold;">新增能力</p>
|
<p style="font-size: 20px;font-weight: bold;">新增能力</p>
|
||||||
<p><span style="display: inline-block;width: 100px;font-weight: bold;">能力类型 :</span>{{atype_name}}</p>
|
<p><span style="display: inline-block;width: 100px;font-weight: bold;">能力类型 :</span>{{atype_name}}</p>
|
||||||
<p><span style="display: inline-block;width: 100px;font-weight: bold;">能力领域:</span>{{afield_name}}</p>
|
<p><span style="display: inline-block;width: 100px;font-weight: bold;">能力领域:</span>{{afield_name}}</p>
|
||||||
|
<p><span style="display: inline-block;width: 160px;font-weight: bold;">新增对象数量:</span>{{item.num}}</p>
|
||||||
|
<p><span style="display: inline-block;width: 160px;font-weight: bold;">新增参数数量:</span>{{item.num2}}</p>
|
||||||
|
<p><span style="display: inline-block;width: 160px;font-weight: bold;">新增方法标准数量:</span>{{item.num3}}</p>
|
||||||
|
<p><span style="display: inline-block;width: 160px;font-weight: bold;">新增产品标准数量:</span>{{item.num4}}</p>
|
||||||
<p><span style="display: inline-block;width: 100px;font-weight: bold;">上传文件:</span>{{showData.data.file_.name}}</p>
|
<p><span style="display: inline-block;width: 100px;font-weight: bold;">上传文件:</span>{{showData.data.file_.name}}</p>
|
||||||
<el-link :href="showData.data.file_.file" target="_blank" type="primary">{{showData.data.file_.name}}</el-link>
|
<el-link :href="showData.data.file_.file" target="_blank" type="primary">{{showData.data.file_.name}}</el-link>
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
|
@ -357,7 +361,8 @@
|
||||||
atypeOptions: {},
|
atypeOptions: {},
|
||||||
afieldOptions: {},
|
afieldOptions: {},
|
||||||
atype_name:'',
|
atype_name:'',
|
||||||
afield_name:''
|
afield_name:'',
|
||||||
|
item:{}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -415,6 +420,7 @@
|
||||||
},
|
},
|
||||||
//操作处理
|
//操作处理
|
||||||
handleRecord(type, item) {
|
handleRecord(type, item) {
|
||||||
|
this.item = item
|
||||||
this.showData.id = item.id;
|
this.showData.id = item.id;
|
||||||
this.showData.data = item;
|
this.showData.data = item;
|
||||||
this.showData.type = item.action;
|
this.showData.type = item.action;
|
||||||
|
@ -481,7 +487,7 @@
|
||||||
clickRow(row, col, e) {
|
clickRow(row, col, e) {
|
||||||
this.listLoading2 = true;
|
this.listLoading2 = true;
|
||||||
this.detailItem = row;
|
this.detailItem = row;
|
||||||
this.listQuery = {pageoff: true, qtask: row.qtask, belong_dept: row.dept};
|
this.listQuery = {pageoff: true, qtask: row.qtask, belong_dept: row.org};
|
||||||
this.getQactionList();
|
this.getQactionList();
|
||||||
},
|
},
|
||||||
handleSelectRecords(val) {
|
handleSelectRecords(val) {
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
from .settings import *
|
from .settings import *
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
# 'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
# 'ENGINE': 'django.db.backends.postgresql',
|
||||||
'NAME': 'cma',
|
# 'NAME': 'cma',
|
||||||
'USER': 'postgres',
|
# 'USER': 'postgres',
|
||||||
'PASSWORD': 'zctest1234',
|
# 'PASSWORD': 'zctest1234',
|
||||||
'HOST': '47.95.0.242',
|
# 'HOST': '47.95.0.242',
|
||||||
'PORT': '5432',
|
# 'PORT': '5432',
|
||||||
},
|
# },
|
||||||
# 'default': {
|
'default': {
|
||||||
# 'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
# 'NAME': 'cma',
|
'NAME': 'cma',
|
||||||
# 'USER': 'cma',
|
'USER': 'cma',
|
||||||
# 'PASSWORD': 'cma123',
|
'PASSWORD': 'cma123',
|
||||||
# 'HOST': '172.16.80.102',
|
'HOST': '172.16.80.102',
|
||||||
# # 'HOST': '1.203.161.102',
|
# 'HOST': '1.203.161.102',
|
||||||
# 'PORT': '5432',
|
'PORT': '5432',
|
||||||
# }
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue