单位端,资产名称不得在编辑的时候修改

lijinlongNew
许宏杰 1 month ago
parent 86d076498a
commit 756a732f69

@ -28,7 +28,10 @@
}" }"
prop="xtmc" prop="xtmc"
> >
<el-input v-model="ruleForm.xtmc"></el-input> <el-input
v-model="ruleForm.xtmc"
:disabled="pageType == 'change'"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -6086,6 +6089,7 @@ export default {
auditState: "3", auditState: "3",
auditYy: this.dialogruleForm.auditYy, auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id), currentId: Number(this.id),
xzType: 1,
}; };
assetAudit(tijioaobj).then((res) => { assetAudit(tijioaobj).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -6103,7 +6107,7 @@ export default {
// //
btnPass() { btnPass() {
this.loading = true; this.loading = true;
assetAudit({ currentId: Number(this.id), auditState: "2" }) assetAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => { .then((res) => {
this.$modal.msgSuccess("审核通过"); this.$modal.msgSuccess("审核通过");
// this.$router.go(-1); // this.$router.go(-1);

@ -32,6 +32,7 @@
<el-input <el-input
v-model="ruleForm.xcxmc" v-model="ruleForm.xcxmc"
placeholder="请输入小程序名称" placeholder="请输入小程序名称"
:disabled="pageType == 'change'"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -685,6 +686,7 @@ export default {
auditState: "3", auditState: "3",
auditYy: this.dialogruleForm.auditYy, auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id), currentId: Number(this.id),
xzType: 1,
}; };
miniProgramsAudit(tijioaobj).then((res) => { miniProgramsAudit(tijioaobj).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -702,7 +704,11 @@ export default {
// //
btnPass() { btnPass() {
this.loading = true; this.loading = true;
miniProgramsAudit({ currentId: Number(this.id), auditState: "2" }) miniProgramsAudit({
currentId: Number(this.id),
auditState: "2",
xzType: 1,
})
.then((res) => { .then((res) => {
this.$modal.msgSuccess("审核通过"); this.$modal.msgSuccess("审核通过");
// this.$router.go(-1); // this.$router.go(-1);

@ -29,7 +29,11 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="平台类型" prop="ptlx" required> <el-form-item label="平台类型" prop="ptlx" required>
<el-select v-model="ruleForm.ptlx" placeholder="请选择平台类型"> <el-select
v-model="ruleForm.ptlx"
placeholder="请选择平台类型"
:disabled="pageType == 'change'"
>
<el-option <el-option
v-for="dict in dict.type.sys_ptlx_type" v-for="dict in dict.type.sys_ptlx_type"
:key="dict.value" :key="dict.value"
@ -1021,6 +1025,7 @@ export default {
auditState: "3", auditState: "3",
auditYy: this.dialogruleForm.auditYy, auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id), currentId: Number(this.id),
xzType: 1,
}; };
gzhAudit(tijioaobj).then((res) => { gzhAudit(tijioaobj).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -1038,7 +1043,7 @@ export default {
// //
btnPass() { btnPass() {
this.loading = true; this.loading = true;
gzhAudit({ currentId: Number(this.id), auditState: "2" }) gzhAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => { .then((res) => {
this.$modal.msgSuccess("审核通过"); this.$modal.msgSuccess("审核通过");
// this.$router.go(-1); // this.$router.go(-1);

@ -32,6 +32,7 @@
<el-input <el-input
v-model="ruleForm.dzyxhz" v-model="ruleForm.dzyxhz"
placeholder="请输入电子邮箱后缀" placeholder="请输入电子邮箱后缀"
:disabled="pageType == 'change'"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -558,6 +559,7 @@ export default {
auditState: "3", auditState: "3",
auditYy: this.dialogruleForm.auditYy, auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id), currentId: Number(this.id),
xzType: 1,
}; };
EmailAudit(tijioaobj).then((res) => { EmailAudit(tijioaobj).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -575,7 +577,7 @@ export default {
// //
btnPass() { btnPass() {
this.loading = true; this.loading = true;
EmailAudit({ currentId: Number(this.id), auditState: "2" }) EmailAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => { .then((res) => {
this.$modal.msgSuccess("审核通过"); this.$modal.msgSuccess("审核通过");
// this.$router.go(-1); // this.$router.go(-1);

@ -32,6 +32,7 @@
<el-input <el-input
v-model="ruleForm.appName" v-model="ruleForm.appName"
placeholder="请输入移动应用名称" placeholder="请输入移动应用名称"
:disabled="pageType == 'change'"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -542,6 +543,7 @@ export default {
auditState: "3", auditState: "3",
auditYy: this.dialogruleForm.auditYy, auditYy: this.dialogruleForm.auditYy,
currentId: Number(this.id), currentId: Number(this.id),
xzType: 1,
}; };
AppAudit(tijioaobj).then((res) => { AppAudit(tijioaobj).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -559,7 +561,7 @@ export default {
// //
btnPass() { btnPass() {
this.loading = true; this.loading = true;
AppAudit({ currentId: Number(this.id), auditState: "2" }) AppAudit({ currentId: Number(this.id), auditState: "2", xzType: 1 })
.then((res) => { .then((res) => {
this.$modal.msgSuccess("审核通过"); this.$modal.msgSuccess("审核通过");
// this.$router.go(-1); // this.$router.go(-1);

@ -17,17 +17,33 @@
> >
<!-- 上传按钮 --> <!-- 上传按钮 -->
<slot v-if="fileList.length == 0"></slot> <slot v-if="fileList.length == 0"></slot>
</el-upload> </el-upload>
<!-- 文件列表 --> <!-- 文件列表 -->
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul"> <transition-group
<li :key="file.url" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList"> class="upload-file-list el-upload-list el-upload-list--text"
<el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank"> name="el-fade-in-linear"
tag="ul"
>
<li
:key="file.url"
class="el-upload-list__item ele-upload-list__item-content"
v-for="(file, index) in fileList"
>
<el-link
:href="`${baseUrl}${file.url}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document"> {{ getFileName(file.name) }} </span> <span class="el-icon-document"> {{ getFileName(file.name) }} </span>
</el-link> </el-link>
<div class="ele-upload-list__item-content-action" v-if="$route.query.pageType != 'look'"> <div
<el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link> class="ele-upload-list__item-content-action"
v-if="$route.query.pageType != 'look'"
>
<el-link :underline="false" @click="handleDelete(index)" type="danger"
>删除</el-link
>
</div> </div>
</li> </li>
</transition-group> </transition-group>
@ -60,17 +76,17 @@ export default {
// //
isShowTip: { isShowTip: {
type: Boolean, type: Boolean,
default: true default: true,
} },
}, },
data() { data() {
return { return {
number: 0, number: 0,
uploadList: [], uploadList: [],
// baseUrl: process.env.VUE_APP_BASE_API, baseUrl: process.env.VUE_APP_BASE_API,
baseUrl: location.origin + '/api', // baseUrl: location.origin + '/api',
// uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", // uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", //
uploadFileUrl: location.origin + '/api/common/upload', // uploadFileUrl: location.origin + '/api/common/upload',
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
}, },
@ -83,9 +99,9 @@ export default {
if (val) { if (val) {
let temp = 1; let temp = 1;
// //
const list = Array.isArray(val) ? val : this.value.split(','); const list = Array.isArray(val) ? val : this.value.split(",");
// //
this.fileList = list.map(item => { this.fileList = list.map((item) => {
if (typeof item === "string") { if (typeof item === "string") {
item = { name: item, url: item }; item = { name: item, url: item };
} }
@ -98,8 +114,8 @@ export default {
} }
}, },
deep: true, deep: true,
immediate: true immediate: true,
} },
}, },
computed: { computed: {
// //
@ -112,17 +128,19 @@ export default {
handleBeforeUpload(file) { handleBeforeUpload(file) {
// //
if (this.fileType) { if (this.fileType) {
const fileName = file.name.split('.'); const fileName = file.name.split(".");
const fileExt = fileName[fileName.length - 1]; const fileExt = fileName[fileName.length - 1];
const isTypeOk = this.fileType.indexOf(fileExt) >= 0; const isTypeOk = this.fileType.indexOf(fileExt) >= 0;
if (!isTypeOk) { if (!isTypeOk) {
this.$modal.msgError(`文件格式不正确,请上传${this.fileType.join("/")}格式文件!`); this.$modal.msgError(
`文件格式不正确,请上传${this.fileType.join("/")}格式文件!`
);
return false; return false;
} }
} }
// //
if (file.name.includes(',')) { if (file.name.includes(",")) {
this.$modal.msgError('文件名不正确,不能包含英文逗号!'); this.$modal.msgError("文件名不正确,不能包含英文逗号!");
return false; return false;
} }
// //
@ -151,14 +169,14 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.uploadList.push({ name: res.fileName, url: res.fileName }); this.uploadList.push({ name: res.fileName, url: res.fileName });
this.uploadedSuccessfully(); this.uploadedSuccessfully();
} else if(res.code == 401) { } else if (res.code == 401) {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch("LogOut").then(() => {
// location.href = '/login'; // location.href = '/login';
this.$modal.msgError(res.msg); this.$modal.msgError(res.msg);
this.$modal.closeLoading(); this.$modal.closeLoading();
this.uploadedSuccessfully(); this.uploadedSuccessfully();
this.$router.replace("/login"); this.$router.replace("/login");
}) });
} else { } else {
this.number--; this.number--;
this.$modal.closeLoading(); this.$modal.closeLoading();
@ -198,9 +216,9 @@ export default {
for (let i in list) { for (let i in list) {
strs += list[i].url + separator; strs += list[i].url + separator;
} }
return strs != '' ? strs.substr(0, strs.length - 1) : ''; return strs != "" ? strs.substr(0, strs.length - 1) : "";
} },
} },
}; };
</script> </script>

@ -53,6 +53,7 @@
<el-input v-model="ruleForm.xtym"></el-input> <el-input v-model="ruleForm.xtym"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="访问网址" class="fangwenwangzhi"> <el-form-item label="访问网址" class="fangwenwangzhi">
<el-row> <el-row>

Loading…
Cancel
Save